diff --git a/README.md b/README.md index a085538a..51473b8b 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques | MiniApp | What it does | Author | | --- | --- | --- | +| [Live Stream Recorder](plugins/charlesnty612/live-stream-recorder/) | A native workbench for multi-platform livestream recording, danmaku analysis and highlight clipping; the recording engine is downloaded on demand after you agree | [charlesnty612](https://github.com/charlesnty612) | | [Work Group](plugins/liuhaolin07/miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8/) | A chat-style work group where several MiniMax Code Agents reply in one thread, mention each other to hand work over, and ask you for tool approvals and answers as cards in the page | [liuhaolin07](https://github.com/liuhaolin07) | | [Prompt Enhancer](plugins/skypata/prompt-enhancer/) | Rewrite a one-line request into a complete prompt for a coding assistant; the model list and reasoning levels come from MiniMax Code's own configuration, and the rewrite runs on your signed-in account | [skypata](https://github.com/skypata) | | [Postman Lite](plugins/ssugarr/postman-lite/) | A lightweight local API request tool: build requests, send them through a local proxy that sidesteps browser CORS limits, and inspect responses, with collections kept as plain JSON | [ssugarr](https://github.com/ssugarr) | diff --git a/README.zh-CN.md b/README.zh-CN.md index 79d64bff..21eebf9b 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -57,6 +57,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求 | MiniApp | 功能 | 作者 | | --- | --- | --- | +| [Live Stream Recorder](plugins/charlesnty612/live-stream-recorder/) | 多平台直播录制、弹幕分析与高能切片原生工作台;录制引擎在你同意后按需下载 | [charlesnty612](https://github.com/charlesnty612) | | [工作群](plugins/liuhaolin07/miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8/README.zh-CN.md) | 聊天式工作群:多个 MiniMax Code Agent 在同一个群里回复、互相 @ 接力,工具审批和提问以卡片形式在页面里完成 | [liuhaolin07](https://github.com/liuhaolin07) | | [提示词增强器](plugins/skypata/prompt-enhancer/) | 把一句话改写成可以直接交给编码助手的完整提示词,模型清单与推理等级取自 MiniMax Code 自己的配置,改写走你已登录的账号 | [skypata](https://github.com/skypata) | | [Postman Lite](plugins/ssugarr/postman-lite/README.zh-CN.md) | 轻量的本地 API 请求工具:构建请求、通过本地代理转发(绕过浏览器 CORS 限制)、查看响应,集合以纯 JSON 保存 | [ssugarr](https://github.com/ssugarr) | diff --git a/plugins/charlesnty612/live-stream-recorder/.minimax-plugin/plugin.json b/plugins/charlesnty612/live-stream-recorder/.minimax-plugin/plugin.json new file mode 100644 index 00000000..b05f36cf --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/.minimax-plugin/plugin.json @@ -0,0 +1,17 @@ +{ + "schemaVersion": 1, + "name": "live-stream-recorder", + "displayName": "Live Stream Recorder", + "version": "1.0.0", + "description": "多平台直播自动录制、弹幕分析、高能切片与短视频备份工作台。", + "author": "charlesnty612", + "icon": "icon.png", + "category": "Productivity", + "exampleQueries": [ + "打开 Live Stream Recorder", + "查看当前正在录制的直播间状态" + ], + "apps": [], + "mcpServers": [], + "skills": [] +} diff --git a/plugins/charlesnty612/live-stream-recorder/LICENSE b/plugins/charlesnty612/live-stream-recorder/LICENSE new file mode 100644 index 00000000..34ef13f8 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 charlesnty612 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/NOTICE b/plugins/charlesnty612/live-stream-recorder/NOTICE new file mode 100644 index 00000000..4a02a583 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/NOTICE @@ -0,0 +1,119 @@ +# Live Stream Recorder — 第三方组件出处与声明(NOTICE) + +本项目(Live Stream Recorder)自身代码采用 MIT 许可证,见仓库根 `LICENSE`, +版权所有 (c) 2026 charlesnty612。该 MIT 许可仅覆盖本项目自有代码, +不覆盖下列捆绑或派生的第三方组件。各组件原许可证文件已随仓库原样保留, +再分发时请一并保留。 + +## 1. biliup(上游项目) +- 出处:https://github.com/biliup/biliup (历史仓库 https://github.com/ForgQi/bilibiliupload) +- 许可:MIT +- 需保留声明:Copyright (c) 2019 ForgQi +- 说明:根 `LICENSE` 的版权行按本项目口径调整为 charlesnty612; + 上游 ForgQi 的原始 MIT 版权声明在此保留,以符合 MIT 第 1 条的保留要求。 + +## 2. DanmakuFactory(弹幕 XML→ASS 排版算法来源) +- 出处:https://github.com/hihkm/DanmakuFactory +- 参考提交:3813e93b13b087e95901d1822baf9c3540e3f3f6 +- 许可:MIT +- 需保留声明:Copyright (c) 2022 hkm / hihkm +- 许可文件:`crates/danmaku-factory/LICENSE-DanmakuFactory`(Copyright (c) 2022 hihkm) +- 声明文件:`crates/danmaku-factory/THIRD-PARTY-NOTICES.txt`、 + `crates/biliup-cli/assets/render-tools/THIRD-PARTY-NOTICES.txt`(Copyright (c) 2022 hkm) +- 说明:生产转换为原生 Rust 实现,未包含 DanmakuFactory 的 C 实现及其 PCRE2 依赖。 + +## 3. stream-gears +- 许可:MIT +- 需保留声明:Copyright (c) 2019 ForgQi +- 许可文件:`crates/stream-gears/LICENSE` + +## 4. rust-srec(mesio 下载 / 修复管线,7 个包以固定 rev 引入) +- 出处:https://github.com/hua0512/rust-srec +- 固定修订:dcdb80ee607ff6a991e5ddd86a0084a01bd945ac(2026-09-19) +- 声明许可:MIT OR Apache-2.0;本分发按 Apache-2.0 提供合规材料 +- 需保留声明:Copyright (c) 2025 the rust-srec project authors +- 上游 NOTICE:该修订下不存在(404),无从收录 +- 许可文件:`licenses/rust-srec/LICENSE-APACHE-2.0.txt`、 + `licenses/rust-srec/LICENSE-MIT.txt` +- 归属说明:`licenses/rust-srec/ATTRIBUTION.md`;机器可读清单:`licenses/rust-srec/NOTICES.json` +- 说明:本项目未修改 rust-srec 源码,仅以 git 依赖按固定 rev 原样构建链接。 + +## 5. Uncut(编辑器资源与声明来源) +- 出处:https://github.com/blazejkustra/uncut +- 固定修订:218be7f3aa23bc896c291acfc1d6b4820ea758d0 +- 许可:MIT +- 需保留声明:Copyright (c) 2026 Błażej Kustra and Uncut contributors +- 许可文件:`licenses/uncut/LICENSE` +- 随附声明:`licenses/uncut/THIRD_PARTY_NOTICES`,其中列出随 Uncut 分发的第三方组件; + DM Sans / DM Mono 字体采用 SIL Open Font License 1.1,声明原文随该文件保留。 +- 澄清:该文件所述 FFmpeg / ffprobe 为 LGPL 2.1+ 或 GPL,但明确标注 “not bundled” + (由用户自行安装、作为独立程序运行),其许可不适用于本项目,不属于捆绑组件。 + +## 6. three.js +- 许可:MIT +- 需保留声明:Copyright (c) 2010-2024 three.js authors +- 许可文件:`resources/editor/graphic-libs/three.LICENSE.txt` + +## 7. 前端打包依赖(随 Mini App 客户端载荷分发) + +以下库被 Vite 实际打进 `miniapp/client/` 的 JS/CSS 产物,随包分发;出处、许可证、版权行与 +许可文本落点的逐项审计见 `licenses/frontend/MANIFEST.md`。本节属于随包分发的第三方声明, +与 README 的 References / 引用一节(只讲按需下载引擎链接的 rust-srec、Uncut)用途不同。 + +- vue 3.5.45、@vue/runtime-core / @vue/runtime-dom / @vue/reactivity / @vue/shared 3.5.45 + - 出处:https://github.com/vuejs/core + - 许可:MIT;版权:Copyright (c) 2018-present, Yuxi (Evan) You + - 文本:`licenses/frontend/vue/LICENSE` 与各 `licenses/frontend/vue--*/LICENSE` +- vue-router 4.6.4 + - 出处:https://github.com/vuejs/router + - 许可:MIT;版权:Copyright (c) 2019-present Eduardo San Martin Morote + - 文本:`licenses/frontend/vue-router/LICENSE` +- naive-ui 2.45.3 + - 出处:https://github.com/tusen-ai/naive-ui + - 许可:MIT;版权:Copyright (c) 2021 TuSimple + - 文本:`licenses/frontend/naive-ui/LICENSE` +- @vicons/ionicons5 0.13.0 + - 出处:https://github.com/07akioni/vicons + - 许可:MIT(package.json license 字段;包内未随附 LICENSE 文件) + - 版权:author=07akioni;文本:`licenses/frontend/vicons--ionicons5/LICENSE` +- @css-render/plugin-bem / @css-render/vue3-ssr / css-render 0.15.14、vdirs 0.1.8、 + vooks 0.2.12、vueuc 0.4.66、evtd 0.2.4、seemly 0.3.10、treemate 0.3.11 + - 出处:https://github.com/07akioni/css-render 及各自仓库 + - 许可:MIT(package.json license 字段;前四个包未随附 LICENSE 文件) + - 版权:Copyright (c) 2020/2024 07akioni(逐项见审计表) + - 文本:`licenses/frontend//LICENSE` +- async-validator 4.2.5 + - 出处:https://github.com/yiminghe/async-validator + - 许可:MIT;版权:Copyright (c) 2014-present yiminghe + - 文本:`licenses/frontend/async-validator/LICENSE.md` +- lodash-es 4.18.1 + - 出处:https://github.com/lodash/lodash + - 许可:MIT;版权:Copyright OpenJS Foundation and other contributors + - 文本:`licenses/frontend/lodash-es/LICENSE` +- date-fns 4.4.0 + - 出处:https://github.com/date-fns/date-fns + - 许可:MIT;版权:Copyright (c) 2021 Sasha Koss and Lesha Koss + - 文本:`licenses/frontend/date-fns/LICENSE.md` +- @emotion/hash 0.8.0 + - 出处:https://github.com/emotion-js/emotion/tree/master/packages/hash + - 许可:MIT;版权:Copyright (c) Emotion team and other contributors + - 文本:`licenses/frontend/emotion--hash/LICENSE` +- **@juggle/resize-observer 3.4.0 — Apache-2.0(非 MIT,唯一例外)** + - 出处:https://github.com/juggle/resize-observer + - 许可:Apache-2.0;版权:Copyright 2019 JUGGLE LTD(随附 LICENSE 原文附录) + - 文本:`licenses/frontend/juggle--resize-observer/LICENSE` + - 影响:按 Apache-2.0 原文随包提供并保留声明;本项目未修改其源码,故无「标明修改」义务。 + +## Cargo.lock 直接依赖 +Cargo.lock 中经 crates.io / git 引入的直接依赖,声明许可均为 MIT、Apache-2.0、 +BSD-3-Clause、ISC、Unlicense 等 MIT 兼容的宽松许可(详见本报告的差异说明), +无 GPL / AGPL / MPL / EPL。本项目未 vendor 这些 crate 的源码副本, +其版权与许可声明由各自发布物携带,无需在仓库内新增署名文件。 +若后续将任一 crate 源码 vendored 进本仓库,须同步补入其许可原文。 + +## 本次整理核实(遗留 Next.js 前端移除) + +原遗留 Next.js 前端(app/ui、app/(app)、app/(auth) 等非编辑器部分)已移除; +其使用的 Semi UI(@douyinfe/semi-ui、@douyinfe/semi-icons)既未出现在本 NOTICE 原文清单, +也未以源码副本 vendored 进本仓库,随上述目录删除后不再随本项目分发,故此处无需新增或保留其许可条目。 +编辑器运行时已迁至 `editor-runtime/`,第 5 节 Uncut 与第 6 节 three.js 的声明义务按实际剩余内容继续有效。 diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md new file mode 100644 index 00000000..c9049db2 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -0,0 +1,66 @@ +# Live Stream Recorder + +[简体中文](README.zh-CN.md) + +A native MiniMax Code Mini App that turns the recording engine into a desktop-style workbench: monitor multiple livestream rooms, record them with danmaku capture, replay and clip recordings, back up short videos, and manage relay tasks -- all inside the chat client. + +This package is a **client/workbench only**. It does not bundle the recording engine. You must supply a recording-engine binary (sidecar mode) or point it at a running engine server (remote mode). Without an engine the pages still open and show an `engine not ready` state instead of crashing. + +## Install and open + +1. Copy this directory into the `plugins/` folder of your MiniMax Code workspace (or install the packaged plugin from the plugin list). Keep the hidden `.minimax-plugin/` directory and `miniapp/` together. +2. Restart MiniMax Code so the plugin is discovered. +3. Ask the Agent "Open Live Stream Recorder", or select it from the plugin list. The UI is served at `/app`. + +## Engine setup + +On the **Settings** page choose one of two modes: + +- **Sidecar (default).** Set `binaryPath` to your recording-engine executable, or place the engine executable under its original filename in `/bin/`, or put it on `PATH`. The app launches the engine in server mode with `-b 127.0.0.1 -p --no-fleet --shutdown-on-stdin-eof` (older engines fall back to `--relay-listen 127.0.0.1:0`) and proxies the UI to it over loopback. +- **Remote.** Set `remote.baseUrl` to the `http(s)` address of an already-running engine server, with optional none / cookie / Bearer-token authentication. Link-local and cloud-metadata addresses are rejected. + +Optional external transcoding and stream-download tools are used by the recording engine itself, not by this Mini App. + +## Tested environment + +- MiniMax Code 3.1.23 (exe 3.1.23.240) on Windows 11 Pro (build 26200) x64. The package declares `engines.mcode: ">=3.1.20"` and `permissions`, which first require that client version. +- Client acceptance (2026-12-05, FilePanel Browser) exercised: cold start and readiness in 400-465 ms; Host-reserved `/__mavis/` returning 401 with no SPA fallback; private-route 404 interception; loopback-only network activity with zero external requests; the 584 px narrow-screen layout and both themes; the Settings diagnostics and notification permission controls. Two defects found during acceptance were fixed and re-verified. No recording engine or live stream source was available, so engine-dependent behavior was not exercised at runtime. +- Source-project structural gates: `--fast` 11/11 and `--full` 14/14. Community-repository `npm run check` result is recorded in the pull request. +- Not verified at runtime: real recording, process-tree teardown with a live engine, multi-session / sleep recovery, remote 401 handling, large-file range playback, and local-file open routing. See the pull request for the full list. + +## Data & access + +- **Files read/written (Node):** `context.dataDir/miniapp-config.json` is created (mode `0600` where supported) and written when configuration changes. It stores `mode`, optional `binaryPath`, `ffmpegPath`, `renderToolsDir`, `desktopToken`, and `remote.{baseUrl, authMode, username, appPassword, token}`. Secret fields are blanked in the API response and replaced with `has*` flags. The binary is probed for existence at the configured path, inside `/bin/` under its original filename, and on `PATH`; no file there is copied into the package. +- **Files read (client payload):** the package's own `miniapp/client/` static assets, served read-only. A local recording is read only when you open a supported file in MiniMax Code: the Host delivers its path, Node registers it as an opaque in-memory token (10-minute TTL), and the page reads it by token only -- the path is never echoed back. +- **File types handled:** `.flv`, `.mp4`, `.mkv`, `.webm`, `.xml` (declared in `fileHandlers`). +- **Network:** the Node entry listens only on the Host-assigned `context.listen` (loopback, dynamic port). In sidecar mode it connects to `http://127.0.0.1:`; in remote mode to the user-configured `baseUrl`. Outbound requests go only to that engine: a reverse proxy for `/v1/`, `/bili/`, `/static/`, WebSocket `/v1/ws/*`, and a 3-second `/v1/activity-events` poll. No third-party host is contacted directly by the page. There is no telemetry, update check, or analytics. +- **Spawned processes:** the recording-engine executable as a sidecar, including a startup `--help` capability probe, a `where` / `which` PATH lookup for the engine executable, and `taskkill /PID /T /F` or `kill(-pid)` only as a shutdown fallback. Optional external transcoding and stream-download tools, if used, are launched by the recording engine, not by this Mini App. +- **Agent turns / conversations:** none automatically. Two buttons call `window.miniapp.host.composer.append` to place text into the chat input for you to review and send: "Send diagnostics to Agent" (redacted log lines) and "Generate clip plan" (recording metadata and danmaku density peaks). Those prompts mention MCP tool names, but this package declares no MCP servers and calls no tools itself. No conversation is read. +- **Tools / Connectors:** none. `apps`, `mcpServers`, `skills`, and every `permissions` grant except `device.notifications` are empty. +- **Microphone / camera / Host navigation:** none. +- **Notifications:** yes. The Settings page reads `Notification.permission` and calls `Notification.requestPermission()` when you click "Enable system notifications"; this is declared as `permissions.device: ["notifications"]`. Delivery of livestream events depends on a running engine and was not verified. +- **State location:** durable config in `context.dataDir/miniapp-config.json`; opened-file tokens live in memory only and are cleared on dispose. When the Host provides no data directory (standalone start), config falls back to `.data/` inside the package directory. No other state is written anywhere, and no environment variable can change these locations. + +## Third-party notices + +This project's own code is MIT licensed (see `LICENSE`). Bundled and derived third-party components, their licenses, and attribution are listed in `NOTICE` and under `licenses/`. No recording engine, external transcoding tool, or other executable binary is included in this package. + +## References + +The recording engine that is downloaded on demand links the following third-party components. Their license texts and notices are included under `licenses/`. + +- **rust-srec** + - Source: https://github.com/hua0512/rust-srec + - License: MIT OR Apache-2.0 (distributed here under Apache-2.0) + - Copyright: Copyright (c) 2025 the rust-srec project authors +- **Uncut** + - Source: https://github.com/blazejkustra/uncut + - License: MIT + - Copyright: Copyright (c) 2026 Błażej Kustra and Uncut contributors + +The recording engine is downloaded on demand instead of being shipped inside this package. When the Mini App detects that the engine is missing, it asks whether to download it; the same action is available from the engine panel in Settings. The download uses this project's own GitHub Release over HTTPS and is verified against a fixed SHA-256 before installation. Nothing is downloaded until you choose to, and no other network requests or telemetry are made. + +## Model + +This package was produced with MiniMax-M4. + diff --git a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md new file mode 100644 index 00000000..91cca968 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md @@ -0,0 +1,66 @@ +# Live Stream Recorder + +[English](README.md) + +原生 MiniMax Code Mini App,把录制引擎变成桌面式工作台:在聊天客户端里监控多个直播房间、录制并保存弹幕、回看与切片、备份短视频、管理转播任务。 + +本包**只是客户端/工作台**,不捆绑录制引擎。你需要自备录制引擎可执行文件(sidecar 模式),或指向一个正在运行的引擎服务(remote 模式)。没有引擎时页面照常打开并显示 `engine not ready` 状态,不会崩溃。 + +## 安装与打开 + +1. 把本目录复制到 MiniMax Code 工作区的 `plugins/` 下(或从插件列表安装打包好的插件),保留隐藏的 `.minimax-plugin/` 与 `miniapp/` 目录。 +2. 重启 MiniMax Code 让插件被识别。 +3. 对 Agent 说 "Open Live Stream Recorder",或从插件列表选择。界面在 `/app` 提供。 + +## 引擎配置 + +在**设置**页选择两种模式之一: + +- **Sidecar(默认)**:把 `binaryPath` 指向你的录制引擎可执行文件,或把引擎可执行文件按原文件名放到 `/bin/`,或加入 `PATH`。应用会以 server 模式拉起引擎并传入 `-b 127.0.0.1 -p <空闲端口> --no-fleet --shutdown-on-stdin-eof`(旧版降级为 `--relay-listen 127.0.0.1:0`),并通过回环地址代理界面。 +- **Remote**:把 `remote.baseUrl` 设为正在运行的引擎服务的 `http(s)` 地址,认证可选 无 / Cookie / Bearer Token。链路本地与云元数据地址会被拒绝。 + +外部转码与流下载工具为录制引擎自选工具,不属于本 Mini App。 + +## 测试环境 + +- MiniMax Code 3.1.23(exe 3.1.23.240),Windows 11 Pro(build 26200)x64。本包声明 `engines.mcode: ">=3.1.20"` 与 `permissions`,这些特性从该版本起可用。 +- 客户端验收(2026-12-05,FilePanel Browser):冷启动与就绪 400–465 ms;宿主保留路径 `/__mavis/` 返回 401 且无 SPA 回退;私有路由 404 拦截;仅回环网络、零外部请求;584 px 窄屏布局与两套主题;设置页诊断与通知权限控件。验收中发现的两个缺陷已修复并复验。验收环境没有录制引擎与直播源,依赖引擎的行为未在运行态验证。 +- 源项目结构门禁:11/11。`npm run check` 结果见 PR 描述。 +- 未在运行态验证:真实录制、有活引擎时的进程树回收、多会话/休眠恢复、远端 401、大文件拖动播放、本地文件投递。完整列表见 PR。 + +## 数据与访问 + +- **读写文件(Node)**:`context.dataDir/miniapp-config.json` 在配置变化时创建(支持时权限 `0600`)并写入,存放 `mode`、可选的 `binaryPath`、`ffmpegPath`、`renderToolsDir`、`desktopToken` 及 `remote.{baseUrl, authMode, username, appPassword, token}`。敏感字段在 API 响应中置空并以 `has*` 标志替代。引擎二进制只做存在性探测(配置路径、`/bin/` 下按原文件名的引擎可执行文件、`PATH`),不会拷进包里。 +- **读取文件(客户端载荷)**:仅只读提供包内 `miniapp/client/` 静态资源。只有你在 MiniMax Code 里打开受支持的文件时才会读取本地录像:宿主投递路径,Node 登记为不透明内存 token(10 分钟有效),页面只按 token 读取——路径绝不回显。 +- **处理的文件类型**:`.flv`、`.mp4`、`.mkv`、`.webm`、`.xml`(在 `fileHandlers` 中声明)。 +- **网络**:Node 入口只监听宿主分配的 `context.listen`(回环、动态端口)。sidecar 模式连接 `http://127.0.0.1:<空闲端口>`;remote 模式连接用户配置的 `baseUrl`。出站请求只发往该引擎:`/v1/`、`/bili/`、`/static/` 的反向代理、WebSocket `/v1/ws/*`、每 3 秒一次的 `/v1/activity-events` 轮询。页面不直连任何第三方主机;无遥测、更新检查或统计。 +- **拉起的进程**:sidecar 模式的录制引擎可执行文件,包括启动时的 `--help` 能力探测、`where` / `which` 对引擎可执行文件的 PATH 查询,以及仅在关闭兜底时使用的 `taskkill /PID /T /F` 或 `kill(-pid)`。外部转码与流下载工具如被使用,由录制引擎而非本 Mini App 拉起。 +- **Agent 轮次 / 会话**:不会自动触发。两个按钮会调用 `window.miniapp.host.composer.append` 把文本放进输入框供你确认后发送:"把诊断交给 Agent"(脱敏日志)与"生成切片方案"(录像元数据与弹幕密度峰值)。这些提示词提到 MCP 工具名,但本包不声明任何 MCP 服务,也不自行调用工具。不读取任何会话。 +- **工具 / Connector**:无。`apps`、`mcpServers`、`skills` 以及除 `device.notifications` 外的所有 `permissions` 授权均为空。 +- **麦克风 / 摄像头 / 宿主导航读取**:无。 +- **通知**:有。设置页读取 `Notification.permission`,点击"开启系统通知"时调用 `Notification.requestPermission()`;已声明为 `permissions.device: ["notifications"]`。直播事件的实际送达依赖运行中的引擎,未验证。 +- **状态存放位置**:持久配置在 `context.dataDir/miniapp-config.json`;打开文件的 token 只存在内存中,dispose 时清空。宿主未提供数据目录(独立启动)时回落到包目录内的 `.data/`;除此之外不写入任何其它状态,也没有任何环境变量能改写这些位置。 + +## 第三方声明 + +本项目自有代码采用 MIT 许可证(见 `LICENSE`)。捆绑及派生的第三方组件、其许可证与出处见 `NOTICE` 和 `licenses/`。本包不含录制引擎、外部转码工具或其它可执行二进制。 + +## 引用 + +按需下载的录播引擎链接了以下第三方组件,其许可文本与声明随包附于 `licenses/`。 + +- **rust-srec** + - 出处:https://github.com/hua0512/rust-srec + - 许可证:MIT OR Apache-2.0(本分发按 Apache-2.0 提供合规材料) + - 版权:Copyright (c) 2025 the rust-srec project authors +- **Uncut** + - 出处:https://github.com/blazejkustra/uncut + - 许可证:MIT + - 版权:Copyright (c) 2026 Błażej Kustra and Uncut contributors + +录播引擎不随包内嵌,改为按需下载:Mini App 检测到引擎缺失时会询问是否下载,设置页的引擎面板也提供同一入口。下载使用本项目自己的 GitHub Release(HTTPS),安装前用固定 SHA-256 校验。未选择下载前不会发起任何下载,除此之外不联网、无遥测。 + +## 模型 + +本包由 MiniMax-M4 生成。 + diff --git a/plugins/charlesnty612/live-stream-recorder/icon.png b/plugins/charlesnty612/live-stream-recorder/icon.png new file mode 100644 index 00000000..52c17150 Binary files /dev/null and b/plugins/charlesnty612/live-stream-recorder/icon.png differ diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/MANIFEST.md b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/MANIFEST.md new file mode 100644 index 00000000..81423228 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/MANIFEST.md @@ -0,0 +1,56 @@ +# 前端打包依赖许可审计(dist-miniapp / Mini App 客户端载荷) + +本清单的审计对象是**真正被打进前端产物**的第三方库,不是 package.json 的开发依赖。 +版本取自 `web/node_modules//package.json`,许可证与版权行取自同目录 `license` 字段与 +LICENSE 文件原文;出现证据来自一次仅用于审计的 sourcemap 构建(`vite build --sourcemap`, +产物放在被 gitignore 的 `.review-logs/audit-build`,**不随包分发**)中各 `.js.map` 的 +`sources` 列表均含 `node_modules//...`。 + +| 组件 | 版本 | 许可证 | 版权行(原文) | 许可文本落点 | 产物证据 | +| --- | --- | --- | --- | --- | --- | +| vue | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue/LICENSE` | umbrella 包;LICENSE 覆盖下列 @vue/* 运行时包 | +| @vue/runtime-core | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue--runtime-core/LICENSE` | sourcemap sources | +| @vue/runtime-dom | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue--runtime-dom/LICENSE` | sourcemap sources | +| @vue/reactivity | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue--reactivity/LICENSE` | sourcemap sources | +| @vue/shared | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue--shared/LICENSE` | sourcemap sources | +| vue-router | 4.6.4 | MIT | Copyright (c) 2019-present Eduardo San Martin Morote | `licenses/frontend/vue-router/LICENSE` | sourcemap sources | +| naive-ui | 2.45.3 | MIT | Copyright (c) 2021 TuSimple | `licenses/frontend/naive-ui/LICENSE` | sourcemap sources | +| @vicons/ionicons5 | 0.13.0 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT,author=07akioni | `licenses/frontend/vicons--ionicons5/LICENSE` | sourcemap sources(34 个图标模块) | +| @css-render/plugin-bem | 0.15.14 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT,author=07akioni | `licenses/frontend/css-render--plugin-bem/LICENSE` | sourcemap sources | +| @css-render/vue3-ssr | 0.15.14 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT | `licenses/frontend/css-render--vue3-ssr/LICENSE` | sourcemap sources | +| css-render | 0.15.14 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT,author=07akioni | `licenses/frontend/css-render/LICENSE` | sourcemap sources | +| vdirs | 0.1.8 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT,author=07akioni | `licenses/frontend/vdirs/LICENSE` | sourcemap sources | +| vooks | 0.2.12 | MIT | Copyright (c) 2020 07akioni | `licenses/frontend/vooks/LICENSE` | sourcemap sources | +| vueuc | 0.4.66 | MIT | Copyright (c) 2020 07akioni | `licenses/frontend/vueuc/LICENSE` | sourcemap sources | +| evtd | 0.2.4 | MIT | Copyright (c) 2020 07akioni | `licenses/frontend/evtd/LICENSE` | sourcemap sources | +| seemly | 0.3.10 | MIT | Copyright (c) 2024 07akioni | `licenses/frontend/seemly/LICENSE` | sourcemap sources | +| treemate | 0.3.11 | MIT | Copyright (c) 2020 07akioni | `licenses/frontend/treemate/LICENSE` | sourcemap sources | +| async-validator | 4.2.5 | MIT | Copyright (c) 2014-present yiminghe | `licenses/frontend/async-validator/LICENSE.md` | sourcemap sources | +| lodash-es | 4.18.1 | MIT | Copyright OpenJS Foundation and other contributors | `licenses/frontend/lodash-es/LICENSE` | sourcemap sources | +| date-fns | 4.4.0 | MIT | Copyright (c) 2021 Sasha Koss and Lesha Koss | `licenses/frontend/date-fns/LICENSE.md` | sourcemap sources | +| @emotion/hash | 0.8.0 | MIT | Copyright (c) Emotion team and other contributors | `licenses/frontend/emotion--hash/LICENSE` | sourcemap sources | +| @juggle/resize-observer | 3.4.0 | **Apache-2.0(非 MIT)** | `Copyright 2019 JUGGLE LTD`(LICENSE 原文附录) | `licenses/frontend/juggle--resize-observer/LICENSE` | sourcemap sources(23 个模块);`dist-miniapp/miniapp/client/assets/index-*.js` 命中 `ResizeObserver` | + +## 非 MIT 组件 + +- **@juggle/resize-observer 3.4.0 — Apache-2.0**。这是唯一非 MIT 的前端打包依赖, + 按实际许可证随包提供 Apache-2.0 原文;未标成 MIT。影响:Apache-2.0 要求保留许可与 + 版权声明、标明修改(本项目未修改其源码),并在 NOTICE 中列出;本清单与根 NOTICE 已满足。 + +## 许可文本缺失的包 + +5 个包(@css-render/plugin-bem、@css-render/vue3-ssr、@vicons/ionicons5、css-render、vdirs) +在 node_modules 内未随附 LICENSE 文件;其 `package.json` 的 `license` 字段均为 `MIT`。 +这些包的 `licenses/frontend//LICENSE` 为标准 MIT 文本,版权行取自 `package.json` 的 +`author` 字段并与同作者(07akioni)的相邻包保持一致。 + +## 归属说明 + +这些前端库是**随包分发的客户端载荷**,因此写入 NOTICE 与 `licenses/frontend/`。 +README 的 References / 引用一节只讲按需下载引擎所链接的组件(rust-srec、Uncut), +不包含本节内容。 + +## 目录名与 npm 包名的映射 + +社区包校验要求路径段只含 `[A-Za-z0-9._-]`,因此带 scope 的包目录用 `--` 代替 `@scope/`: +`@vue/runtime-core` → `vue--runtime-core`,`@css-render/plugin-bem` → `css-render--plugin-bem`,`@juggle/resize-observer` → `juggle--resize-observer`。上表「组件」列仍为真实 npm 包名。 diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/async-validator/LICENSE.md b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/async-validator/LICENSE.md new file mode 100644 index 00000000..1f5a0d9d --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/async-validator/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright (c) 2014-present yiminghe + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--plugin-bem/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--plugin-bem/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--plugin-bem/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--vue3-ssr/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--vue3-ssr/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--vue3-ssr/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/date-fns/LICENSE.md b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/date-fns/LICENSE.md new file mode 100644 index 00000000..29c6e85f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/date-fns/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/emotion--hash/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/emotion--hash/LICENSE new file mode 100644 index 00000000..56e808de --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/emotion--hash/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/evtd/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/evtd/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/evtd/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/juggle--resize-observer/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/juggle--resize-observer/LICENSE new file mode 100644 index 00000000..d3731a5f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/juggle--resize-observer/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 JUGGLE LTD + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/lodash-es/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/lodash-es/LICENSE new file mode 100644 index 00000000..77c42f14 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/lodash-es/LICENSE @@ -0,0 +1,47 @@ +Copyright OpenJS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/naive-ui/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/naive-ui/LICENSE new file mode 100644 index 00000000..cdebdbd1 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/naive-ui/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 TuSimple + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/seemly/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/seemly/LICENSE new file mode 100644 index 00000000..01641dea --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/seemly/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/treemate/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/treemate/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/treemate/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vdirs/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vdirs/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vdirs/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vicons--ionicons5/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vicons--ionicons5/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vicons--ionicons5/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vooks/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vooks/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vooks/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--reactivity/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--reactivity/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--reactivity/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-core/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-core/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-core/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-dom/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-dom/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-dom/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--shared/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--shared/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--shared/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue-router/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue-router/LICENSE new file mode 100644 index 00000000..0c77562b --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue-router/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2019-present Eduardo San Martin Morote + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vueuc/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vueuc/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vueuc/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/ATTRIBUTION.md b/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/ATTRIBUTION.md new file mode 100644 index 00000000..5070cb6f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/ATTRIBUTION.md @@ -0,0 +1,63 @@ +# rust-srec(mesio 下载/修复管线)许可与归属 + +本目录随桌面安装包(MSI / NSIS)分发,收录本项目**实际链接进二进制**的 rust-srec 组件的许可材料。 +本文件中的许可文本均为**上游原文**,未作任何改写;本项目未自编许可条款。 + +## 上游来源 + +| 项 | 值 | +| --- | --- | +| 仓库 | https://github.com/hua0512/rust-srec | +| 固定 commit | `dcdb80ee607ff6a991e5ddd86a0084a01bd945ac`(2026-09-19,chore: update deps) | +| 引入位置 | `crates/biliup-cli/Cargo.toml:21-29`(`rev` 固定,跟随 `Cargo.lock`) | +| 上游作者 | `hua0512`(工作区 `Cargo.toml` 的 `authors`) | +| 版权归属 | `Copyright (c) 2025 the rust-srec project authors`(上游 `LICENSE` 原文) | +| 上游许可声明 | `license = "MIT OR Apache-2.0"`(工作区 `Cargo.toml`),7 个包均 `license.workspace = true` 继承 | +| 上游 NOTICE | **不存在**(该 commit 下 `NOTICE` 为 404),故无从收录;如上游后续补齐,应同步收录 | + +## 实际链接的 7 个包(均继承 `MIT OR Apache-2.0`) + +| 包名 | 上游路径 | +| --- | --- | +| `mesio-engine` | `crates/mesio` | +| `flv-fix` | `crates/flv-fix` | +| `hls-fix` | `crates/hls-fix` | +| `hls` | `crates/hls` | +| `flv` | `crates/flv` | +| `pipeline-common` | `crates/pipeline-common` | +| `ts` | `crates/ts` | + +## 双许可与本次分发选择 + +上游为 **MIT 或 Apache-2.0 二者择一**(`MIT OR Apache-2.0`)。 +本项目按 Apache-2.0 的要求提供完整合规材料,因此**同时收录两份原文**: + +- `LICENSE-APACHE-2.0.txt` —— Apache License 2.0 官方原文(取自 https://www.apache.org/licenses/LICENSE-2.0.txt), + 满足 Apache-2.0 第 4(a) 条「随分发提供许可副本」; +- `LICENSE-MIT.txt` —— 上游 `LICENSE` 原文(含版权行),保留上游既有许可,不因选择 Apache-2.0 而丢弃。 + +## 本项目修改声明 + +**本项目未修改 rust-srec 的任何源码**:组件以 git 依赖形式按固定 `rev` 原样构建链接, +未打补丁、未 vendor 改写、未删除其版权与许可声明。 +(依据:`crates/biliup-cli/Cargo.toml` 仅声明 `git = ... rev = ...`,仓库内无 `[patch]` 覆盖该来源; +如后续引入补丁,本声明必须同步更新并注明修改内容。) + +## 分发范围 + +- 桌面安装包(MSI / NSIS):通过 Tauri `bundle.resources` 把本目录整体打进 `licenses/rust-srec/`; +- **便携包:当前仓库没有便携包产物**(`bundle.targets` 为 `all`,实际产出只有 MSI 与 NSIS; + `scripts/build-desktop.ps1` 只收集 `.exe` / `.msi`)。若将来新增便携包,必须把它同样纳入本目录, + 否则本文件第 4 条的合规覆盖就出现缺口; +- 门禁 `scripts/gates.mjs` 会解包校验这些文件确实在包内且可读取,并与本目录文件清单一致。 + +## 复核方式 + +```bash +# 1) 上游许可声明(应输出 MIT OR Apache-2.0) +curl -s https://raw.githubusercontent.com/hua0512/rust-srec/dcdb80ee607ff6a991e5ddd86a0084a01bd945ac/Cargo.toml | grep -E '^license' +# 2) 上游 NOTICE(应 404,即不存在) +curl -s -o /dev/null -w '%{http_code}\n' https://raw.githubusercontent.com/hua0512/rust-srec/dcdb80ee607ff6a991e5ddd86a0084a01bd945ac/NOTICE +# 3) 本目录文件清单 +ls -1 licenses/rust-srec/ +``` diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/LICENSE-APACHE-2.0.txt b/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/LICENSE-APACHE-2.0.txt new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/LICENSE-APACHE-2.0.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/LICENSE-MIT.txt b/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/LICENSE-MIT.txt new file mode 100644 index 00000000..9d469529 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/LICENSE-MIT.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 the rust-srec project authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/NOTICES.json b/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/NOTICES.json new file mode 100644 index 00000000..73648d64 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/NOTICES.json @@ -0,0 +1,55 @@ +{ + "schema": "amoeba-third-party-notices/v1", + "generatedFor": "桌面安装包与便携包内的许可材料(当前仅 MSI/NSIS 安装包)", + "components": [ + { + "source": "https://github.com/hua0512/rust-srec", + "rev": "dcdb80ee607ff6a991e5ddd86a0084a01bd945ac", + "revDate": "2026-09-19", + "authors": [ + "hua0512" + ], + "copyright": "Copyright (c) 2025 the rust-srec project authors", + "declaredLicense": "MIT OR Apache-2.0", + "distributedUnder": "Apache-2.0", + "licenseFiles": [ + "LICENSE-APACHE-2.0.txt", + "LICENSE-MIT.txt" + ], + "upstreamNotice": null, + "upstreamNoticeReason": "该 commit 下 NOTICE 为 404,上游未提供", + "modifiedByThisProject": false, + "referencedFrom": "crates/biliup-cli/Cargo.toml", + "packages": [ + { + "name": "mesio-engine", + "upstreamPath": "crates/mesio" + }, + { + "name": "flv-fix", + "upstreamPath": "crates/flv-fix" + }, + { + "name": "hls-fix", + "upstreamPath": "crates/hls-fix" + }, + { + "name": "hls", + "upstreamPath": "crates/hls" + }, + { + "name": "flv", + "upstreamPath": "crates/flv" + }, + { + "name": "pipeline-common", + "upstreamPath": "crates/pipeline-common" + }, + { + "name": "ts", + "upstreamPath": "crates/ts" + } + ] + } + ] +} diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/uncut/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/uncut/LICENSE new file mode 100644 index 00000000..795ae815 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/uncut/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Błażej Kustra and Uncut contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/uncut/THIRD_PARTY_NOTICES b/plugins/charlesnty612/live-stream-recorder/licenses/uncut/THIRD_PARTY_NOTICES new file mode 100644 index 00000000..cd949926 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/uncut/THIRD_PARTY_NOTICES @@ -0,0 +1,1896 @@ +Uncut: third-party notices + +Source: https://github.com/blazejkustra/uncut +Revision: 218be7f3aa23bc896c291acfc1d6b4820ea758d0 + +Uncut itself is MIT licensed (see LICENSE). This file lists what the Uncut app ships that +others made, and the programs it uses but doesn't ship. Generated by scripts/notices.ts; +don't edit it by hand. + +============================================================================== +Fonts: DM Sans and DM Mono (SIL Open Font License 1.1) +============================================================================== + +Shipped in the app (inlined in the editor and the renderer, licence in Resources/fonts/OFL.txt). + +DM Sans (DMSans-Variable.woff2): +Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts) + +DM Mono (DMMono-Regular.woff2, DMMono-Medium.woff2): +Copyright 2020 The DM Mono Project Authors (https://www.github.com/googlefonts/dm-mono) + +These Font Software are licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) and the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +============================================================================== +Sound effects (CC0 1.0, public domain) +============================================================================== + +Shipped in Resources/sfx (D134, D208): sounds from Freesound (each sound's page links the CC0 1.0 +deed) and from Kenney's packs (kenney.nl; each pack's License.txt says Creative Commons Zero, CC0), +checked when the pack was made by scripts/make-sfx.ts. Credit isn't required; thanks to every author. + +whoosh-deep.m4a: "Deep whoosh" by Kinoton + https://freesound.org/people/Kinoton/sounds/351256/ + CC0-1.0, checked 2026-10-14 +whoosh-short.m4a: "Short whoosh" by LloydEvans09 + https://freesound.org/people/LloydEvans09/sounds/332003/ + CC0-1.0, checked 2026-10-14 +ui-click.m4a: "UI click" by Ranner + https://freesound.org/people/Ranner/sounds/488534/ + CC0-1.0, checked 2026-10-14 +pop.m4a: "Pop" by DuffyBro + https://freesound.org/people/DuffyBro/sounds/319107/ + CC0-1.0, checked 2026-10-14 +impact-boom.m4a: "Boom impact" by XHALE303 + https://freesound.org/people/XHALE303/sounds/535592/ + CC0-1.0, checked 2026-10-14 +riser.m4a: "Riser" by Rizzard + https://freesound.org/people/Rizzard/sounds/561207/ + CC0-1.0, checked 2026-10-14 +notification.m4a: "Notification" by yfjesse + https://freesound.org/people/yfjesse/sounds/235911/ + CC0-1.0, checked 2026-10-14 +ding.m4a: "Ding" by D.S.G. + https://freesound.org/people/D.S.G./sounds/241288/ + CC0-1.0, checked 2026-10-14 +applause.m4a: "Applause" by Sandermotions + https://freesound.org/people/Sandermotions/sounds/277021/ + CC0-1.0, checked 2026-10-14 +crowd-laugh.m4a: "Small crowd laughing" by snakebarney + https://freesound.org/people/snakebarney/sounds/138112/ + CC0-1.0, checked 2026-10-14 +bruh.m4a: "Bruh" by Autellaem + https://freesound.org/people/Autellaem/sounds/534387/ + CC0-1.0, checked 2026-10-14 +airhorn.m4a: "DJ airhorn" by neopolitansixth + https://freesound.org/people/neopolitansixth/sounds/547020/ + CC0-1.0, checked 2026-10-14 +record-scratch.m4a: "Record scratch" by musicvision31 + https://freesound.org/people/musicvision31/sounds/431773/ + CC0-1.0, checked 2026-10-14 +sad-trombone.m4a: "Sad trombone" by kirbydx + https://freesound.org/people/kirbydx/sounds/175409/ + CC0-1.0, checked 2026-10-14 +crickets.m4a: "Crickets" by FreethinkerAnon + https://freesound.org/people/FreethinkerAnon/sounds/129678/ + CC0-1.0, checked 2026-10-14; First 6 s of 15.6 s, faded out over the last 1 s +glitch.m4a: "Glitch" by JacksonMiller0 + https://freesound.org/people/JacksonMiller0/sounds/237607/ + CC0-1.0, checked 2026-10-14 +click-soft.m4a: "Soft click" by Kenney + https://kenney.nl/assets/ui-audio (Audio/click3.ogg in the pack) + CC0-1.0, checked 2026-10-14 +tap.m4a: "Tap" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/click_001.ogg in the pack) + CC0-1.0, checked 2026-10-14 +mouse-click.m4a: "Mouse click" by Kenney + https://kenney.nl/assets/ui-audio (Audio/mouseclick1.ogg in the pack) + CC0-1.0, checked 2026-10-14 +select.m4a: "Select" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/select_003.ogg in the pack) + CC0-1.0, checked 2026-10-14 +toggle-on.m4a: "Toggle on" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/toggle_001.ogg in the pack) + CC0-1.0, checked 2026-10-14 +toggle-off.m4a: "Toggle off" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/toggle_002.ogg in the pack) + CC0-1.0, checked 2026-10-14 +switch.m4a: "Switch" by Kenney + https://kenney.nl/assets/ui-audio (Audio/switch7.ogg in the pack) + CC0-1.0, checked 2026-10-14 +hover.m4a: "Hover blip" by Kenney + https://kenney.nl/assets/ui-audio (Audio/rollover1.ogg in the pack) + CC0-1.0, checked 2026-10-14 +open.m4a: "Open" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/open_001.ogg in the pack) + CC0-1.0, checked 2026-10-14 +camera-shutter.m4a: "Camera shutter" by Kodack + https://freesound.org/people/Kodack/sounds/271010/ + CC0-1.0, checked 2026-10-14 +pop-bright.m4a: "Bright pop" by D.S.G. + https://freesound.org/people/D.S.G./sounds/244656/ + CC0-1.0, checked 2026-10-14 +pop-cork.m4a: "Cork pop" by deraj + https://freesound.org/people/deraj/sounds/202230/ + CC0-1.0, checked 2026-10-14 +drop.m4a: "Drop" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/drop_002.ogg in the pack) + CC0-1.0, checked 2026-10-14 +pluck.m4a: "Pluck" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/pluck_001.ogg in the pack) + CC0-1.0, checked 2026-10-14 +swipe-app.m4a: "App swipe" by LilMati + https://freesound.org/people/LilMati/sounds/702773/ + CC0-1.0, checked 2026-10-14 +swipe-paper.m4a: "Paper swipe" by Frank1100 + https://freesound.org/people/Frank1100/sounds/147285/ + CC0-1.0, checked 2026-10-14 +swipe-fast.m4a: "Fast swipe" by ParadoxTheSock + https://freesound.org/people/ParadoxTheSock/sounds/412595/ + CC0-1.0, checked 2026-10-14 +expand.m4a: "Expand" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/maximize_006.ogg in the pack) + CC0-1.0, checked 2026-10-14 +whoosh-little.m4a: "Little whoosh" by ch_ase + https://freesound.org/people/ch_ase/sounds/423798/ + CC0-1.0, checked 2026-10-14 +whoosh-whip.m4a: "Whip zoom whoosh" by BennettFilmTeacher + https://freesound.org/people/BennettFilmTeacher/sounds/486234/ + CC0-1.0, checked 2026-10-14 +whoosh-mid.m4a: "Mid whoosh" by DJT4NN3R + https://freesound.org/people/DJT4NN3R/sounds/449996/ + CC0-1.0, checked 2026-10-14 +swoosh-quick.m4a: "Quick swoosh" by lesaucisson + https://freesound.org/people/lesaucisson/sounds/585257/ + CC0-1.0, checked 2026-10-14 +swoosh-soft.m4a: "Soft swoosh" by D4XX + https://freesound.org/people/D4XX/sounds/607251/ + CC0-1.0, checked 2026-10-14 +swoosh-tiny.m4a: "Tiny swoosh" by D4XX + https://freesound.org/people/D4XX/sounds/658859/ + CC0-1.0, checked 2026-10-14 +sweep-fade.m4a: "Fading sweep" by Raclure + https://freesound.org/people/Raclure/sounds/405553/ + CC0-1.0, checked 2026-10-14 +riser-short.m4a: "Short riser" by syntheffects + https://freesound.org/people/syntheffects/sounds/685256/ + CC0-1.0, checked 2026-10-14 +riser-hit.m4a: "Riser into hit" by AudioPapkin + https://freesound.org/people/AudioPapkin/sounds/511856/ + CC0-1.0, checked 2026-10-14 +synth-rise.m4a: "Synth rise" by Kenney + https://kenney.nl/assets/digital-audio (Audio/phaserUp3.ogg in the pack) + CC0-1.0, checked 2026-10-14 +impact-cinematic.m4a: "Cinematic impact" by AudioPapkin + https://freesound.org/people/AudioPapkin/sounds/757898/ + CC0-1.0, checked 2026-10-14 +impact-blunt.m4a: "Blunt impact" by AudioPapkin + https://freesound.org/people/AudioPapkin/sounds/823236/ + CC0-1.0, checked 2026-10-14 +thud.m4a: "Thud" by Ambiabstract + https://freesound.org/people/Ambiabstract/sounds/584731/ + CC0-1.0, checked 2026-10-14 +hit-soft.m4a: "Soft hit" by Kenney + https://kenney.nl/assets/impact-sounds (Audio/impactSoft_heavy_001.ogg in the pack) + CC0-1.0, checked 2026-10-14 +punch.m4a: "Punch" by Kenney + https://kenney.nl/assets/impact-sounds (Audio/impactPunch_heavy_000.ogg in the pack) + CC0-1.0, checked 2026-10-14 +low-boom.m4a: "Low boom" by Kenney + https://kenney.nl/assets/sci-fi-sounds (Audio/lowFrequency_explosion_000.ogg in the pack) + CC0-1.0, checked 2026-10-14 +chime.m4a: "Chime" by Jofae + https://freesound.org/people/Jofae/sounds/380482/ + CC0-1.0, checked 2026-10-14 +phone-notification.m4a: "Phone notification" by qubodup + https://freesound.org/people/qubodup/sounds/782969/ + CC0-1.0, checked 2026-10-14 +computer-chimes.m4a: "Computer chimes" by marlonnnnnn + https://freesound.org/people/marlonnnnnn/sounds/351879/ + CC0-1.0, checked 2026-10-14 +glass-ping.m4a: "Glass ping" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/glass_002.ogg in the pack) + CC0-1.0, checked 2026-10-14 +bong.m4a: "Bong" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/bong_001.ogg in the pack) + CC0-1.0, checked 2026-10-14 +error.m4a: "Error" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/error_004.ogg in the pack) + CC0-1.0, checked 2026-10-14 +success-glock.m4a: "Glockenspiel success" by FunWithSound + https://freesound.org/people/FunWithSound/sounds/456965/ + CC0-1.0, checked 2026-10-14 +success-power-up.m4a: "Power up" by GabrielAraujo + https://freesound.org/people/GabrielAraujo/sounds/242501/ + CC0-1.0, checked 2026-10-14 +success-chord.m4a: "Success chord" by oysterqueen + https://freesound.org/people/oysterqueen/sounds/582988/ + CC0-1.0, checked 2026-10-14 +confirm.m4a: "Confirm" by Kenney + https://kenney.nl/assets/interface-sounds (Audio/confirmation_001.ogg in the pack) + CC0-1.0, checked 2026-10-14 +sparkle.m4a: "Sparkle" by Mr._Fritz_ + https://freesound.org/people/Mr._Fritz_/sounds/545238/ + CC0-1.0, checked 2026-10-14 +magic-sparkle.m4a: "Magic sparkle" by MLaudio + https://freesound.org/people/MLaudio/sounds/511485/ + CC0-1.0, checked 2026-10-14 +glitch-digital.m4a: "Digital glitch" by LookIMadeAThing + https://freesound.org/people/LookIMadeAThing/sounds/341286/ + CC0-1.0, checked 2026-10-14 +glitch-electric.m4a: "Electric glitch" by Flying_Deer_Fx + https://freesound.org/people/Flying_Deer_Fx/sounds/369145/ + CC0-1.0, checked 2026-10-14 +glitch-noise.m4a: "Glitch noise" by AmicaSys + https://freesound.org/people/AmicaSys/sounds/332711/ + CC0-1.0, checked 2026-10-14 +typing-mechanical.m4a: "Mechanical typing" by BetaFruit + https://freesound.org/people/BetaFruit/sounds/690655/ + CC0-1.0, checked 2026-10-14 +typing-fast.m4a: "Fast typing" by Capt.Jack + https://freesound.org/people/Capt.Jack/sounds/813214/ + CC0-1.0, checked 2026-10-14 +typing-keyboard.m4a: "Keyboard typing" by praxis_bard + https://freesound.org/people/praxis_bard/sounds/380066/ + CC0-1.0, checked 2026-10-14; First 3 s of 3.9 s, faded out over the last 1 s +frustrated-yell.m4a: "Frustrated yell" by myfreesoundaccount1998 + https://freesound.org/people/myfreesoundaccount1998/sounds/543252/ + CC0-1.0, checked 2026-10-14 +oof.m4a: "Oof" by unfa + https://freesound.org/people/unfa/sounds/719053/ + CC0-1.0, checked 2026-10-14 +wow.m4a: "Wow" by ahab2000 + https://freesound.org/people/ahab2000/sounds/398933/ + CC0-1.0, checked 2026-10-14 +rimshot.m4a: "Rimshot" by Sajmund + https://freesound.org/people/Sajmund/sounds/132418/ + CC0-1.0, checked 2026-10-14 +drum-roll.m4a: "Drum roll" by owowowwo + https://freesound.org/people/owowowwo/sounds/197763/ + CC0-1.0, checked 2026-10-14 +boing.m4a: "Boing" by magnuswaker + https://freesound.org/people/magnuswaker/sounds/540790/ + CC0-1.0, checked 2026-10-14 +bass-drop.m4a: "Bass drop" by qubodup + https://freesound.org/people/qubodup/sounds/212768/ + CC0-1.0, checked 2026-10-14; First 4 s of 4.8 s, faded out over the last 1 s + +============================================================================== +Graphic libraries: three.js (MIT) +============================================================================== + +three.js 0.169.0 (https://threejs.org), shipped in Resources/graphic-libs (minified, its licence in +three.LICENSE.txt beside it) and inlined into graphics that load it. Its licence: + +The MIT License + +Copyright © 2010-2024 three.js authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +============================================================================== +Brand icons: Simple Icons (CC0 1.0) +============================================================================== + +The platform logos of the follow handle element (packages/core/src/visual/brandIcons.ts) are SVG +paths and brand colours from Simple Icons, simple-icons@16.33.0 (https://github.com/simple-icons/simple-icons), +released under CC0 1.0 Universal (public domain). As Simple Icons' disclaimer says, the logos +remain trademarks of their owners; Uncut shows one only to name the platform a handle is on and +isn't made by or affiliated with any of them. Included: YouTube, Instagram, TikTok, X, Facebook, Threads, Bluesky, Mastodon, Reddit, Snapchat, Pinterest, Twitch, Kick, Discord, WhatsApp, Telegram, GitHub, Spotify, SoundCloud, Apple Podcasts, Vimeo, Patreon, Substack, Medium. +Each mark is drawn only in its brand's own colour or in plain white or black (D278). + +All product names, logos and brands named in this file are trademarks of their respective owners. +Uncut isn't made by, endorsed by or affiliated with any of them. + +============================================================================== +t3code (MIT) +============================================================================== + +Parts of Uncut follow code from t3code (https://github.com/pingdotgg/t3code), adapted and +rewritten in Uncut's own words: + +apps/server/src/agent/agentLimits.ts: Claude Code's usage-limit, rate-limit and sign-in results in words (ClaudeAdapterV2) +apps/server/src/app/ws.ts: the WebSocket RPC endpoint's shape +apps/server/src/app/shellEnv.ts: reading the login shell's environment (DesktopShellEnvironment) +apps/desktop/src/server.ts: running the server as a child process (DesktopBackendManager) + +The Claude and OpenAI marks in the model pickers (apps/web/src/panels/composer/providerMarks.tsx) +are the SVGs t3code embeds (apps/web/src/components/Icons.tsx); they are trademarks of Anthropic +and OpenAI, shown only to name who makes a model. + +t3code's licence: + +MIT License + +Copyright (c) 2026 T3 Tools Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +============================================================================== +Provider marks: Simple Icons (CC0 1.0) +============================================================================== + +The Generate tab's model list (apps/web/src/panels/generate/marks.tsx) shows the labs' marks from +Simple Icons 16.33.0 (https://simpleicons.org, icons google, elevenlabs), released under CC0 1.0 +Universal (https://creativecommons.org/publicdomain/zero/1.0/). The marks remain trademarks of their +respective owners, shown only to say who makes a model; Uncut isn't made by or affiliated with any of them. + +============================================================================== +Tool and plugin marks +============================================================================== + +The setup wizard's and Settings' rows (apps/web/src/onboarding/toolMarks.tsx) and the plugins' +icons (icon.svg in each plugin folder) are drawn in one colour, the row's text colour: + +FFmpeg: Simple Icons 16.33.0 (https://simpleicons.org, icon ffmpeg), CC0 1.0 Universal. +Argent: the mark from Argent's logo, https://github.com/software-mansion/argent, + packages/docs/static/img/logo.svg at commit 36aa14a, Apache License 2.0 (the repository's + licence, whose full text is among the npm packages' licence texts below); its outline is + drawn thicker. Also plugins/argent-capture/icon.svg. +TypeGPU: its logomark, https://github.com/software-mansion/TypeGPU, + apps/typegpu-docs/public/typegpu-logomark-monodark.svg at commit 425afd3, MIT (the + repository's licence, Copyright (c) 2025 Software Mansion, the same text as the typegpu npm + package's below); in plugins/catalog/typegpu-effects/icon.svg. +whisper.cpp has no logo of its own, so its row and the Whisper plugin show Uncut's own mark; +the other plugin icons are Uncut's own drawings too. + +These marks are trademarks of their respective owners (FFmpeg of Fabrice Bellard, Argent and +TypeGPU of Software Mansion), shown only to name the program a row or plugin is about. Uncut +isn't made by, endorsed by or affiliated with any of them. + +============================================================================== +Electron and Chromium +============================================================================== + +Uncut runs on Electron 44.6.0 (MIT, https://github.com/electron/electron). +Electron includes Chromium, Node.js and their dependencies under their own licences (BSD-style +for Chromium, MIT for Node.js, among others). Their full texts ship inside the app, in +Uncut.app/Contents/Resources/licenses (LICENSE.electron.txt and LICENSES.chromium.html). + +============================================================================== +Not shipped: programs Uncut uses when they're installed +============================================================================== + +ffmpeg and ffprobe: not bundled. The user installs them (for example brew install ffmpeg) and +Uncut runs them as separate programs. Their licence (LGPL 2.1 or later, or GPL when built with +GPL parts, as Homebrew's build is) applies to those programs, not to Uncut. https://ffmpeg.org + +whisper.cpp (whisper-cli): not bundled. The user installs it (brew install whisper-cpp); MIT, +https://github.com/ggml-org/whisper.cpp. Speech models are not in the app or the repository: +Uncut downloads the one the user picks from huggingface.co/ggerganov/whisper.cpp into its data +folder and checks its SHA-256. The Whisper model weights are OpenAI's, released under MIT. + +Argent (the capture plugin's recorder): not bundled. The user installs it with npx +@swmansion/argent; Uncut talks to it as a separate program. + +Claude Code (the agent): not bundled. Uncut runs the user's own claude command, with +whatever sign-in it uses; its terms are Anthropic's. + +============================================================================== +npm packages shipped in the app +============================================================================== + +Every package bundled into the app's code (the server, the desktop shell, the editor and the +shader runner, found from the bundles themselves) and the plugin SDK's runtime dependencies. +Their licence texts follow below. + +@effect/platform-node@4.0.2: MIT + https://github.com/Effect-TS/effect +@effect/platform-node-shared@4.0.2: MIT + https://github.com/Effect-TS/effect +@opentelemetry/api@1.9.1: Apache-2.0 + open-telemetry/opentelemetry-js +@opentelemetry/api-logs@0.222.0: Apache-2.0 + open-telemetry/opentelemetry-js +@opentelemetry/core@2.11.0: Apache-2.0 + open-telemetry/opentelemetry-js +@opentelemetry/exporter-logs-otlp-http@0.222.0: Apache-2.0 + https://github.com/open-telemetry/opentelemetry-js +@opentelemetry/otlp-exporter-base@0.222.0: Apache-2.0 + open-telemetry/opentelemetry-js +@opentelemetry/otlp-transformer@0.222.0: Apache-2.0 + open-telemetry/opentelemetry-js +@opentelemetry/resources@2.11.0: Apache-2.0 + open-telemetry/opentelemetry-js +@opentelemetry/sdk-logs@0.222.0: Apache-2.0 + https://github.com/open-telemetry/opentelemetry-js +@opentelemetry/sdk-metrics@2.11.0: Apache-2.0 + open-telemetry/opentelemetry-js +@opentelemetry/semantic-conventions@1.43.0: Apache-2.0 + open-telemetry/opentelemetry-js +ajv@8.20.0: MIT + ajv-validator/ajv +builder-util-runtime@9.7.0: MIT + https://github.com/electron-userland/electron-builder +debug@4.4.3: MIT + https://github.com/debug-js/debug +effect@4.0.2: MIT + https://github.com/Effect-TS/effect +electron-updater@6.8.10: MIT + https://github.com/electron-userland/electron-builder +fast-deep-equal@3.1.3: MIT + https://github.com/epoberezkin/fast-deep-equal +fast-uri@3.1.8: BSD-3-Clause + https://github.com/fastify/fast-uri +fs-extra@10.1.0: MIT + https://github.com/jprichardson/node-fs-extra +graceful-fs@4.2.11: ISC + https://github.com/isaacs/node-graceful-fs +has-flag@4.0.0: MIT + sindresorhus/has-flag +js-yaml@4.3.2: MIT + nodeca/js-yaml +json-schema-traverse@1.0.0: MIT + https://github.com/epoberezkin/json-schema-traverse +jsonfile@6.2.1: MIT + git@github.com:jprichardson/node-jsonfile +lazy-val@1.0.5: MIT + develar/lazy-val +lodash.escaperegexp@4.1.2: MIT + lodash/lodash +lodash.isequal@4.5.0: MIT + lodash/lodash +lucide-react@0.460.0: ISC + https://github.com/lucide-icons/lucide +ms@2.1.3: MIT + vercel/ms +react@19.2.6: MIT + https://github.com/facebook/react +react-dom@19.2.6: MIT + https://github.com/facebook/react +sax@1.6.1: BlueOak-1.0.0 + ssh://git@github.com/isaacs/sax-js +scheduler@0.27.0: MIT + https://github.com/facebook/react +semver@7.7.4: ISC + https://github.com/npm/node-semver +supports-color@7.2.0: MIT + chalk/supports-color +tinyest@0.3.4: MIT + https://github.com/software-mansion/TypeGPU +tsover-runtime@0.0.7: Apache-2.0 + https://github.com/software-mansion/tsover +typed-binary@4.3.3: MIT + https://github.com/iwoplaza/typed-binary +typegpu@0.12.6: MIT + https://github.com/software-mansion/TypeGPU +universalify@2.0.1: MIT + https://github.com/RyanZim/universalify +ws@8.22.0: MIT + https://github.com/websockets/ws + +============================================================================== +Licence texts of the npm packages +============================================================================== + +------------------------------------------------------------------------------ +Licence of: @effect/platform-node@4.0.2, @effect/platform-node-shared@4.0.2, effect@4.0.2 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) 2023 Effectful Technologies Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: @opentelemetry/api@1.9.1, @opentelemetry/api-logs@0.222.0, @opentelemetry/core@2.11.0, @opentelemetry/exporter-logs-otlp-http@0.222.0, @opentelemetry/otlp-exporter-base@0.222.0, @opentelemetry/otlp-transformer@0.222.0, @opentelemetry/resources@2.11.0, @opentelemetry/sdk-logs@0.222.0, @opentelemetry/sdk-metrics@2.11.0, @opentelemetry/semantic-conventions@1.43.0 +------------------------------------------------------------------------------ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +------------------------------------------------------------------------------ +Licence of: ajv@8.20.0 +------------------------------------------------------------------------------ + +The MIT License (MIT) + +Copyright (c) 2015-2021 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: builder-util-runtime@9.7.0, electron-updater@6.8.10 +------------------------------------------------------------------------------ + +The MIT License (MIT) + +Copyright (c) 2015 Loopline Systems + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: debug@4.4.3 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (c) 2014-2017 TJ Holowaychuk +Copyright (c) 2018-2021 Josh Junon + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software +and associated documentation files (the 'Software'), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: fast-deep-equal@3.1.3, json-schema-traverse@1.0.0 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) 2017 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: fast-uri@3.1.8 +------------------------------------------------------------------------------ + +Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae +Copyright (c) 2021-present The Fastify team +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * The names of any contributors may not be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + * * * + +The complete list of contributors can be found at: +- https://github.com/garycourt/uri-js/graphs/contributors + +------------------------------------------------------------------------------ +Licence of: fs-extra@10.1.0 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (c) 2011-2017 JP Richardson + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files +(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, + merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: graceful-fs@4.2.11 +------------------------------------------------------------------------------ + +The ISC License + +Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: has-flag@4.0.0, supports-color@7.2.0 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: js-yaml@4.3.2 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (C) 2011-2015 by Vitaly Puzrin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: jsonfile@6.2.1 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (c) 2012-2015, JP Richardson + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files +(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, + merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: lodash.escaperegexp@4.1.2 +------------------------------------------------------------------------------ + +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + +------------------------------------------------------------------------------ +Licence of: lodash.isequal@4.5.0 +------------------------------------------------------------------------------ + +Copyright JS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + +------------------------------------------------------------------------------ +Licence of: lucide-react@0.460.0 +------------------------------------------------------------------------------ + +ISC License + +Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: ms@2.1.3 +------------------------------------------------------------------------------ + +The MIT License (MIT) + +Copyright (c) 2020 Vercel, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: react@19.2.6, react-dom@19.2.6, scheduler@0.27.0 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: sax@1.6.1 +------------------------------------------------------------------------------ + +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + +------------------------------------------------------------------------------ +Licence of: semver@7.7.4 +------------------------------------------------------------------------------ + +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: tinyest@0.3.4, typegpu@0.12.6 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) 2025 Software Mansion + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: tsover-runtime@0.0.7 +------------------------------------------------------------------------------ + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +------------------------------------------------------------------------------ +Licence of: typed-binary@4.3.3 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) 2022 Iwo Plaza + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: universalify@2.0.1 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (c) 2017, Ryan Zimmerman + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the 'Software'), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: ws@8.22.0 +------------------------------------------------------------------------------ + +Copyright (c) 2011 Einar Otto Stangvik +Copyright (c) 2013 Arnout Kazemier and contributors +Copyright (c) 2016 Luigi Pinca and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +These packages ship no licence file; their package.json names the licence: lazy-val@1.0.5 (MIT). + +============================================================================== +Rust crates in the media core (uncut-media) +============================================================================== + +itoa@1.0.18: MIT OR Apache-2.0 + https://crates.io/crates/itoa +memchr@2.8.3: Unlicense OR MIT + https://crates.io/crates/memchr +proc-macro2@1.0.107: MIT OR Apache-2.0 (used while compiling only) + https://crates.io/crates/proc-macro2 +quote@1.0.47: MIT OR Apache-2.0 (used while compiling only) + https://crates.io/crates/quote +serde@1.0.228: MIT OR Apache-2.0 + https://crates.io/crates/serde +serde_core@1.0.228: MIT OR Apache-2.0 + https://crates.io/crates/serde_core +serde_derive@1.0.228: MIT OR Apache-2.0 (used while compiling only) + https://crates.io/crates/serde_derive +serde_json@1.0.149: MIT OR Apache-2.0 + https://crates.io/crates/serde_json +syn@2.0.119: MIT OR Apache-2.0 (used while compiling only) + https://crates.io/crates/syn +unicode-ident@1.0.26: (MIT OR Apache-2.0) AND Unicode-3.0 (used while compiling only) + https://crates.io/crates/unicode-ident +zmij@1.0.23: MIT + https://crates.io/crates/zmij + +============================================================================== +Licence texts of the Rust crates +============================================================================== + +------------------------------------------------------------------------------ +Licence of: itoa@1.0.18 (LICENSE-APACHE), serde@1.0.228 (LICENSE-APACHE), serde_core@1.0.228 (LICENSE-APACHE), serde_json@1.0.149 (LICENSE-APACHE) +------------------------------------------------------------------------------ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +------------------------------------------------------------------------------ +Licence of: itoa@1.0.18 (LICENSE-MIT), serde@1.0.228 (LICENSE-MIT), serde_core@1.0.228 (LICENSE-MIT), serde_json@1.0.149 (LICENSE-MIT), zmij@1.0.23 (LICENSE-MIT) +------------------------------------------------------------------------------ + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: memchr@2.8.3 (COPYING) +------------------------------------------------------------------------------ + +This project is dual-licensed under the Unlicense and MIT licenses. + +You may use this code under the terms of either license. + +------------------------------------------------------------------------------ +Licence of: memchr@2.8.3 (LICENSE-MIT) +------------------------------------------------------------------------------ + +The MIT License (MIT) + +Copyright (c) 2015 Andrew Gallant + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-DDWMaSa8.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-DDWMaSa8.js new file mode 100644 index 00000000..1a22833e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-DDWMaSa8.js @@ -0,0 +1,110 @@ +import{W as de,a$ as Xe,L as Ye,A as et,O as Je,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b0 as Ke,Z as Se,r as G,aJ as tt,a7 as ve,j as F,a as Ae,n as qe,e as rt,b1 as nt,T as it,b2 as ze,ae as be,b as at,ac as st,F as Le,Q as ot,_ as Ve,af as U,b3 as lt}from"./index-Bmcyfv7z.js";import{f as Fe}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{g as Ze}from"./use-message-BaVpnNbE.js";function ft(n,e,t){const r=de(n,null);if(r===null)return;const i=Xe()?.proxy;Ye(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}const ce=Je("n-form"),Qe=Je("n-form-item-insts");var dt=N("form",[B("inline",` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[N("form-item",{width:"auto",marginRight:"18px"},[ie("&:last-child",{marginRight:0})])])]);const ct=["onSubmit"],ut={...xe.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:n=>{n.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object},Ce=()=>!0;function mt(n){return n===void 0?{paths:null,shouldRuleBeApplied:Ce}:typeof n=="function"?{paths:null,shouldRuleBeApplied:n}:Array.isArray(n)?{paths:n,shouldRuleBeApplied:Ce}:n}var rr=Me({name:"Form",props:ut,setup(n){const{mergedClsPrefixRef:e}=Ie(n);xe("Form","-form",dt,Ke,n,e);const t={},r=G(void 0),i=l=>{const c=r.value;(c===void 0||l>=c)&&(r.value=l)};function a(){for(const l of Re(t)){const c=t[l];for(const m of c)m.invalidateLabelWidth?.()}}async function s(l,c){const{paths:m,shouldRuleBeApplied:d}=mt(c);return await new Promise((p,A)=>{const q=[];for(const u of Re(t)){if(m!==null&&!m.includes(u))continue;const v=t[u];for(const f of v)f.path&&q.push(f.internalValidate(null,d))}Promise.all(q).then(u=>{const v=u.some(g=>!g.valid),f=[],P=[];u.forEach(g=>{g.errors?.length&&f.push(g.errors),g.warnings?.length&&P.push(g.warnings)}),l&&l(f.length?f:void 0,{warnings:P.length?P:void 0}),v?A(f.length?f:void 0):p({warnings:P.length?P:void 0})})})}function o(){for(const l of Re(t)){const c=t[l];for(const m of c)m.restoreValidation()}}return Se(ce,{props:n,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:i}),Se(Qe,{formItems:t}),Object.assign({validate:s,restoreValidation:o,invalidateLabelWidth:a},{mergedClsPrefix:e})},render(){const{mergedClsPrefix:n}=this;return O(),$("form",{class:I([`${n}-form`,this.inline&&`${n}-form--inline`]),onSubmit:this.onSubmit},[_(()=>this.$slots.default?.())],42,ct)}});const{cubicBezierEaseInOut:We}=tt;function gt({name:n="fade-down",fromOffset:e="-4px",enterDuration:t=".3s",leaveDuration:r=".3s",enterCubicBezier:i=We,leaveCubicBezier:a=We}={}){return[ie(`&.${n}-transition-enter-from, &.${n}-transition-leave-to`,{opacity:0,transform:`translateY(${e})`}),ie(`&.${n}-transition-enter-to, &.${n}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),ie(`&.${n}-transition-leave-active`,{transition:`opacity ${r} ${a}, transform ${r} ${a}`}),ie(`&.${n}-transition-enter-active`,{transition:`opacity ${t} ${i}, transform ${t} ${i}`})]}var ht=N("form-item",` + display: grid; + line-height: var(--n-line-height); +`,[N("form-item-label",` + grid-area: label; + align-items: center; + line-height: 1.25; + text-align: var(--n-label-text-align); + font-size: var(--n-label-font-size); + min-height: var(--n-label-height); + padding: var(--n-label-padding); + color: var(--n-label-text-color); + transition: color .3s var(--n-bezier); + box-sizing: border-box; + font-weight: var(--n-label-font-weight); + `,[ve("asterisk",` + white-space: nowrap; + user-select: none; + -webkit-user-select: none; + color: var(--n-asterisk-color); + transition: color .3s var(--n-bezier); + `),ve("asterisk-placeholder",` + grid-area: mark; + user-select: none; + -webkit-user-select: none; + visibility: hidden; + `)]),N("form-item-blank",` + grid-area: blank; + min-height: var(--n-blank-height); + `),B("auto-label-width",[N("form-item-label","white-space: nowrap;")]),B("left-labelled",` + grid-template-areas: + "label blank" + "label feedback"; + grid-template-columns: auto minmax(0, 1fr); + grid-template-rows: auto 1fr; + align-items: flex-start; + `,[N("form-item-label",` + display: grid; + grid-template-columns: 1fr auto; + min-height: var(--n-blank-height); + height: auto; + box-sizing: border-box; + flex-shrink: 0; + flex-grow: 0; + `,[B("reverse-columns-space",` + grid-template-columns: auto 1fr; + `),B("left-mark",` + grid-template-areas: + "mark text" + ". text"; + `),B("right-mark",` + grid-template-areas: + "text mark" + "text ."; + `),B("right-hanging-mark",` + grid-template-areas: + "text mark" + "text ."; + `),ve("text",` + grid-area: text; + `),ve("asterisk",` + grid-area: mark; + align-self: end; + `)])]),B("top-labelled",` + grid-template-areas: + "label" + "blank" + "feedback"; + grid-template-rows: minmax(var(--n-label-height), auto) 1fr; + grid-template-columns: minmax(0, 100%); + `,[B("no-label",` + grid-template-areas: + "blank" + "feedback"; + grid-template-rows: 1fr; + `),N("form-item-label",` + display: flex; + align-items: flex-start; + justify-content: var(--n-label-text-align); + `)]),N("form-item-blank",` + box-sizing: border-box; + display: flex; + align-items: center; + position: relative; + `),N("form-item-feedback-wrapper",` + grid-area: feedback; + box-sizing: border-box; + min-height: var(--n-feedback-height); + font-size: var(--n-feedback-font-size); + line-height: 1.25; + transform-origin: top left; + `,[ie("&:not(:empty)",` + padding: var(--n-feedback-padding); + `),N("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[B("warning",{color:"var(--n-feedback-text-color-warning)"}),B("error",{color:"var(--n-feedback-text-color-error)"}),gt({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);function pt(n){const e=de(ce,null),{mergedComponentPropsRef:t}=Ie(n);return{mergedSize:F(()=>{if(n.size!==void 0)return n.size;if(e?.props.size!==void 0)return e.props.size;const r=t?.value?.Form?.size;return r||"medium"})}}function vt(n){const e=de(ce,null),t=F(()=>{const{labelPlacement:d}=n;return d!==void 0?d:e?.props.labelPlacement?e.props.labelPlacement:"top"}),r=F(()=>t.value==="left"&&(n.labelWidth==="auto"||e?.props.labelWidth==="auto")),i=F(()=>{if(t.value==="top")return;const{labelWidth:d}=n;if(d!==void 0&&d!=="auto")return Fe(d);if(r.value){const p=e?.maxChildLabelWidthRef.value;return p!==void 0?Fe(p):void 0}if(e?.props.labelWidth!==void 0)return Fe(e.props.labelWidth)}),a=F(()=>{const{labelAlign:d}=n;if(d)return d;if(e?.props.labelAlign)return e.props.labelAlign}),s=F(()=>[n.labelProps?.style,n.labelStyle,{width:i.value}]),o=F(()=>{const{showRequireMark:d}=n;return d!==void 0?d:e?.props.showRequireMark}),l=F(()=>{const{requireMarkPlacement:d}=n;return d!==void 0?d:e?.props.requireMarkPlacement||"right"}),c=G(!1),m=G(!1);return{validationErrored:c,validationWarned:m,mergedLabelStyle:s,mergedLabelPlacement:t,mergedLabelAlign:a,mergedShowRequireMark:o,mergedRequireMarkPlacement:l,mergedValidationStatus:F(()=>{const{validationStatus:d}=n;if(d!==void 0)return d;if(c.value)return"error";if(m.value)return"warning"}),mergedShowFeedback:F(()=>{const{showFeedback:d}=n;return d!==void 0?d:e?.props.showFeedback!==void 0?e.props.showFeedback:!0}),mergedShowLabel:F(()=>{const{showLabel:d}=n;return d!==void 0?d:e?.props.showLabel!==void 0?e.props.showLabel:!0}),isAutoLabelWidth:r}}function bt(n){const e=de(ce,null),t=F(()=>{const{rulePath:a}=n;if(a!==void 0)return a;const{path:s}=n;if(s!==void 0)return s}),r=F(()=>{const a=[],{rule:s}=n;if(s!==void 0&&(Array.isArray(s)?a.push(...s):a.push(s)),e){const{rules:o}=e.props,{value:l}=t;if(o!==void 0&&l!==void 0){const c=Ze(o,l);c!==void 0&&(Array.isArray(c)?a.push(...c):a.push(c))}}return a}),i=F(()=>r.value.some(a=>a.required));return{mergedRules:r,mergedRequired:F(()=>i.value||n.required)}}function X(){return X=Object.assign?Object.assign.bind():function(n){for(var e=1;e"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 we(n,e,t){return wt()?we=Reflect.construct.bind():we=function(i,a,s){var o=[null];o.push.apply(o,a);var l=Function.bind.apply(i,o),c=new l;return s&&fe(c,s.prototype),c},we.apply(null,arguments)}function xt(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function $e(n){var e=typeof Map=="function"?new Map:void 0;return $e=function(r){if(r===null||!xt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return we(r,arguments,Oe(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),fe(i,r)},$e(n)}var kt=/%[sdj%]/g,Rt=function(){};function _e(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function z(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=a)return o;switch(o){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return o}});return s}return n}function qt(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function R(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||qt(e)&&typeof n=="string"&&!n)}function Ft(n,e,t){var r=[],i=0,a=n.length;function s(o){r.push.apply(r,o||[]),i++,i===a&&t(r)}n.forEach(function(o){e(o,s)})}function Be(n,e,t){var r=0,i=n.length;function a(s){if(s&&s.length){t(s);return}var o=r;r=r+1,o()\[\]\\.,;:\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},oe={integer:function(e){return oe.number(e)&&parseInt(e,10)===e},float:function(e){return oe.number(e)&&!oe.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!oe.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(He.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(_t())},hex:function(e){return typeof e=="string"&&!!e.match(He.hex)}},Et=function(e,t,r,i,a){if(e.required&&t===void 0){Ge(e,t,r,i,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;s.indexOf(o)>-1?oe[o](t)||i.push(z(a.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&i.push(z(a.messages.types[o],e.fullField,e.type))},jt=function(e,t,r,i,a){var s=typeof e.len=="number",o=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=t,d=null,p=typeof t=="number",A=typeof t=="string",q=Array.isArray(t);if(p?d="number":A?d="string":q&&(d="array"),!d)return!1;q&&(m=t.length),A&&(m=t.replace(c,"_").length),s?m!==e.len&&i.push(z(a.messages[d].len,e.fullField,e.len)):o&&!l&&me.max?i.push(z(a.messages[d].max,e.fullField,e.max)):o&&l&&(me.max)&&i.push(z(a.messages[d].range,e.fullField,e.min,e.max))},ne="enum",Mt=function(e,t,r,i,a){e[ne]=Array.isArray(e[ne])?e[ne]:[],e[ne].indexOf(t)===-1&&i.push(z(a.messages[ne],e.fullField,e[ne].join(", ")))},It=function(e,t,r,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(z(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var s=new RegExp(e.pattern);s.test(t)||i.push(z(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},h={required:Ge,whitespace:$t,type:Et,range:jt,enum:Mt,pattern:It},zt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"string")&&!e.required)return r();h.required(e,t,i,s,a,"string"),R(t,"string")||(h.type(e,t,i,s,a),h.range(e,t,i,s,a),h.pattern(e,t,i,s,a),e.whitespace===!0&&h.whitespace(e,t,i,s,a))}r(s)},Lt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Vt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Ct=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Wt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),R(t)||h.type(e,t,i,s,a)}r(s)},Bt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Nt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Tt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return r();h.required(e,t,i,s,a,"array"),t!=null&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Dt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Ht="enum",Ut=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h[Ht](e,t,i,s,a)}r(s)},Yt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"string")&&!e.required)return r();h.required(e,t,i,s,a),R(t,"string")||h.pattern(e,t,i,s,a)}r(s)},Jt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"date")&&!e.required)return r();if(h.required(e,t,i,s,a),!R(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),h.type(e,l,i,s,a),l&&h.range(e,l.getTime(),i,s,a)}}r(s)},Kt=function(e,t,r,i,a){var s=[],o=Array.isArray(t)?"array":typeof t;h.required(e,t,i,s,a,o),r(s)},Pe=function(e,t,r,i,a){var s=e.type,o=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(R(t,s)&&!e.required)return r();h.required(e,t,i,o,a,s),R(t,s)||h.type(e,t,i,o,a)}r(o)},Zt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a)}r(s)},le={string:zt,method:Lt,number:Vt,boolean:Ct,regexp:Wt,integer:Bt,float:Nt,array:Tt,object:Dt,enum:Ut,pattern:Yt,date:Jt,url:Pe,hex:Pe,email:Pe,required:Kt,any:Zt};function Ee(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var je=Ee(),ae=(function(){function n(t){this.rules=null,this._messages=je,this.define(t)}var e=n.prototype;return e.define=function(r){var i=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(a){var s=r[a];i.rules[a]=Array.isArray(s)?s:[s]})},e.messages=function(r){return r&&(this._messages=De(Ee(),r)),this._messages},e.validate=function(r,i,a){var s=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var o=r,l=i,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function m(u){var v=[],f={};function P(b){if(Array.isArray(b)){var x;v=(x=v).concat.apply(x,b)}else v.push(b)}for(var g=0;g{try{const r=n(...t);return!e&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||Ve("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${e?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){Ve("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}}}var nr=Me({name:"FormItem",props:Qt,slots:Object,setup(n){ft(Qe,"formItems",be(n,"path"));const{mergedClsPrefixRef:e,inlineThemeDisabled:t}=Ie(n),r=de(ce,null),i=pt(n),a=vt(n),{validationErrored:s,validationWarned:o}=a,{mergedRequired:l,mergedRules:c}=bt(n),{mergedSize:m}=i,{mergedLabelPlacement:d,mergedLabelAlign:p,mergedRequireMarkPlacement:A}=a,q=G([]),u=G(ze()),v=G(null),f=r?be(r.props,"disabled"):G(!1),P=xe("Form","-form-item",ht,Ke,n,e);Ye(be(n,"path"),()=>{n.ignorePathChange||b()});function g(){if(!a.isAutoLabelWidth.value)return;const y=v.value;if(y!==null){const D=y.style.whiteSpace;y.style.whiteSpace="nowrap",y.style.width="",r?.deriveMaxChildLabelWidth(Number(getComputedStyle(y).width.slice(0,-2))),y.style.whiteSpace=D}}function b(){q.value=[],s.value=!1,o.value=!1,n.feedback&&(u.value=ze())}const x=async(y=null,D=()=>!0,j={suppressWarning:!0})=>{const{path:W}=n;j?j.first||(j.first=n.first):j={};const{value:J}=c,K=r?Ze(r.props.model,W||""):void 0,ee={},te={},Z=(y?J.filter(w=>Array.isArray(w.trigger)?w.trigger.includes(y):w.trigger===y):J).filter(D).map((w,M)=>{const k=Object.assign({},w);if(k.validator&&(k.validator=Ue(k.validator,!1)),k.asyncValidator&&(k.asyncValidator=Ue(k.asyncValidator,!0)),k.renderMessage){const ke=`__renderMessage__${M}`;te[ke]=k.message,k.message=ke,ee[ke]=k.renderMessage}return k}),Q=Z.filter(w=>w.level!=="warning"),H=Z.filter(w=>w.level==="warning"),V={valid:!0,errors:void 0,warnings:void 0};if(!Z.length)return V;const re=W??"__n_no_path__",ge=new ae({[re]:Q}),he=new ae({[re]:H}),{validateMessages:se}=r?.props||{};se&&(ge.messages(se),he.messages(se));const pe=w=>{q.value=w.map(M=>{const k=M?.message||"";return{key:k,render:()=>k.startsWith("__renderMessage__")?ee[k]():k}}),w.forEach(M=>{M.message?.startsWith("__renderMessage__")&&(M.message=te[M.message])})};if(Q.length){const w=await new Promise(M=>{ge.validate({[re]:K},j,M)});w?.length&&(V.valid=!1,V.errors=w,pe(w))}if(H.length&&!V.errors){const w=await new Promise(M=>{he.validate({[re]:K},j,M)});w?.length&&(pe(w),V.warnings=w)}return!V.errors&&!V.warnings?b():(s.value=!!V.errors,o.value=!!V.warnings),V};function S(){x("blur")}function T(){x("change")}function C(){x("focus")}function Y(){x("input")}async function ue(y,D){let j,W,J,K;return typeof y=="string"?(j=y,W=D):y!==null&&typeof y=="object"&&(j=y.trigger,W=y.callback,J=y.shouldRuleBeApplied,K=y.options),await new Promise((ee,te)=>{x(j,J,K).then(({valid:Z,errors:Q,warnings:H})=>{Z?(W&&W(void 0,{warnings:H}),ee({warnings:H})):(W&&W(Q,{warnings:H}),te(Q))})})}Se(lt,{path:be(n,"path"),disabled:f,mergedSize:i.mergedSize,mergedValidationStatus:a.mergedValidationStatus,restoreValidation:b,handleContentBlur:S,handleContentChange:T,handleContentFocus:C,handleContentInput:Y});const me={validate:ue,restoreValidation:b,internalValidate:x,invalidateLabelWidth:g};at(g);const L=F(()=>{const{value:y}=m,{value:D}=d,j=D==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:J,asteriskColor:K,lineHeight:ee,feedbackTextColor:te,feedbackTextColorWarning:Z,feedbackTextColorError:Q,feedbackPadding:H,labelFontWeight:V,[U("labelHeight",y)]:re,[U("blankHeight",y)]:ge,[U("feedbackFontSize",y)]:he,[U("feedbackHeight",y)]:se,[U("labelPadding",j)]:pe,[U("labelTextAlign",j)]:w,[U(U("labelFontSize",D),y)]:M}}=P.value;let k=p.value??w;return D==="top"&&(k=k==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":ee,"--n-blank-height":ge,"--n-label-font-size":M,"--n-label-text-align":k,"--n-label-height":re,"--n-label-padding":pe,"--n-label-font-weight":V,"--n-asterisk-color":K,"--n-label-text-color":J,"--n-feedback-padding":H,"--n-feedback-font-size":he,"--n-feedback-height":se,"--n-feedback-text-color":te,"--n-feedback-text-color-warning":Z,"--n-feedback-text-color-error":Q}}),E=t?st("form-item",F(()=>`${m.value[0]}${d.value[0]}${p.value?.[0]||""}`),L,n):void 0;return{labelElementRef:v,mergedClsPrefix:e,mergedRequired:l,feedbackId:u,renderExplains:q,reverseColSpace:F(()=>d.value==="left"&&A.value==="left"&&p.value==="left"),...a,...i,...me,cssVars:t?void 0:L,themeClass:E?.themeClass,onRender:E?.onRender}},render(){const{$slots:n,mergedClsPrefix:e,mergedShowLabel:t,mergedShowRequireMark:r,mergedRequireMarkPlacement:i,onRender:a}=this,s=r!==void 0?r:this.mergedRequired;a?.();const o=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const c=(O(),$("span",{class:I(`${e}-form-item-label__text`)},[_(()=>l)],2)),m=s?(O(),$("span",{key:1,class:I(`${e}-form-item-label__asterisk`)},[i!=="left"?_(()=>" *"):_(()=>"* ")],2)):i==="right-hanging"&&(O(),$("span",{key:2,class:I(`${e}-form-item-label__asterisk-placeholder`)}," *",2)),{labelProps:d}=this;return O(),$("label",ot(d,{class:[d?.class,`${e}-form-item-label`,`${e}-form-item-label--${i}-mark`,this.reverseColSpace&&`${e}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),[i==="left"?(O(),$(Le,{key:0},[_(()=>[m,c])],64)):(O(),$(Le,{key:1},[_(()=>[c,m])],64))],16)};return O(),$("div",{class:I([`${e}-form-item`,this.themeClass,`${e}-form-item--${this.mergedSize}-size`,`${e}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${e}-form-item--auto-label-width`,!t&&`${e}-form-item--no-label`]),style:qe(this.cssVars)},[_(()=>t&&o()),Ae("div",{class:I([`${e}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${e}-form-item-blank--${this.mergedValidationStatus}`]),style:qe(this.contentStyle)},[_(()=>n.default?.())],6),this.mergedShowFeedback?(O(),$("div",{key:this.feedbackId,style:qe(this.feedbackStyle),class:I([`${e}-form-item-feedback-wrapper`,this.feedbackClass])},[rt(it,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return nt(n.feedback,c=>{const{feedback:m}=this,d=c||m?(O(),$("div",{key:"__feedback__",class:I(`${e}-form-item-feedback__line`)},[_(()=>c||m)],2)):this.renderExplains.length?this.renderExplains?.map(({key:p,render:A})=>(O(),$("div",{key:p,class:I(`${e}-form-item-feedback__line`)},[_(()=>A())],2))):null;return d?l==="warning"?(O(),$("div",{key:"controlled-warning",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--warning`)},[_(()=>d)],2)):l==="error"?(O(),$("div",{key:"controlled-error",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--error`)},[_(()=>d)],2)):l==="success"?(O(),$("div",{key:"controlled-success",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--success`)},[_(()=>d)],2)):(O(),$("div",{key:"controlled-default",class:I(`${e}-form-item-feedback`)},[_(()=>d)],2)):null})}},1024)],6)):_(()=>null)],6)}});const Gt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ir=Me({name:"AddOutline",render:function(e,t){return O(),$("svg",Gt,t[0]||(t[0]=[Ae("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"},null,-1),Ae("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"},null,-1)]))}});export{ir as A,rr as F,nr as a}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BaeOOu0H.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BaeOOu0H.css new file mode 100644 index 00000000..e5309f12 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BaeOOu0H.css @@ -0,0 +1 @@ +.engine-dialog p[data-v-31ffe3eb]{margin:6px 0;line-height:1.7;font-size:13px}.hint[data-v-31ffe3eb]{margin:10px 0;color:var(--warning, #f0b429);font-size:12px}.manual-list[data-v-31ffe3eb]{margin:8px 0;padding-left:20px;font-size:12px;line-height:1.8}.dialog-actions[data-v-31ffe3eb]{display:flex;align-items:center;gap:10px;margin-top:14px}.spacer[data-v-31ffe3eb]{flex:1}.shell[data-v-6108b203]{display:flex;min-height:100vh;position:relative;z-index:1}.sidebar[data-v-6108b203]{width:238px;flex:none;display:flex;flex-direction:column;gap:18px;padding:22px 16px 18px;background:linear-gradient(180deg,#0c131aeb,#080d12f5);border-right:1px solid var(--line);position:sticky;top:0;height:100vh;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand[data-v-6108b203]{display:flex;align-items:center;gap:11px;padding:2px 6px 6px}.brand-mark[data-v-6108b203]{width:42px;height:42px;border-radius:12px;overflow:hidden;border:1px solid rgba(45,212,191,.28);box-shadow:0 6px 22px #2dd4bf2e;background:#070b0f}.brand-mark img[data-v-6108b203]{width:100%;height:100%;object-fit:cover;display:block}.brand-text[data-v-6108b203]{line-height:1.2}.brand-name[data-v-6108b203]{font-size:17px;font-weight:700;letter-spacing:.5px}.brand-sub[data-v-6108b203]{font-size:11px;color:var(--muted);letter-spacing:1.6px;margin-top:3px}.nav[data-v-6108b203]{display:flex;flex-direction:column;gap:6px;margin-top:4px}.nav-item[data-v-6108b203]{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;color:var(--muted);border:1px solid transparent;transition:all .18s ease}.nav-item[data-v-6108b203]:hover{color:var(--text);background:#94c5d60f}.nav-item.active[data-v-6108b203]{color:var(--text);background:linear-gradient(90deg,#2dd4bf24,#2dd4bf08);border-color:#2dd4bf38}.nav-item.active .nav-icon[data-v-6108b203]{color:var(--accent)}.nav-copy[data-v-6108b203]{display:flex;flex-direction:column;gap:2px}.nav-label[data-v-6108b203]{font-size:13.5px;font-weight:600}.nav-hint[data-v-6108b203]{font-size:10.5px;color:var(--muted-2);letter-spacing:.2px}.nav-item.active .nav-hint[data-v-6108b203]{color:#2dd4bf9e}.side-foot[data-v-6108b203]{margin-top:auto;display:flex;flex-direction:column;gap:12px}.server-line[data-v-6108b203]{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:9px 11px;border-radius:9px;background:#94c5d60d;border:1px solid var(--line)}.dot[data-v-6108b203]{width:6px;height:6px;border-radius:50%;background:var(--ok);box-shadow:0 0 8px #34d399cc}.dot.off[data-v-6108b203]{background:var(--danger);box-shadow:0 0 8px #f87171b3}.ver[data-v-6108b203]{margin-left:auto;color:var(--muted-2);font-size:10px}.user-card[data-v-6108b203]{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:#14202b99;border:1px solid var(--line)}.avatar[data-v-6108b203]{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:13px;font-weight:700;color:#052e2b;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.user-meta[data-v-6108b203]{min-width:0;flex:1}.user-name[data-v-6108b203]{font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-role[data-v-6108b203]{font-size:10.5px;color:var(--muted-2);margin-top:1px}.icon-btn[data-v-6108b203]{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;transition:all .16s ease}.icon-btn[data-v-6108b203]:hover{color:var(--text);background:#94c5d617;border-color:var(--line)}.tab-bar[data-v-6108b203]{display:none}.top-popout[data-v-6108b203]{border:1px solid var(--line)}.main[data-v-6108b203]{flex:1;min-width:0;display:flex;flex-direction:column}.topbar[data-v-6108b203]{height:58px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line);background:var(--overlay-soft);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);position:sticky;top:0;z-index:10}.crumb[data-v-6108b203]{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.crumb-icon[data-v-6108b203]{color:var(--accent)}.crumb-root[data-v-6108b203],.crumb-sep[data-v-6108b203]{color:var(--muted-2)}.crumb-current[data-v-6108b203]{color:var(--text);font-weight:600}.top-status[data-v-6108b203]{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:6px 10px;border-radius:99px;border:1px solid var(--line);background:#94c5d60a}.top-status.off[data-v-6108b203]{color:var(--danger-text);border-color:#f8717140}.offline-banner[data-v-6108b203]{margin:16px 30px 0;padding:10px 14px;border-radius:9px;border:1px solid rgba(248,113,113,.35);background:#f871711f;color:var(--danger-text);font-size:12.5px}.engine-banner[data-v-6108b203]{margin:16px 30px 0;padding:10px 14px;border-radius:9px;border:1px solid rgba(240,180,41,.35);background:#f0b4291f;color:var(--warning, #f0b429);font-size:12.5px;display:flex;align-items:center;gap:10px}.engine-banner-note[data-v-6108b203]{opacity:.85}.engine-banner-action[data-v-6108b203]{margin-left:auto;background:none;border:1px solid currentColor;border-radius:6px;color:inherit;cursor:pointer;padding:3px 10px;font-size:12px}.page-fade-enter-active[data-v-6108b203],.page-fade-leave-active[data-v-6108b203]{transition:opacity .16s ease,transform .16s ease}.page-fade-enter-from[data-v-6108b203]{opacity:0;transform:translateY(4px)}.page-fade-leave-to[data-v-6108b203]{opacity:0;transform:translateY(-3px)}@media(max-width:640px){.shell[data-v-6108b203]{display:block}.sidebar[data-v-6108b203]{display:none}.tab-bar[data-v-6108b203]{display:flex;gap:4px;overflow-x:auto;padding:8px 12px;border-bottom:1px solid var(--line);background:var(--overlay-strong);scrollbar-width:none}.tab-bar[data-v-6108b203]::-webkit-scrollbar{display:none}.tab-item[data-v-6108b203]{flex:none;padding:7px 12px;border-radius:99px;font-size:12px;color:var(--muted);white-space:nowrap;border:1px solid transparent}.tab-item.active[data-v-6108b203]{color:var(--accent);background:#2dd4bf1a;border-color:#2dd4bf40}.topbar[data-v-6108b203]{padding:0 12px;height:52px}.crumb-root[data-v-6108b203],.crumb-sep[data-v-6108b203],.top-status[data-v-6108b203]{display:none}.offline-banner[data-v-6108b203],.engine-banner[data-v-6108b203]{margin:10px 12px 0}}@media(max-width:900px){.sidebar[data-v-6108b203]{width:74px;padding:18px 10px}.brand-text[data-v-6108b203],.nav-copy[data-v-6108b203],.side-foot .server-line span[data-v-6108b203]:not(.dot),.user-meta[data-v-6108b203],.icon-btn[data-v-6108b203]{display:none}.nav-item[data-v-6108b203],.user-card[data-v-6108b203]{justify-content:center}.topbar[data-v-6108b203]{padding:0 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DH1IaDgc.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DH1IaDgc.js new file mode 100644 index 00000000..ce0294fc --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DH1IaDgc.js @@ -0,0 +1 @@ +import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-Bmcyfv7z.js";import{T as J,P as ue}from"./PulseOutline-Da42XzaM.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as de}from"./use-message-BaVpnNbE.js";import{g as ce}from"./streamers-D5Y-fBfU.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-vojgPPhH.js";import{e as f}from"./engine-state-Cu8p5L8n.js";import{C as fe}from"./CheckboxGroup-iTsKmCjZ.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-DoUnrAre.js";import{F as _e}from"./FilmOutline-DCmf1Zmt.js";import{G as ke}from"./GitCompareOutline-4zZKl19q.js";import{C as ge}from"./CloudDownloadOutline-Cwn6t3sl.js";import"./use-compitable-CSVBov8c.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("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),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-iTsKmCjZ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-iTsKmCjZ.js new file mode 100644 index 00000000..ef423e10 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-iTsKmCjZ.js @@ -0,0 +1,105 @@ +import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,ba as se,bb as be,bc as he,d as ue,a8 as E,b1 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,bd as pe,aj as Ce,ac as ye,b2 as we,j as P,ad as T,W as ze,be as Re,bf as Se,af as j,ae as _e,O as De}from"./index-Bmcyfv7z.js";import{u as Be}from"./use-compitable-CSVBov8c.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("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"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("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"})],-1))})(),Te=l([r("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); + `,[h("show-label","line-height: var(--n-label-line-height);"),l("&:hover",[r("checkbox-box",[s("border","border: var(--n-border-checked);")])]),l("&:focus:not(:active)",[r("checkbox-box",[s("border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),h("inside-table",[r("checkbox-box",` + background-color: var(--n-merged-color-table); + `)]),h("checked",[r("checkbox-box",` + background-color: var(--n-color-checked); + `,[r("checkbox-icon",[l(".check-icon",` + opacity: 1; + transform: scale(1); + `)])])]),h("indeterminate",[r("checkbox-box",[r("checkbox-icon",[l(".check-icon",` + opacity: 0; + transform: scale(.5); + `),l(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),h("checked, indeterminate",[l("&:focus:not(:active)",[r("checkbox-box",[s("border",` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),r("checkbox-box",` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[s("border",{border:"var(--n-border-checked)"})])]),h("disabled",{cursor:"not-allowed"},[h("checked",[r("checkbox-box",` + background-color: var(--n-color-disabled-checked); + `,[s("border",{border:"var(--n-border-disabled-checked)"}),r("checkbox-icon",[l(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),r("checkbox-box",` + background-color: var(--n-color-disabled); + `,[s("border",` + border: var(--n-border-disabled); + `),r("checkbox-icon",[l(".check-icon, .line-icon",` + fill: var(--n-check-mark-color-disabled); + `)])]),s("label",` + color: var(--n-text-color-disabled); + `)]),r("checkbox-box-wrapper",` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + -webkit-user-select: none; + `),r("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); + `,[s("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); + `),r("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[l(".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); + `),se({left:"1px",top:"1px"})])]),s("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); + `,[l("&:empty",{display:"none"})])]),be(r("checkbox",` + --n-merged-color-table: var(--n-color-table-modal); + `)),he(r("checkbox",` + --n-merged-color-table: var(--n-color-table-popover); + `))]);const Ve=["id"],Ke=["tabindex","aria-checked","aria-labelledby","onKeyup","onKeydown","onClick"],Ie={...E.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]};var Ee=ue({name:"Checkbox",props:Ie,setup(e){const a=ze(Ne,null),f=N(null),{mergedClsPrefixRef:v,inlineThemeDisabled:z,mergedRtlRef:B,mergedComponentPropsRef:R}=me(e),g=N(e.defaultChecked),c=_e(e,"checked"),$=Be(c,g),b=ge(()=>{if(a){const o=a.valueSetRef.value;return o&&e.value!==void 0?o.has(e.value):!1}else return $.value===e.checkedValue}),p=pe(e,{mergedSize(o){const{size:t}=e;if(t!==void 0)return t;if(a){const{value:n}=a.mergedSizeRef;if(n!==void 0)return n}if(o){const{mergedSize:n}=o;if(n!==void 0)return n.value}const i=R?.value?.Checkbox?.size;return i||"medium"},mergedDisabled(o){const{disabled:t}=e;if(t!==void 0)return t;if(a){if(a.disabledRef.value)return!0;const{maxRef:{value:i},checkedCountRef:n}=a;if(i!==void 0&&n.value>=i&&!b.value)return!0;const{minRef:{value:x}}=a;if(x!==void 0&&n.value<=x&&b.value)return!0}return o?o.disabled.value:!1}}),{mergedDisabledRef:C,mergedSizeRef:y}=p,d=E("Checkbox","-checkbox",Te,Se,e,v);function S(o){if(a&&e.value!==void 0)a.toggleCheckbox(!b.value,e.value);else{const{onChange:t,"onUpdate:checked":i,onUpdateChecked:n}=e,{nTriggerFormInput:x,nTriggerFormChange:M}=p,m=b.value?e.uncheckedValue:e.checkedValue;i&&T(i,m,o),n&&T(n,m,o),t&&T(t,m,o),x(),M(),g.value=m}}function F(o){C.value||S(o)}function U(o){if(!C.value)switch(o.key){case" ":case"Enter":S(o)}}function H(o){o.key===" "&&o.preventDefault()}const L={focus:()=>{f.value?.focus()},blur:()=>{f.value?.blur()}},A=Ce("Checkbox",B,v),K=P(()=>{const{value:o}=y,{common:{cubicBezierEaseInOut:t},self:{borderRadius:i,color:n,colorChecked:x,colorDisabled:M,colorTableHeader:m,colorTableHeaderModal:O,colorTableHeaderPopover:W,checkMarkColor:G,checkMarkColorDisabled:Y,border:q,borderFocus:J,borderDisabled:Q,borderChecked:X,boxShadowFocus:Z,textColor:ee,textColorDisabled:oe,checkMarkColorDisabledChecked:re,colorDisabledChecked:ce,borderDisabledChecked:ae,labelPadding:ne,labelLineHeight:le,labelFontWeight:de,[j("fontSize",o)]:te,[j("size",o)]:ie}}=d.value;return{"--n-label-line-height":le,"--n-label-font-weight":de,"--n-size":ie,"--n-bezier":t,"--n-border-radius":i,"--n-border":q,"--n-border-checked":X,"--n-border-focus":J,"--n-border-disabled":Q,"--n-border-disabled-checked":ae,"--n-box-shadow-focus":Z,"--n-color":n,"--n-color-checked":x,"--n-color-table":m,"--n-color-table-modal":O,"--n-color-table-popover":W,"--n-color-disabled":M,"--n-color-disabled-checked":ce,"--n-text-color":ee,"--n-text-color-disabled":oe,"--n-check-mark-color":G,"--n-check-mark-color-disabled":Y,"--n-check-mark-color-disabled-checked":re,"--n-font-size":te,"--n-label-padding":ne}}),I=z?ye("checkbox",P(()=>y.value[0]),K,e):void 0;return Object.assign(p,L,{rtlEnabled:A,selfRef:f,mergedClsPrefix:v,mergedDisabled:C,renderedChecked:b,mergedTheme:d,labelId:we(),handleClick:F,handleKeyUp:U,handleKeyDown:H,cssVars:z?void 0:K,themeClass:I?.themeClass,onRender:I?.onRender})},render(){const{$slots:e,renderedChecked:a,mergedDisabled:f,indeterminate:v,privateInsideTable:z,cssVars:B,labelId:R,label:g,mergedClsPrefix:c,focusable:$,handleKeyUp:b,handleKeyDown:p,handleClick:C}=this;this.onRender?.();const y=ke(e.default,d=>g||d?(_(),D("span",{key:1,class:u(`${c}-checkbox__label`),id:R},[w(()=>g||d)],10,Ve)):null);return(()=>{const d=V("70be6e74cd27cb50");return _(),D("div",{ref:"selfRef",class:u([`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,a&&`${c}-checkbox--checked`,f&&`${c}-checkbox--disabled`,v&&`${c}-checkbox--indeterminate`,z&&`${c}-checkbox--inside-table`,y&&`${c}-checkbox--show-label`]),tabindex:f||!$?void 0:0,role:"checkbox","aria-checked":v?"mixed":a,"aria-labelledby":R,style:xe(B),onKeyup:b,onKeydown:p,onClick:C,onMousedown:d[0]||(d[0]=()=>{ve("selectstart",window,S=>{S.preventDefault()},{once:!0})})},[k("div",{class:u(`${c}-checkbox-box-wrapper`)},[d[1]||(d[1]=w(" ",-1)),k("div",{class:u(`${c}-checkbox-box`)},[fe(Re,null,{default:()=>this.indeterminate?(_(),D("div",{key:"indeterminate",class:u(`${c}-checkbox-icon`)},[w(()=>Me())],2)):(_(),D("div",{key:"check",class:u(`${c}-checkbox-icon`)},[w(()=>$e())],2))},1024),k("div",{class:u(`${c}-checkbox-box__border`)},null,2)],2)],2),w(()=>y)],46,Ke)})()}});const Ne=De("n-checkbox-group");export{Ee as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Cwn6t3sl.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Cwn6t3sl.js new file mode 100644 index 00000000..4f67ef5f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Cwn6t3sl.js @@ -0,0 +1 @@ +import{d as e,o as r,c as t,a as o}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BvVIG18e.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BvVIG18e.js new file mode 100644 index 00000000..1b183cc1 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BvVIG18e.js @@ -0,0 +1,13 @@ +import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,bd as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b1 as te,R as ne,bi as Ee,bj as je,ay as re,az as le,bk as ie,ae as He}from"./index-Bmcyfv7z.js";import{I as Le,u as Ke}from"./Input-DS3FhrY_.js";import{u as Ge}from"./use-compitable-CSVBov8c.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `})],-1))})()}}),Ye=Oe([Z("input-number-suffix",` + display: inline-block; + margin-right: 10px; + `),Z("input-number-prefix",` + display: inline-block; + margin-left: 10px; + `)]);function qe(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Je(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function K(e){return e==null?!0:!Number.isNaN(e)}function oe(e,l){return typeof e!="number"?"":l===void 0?String(e):e.toFixed(l)}function G(e){if(e===null)return null;if(typeof e=="number")return e;{const l=Number(e);return Number.isNaN(l)?null:l}}const ue=800,ae=100,Qe={...de.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]};var rt=T({name:"InputNumber",props:Qe,slots:Object,setup(e){const{mergedBorderedRef:l,mergedClsPrefixRef:s,mergedRtlRef:P,mergedComponentPropsRef:h}=Fe(e),W=de("InputNumber","-input-number",Ye,Ee,e,s),{localeRef:fe}=Ke("InputNumber"),B=Ae(e,{mergedSize:t=>{const{size:n}=e;if(n)return n;const{mergedSize:r}=t||{};if(r?.value)return r.value;const i=h?.value?.InputNumber?.size;return i||"medium"}}),{mergedSizeRef:ce,mergedDisabledRef:me,mergedStatusRef:he}=B,d=k(null),X=k(null),Y=k(null),S=k(e.defaultValue),pe=He(e,"value"),f=Ge(pe,S),p=k(""),D=t=>{const n=String(t).split(".")[1];return n?n.length:0},ge=t=>{const n=[e.min,e.max,e.step,t].map(r=>r===void 0?0:D(r));return Math.max(...n)},ve=b(()=>{const{placeholder:t}=e;return t!==void 0?t:fe.value.placeholder}),M=b(()=>{const t=G(e.step);return t!==null?t===0?1:Math.abs(t):1}),q=b(()=>{const t=G(e.min);return t!==null?t:null}),J=b(()=>{const t=G(e.max);return t!==null?t:null}),w=()=>{const{value:t}=f;if(K(t)){const{format:n,precision:r}=e;n?p.value=n(t):t===null||r===void 0||D(t)>r?p.value=oe(t,void 0):p.value=oe(t,r)}else p.value=String(t)};w();const y=t=>{const{value:n}=f;if(t===n){w();return}const{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormInput:g,nTriggerFormChange:$}=B;a&&x(a,t),i&&x(i,t),r&&x(r,t),S.value=t,g(),$()},u=({offset:t,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{const{value:a}=p;if(i&&Je(a))return!1;const g=(e.parse||qe)(a);if(g===null)return n&&y(null),null;if(K(g)){const $=D(g),{precision:E}=e;if(E!==void 0&&E<$&&!r)return!1;let c=Number.parseFloat((g+t).toFixed(E??ge(g)));if(K(c)){const{value:j}=J,{value:H}=q;if(j!==null&&c>j){if(!n||i)return!1;c=j}if(H!==null&&cu({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),O=b(()=>{const{value:t}=f;if(e.validator&&t===null)return!1;const{value:n}=M;return u({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),F=b(()=>{const{value:t}=f;if(e.validator&&t===null)return!1;const{value:n}=M;return u({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function we(t){const{onFocus:n}=e,{nTriggerFormFocus:r}=B;n&&x(n,t),r()}function xe(t){if(t.target===d.value?.wrapperElRef)return;const n=u({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){const a=d.value?.inputElRef;a&&(a.value=String(n||"")),f.value===n&&w()}else w();const{onBlur:r}=e,{nTriggerFormBlur:i}=B;r&&x(r,t),i(),$e(()=>{w()})}function ye(t){const{onClear:n}=e;n&&x(n,t)}function A(){const{value:t}=F;if(!t){z();return}const{value:n}=f;if(n===null)e.validator||y(Q());else{const{value:r}=M;u({offset:r,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:t}=O;if(!t){_();return}const{value:n}=f;if(n===null)e.validator||y(Q());else{const{value:r}=M;u({offset:-r,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const Ie=we,Ve=xe;function Q(){if(e.validator)return null;const{value:t}=q,{value:n}=J;return t!==null?Math.max(0,t):n!==null?Math.min(0,n):0}function ke(t){ye(t),y(null)}function Be(t){Y.value?.$el.contains(t.target)&&t.preventDefault(),X.value?.$el.contains(t.target)&&t.preventDefault(),d.value?.activate()}let I=null,V=null,R=null;function _(){R&&(window.clearTimeout(R),R=null),I&&(window.clearInterval(I),I=null)}let N=null;function z(){N&&(window.clearTimeout(N),N=null),V&&(window.clearInterval(V),V=null)}function Me(){_(),R=window.setTimeout(()=>{I=window.setInterval(()=>{U()},ae)},ue),ee("mouseup",document,_,{once:!0})}function Re(){z(),N=window.setTimeout(()=>{V=window.setInterval(()=>{A()},ae)},ue),ee("mouseup",document,z,{once:!0})}const Ne=()=>{V||A()},Ce=()=>{I||U()};function Te(t){if(t.key==="Enter"){if(t.target===d.value?.wrapperElRef)return;u({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&d.value?.deactivate()}else if(t.key==="ArrowUp"){if(!F.value||e.keyboard.ArrowUp===!1)return;t.preventDefault(),u({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&A()}else if(t.key==="ArrowDown"){if(!O.value||e.keyboard.ArrowDown===!1)return;t.preventDefault(),u({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Pe(t){p.value=t,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&u({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}Ue(f,()=>{w()});const Se={focus:()=>d.value?.focus(),blur:()=>d.value?.blur(),select:()=>d.value?.select()},De=_e("InputNumber",P,s);return{...Se,rtlEnabled:De,inputInstRef:d,minusButtonInstRef:X,addButtonInstRef:Y,mergedClsPrefix:s,mergedBordered:l,uncontrolledValue:S,mergedValue:f,mergedPlaceholder:ve,displayedValueInvalid:be,mergedSize:ce,mergedDisabled:me,displayedValue:p,addable:F,minusable:O,mergedStatus:he,handleFocus:Ie,handleBlur:Ve,handleClear:ke,handleMouseDown:Be,handleAddClick:Ne,handleMinusClick:Ce,handleAddMousedown:Re,handleMinusMousedown:Me,handleKeyDown:Te,handleUpdateDisplayedValue:Pe,mergedTheme:W,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:ze(()=>{const{self:{iconColorDisabled:t}}=W.value,[n,r,i,a]=je(t);return{textColorTextDisabled:`rgb(${n}, ${r}, ${i})`,opacityDisabled:`${a}`}})}},render(){const{mergedClsPrefix:e,$slots:l}=this,s=()=>(o(),v(ie,{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:()=>re(l["minus-icon"],()=>[(o(),v(le,{clsPrefix:e},{default:()=>(o(),v(Xe))},1032,["clsPrefix"]))])},1032,["disabled","theme","themeOverrides","builtinThemeOverrides","onClick","onMousedown"])),P=()=>(o(),v(ie,{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:()=>re(l["add-icon"],()=>[(o(),v(le,{clsPrefix:e},{default:()=>(o(),v(We))},1032,["clsPrefix"]))])},1032,["disabled","theme","themeOverrides","builtinThemeOverrides","onClick","onMousedown"]));return o(),C("div",{class:L([`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`])},[(o(),v(Le,{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:()=>this.showButton&&this.buttonPlacement==="both"?[s(),te(l.prefix,h=>h?(o(),C("span",{key:1,class:L(`${e}-input-number-prefix`)},[ne(()=>h)],2)):null)]:l.prefix?.(),suffix:()=>this.showButton?[te(l.suffix,h=>h?(o(),C("span",{key:2,class:L(`${e}-input-number-suffix`)},[ne(()=>h)],2)):null),this.buttonPlacement==="right"?s():null,P()]:l.suffix?.()},1032,["autofocus","status","bordered","loading","value","onUpdateValue","theme","themeOverrides","builtinThemeOverrides","size","placeholder","disabled","readonly","round","textDecoration","onFocus","onBlur","onKeydown","onMousedown","onClear","clearable","inputProps"]))],2)}});const Ze={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},lt=T({name:"DocumentTextOutline",render:function(l,s){return o(),C("svg",Ze,s[0]||(s[0]=[m("path",{d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),m("path",{d:"M256 56v120a32 32 0 0 0 32 32h120",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),m("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 288h160"},null,-1),m("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 368h160"},null,-1)]))}});export{lt as D,rt as I}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-ZlR9MTyd.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-ZlR9MTyd.js new file mode 100644 index 00000000..0cbe51e2 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-ZlR9MTyd.js @@ -0,0 +1 @@ +import{d as e,c as r,a as o,o as t}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("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),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-BJiq6Btv.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-BJiq6Btv.css new file mode 100644 index 00000000..c38cde5d --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-BJiq6Btv.css @@ -0,0 +1 @@ +.tile[data-v-f06fd78c]{padding:16px 17px;border-radius:var(--radius);border:1px solid var(--line);background:linear-gradient(180deg,#14202ba8,#0d131acc);position:relative;overflow:hidden}.tile[data-v-f06fd78c]:after{content:"";position:absolute;inset:auto -30% -70% auto;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,rgba(45,212,191,.1),transparent 65%);pointer-events:none}.tile.live[data-v-f06fd78c]:after{background:radial-gradient(circle,rgba(255,77,109,.14),transparent 65%)}.tile.warn[data-v-f06fd78c]:after{background:radial-gradient(circle,rgba(251,191,36,.12),transparent 65%)}.tile-top[data-v-f06fd78c]{display:flex;align-items:center;justify-content:space-between}.tile-label[data-v-f06fd78c]{font-size:11.5px;color:var(--muted);letter-spacing:.4px}.tile-icon[data-v-f06fd78c]{color:var(--muted-2)}.tile.live .tile-icon[data-v-f06fd78c]{color:#ff8095}.tile.accent .tile-icon[data-v-f06fd78c]{color:var(--accent)}.tile-value[data-v-f06fd78c]{margin-top:8px;font-size:30px;line-height:1;font-weight:650;letter-spacing:-.5px}.tile.live .tile-value[data-v-f06fd78c]{color:#ff8095}.tile.accent .tile-value[data-v-f06fd78c]{color:var(--accent)}.tile.warn .tile-value[data-v-f06fd78c]{color:#fcd34d}.tile-hint[data-v-f06fd78c]{margin-top:7px;font-size:10.5px;color:var(--muted-2)}.empty[data-v-6c717026]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:44px 20px 52px;border:1px dashed var(--line-strong);border-radius:18px;background:radial-gradient(600px 200px at 50% 0%,rgba(45,212,191,.05),transparent 70%),#0d131a80}.empty.compact[data-v-6c717026]{padding:28px 20px 32px}.art[data-v-6c717026]{width:min(420px,78%);border-radius:14px;opacity:.92;filter:saturate(.95);-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 72%,transparent 100%)}.compact .art[data-v-6c717026]{width:min(260px,62%)}.copy h3[data-v-6c717026]{margin:0;font-size:16px;font-weight:650}.copy p[data-v-6c717026]{margin:6px auto 0;max-width:420px;color:var(--muted);font-size:12.5px;line-height:1.65}.actions[data-v-6c717026]{margin-top:14px;display:flex;justify-content:center;gap:10px} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CGA7qM0U.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CGA7qM0U.js new file mode 100644 index 00000000..5134c0cc --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CGA7qM0U.js @@ -0,0 +1 @@ +import{N as m,_ as l}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-Bmcyfv7z.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-DCmf1Zmt.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-DCmf1Zmt.js new file mode 100644 index 00000000..50e0f217 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-DCmf1Zmt.js @@ -0,0 +1 @@ +import{d as e,c as t,y as o,o as n}from"./index-Bmcyfv7z.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-4zZKl19q.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-4zZKl19q.js new file mode 100644 index 00000000..71eae6e9 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-4zZKl19q.js @@ -0,0 +1 @@ +import{d as e,o as r,c as n,y as t}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DS3FhrY_.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DS3FhrY_.js new file mode 100644 index 00000000..18dd9bed --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DS3FhrY_.js @@ -0,0 +1,259 @@ +import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,ba as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,be as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,bd as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b1 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-Bmcyfv7z.js";import{u as Or}from"./use-compitable-CSVBov8c.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("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"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("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"}),g("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"}),g("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"}),g("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"}),g("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"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("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"})])])],-1))})()),jr=b("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[S(">",[a("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; + `,[S("&:hover",` + color: var(--n-clear-color-hover)!important; + `),S("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),a("placeholder",` + display: flex; + `),a("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[zr({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]);const Gr=["onClick","onMousedown"];var ge=V({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(o){return Ie("-base-clear",jr,pe(o,"clsPrefix")),{handleMouseDown(f){f.preventDefault()}}},render(){const{clsPrefix:o}=this;return l(),v("div",{class:h(`${o}-base-clear`)},[Sr(kr,null,{default:()=>this.show?(l(),v("div",{key:"dismiss",class:h(`${o}-base-clear__clear`),onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},[d(()=>G(this.$slots.icon,()=>[(l(),y(re,{clsPrefix:o},{default:()=>(l(),y(Ur))},1032,["clsPrefix"]))]))],42,Gr)):(l(),v("div",{key:"icon",class:h(`${o}-base-clear__placeholder`)},[d(()=>this.$slots.placeholder?.())],2))},1024)],2)}}),Yr=V({name:"ChevronDown",render(){return(()=>{const o=te("ae90ecf811a811ac");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("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"})],-1))})()}}),Xr=V({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:Boolean,onClear:Function},setup(o,{slots:f}){return()=>{const{clsPrefix:m}=o;return l(),y(_r,{clsPrefix:m,class:h(`${m}-base-suffix`),strokeWidth:24,scale:.85,show:o.loading},{default:()=>o.showArrow?(l(),y(ge,{key:1,clsPrefix:m,show:o.showClear,onClear:o.onClear},{placeholder:()=>(l(),y(re,{clsPrefix:m,class:h(`${m}-base-suffix__arrow`)},{default:()=>G(f.default,()=>[(l(),y(Yr))])},1032,["clsPrefix","class"]))},1032,["clsPrefix","show","onClear"])):null},1032,["clsPrefix","class","show"])}}});const Te=Rr("n-input");var Zr=b("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); +`,[a("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),a("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); + `),a("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; + `,[S("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),S("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),S("&:-webkit-autofill ~",[a("placeholder","display: none;")])]),A("round",[j("textarea","border-radius: calc(var(--n-height) / 2);")]),a("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[S("span",` + width: 100%; + display: inline-block; + `)]),A("textarea",[a("placeholder","overflow: visible;")]),j("autosize","width: 100%;"),A("autosize",[a("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),b("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),a("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; + `),a("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[S("&[type=password]::-ms-reveal","display: none;"),S("+",[a("placeholder",` + display: flex; + align-items: center; + `)])]),j("textarea",[a("placeholder","white-space: nowrap;")]),a("eye",` + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `),A("textarea","width: 100%;",[b("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),A("resizable",[b("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),a("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); + `),a("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),A("pair",[a("input-el, placeholder","text-align: center;"),a("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[b("icon",` + color: var(--n-icon-color); + `),b("base-icon",` + color: var(--n-icon-color); + `)])]),A("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[a("border","border: var(--n-border-disabled);"),a("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),a("placeholder","color: var(--n-placeholder-color-disabled);"),a("separator","color: var(--n-text-color-disabled);",[b("icon",` + color: var(--n-icon-color-disabled); + `),b("base-icon",` + color: var(--n-icon-color-disabled); + `)]),b("input-word-count",` + color: var(--n-count-text-color-disabled); + `),a("suffix, prefix","color: var(--n-text-color-disabled);",[b("icon",` + color: var(--n-icon-color-disabled); + `),b("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),j("disabled",[a("eye",` + color: var(--n-icon-color); + cursor: pointer; + `,[S("&:hover",` + color: var(--n-icon-color-hover); + `),S("&:active",` + color: var(--n-icon-color-pressed); + `)]),S("&:hover","background-color: var(--n-color-hover);",[a("state-border","border: var(--n-border-hover);")]),A("focus","background-color: var(--n-color-focus);",[a("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),a("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); + `),a("state-border",` + border-color: #0000; + z-index: 1; + `),a("prefix","margin-right: 4px;"),a("suffix",` + margin-left: 4px; + `),a("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); + `,[b("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),b("base-clear",` + font-size: var(--n-icon-size); + `,[a("placeholder",[b("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),S(">",[b("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),b("base-icon",` + font-size: var(--n-icon-size); + `)]),b("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(o=>A(`${o}-status`,[j("disabled",[b("base-loading",` + color: var(--n-loading-color-${o}) + `),a("input-el, textarea-el",` + caret-color: var(--n-caret-color-${o}); + `),a("state-border",` + border: var(--n-border-${o}); + `),S("&:hover",[a("state-border",` + border: var(--n-border-hover-${o}); + `)]),S("&:focus",` + background-color: var(--n-color-focus-${o}); + `,[a("state-border",` + box-shadow: var(--n-box-shadow-focus-${o}); + border: var(--n-border-focus-${o}); + `)]),A("focus",` + background-color: var(--n-color-focus-${o}); + `,[a("state-border",` + box-shadow: var(--n-box-shadow-focus-${o}); + border: var(--n-border-focus-${o}); + `)])])]))]);const qr=b("input",[A("disabled",[a("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]);function Jr(o){let f=0;for(const m of o)f++;return f}function oe(o){return o===""||o==null}function Qr(o){const f=w(null);function m(){const{value:R}=o;if(!R?.focus){k();return}const{selectionStart:u,selectionEnd:t,value:i}=R;if(u==null||t==null){k();return}f.value={start:u,end:t,beforeText:i.slice(0,u),afterText:i.slice(t)}}function z(){const{value:R}=f,{value:u}=o;if(!R||!u)return;const{value:t}=u,{start:i,beforeText:_,afterText:O}=R;let x=t.length;if(t.endsWith(O))x=t.length-O.length;else if(t.startsWith(_))x=_.length;else{const M=_[i-1],B=t.indexOf(M,i-1);B!==-1&&(x=B+1)}u.setSelectionRange?.(x,x)}function k(){f.value=null}return ve(o,k),{recordCursor:m,restoreCursor:z}}var $e=V({name:"InputWordCount",setup(o,{slots:f}){const{mergedValueRef:m,maxlengthRef:z,mergedClsPrefixRef:k,countGraphemesRef:R}=Ee(Te),u=P(()=>{const{value:t}=m;return t===null||Array.isArray(t)?0:(R.value||Jr)(t)});return()=>{const{value:t}=z,{value:i}=m;return l(),v("span",{class:h(`${k.value}-input-word-count`)},[d(()=>Ar(f.default,{value:i===null||Array.isArray(i)?"":i},()=>[t===void 0?u.value:`${u.value} / ${t}`]))],2)}}});const et=["autofocus","rows","placeholder","value","disabled","maxlength","minlength","readonly","tabindex","onBlur","onFocus","onInput","onChange","onScroll"],ot=["type","tabindex","placeholder","disabled","maxlength","minlength","value","readonly","autofocus","size","onBlur","onFocus","onInput","onChange"],rt=["onMousedown","onClick"],tt=["type","tabindex","placeholder","disabled","maxlength","minlength","value","readonly","onBlur","onFocus","onInput","onChange"],nt=["tabindex","onFocus","onBlur","onClick","onMousedown","onMouseenter","onMouseleave","onCompositionstart","onCompositionend","onKeyup","onKeydown"],at={...Me.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};var st=V({name:"Input",props:at,slots:Object,setup(o){const{mergedClsPrefixRef:f,mergedBorderedRef:m,inlineThemeDisabled:z,mergedRtlRef:k,mergedComponentPropsRef:R}=Fr(o),u=Me("Input","-input",Zr,Vr,o,f);Br&&Ie("-input-safari",qr,f);const t=w(null),i=w(null),_=w(null),O=w(null),x=w(null),M=w(null),B=w(null),be=Qr(B),T=w(null),{localeRef:Le}=Kr("Input"),Y=w(o.defaultValue),Ve=pe(o,"value"),F=Or(Ve,Y),K=$r(o,{mergedSize:e=>{const{size:r}=o;if(r)return r;const{mergedSize:n}=e||{};if(n?.value)return n.value;const c=R?.value?.Input?.size;return c||"medium"}}),{mergedSizeRef:ne,mergedDisabledRef:D,mergedStatusRef:De}=K,W=w(!1),N=w(!1),$=w(!1),H=w(!1);let ae=null;const le=P(()=>{const{placeholder:e,pair:r}=o;return r?Array.isArray(e)?e:e===void 0?["",""]:[e,e]:e===void 0?[Le.value.placeholder]:[e]}),We=P(()=>{const{value:e}=$,{value:r}=F,{value:n}=le;return!e&&(oe(r)||Array.isArray(r)&&oe(r[0]))&&n[0]}),Oe=P(()=>{const{value:e}=$,{value:r}=F,{value:n}=le;return!e&&n[1]&&(oe(r)||Array.isArray(r)&&oe(r[1]))}),ie=Re(()=>o.internalForceFocus||W.value),Ke=Re(()=>{if(D.value||o.readonly||!o.clearable||!ie.value&&!N.value)return!1;const{value:e}=F,{value:r}=ie;return o.pair?!!(Array.isArray(e)&&(e[0]||e[1]))&&(N.value||r):!!e&&(N.value||r)}),se=P(()=>{const{showPasswordOn:e}=o;if(e)return e;if(o.showPasswordToggle)return"click"}),U=w(!1),Ne=P(()=>{const{textDecoration:e}=o;return e?Array.isArray(e)?e.map(r=>({textDecoration:r})):[{textDecoration:e}]:["",""]}),me=w(void 0),He=()=>{if(o.type==="textarea"){const{autosize:e}=o;if(e&&(me.value=T.value?.$el?.offsetWidth),!i.value||typeof e=="boolean")return;const{paddingTop:r,paddingBottom:n,lineHeight:c}=window.getComputedStyle(i.value),p=Number(r.slice(0,-2)),s=Number(n.slice(0,-2)),L=Number(c.slice(0,-2)),{value:E}=_;if(!E)return;if(e.minRows){const I=Math.max(e.minRows,1),de=`${p+s+L*I}px`;E.style.minHeight=de}if(e.maxRows){const I=`${p+s+L*e.maxRows}px`;E.style.maxHeight=I}}},Ue=P(()=>{const{maxlength:e}=o;return e===void 0?void 0:Number(e)});Er(()=>{const{value:e}=F;Array.isArray(e)||ue(e)});const je=Ir().proxy;function X(e,r){const{onUpdateValue:n,"onUpdate:value":c,onInput:p}=o,{nTriggerFormInput:s}=K;n&&C(n,e,r),c&&C(c,e,r),p&&C(p,e,r),Y.value=e,s()}function Z(e,r){const{onChange:n}=o,{nTriggerFormChange:c}=K;n&&C(n,e,r),Y.value=e,c()}function Ge(e){const{onBlur:r}=o,{nTriggerFormBlur:n}=K;r&&C(r,e),n()}function Ye(e){const{onFocus:r}=o,{nTriggerFormFocus:n}=K;r&&C(r,e),n()}function Xe(e){const{onClear:r}=o;r&&C(r,e)}function Ze(e){const{onInputBlur:r}=o;r&&C(r,e)}function qe(e){const{onInputFocus:r}=o;r&&C(r,e)}function Je(){const{onDeactivate:e}=o;e&&C(e)}function Qe(){const{onActivate:e}=o;e&&C(e)}function eo(e){const{onClick:r}=o;r&&C(r,e)}function oo(e){const{onWrapperFocus:r}=o;r&&C(r,e)}function ro(e){const{onWrapperBlur:r}=o;r&&C(r,e)}function to(){$.value=!0}function no(e){$.value=!1,e.target===M.value?q(e,1):q(e,0)}function q(e,r=0,n="input"){const c=e.target.value;if(ue(c),e instanceof InputEvent&&!e.isComposing&&($.value=!1),o.type==="textarea"){const{value:s}=T;s&&s.syncUnifiedContainer()}if(ae=c,$.value)return;be.recordCursor();const p=ao(c);if(p)if(!o.pair)n==="input"?X(c,{source:r}):Z(c,{source:r});else{let{value:s}=F;Array.isArray(s)?s=[s[0],s[1]]:s=["",""],s[r]=c,n==="input"?X(s,{source:r}):Z(s,{source:r})}je.$forceUpdate(),p||Pe(be.restoreCursor)}function ao(e){const{countGraphemes:r,maxlength:n,minlength:c}=o;if(r){let s;if(n!==void 0&&(s===void 0&&(s=r(e)),s>Number(n))||c!==void 0&&(s===void 0&&(s=r(e)),s{c.preventDefault(),Be("mouseup",document,r)};if(Fe("mouseup",document,r),se.value!=="mousedown")return;U.value=!0;const n=()=>{U.value=!1,Be("mouseup",document,n)};Fe("mouseup",document,n)}function xo(e){o.onKeyup&&C(o.onKeyup,e)}function wo(e){switch(o.onKeydown&&C(o.onKeydown,e),e.key){case"Escape":ce();break;case"Enter":yo(e)}}function yo(e){if(o.passivelyActivated){const{value:r}=H;if(r){o.internalDeactivateOnEnter&&ce();return}e.preventDefault(),o.type==="textarea"?i.value?.focus():x.value?.focus()}}function ce(){o.passivelyActivated&&(H.value=!1,Pe(()=>{t.value?.focus()}))}function we(){D.value||(o.passivelyActivated?t.value?.focus():(i.value?.focus(),x.value?.focus()))}function Co(){t.value?.contains(document.activeElement)&&document.activeElement.blur()}function zo(){i.value?.select(),x.value?.select()}function So(){D.value||(i.value?i.value.focus():x.value&&x.value.focus())}function ko(){const{value:e}=t;e?.contains(document.activeElement)&&e!==document.activeElement&&ce()}function _o(e){if(o.type==="textarea"){const{value:r}=i;r?.scrollTo(e)}else{const{value:r}=x;r?.scrollTo(e)}}function ue(e){const{type:r,pair:n,autosize:c}=o;if(!n&&c)if(r==="textarea"){const{value:p}=_;p&&(p.textContent=`${e??""}\r +`)}else{const{value:p}=O;p&&(e?p.textContent=e:p.innerHTML=" ")}}function Ro(){He()}const ye=w({top:"0"});function Ao(e){const{scrollTop:r}=e.target;ye.value.top=`${-r}px`,T.value?.syncUnifiedContainer()}let Ce=null;Ae(()=>{const{autosize:e,type:r}=o;e&&r==="textarea"?Ce=ve(F,n=>{!Array.isArray(n)&&n!==ae&&ue(n)}):Ce?.()});let ze=null;Ae(()=>{o.type==="textarea"?ze=ve(F,e=>{!Array.isArray(e)&&e!==ae&&T.value?.syncUnifiedContainer()}):ze?.()}),Wr(Te,{mergedValueRef:F,maxlengthRef:Ue,mergedClsPrefixRef:f,countGraphemesRef:pe(o,"countGraphemes")});const Po={wrapperElRef:t,inputElRef:x,textareaElRef:i,isCompositing:$,clear:xe,focus:we,blur:Co,select:zo,deactivate:ko,activate:So,scrollTo:_o},Fo=Mr("Input",k,f),Se=P(()=>{const{value:e}=ne,{common:{cubicBezierEaseInOut:r},self:{color:n,colorHover:c,borderRadius:p,textColor:s,caretColor:L,caretColorError:E,caretColorWarning:I,textDecorationColor:de,border:Bo,borderDisabled:$o,borderHover:Eo,borderFocus:Io,placeholderColor:Mo,placeholderColorDisabled:To,lineHeightTextarea:Lo,colorDisabled:Vo,colorFocus:Do,textColorDisabled:Wo,boxShadowFocus:Oo,iconSize:Ko,colorFocusWarning:No,boxShadowFocusWarning:Ho,borderWarning:Uo,borderFocusWarning:jo,borderHoverWarning:Go,colorFocusError:Yo,boxShadowFocusError:Xo,borderError:Zo,borderFocusError:qo,borderHoverError:Jo,clearSize:Qo,clearColor:er,clearColorHover:or,clearColorPressed:rr,iconColor:tr,iconColorDisabled:nr,suffixTextColor:ar,countTextColor:lr,countTextColorDisabled:ir,iconColorHover:sr,iconColorPressed:cr,loadingColor:ur,loadingColorError:dr,loadingColorWarning:hr,fontWeight:fr,[fe("padding",e)]:pr,[fe("fontSize",e)]:vr,[fe("height",e)]:gr}}=u.value,{left:br,right:mr}=Dr(pr);return{"--n-bezier":r,"--n-count-text-color":lr,"--n-count-text-color-disabled":ir,"--n-color":n,"--n-color-hover":c,"--n-font-size":vr,"--n-font-weight":fr,"--n-border-radius":p,"--n-height":gr,"--n-padding-left":br,"--n-padding-right":mr,"--n-text-color":s,"--n-caret-color":L,"--n-text-decoration-color":de,"--n-border":Bo,"--n-border-disabled":$o,"--n-border-hover":Eo,"--n-border-focus":Io,"--n-placeholder-color":Mo,"--n-placeholder-color-disabled":To,"--n-icon-size":Ko,"--n-line-height-textarea":Lo,"--n-color-disabled":Vo,"--n-color-focus":Do,"--n-text-color-disabled":Wo,"--n-box-shadow-focus":Oo,"--n-loading-color":ur,"--n-caret-color-warning":I,"--n-color-focus-warning":No,"--n-box-shadow-focus-warning":Ho,"--n-border-warning":Uo,"--n-border-focus-warning":jo,"--n-border-hover-warning":Go,"--n-loading-color-warning":hr,"--n-caret-color-error":E,"--n-color-focus-error":Yo,"--n-box-shadow-focus-error":Xo,"--n-border-error":Zo,"--n-border-focus-error":qo,"--n-border-hover-error":Jo,"--n-loading-color-error":dr,"--n-clear-color":er,"--n-clear-size":Qo,"--n-clear-color-hover":or,"--n-clear-color-pressed":rr,"--n-icon-color":tr,"--n-icon-color-hover":sr,"--n-icon-color-pressed":cr,"--n-icon-color-disabled":nr,"--n-suffix-text-color":ar}}),ke=z?Tr("input",P(()=>{const{value:e}=ne;return e[0]}),Se,o):void 0;return{...Po,wrapperElRef:t,inputElRef:x,inputMirrorElRef:O,inputEl2Ref:M,textareaElRef:i,textareaMirrorElRef:_,textareaScrollbarInstRef:T,rtlEnabled:Fo,uncontrolledValue:Y,mergedValue:F,passwordVisible:U,mergedPlaceholder:le,showPlaceholder1:We,showPlaceholder2:Oe,mergedFocus:ie,isComposing:$,activated:H,showClearButton:Ke,mergedSize:ne,mergedDisabled:D,textDecorationStyle:Ne,mergedClsPrefix:f,mergedBordered:m,mergedShowPasswordOn:se,placeholderStyle:ye,mergedStatus:De,textAreaScrollContainerWidth:me,handleTextAreaScroll:Ao,handleCompositionStart:to,handleCompositionEnd:no,handleInput:q,handleInputBlur:lo,handleInputFocus:io,handleWrapperBlur:so,handleWrapperFocus:co,handleMouseEnter:vo,handleMouseLeave:go,handleMouseDown:po,handleChange:uo,handleClick:ho,handleClear:fo,handlePasswordToggleClick:bo,handlePasswordToggleMousedown:mo,handleWrapperKeydown:wo,handleWrapperKeyup:xo,handleTextAreaMirrorResize:Ro,getTextareaScrollContainer:()=>i.value,mergedTheme:u,cssVars:z?void 0:Se,themeClass:ke?.themeClass,onRender:ke?.onRender}},render(){const{mergedClsPrefix:o,mergedStatus:f,themeClass:m,type:z,countGraphemes:k,onRender:R}=this,u=this.$slots;return R?.(),l(),v("div",{ref:"wrapperElRef",class:h([`${o}-input`,`${o}-input--${this.mergedSize}-size`,m,f&&`${o}-input--${f}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:z==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&z!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}]),style:Q(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},[g("div",{class:h(`${o}-input-wrapper`)},[d(()=>ee(u.prefix,t=>t&&(l(),v("div",{class:h(`${o}-input__prefix`)},[d(()=>t)],2)))),z==="textarea"?(l(),y(Pr,{key:0,ref:"textareaScrollbarInstRef",class:h(`${o}-input__textarea`),container:this.getTextareaScrollContainer,theme:this.theme?.peers?.Scrollbar,themeOverrides:this.themeOverrides?.peers?.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{const{textAreaScrollContainerWidth:t}=this,i={width:this.autosize&&t&&`${t}px`};return l(),v(he,null,[g("textarea",_e(this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,this.inputProps?.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:k?void 0:this.maxlength,minlength:k?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],this.inputProps?.style,i],onBlur:this.handleInputBlur,onFocus:_=>{this.handleInputFocus(_,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll}),null,16,et),this.showPlaceholder1?(l(),v("div",{class:h(`${o}-input__placeholder`),style:Q([this.placeholderStyle,i]),key:"placeholder"},[d(()=>this.mergedPlaceholder[0])],6)):d(()=>null),this.autosize?(l(),y(Lr,{key:2,onResize:this.handleTextAreaMirrorResize},{default:()=>(l(),v("div",{ref:"textareaMirrorElRef",class:h(`${o}-input__textarea-mirror`),key:"mirror"},null,2))},1032,["onResize"])):d(()=>null)],64)}},1032,["class","container","theme","themeOverrides"])):(l(),v("div",{key:1,class:h(`${o}-input__input`)},[g("input",_e({type:z==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":z},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,this.inputProps?.class],style:[this.textDecorationStyle[0],this.inputProps?.style],tabindex:this.passivelyActivated&&!this.activated?-1:this.inputProps?.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:k?void 0:this.maxlength,minlength:k?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:t=>{this.handleInputFocus(t,0)},onInput:t=>{this.handleInput(t,0)},onChange:t=>{this.handleChange(t,0)}}),null,16,ot),this.showPlaceholder1?(l(),v("div",{key:0,class:h(`${o}-input__placeholder`)},[g("span",null,[d(()=>this.mergedPlaceholder[0])])],2)):d(()=>null),this.autosize?(l(),v("div",{class:h(`${o}-input__input-mirror`),key:"mirror",ref:"inputMirrorElRef"}," ",2)):d(()=>null)],2)),d(()=>!this.pair&&ee(u.suffix,t=>t||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?(l(),v("div",{key:1,class:h(`${o}-input__suffix`)},[d(()=>[ee(u["clear-icon-placeholder"],i=>(this.clearable||i)&&(l(),y(ge,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>i,icon:()=>this.$slots["clear-icon"]?.()},1032,["clsPrefix","show","onClear"]))),this.internalLoadingBeforeSuffix?null:t,this.loading!==void 0?(l(),y(Xr,{key:2,clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:Q(this.cssVars)},null,8,["clsPrefix","loading","style"])):null,this.internalLoadingBeforeSuffix?t:null,this.showCount&&this.type!=="textarea"?(l(),y($e,{key:3},{default:i=>{const{renderCount:_}=this;return _?_(i):u.count?.(i)}},1024)):null,this.mergedShowPasswordOn&&this.type==="password"?(l(),v("div",{key:4,class:h(`${o}-input__eye`),onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},[this.passwordVisible?(l(),v(he,{key:0},[d(()=>G(u["password-visible-icon"],()=>[(l(),y(re,{clsPrefix:o},{default:()=>(l(),y(Nr))},1032,["clsPrefix"]))]))],64)):(l(),v(he,{key:1},[d(()=>G(u["password-invisible-icon"],()=>[(l(),y(re,{clsPrefix:o},{default:()=>(l(),y(Hr))},1032,["clsPrefix"]))]))],64))],42,rt)):null])],2)):null))],2),this.pair?(l(),v("span",{key:0,class:h(`${o}-input__separator`)},[d(()=>G(u.separator,()=>[this.separator]))],2)):d(()=>null),this.pair?(l(),v("div",{key:2,class:h(`${o}-input-wrapper`)},[g("div",{class:h(`${o}-input__input`)},[g("input",{ref:"inputEl2Ref",type:this.type,class:h(`${o}-input__input-el`),tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:k?void 0:this.maxlength,minlength:k?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:Q(this.textDecorationStyle[1]),onBlur:this.handleInputBlur,onFocus:t=>{this.handleInputFocus(t,1)},onInput:t=>{this.handleInput(t,1)},onChange:t=>{this.handleChange(t,1)}},null,46,tt),this.showPlaceholder2?(l(),v("div",{key:0,class:h(`${o}-input__placeholder`)},[g("span",null,[d(()=>this.mergedPlaceholder[1])])],2)):d(()=>null)],2),d(()=>ee(u.suffix,t=>(this.clearable||t)&&(l(),v("div",{class:h(`${o}-input__suffix`)},[d(()=>[this.clearable&&(l(),y(ge,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>u["clear-icon"]?.(),placeholder:()=>u["clear-icon-placeholder"]?.()},1032,["clsPrefix","show","onClear"])),t])],2))))],2)):d(()=>null),this.mergedBordered?(l(),v("div",{key:4,class:h(`${o}-input__border`)},null,2)):d(()=>null),this.mergedBordered?(l(),v("div",{key:6,class:h(`${o}-input__state-border`)},null,2)):d(()=>null),this.showCount&&z==="textarea"?(l(),y($e,{key:8},{default:t=>{const{renderCount:i}=this;return i?i(t):u.count?.(t)}},1024)):d(()=>null)],46,nt)}});export{st as I,Xr as S,Kr as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BgEHpUPB.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BgEHpUPB.css new file mode 100644 index 00000000..c347b440 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BgEHpUPB.css @@ -0,0 +1 @@ +.login[data-v-18fa6f23]{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;position:relative;z-index:1}.hero[data-v-18fa6f23]{position:relative;background-size:cover;background-position:center;border-right:1px solid var(--line);overflow:hidden}.hero-shade[data-v-18fa6f23]{position:absolute;inset:0;background:linear-gradient(180deg,#05090c3d,#05090cd1),linear-gradient(90deg,#05090c1a,#05090c8c)}.hero-content[data-v-18fa6f23]{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:40px 46px}.brand[data-v-18fa6f23]{display:flex;align-items:center;gap:12px}.brand-logo[data-v-18fa6f23]{width:44px;height:44px;border-radius:12px;border:1px solid rgba(45,212,191,.3)}.brand-name[data-v-18fa6f23]{font-size:16px;font-weight:700;letter-spacing:.4px}.brand-en[data-v-18fa6f23]{margin-top:3px;font-size:9px;letter-spacing:3px;color:#e8f2f673;font-family:var(--mono)}.hero-copy h1[data-v-18fa6f23]{margin:0;font-size:42px;line-height:1.15;letter-spacing:-.5px;font-weight:700}.hero-copy p[data-v-18fa6f23]{margin:16px 0 0;max-width:440px;color:#e8f2f6b3;font-size:13.5px;line-height:1.8}.hero-points[data-v-18fa6f23]{display:flex;gap:8px;margin-top:22px;flex-wrap:wrap}.hero-points span[data-v-18fa6f23]{font-size:11px;color:#e8f2f6cc;border:1px solid rgba(232,242,246,.16);background:#070b0f6b;padding:5px 11px;border-radius:99px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.hero-foot[data-v-18fa6f23]{font-size:9.5px;letter-spacing:2px;color:#e8f2f652}.form-side[data-v-18fa6f23]{display:grid;place-items:center;padding:40px 24px;background:#070b0f99}.form-card[data-v-18fa6f23]{width:min(380px,100%)}.checking[data-v-18fa6f23]{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.kicker[data-v-18fa6f23]{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;letter-spacing:1px;color:var(--accent);text-transform:uppercase}.form-head h2[data-v-18fa6f23]{margin:10px 0 0;font-size:26px;font-weight:680;letter-spacing:-.3px}.form-head p[data-v-18fa6f23]{margin:9px 0 0;font-size:12.5px;line-height:1.7;color:var(--muted)}.form[data-v-18fa6f23]{margin-top:28px;display:flex;flex-direction:column;gap:15px}.field[data-v-18fa6f23]{display:flex;flex-direction:column;gap:7px}.field>span[data-v-18fa6f23]{font-size:11.5px;color:var(--muted)}.error[data-v-18fa6f23]{padding:9px 12px;border-radius:9px;font-size:12px;color:#fca5a5;background:#f8717114;border:1px solid rgba(248,113,113,.22)}.init-error[data-v-18fa6f23]{margin-top:16px;padding:10px 12px;border-radius:9px;font-size:12px;line-height:1.65;color:#fcd34d;background:#fbbf2414;border:1px solid rgba(251,191,36,.24)}.init-error-title[data-v-18fa6f23]{font-weight:600;margin-bottom:2px}.init-error-hint[data-v-18fa6f23]{margin-top:4px;font-size:11px;color:var(--muted)}.tip[data-v-18fa6f23]{margin-top:22px;font-size:10.5px;line-height:1.7;color:var(--muted-2);text-align:center}@media(max-width:980px){.login[data-v-18fa6f23]{grid-template-columns:1fr}.hero[data-v-18fa6f23]{display:none}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DFTjbjn3.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DFTjbjn3.js new file mode 100644 index 00000000..1f57c13f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DFTjbjn3.js @@ -0,0 +1 @@ +import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-Bmcyfv7z.js";import{I as L}from"./Input-DS3FhrY_.js";import{C as G}from"./CheckboxGroup-iTsKmCjZ.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{S as Q}from"./Spin-CCColBh4.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-CSVBov8c.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-Da42XzaM.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-Da42XzaM.js new file mode 100644 index 00000000..bbc136a1 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-Da42XzaM.js @@ -0,0 +1 @@ +import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-Bmcyfv7z.js";import{p as v,P as f}from"./use-message-BaVpnNbE.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-CS8l23Jb.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-CS8l23Jb.js new file mode 100644 index 00000000..daa130ba --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-CS8l23Jb.js @@ -0,0 +1,235 @@ +import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-P9AqjsDB.js";import{u as mr,I as je}from"./Input-DS3FhrY_.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-Bmcyfv7z.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-BaVpnNbE.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-CGA7qM0U.js";import{u as Ie}from"./use-compitable-CSVBov8c.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{S as Ge}from"./Spin-CCColBh4.js";import{d as Hr}from"./streamers-D5Y-fBfU.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-DCmf1Zmt.js";import{D as rt}from"./DownloadOutline-ZlR9MTyd.js";import{R as Wr}from"./RefreshOutline-CIl2qHSI.js";import{S as qr}from"./SearchOutline-BOYIL3j0.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` + box-shadow: var(--n-menu-box-shadow); +`);const Ye={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:String,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]},at=hr(Ye);var Yr=re({name:"PopselectPanel",props:Ye,setup(e){const t=Ve(Ct),{mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedComponentPropsRef:m}=Be(e),v=A(()=>e.size||m?.value?.Popselect?.size||"medium"),C=be("Popselect","-pop-select",Xr,pt,t.props,r),F=A(()=>cr(e.options,ur("value","children")));function P(l,p){const{onUpdateValue:w,"onUpdate:value":k,onChange:N}=e;w&&X(w,l,p),k&&X(k,l,p),N&&X(N,l,p)}function f(l){b(l.key)}function M(l){!Ue(l,"action")&&!Ue(l,"empty")&&!Ue(l,"header")&&l.preventDefault()}function b(l){const{value:{getNode:p}}=F;if(e.multiple)if(Array.isArray(e.value)){const w=[],k=[];let N=!0;e.value.forEach(J=>{if(J===l){N=!1;return}const V=p(J);V&&(w.push(V.key),k.push(V.rawNode))}),N&&(w.push(l),k.push(p(l).rawNode)),P(w,k)}else{const w=p(l);w&&P([l],[w.rawNode])}else if(e.value===l&&e.cancelable)P(null,null);else{const w=p(l);w&&P(l,w.rawNode);const{"onUpdate:show":k,onUpdateShow:N}=t.props;k&&X(k,!1),N&&X(N,!1),t.setShow(!1)}De(()=>{t.syncPosition()})}Fe(Me(e,"options"),()=>{De(()=>{t.syncPosition()})});const R=A(()=>{const{self:{menuBoxShadow:l}}=C.value;return{"--n-menu-box-shadow":l}}),z=g?We("select",void 0,R,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:F,handleToggle:f,handleMenuMousedown:M,cssVars:g?void 0:R,themeClass:z?.themeClass,onRender:z?.onRender,mergedSize:v,scrollbarProps:t.props.scrollbarProps}},render(){return this.onRender?.(),n(),y(dr,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:H([`${this.mergedClsPrefix}-popselect-menu`,this.themeClass]),style:ce(this.cssVars),theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.mergedSize,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,scrollbarProps:this.scrollbarProps,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{_:1,header:Re(()=>this.$slots.header?.()||[]),action:Re(()=>this.$slots.action?.()||[]),empty:Re(()=>this.$slots.empty?.()||[])},8,["clsPrefix","nodeProps","class","style","theme","themeOverrides","multiple","treeMate","size","value","virtualScroll","scrollable","scrollbarProps","renderLabel","onToggle","onMouseenter","onMouseleave","onMousedown","showCheckmark"])}});const Kr={...be.props,...vt(Qe,["showArrow","arrow"]),placement:{...Qe.placement,default:"bottom"},trigger:{type:String,default:"hover"},...Ye,scrollbarProps:Object};var Jr=re({name:"Popselect",props:Kr,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Be(e),r=be("Popselect","-popselect",void 0,pt,e,t),g=B(null);function m(){g.value?.syncPosition()}function v(C){g.value?.setShow(C)}return Pe(Ct,{props:e,mergedThemeRef:r,syncPosition:m,setShow:v}),{syncPosition:m,setShow:v,popoverInstRef:g,mergedTheme:r}},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,g,m,v,C)=>{const{$attrs:F}=this;return n(),y(Yr,ge(F,{class:[F.class,r],style:[F.style,...m]},pr(this.$props,at),{ref:Nr(g),onMouseenter:Ke([v,F.onMouseenter]),onMouseleave:Ke([C,F.onMouseleave])}),{header:()=>this.$slots.header?.(),action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,["class","style","onMouseenter","onMouseleave"])}};return n(),y(Ar,ge(vt(this.$props,at),t,{internalDeactivateImmediately:!0}),{_:1,trigger:Re(()=>this.$slots.default?.())},16)}});const Qr={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function nt(e){const t=Qr[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}var ot=re({name:"Backward",render(){return(()=>{const e=xe("20cdf29399dd0749");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("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"})],-1))})()}}),st=re({name:"FastBackward",render(){return(()=>{const e=xe("9d0d04cc580afefa");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("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"})])])],-1))})()}}),it=re({name:"FastForward",render(){return(()=>{const e=xe("c2e477dd1211740a");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("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"})])])],-1))})()}}),lt=re({name:"Forward",render(){return(()=>{const e=xe("6fb2c33c1e576c93");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("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"})],-1))})()}}),dt=re({name:"More",render(){return(()=>{const e=xe("e4a3e3d3803c676d");return e[0]||(e[0]=a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("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"})])])],-1))})()}});const ct=` + background: var(--n-item-color-hover); + color: var(--n-item-text-color-hover); + border: var(--n-item-border-hover); +`,ut=[q("button",` + background: var(--n-button-color-hover); + border: var(--n-button-border-hover); + color: var(--n-button-icon-color-hover); + `)];var Zr=U("pagination",` + display: flex; + vertical-align: middle; + font-size: var(--n-item-font-size); + flex-wrap: nowrap; +`,[U("pagination-prefix",` + display: flex; + align-items: center; + margin: var(--n-prefix-margin); + `),U("pagination-suffix",` + display: flex; + align-items: center; + margin: var(--n-suffix-margin); + `),S("> *:not(:first-child)",` + margin: var(--n-item-margin); + `),U("select",` + width: var(--n-select-width); + `),S("&.transition-disabled",[U("pagination-item","transition: none!important;")]),U("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); + `,[U("input",` + margin: var(--n-input-margin); + width: var(--n-input-width); + `)]),U("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); + `,[q("button",` + background: var(--n-button-color); + color: var(--n-button-icon-color); + border: var(--n-button-border); + padding: 0; + `,[U("base-icon",` + font-size: var(--n-button-icon-size); + `)]),vr("disabled",[q("hover",ct,ut),S("&:hover",ct,ut),S("&:active",` + background: var(--n-item-color-pressed); + color: var(--n-item-text-color-pressed); + border: var(--n-item-border-pressed); + `,[q("button",` + background: var(--n-button-color-pressed); + border: var(--n-button-border-pressed); + color: var(--n-button-icon-color-pressed); + `)]),q("active",` + background: var(--n-item-color-active); + color: var(--n-item-text-color-active); + border: var(--n-item-border-active); + `,[S("&:hover",` + background: var(--n-item-color-active-hover); + `)])]),q("disabled",` + cursor: not-allowed; + color: var(--n-item-text-color-disabled); + `,[q("active, button",` + background-color: var(--n-item-color-disabled); + border: var(--n-item-border-disabled); + `)])]),q("disabled",` + cursor: not-allowed; + `,[U("pagination-quick-jumper",` + color: var(--n-jumper-text-color-disabled); + `)]),q("simple",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[U("pagination-quick-jumper",[U("input",` + margin: 0; + `)])])]);function Gr(e){if(!e)return 10;const{defaultPageSize:t}=e;if(t!==void 0)return t;const r=e.pageSizes?.[0];return typeof r=="number"?r:r?.value||10}function ea(e,t,r,g){let m=!1,v=!1,C=1,F=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:F,fastBackwardTo:C,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:F,fastBackwardTo:C,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const P=1,f=t;let M=e,b=e;const R=(r-5)/2;b+=Math.ceil(R),b=Math.min(Math.max(b,P+r-3),f-2),M-=Math.floor(R),M=Math.max(Math.min(M,f-r+3),3);let z=!1,l=!1;M>3&&(z=!0),b=2&&p.push({type:"page",label:2,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===2});for(let w=M;w<=b;++w)p.push({type:"page",label:w,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===w});return l?(v=!0,F=b+1,p.push({type:"fast-forward",active:!1,label:void 0,options:g?mt(b+1,f-1):null})):b===f-2&&p[p.length-1].label!==f-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:f-1,active:e===f-1}),p[p.length-1].label!==f&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:f,active:e===f}),{hasFastBackward:m,hasFastForward:v,fastBackwardTo:C,fastForwardTo:F,items:p}}function mt(e,t){const r=[];for(let g=e;g<=t;++g)r.push({label:`${g}`,value:g});return r}const ta=["onClick","onMouseenter","onMouseleave"],ra=["onClick"],aa=["onClick"],na={...be.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:String,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:Ur.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},scrollbarProps:Object,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]};var oa=re({name:"Pagination",props:na,slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedRtlRef:m}=Be(e),v=A(()=>e.size||t?.value?.Pagination?.size||"medium"),C=be("Pagination","-pagination",Zr,br,e,r),{localeRef:F}=mr("Pagination"),P=B(null),f=B(e.defaultPage),M=B(Gr(e)),b=Ie(Me(e,"page"),f),R=Ie(Me(e,"pageSize"),M),z=A(()=>{const{itemCount:s}=e;if(s!==void 0)return Math.max(1,Math.ceil(s/R.value));const{pageCount:W}=e;return W!==void 0?Math.max(W,1):1}),l=B("");Te(()=>{e.simple,l.value=String(b.value)});const p=B(!1),w=B(!1),k=B(!1),N=B(!1),J=()=>{e.disabled||(p.value=!0,i())},V=()=>{e.disabled||(p.value=!1,i())},Q=()=>{w.value=!0,i()},c=()=>{w.value=!1,i()},T=s=>{h(s)},I=A(()=>ea(b.value,z.value,e.pageSlot,e.showQuickJumpDropdown));Te(()=>{I.value.hasFastBackward?I.value.hasFastForward||(p.value=!1,k.value=!1):(w.value=!1,N.value=!1)});const x=A(()=>{const s=F.value.selectionSuffix;return e.pageSizes.map(W=>typeof W=="number"?{label:`${W} / ${s}`,value:W}:W)}),$=A(()=>t?.value?.Pagination?.inputSize||nt(v.value)),j=A(()=>t?.value?.Pagination?.selectSize||nt(v.value)),le=A(()=>(b.value-1)*R.value),de=A(()=>{const s=b.value*R.value-1,{itemCount:W}=e;return W!==void 0&&s>W-1?W-1:s}),_=A(()=>{const{itemCount:s}=e;return s!==void 0?s:(e.pageCount||1)*R.value}),o=gt("Pagination",m,r);function i(){De(()=>{const{value:s}=P;s&&(s.classList.add("transition-disabled"),P.value?.offsetWidth,s.classList.remove("transition-disabled"))})}function h(s){if(s===b.value)return;const{"onUpdate:page":W,onUpdatePage:he,onChange:pe,simple:Ae}=e;W&&X(W,s),he&&X(he,s),pe&&X(pe,s),f.value=s,Ae&&(l.value=String(s))}function Y(s){if(s===R.value)return;const{"onUpdate:pageSize":W,onUpdatePageSize:he,onPageSizeChange:pe}=e;W&&X(W,s),he&&X(he,s),pe&&X(pe,s),M.value=s,z.value{b.value,R.value,i()});const oe=A(()=>{const s=v.value,{self:{buttonBorder:W,buttonBorderHover:he,buttonBorderPressed:pe,buttonIconColor:Ae,buttonIconColorHover:St,buttonIconColorPressed:zt,itemTextColor:_t,itemTextColorHover:Ft,itemTextColorPressed:Pt,itemTextColorActive:Mt,itemTextColorDisabled:Bt,itemColor:$t,itemColorHover:Rt,itemColorPressed:Tt,itemColorActive:It,itemColorActiveHover:Ot,itemColorDisabled:Et,itemBorder:At,itemBorderHover:Ut,itemBorderPressed:Lt,itemBorderActive:Nt,itemBorderDisabled:jt,itemBorderRadius:Dt,jumperTextColor:Ht,jumperTextColorDisabled:Vt,buttonColor:Wt,buttonColorHover:qt,buttonColorPressed:Xt,[ee("itemPadding",s)]:Yt,[ee("itemMargin",s)]:Kt,[ee("inputWidth",s)]:Jt,[ee("selectWidth",s)]:Qt,[ee("inputMargin",s)]:Zt,[ee("selectMargin",s)]:Gt,[ee("jumperFontSize",s)]:er,[ee("prefixMargin",s)]:tr,[ee("suffixMargin",s)]:rr,[ee("itemSize",s)]:ar,[ee("buttonIconSize",s)]:nr,[ee("itemFontSize",s)]:or,[`${ee("itemMargin",s)}Rtl`]:sr,[`${ee("inputMargin",s)}Rtl`]:ir},common:{cubicBezierEaseInOut:lr}}=C.value;return{"--n-prefix-margin":tr,"--n-suffix-margin":rr,"--n-item-font-size":or,"--n-select-width":Qt,"--n-select-margin":Gt,"--n-input-width":Jt,"--n-input-margin":Zt,"--n-input-margin-rtl":ir,"--n-item-size":ar,"--n-item-text-color":_t,"--n-item-text-color-disabled":Bt,"--n-item-text-color-hover":Ft,"--n-item-text-color-active":Mt,"--n-item-text-color-pressed":Pt,"--n-item-color":$t,"--n-item-color-hover":Rt,"--n-item-color-disabled":Et,"--n-item-color-active":It,"--n-item-color-active-hover":Ot,"--n-item-color-pressed":Tt,"--n-item-border":At,"--n-item-border-hover":Ut,"--n-item-border-disabled":jt,"--n-item-border-active":Nt,"--n-item-border-pressed":Lt,"--n-item-padding":Yt,"--n-item-border-radius":Dt,"--n-bezier":lr,"--n-jumper-font-size":er,"--n-jumper-text-color":Ht,"--n-jumper-text-color-disabled":Vt,"--n-item-margin":Kt,"--n-item-margin-rtl":sr,"--n-button-icon-size":nr,"--n-button-icon-color":Ae,"--n-button-icon-color-hover":St,"--n-button-icon-color-pressed":zt,"--n-button-color-hover":qt,"--n-button-color":Wt,"--n-button-color-pressed":Xt,"--n-button-border":W,"--n-button-border-hover":he,"--n-button-border-pressed":pe}}),fe=g?We("pagination",A(()=>{let s="";return s+=v.value[0],s}),oe,e):void 0;return{rtlEnabled:o,mergedClsPrefix:r,locale:F,selfRef:P,mergedPage:b,pageItems:A(()=>I.value.items),mergedItemCount:_,jumperValue:l,pageSizeOptions:x,mergedPageSize:R,inputSize:$,selectSize:j,mergedTheme:C,mergedPageCount:z,startIndex:le,endIndex:de,showFastForwardMenu:k,showFastBackwardMenu:N,fastForwardActive:p,fastBackwardActive:w,handleMenuSelect:T,handleFastForwardMouseenter:J,handleFastForwardMouseleave:V,handleFastBackwardMouseenter:Q,handleFastBackwardMouseleave:c,handleJumperInput:ye,handleBackwardClick:K,handleForwardClick:ae,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:G,cssVars:g?void 0:oe,themeClass:fe?.themeClass,onRender:fe?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:r,cssVars:g,mergedPage:m,mergedPageCount:v,pageItems:C,showSizePicker:F,showQuickJumper:P,mergedTheme:f,locale:M,inputSize:b,selectSize:R,mergedPageSize:z,pageSizeOptions:l,jumperValue:p,simple:w,prev:k,next:N,prefix:J,suffix:V,label:Q,goto:c,handleJumperInput:T,handleSizePickerChange:I,handleBackwardClick:x,handlePageItemClick:$,handleForwardClick:j,handleQuickJumperChange:le,onRender:de}=this;de?.();const _=J||e.prefix,o=V||e.suffix,i=k||e.prev,h=N||e.next,Y=Q||e.label;return n(),u("div",{ref:"selfRef",class:H([`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,r&&`${t}-pagination--disabled`,w&&`${t}-pagination--simple`]),style:ce(g)},[_?(n(),u("div",{key:0,class:H(`${t}-pagination-prefix`)},[L(()=>_({page:m,pageSize:z,pageCount:v,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],2)):L(()=>null),L(()=>this.displayOrder.map(ae=>{switch(ae){case"pages":return(()=>{const K=xe("9d36e2972681a71c");return n(),u(te,{key:"pages"},[a("div",{class:H([`${t}-pagination-item`,!i&&`${t}-pagination-item--button`,(m<=1||m>v||r)&&`${t}-pagination-item--disabled`]),onClick:x},[i?(n(),u(te,{key:0},[L(()=>i({page:m,pageSize:z,pageCount:v,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],64)):(n(),y(ke,{key:1,clsPrefix:t},{default:()=>this.rtlEnabled?(n(),y(lt,{key:2})):(n(),y(ot,{key:3}))},1032,["clsPrefix"]))],10,ra),w?(n(),u(te,{key:0},[a("div",{class:H(`${t}-pagination-quick-jumper`)},[(n(),y(je,{value:p,onUpdateValue:T,size:b,placeholder:"",disabled:r,theme:f.peers.Input,themeOverrides:f.peerOverrides.Input,onChange:le},null,8,["value","onUpdateValue","size","disabled","theme","themeOverrides","onChange"]))],2),K[0]||(K[0]=L(" /",-1)),K[1]||(K[1]=L(" ",-1)),L(()=>v)],64)):(n(),u(te,{key:1},[L(()=>C.map(Z=>{let ne,ue,me;const{type:G}=Z,we=G==="page"?`page-${Z.label}`:G;switch(G){case"page":const oe=Z.label;Y?ne=Y({type:"page",node:oe,active:Z.active}):ne=oe;break;case"fast-forward":const fe=this.fastForwardActive?(n(),y(ke,{key:6,clsPrefix:t},{default:()=>this.rtlEnabled?(n(),y(st,{key:7})):(n(),y(it,{key:8}))},1032,["clsPrefix"])):(n(),y(ke,{key:9,clsPrefix:t},{default:()=>(n(),y(dt))},1032,["clsPrefix"]));Y?ne=Y({type:"fast-forward",node:fe,active:this.fastForwardActive||this.showFastForwardMenu}):ne=fe,ue=this.handleFastForwardMouseenter,me=this.handleFastForwardMouseleave;break;case"fast-backward":const s=this.fastBackwardActive?(n(),y(ke,{key:10,clsPrefix:t},{default:()=>this.rtlEnabled?(n(),y(it,{key:11})):(n(),y(st,{key:12}))},1032,["clsPrefix"])):(n(),y(ke,{key:13,clsPrefix:t},{default:()=>(n(),y(dt))},1032,["clsPrefix"]));Y?ne=Y({type:"fast-backward",node:s,active:this.fastBackwardActive||this.showFastBackwardMenu}):ne=s,ue=this.handleFastBackwardMouseenter,me=this.handleFastBackwardMouseleave}const ye=(n(),u("div",{key:we,class:H([`${t}-pagination-item`,Z.active&&`${t}-pagination-item--active`,G!=="page"&&(G==="fast-backward"&&this.showFastBackwardMenu||G==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,r&&`${t}-pagination-item--disabled`,G==="page"&&`${t}-pagination-item--clickable`]),onClick:()=>{$(Z)},onMouseenter:ue,onMouseleave:me},[L(()=>ne)],42,ta));return G==="page"||!Z.options?ye:(n(),y(Jr,{to:this.to,key:we,disabled:r,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:f.peers.Popselect,themeOverrides:f.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:G==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:oe=>{oe?G==="fast-backward"?this.showFastBackwardMenu=oe:this.showFastForwardMenu=oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1)},options:Z.options,onUpdateValue:this.handleMenuSelect,scrollable:!0,scrollbarProps:this.scrollbarProps,showCheckmark:!1},{default:()=>ye},1032,["to","disabled","theme","themeOverrides","show","onUpdateShow","options","onUpdateValue","scrollbarProps"]))}))],64)),a("div",{class:H([`${t}-pagination-item`,!h&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:m<1||m>=v||r}]),onClick:j},[h?(n(),u(te,{key:0},[L(()=>h({page:m,pageSize:z,pageCount:v,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}))],64)):(n(),y(ke,{key:1,clsPrefix:t},{default:()=>this.rtlEnabled?(n(),y(ot,{key:4})):(n(),y(lt,{key:5}))},1032,["clsPrefix"]))],10,aa)],64)})();case"size-picker":return!w&&F?(n(),y(ht,ge({key:14,consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:R,options:l,value:z,disabled:r,scrollbarProps:this.scrollbarProps,theme:f.peers.Select,themeOverrides:f.peerOverrides.Select,onUpdateValue:I}),null,16,["to","size","options","value","disabled","scrollbarProps","theme","themeOverrides","onUpdateValue"])):null;case"quick-jumper":return!w&&P?(n(),u("div",{key:15,class:H(`${t}-pagination-quick-jumper`)},[c?(n(),u(te,{key:0},[L(()=>c())],64)):(n(),u(te,{key:1},[L(()=>gr(this.$slots.goto,()=>[M.goto]))],64)),(n(),y(je,{value:p,onUpdateValue:T,size:b,placeholder:"",disabled:r,theme:f.peers.Input,themeOverrides:f.peerOverrides.Input,onChange:le},null,8,["value","onUpdateValue","size","disabled","theme","themeOverrides","onChange"]))],2)):null;default:return null}})),o?(n(),u("div",{key:2,class:H(`${t}-pagination-suffix`)},[L(()=>o({page:m,pageSize:z,pageCount:v,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],2)):L(()=>null)],6)}});const sa=["onMouseenter","onMouseleave","onMousedown"],ia={key:1,role:"none"};var la=re({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),r=B(null),g=Ve(Xe);let m=0,v="",C=null;const F=B(!1),P=B(!1),f=A(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:M,mergedRtlRef:b}=Be(e),R=gt("Drawer",b,M),z=c,l=x=>{P.value=!0,m=f.value?x.clientY:x.clientX,v=document.body.style.cursor,document.body.style.cursor=f.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",Q),document.body.addEventListener("mouseleave",z),document.body.addEventListener("mouseup",c)},p=()=>{C!==null&&(window.clearTimeout(C),C=null),P.value?F.value=!0:C=window.setTimeout(()=>{F.value=!0},300)},w=()=>{C!==null&&(window.clearTimeout(C),C=null),F.value=!1},{doUpdateHeight:k,doUpdateWidth:N}=g,J=x=>{const{maxWidth:$}=e;if($&&x>$)return $;const{minWidth:j}=e;return j&&x{const{maxHeight:$}=e;if($&&x>$)return $;const{minHeight:j}=e;return j&&x{e.show&&(t.value=!0)}),Fe(()=>e.show,x=>{x||c()}),yt(()=>{c()});const T=A(()=>{const{show:x}=e,$=[[Je,x]];return e.showMask||$.push([Cr,e.onClickoutside,void 0,{capture:!0}]),$});function I(){t.value=!1,e.onAfterLeave?.()}return kr(A(()=>e.blockScroll&&t.value)),Pe(xr,r),Pe(Sr,null),Pe(zr,null),{bodyRef:r,rtlEnabled:R,mergedClsPrefix:g.mergedClsPrefixRef,isMounted:g.isMountedRef,mergedTheme:g.mergedThemeRef,displayed:t,transitionName:A(()=>({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:I,bodyDirectives:T,handleMousedownResizeTrigger:l,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:w,isDragging:P,isHoverOnResizeTrigger:F}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?He((n(),u("div",ia,[(n(),y(yr,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>(n(),y(bt,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>He(wr("div",ge(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?(n(),u("div",{key:2,class:H([`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`]),onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger},null,42,sa)):null,this.nativeScrollbar?(n(),u("div",{key:3,class:H([`${t}-drawer-content-wrapper`,this.contentClass]),style:ce(this.contentStyle),role:"none"},[L(()=>e.default?.())],6)):(n(),y(wt,ge({key:4},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),qe(e),1040,["contentStyle","contentClass","theme","themeOverrides"]))]),this.bodyDirectives)},1032,["name","appear","onAfterEnter","onAfterLeave"]))},1032,["disabled","active","autoFocus","onEsc"]))])),[[Je,this.displayDirective==="if"||this.displayed||this.show]]):null}});const{cubicBezierEaseIn:da,cubicBezierEaseOut:ca}=Oe;function ua({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-bottom"}={}){return[S(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${da}`}),S(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${ca}`}),S(`&.${r}-transition-enter-to`,{transform:"translateY(0)"}),S(`&.${r}-transition-enter-from`,{transform:"translateY(100%)"}),S(`&.${r}-transition-leave-from`,{transform:"translateY(0)"}),S(`&.${r}-transition-leave-to`,{transform:"translateY(100%)"})]}const{cubicBezierEaseIn:ma,cubicBezierEaseOut:fa}=Oe;function ha({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-left"}={}){return[S(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${ma}`}),S(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${fa}`}),S(`&.${r}-transition-enter-to`,{transform:"translateX(0)"}),S(`&.${r}-transition-enter-from`,{transform:"translateX(-100%)"}),S(`&.${r}-transition-leave-from`,{transform:"translateX(0)"}),S(`&.${r}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:pa,cubicBezierEaseOut:va}=Oe;function ga({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-right"}={}){return[S(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${pa}`}),S(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${va}`}),S(`&.${r}-transition-enter-to`,{transform:"translateX(0)"}),S(`&.${r}-transition-enter-from`,{transform:"translateX(100%)"}),S(`&.${r}-transition-leave-from`,{transform:"translateX(0)"}),S(`&.${r}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:ba,cubicBezierEaseOut:wa}=Oe;function ya({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-top"}={}){return[S(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${ba}`}),S(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${wa}`}),S(`&.${r}-transition-enter-to`,{transform:"translateY(0)"}),S(`&.${r}-transition-enter-from`,{transform:"translateY(-100%)"}),S(`&.${r}-transition-leave-from`,{transform:"translateY(0)"}),S(`&.${r}-transition-leave-to`,{transform:"translateY(-100%)"})]}var ka=S([U("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; + `,[ga(),ha(),ya(),ua(),q("unselectable",` + user-select: none; + -webkit-user-select: none; + `),q("native-scrollbar",[U("drawer-content-wrapper",` + overflow: auto; + height: 100%; + `)]),ve("resize-trigger",` + position: absolute; + background-color: #0000; + transition: background-color .3s var(--n-bezier); + `,[q("hover",` + background-color: var(--n-resize-trigger-color-hover); + `)]),U("drawer-content-wrapper",` + box-sizing: border-box; + `),U("drawer-content",` + height: 100%; + display: flex; + flex-direction: column; + `,[q("native-scrollbar",[U("drawer-body-content-wrapper",` + height: 100%; + overflow: auto; + `)]),U("drawer-body",` + flex: 1 0 0; + overflow: hidden; + `),U("drawer-body-content-wrapper",` + box-sizing: border-box; + padding: var(--n-body-padding); + `),U("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; + `,[ve("main",` + flex: 1; + `),ve("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),U("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); + `)]),q("right-placement",` + top: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-bottom-left-radius: var(--n-border-radius); + `,[ve("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + left: 0; + transform: translateX(-1.5px); + cursor: ew-resize; + `)]),q("left-placement",` + top: 0; + bottom: 0; + left: 0; + border-top-right-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[ve("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + right: 0; + transform: translateX(1.5px); + cursor: ew-resize; + `)]),q("top-placement",` + top: 0; + left: 0; + right: 0; + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[ve("resize-trigger",` + width: 100%; + height: 3px; + bottom: 0; + left: 0; + transform: translateY(1.5px); + cursor: ns-resize; + `)]),q("bottom-placement",` + left: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + `,[ve("resize-trigger",` + width: 100%; + height: 3px; + top: 0; + left: 0; + transform: translateY(-1.5px); + cursor: ns-resize; + `)])]),S("body",[S(">",[U("drawer-container",` + position: fixed; + `)])]),U("drawer-container",` + position: relative; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + `,[S("> *",` + pointer-events: all; + `)]),U("drawer-mask",` + background-color: rgba(0, 0, 0, .3); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[q("invisible",` + background-color: rgba(0, 0, 0, 0) + `),_r({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]);const Ca=["onClick"],xa={...be.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};var Sa=re({name:"Drawer",inheritAttrs:!1,props:xa,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:g}=Be(e),m=Pr(),v=be("Drawer","-drawer",ka,Rr,e,t),C=B(e.defaultWidth),F=B(e.defaultHeight),P=Ie(Me(e,"width"),C),f=Ie(Me(e,"height"),F),M=A(()=>{const{placement:c}=e;return c==="top"||c==="bottom"?"":Ze(P.value)}),b=A(()=>{const{placement:c}=e;return c==="left"||c==="right"?"":Ze(f.value)}),R=c=>{const{onUpdateWidth:T,"onUpdate:width":I}=e;T&&X(T,c),I&&X(I,c),C.value=c},z=c=>{const{onUpdateHeight:T,"onUpdate:width":I}=e;T&&X(T,c),I&&X(I,c),F.value=c},l=A(()=>[{width:M.value,height:b.value},e.drawerStyle||""]);function p(c){const{onMaskClick:T,maskClosable:I}=e;I&&J(!1),T&&T(c)}function w(c){p(c)}const k=Mr();function N(c){e.onEsc?.(),e.show&&e.closeOnEsc&&Br(c)&&(k.value||J(!1))}function J(c){const{onHide:T,onUpdateShow:I,"onUpdate:show":x}=e;I&&X(I,c),x&&X(x,c),T&&!c&&X(T,c)}Pe(Xe,{isMountedRef:m,mergedThemeRef:v,mergedClsPrefixRef:t,doUpdateShow:J,doUpdateHeight:z,doUpdateWidth:R});const V=A(()=>{const{common:{cubicBezierEaseInOut:c,cubicBezierEaseIn:T,cubicBezierEaseOut:I},self:{color:x,textColor:$,boxShadow:j,lineHeight:le,headerPadding:de,footerPadding:_,borderRadius:o,bodyPadding:i,titleFontSize:h,titleTextColor:Y,titleFontWeight:ae,headerBorderBottom:K,footerBorderTop:Z,closeIconColor:ne,closeIconColorHover:ue,closeIconColorPressed:me,closeColorHover:G,closeColorPressed:we,closeIconSize:ye,closeSize:oe,closeBorderRadius:fe,resizableTriggerColorHover:s}}=v.value;return{"--n-line-height":le,"--n-color":x,"--n-border-radius":o,"--n-text-color":$,"--n-box-shadow":j,"--n-bezier":c,"--n-bezier-out":I,"--n-bezier-in":T,"--n-header-padding":de,"--n-body-padding":i,"--n-footer-padding":_,"--n-title-text-color":Y,"--n-title-font-size":h,"--n-title-font-weight":ae,"--n-header-border-bottom":K,"--n-footer-border-top":Z,"--n-close-icon-color":ne,"--n-close-icon-color-hover":ue,"--n-close-icon-color-pressed":me,"--n-close-size":oe,"--n-close-color-hover":G,"--n-close-color-pressed":we,"--n-close-icon-size":ye,"--n-close-border-radius":fe,"--n-resize-trigger-color-hover":s}}),Q=g?We("drawer",void 0,V,e):void 0;return{mergedClsPrefix:t,namespace:r,mergedBodyStyle:l,handleOutsideClick:w,handleMaskClick:p,handleEsc:N,mergedTheme:v,cssVars:g?void 0:V,themeClass:Q?.themeClass,onRender:Q?.onRender,isMounted:m}},render(){const{mergedClsPrefix:e}=this;return n(),y(Fr,{to:this.to,show:this.show},{default:()=>(this.onRender?.(),He((n(),u("div",{class:H([`${e}-drawer-container`,this.namespace,this.themeClass]),style:ce(this.cssVars),role:"none"},[this.showMask?(n(),y(bt,{key:0,name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?(n(),u("div",{key:1,"aria-hidden":!0,class:H([`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`]),onClick:this.handleMaskClick},null,10,Ca)):null},1032,["appear"])):L(()=>null),(n(),y(la,ge(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}),qe(this.$slots),1040,["class","style","blockScroll","contentStyle","contentClass","placement","scrollbarProps","show","displayDirective","nativeScrollbar","onAfterEnter","onAfterLeave","trapFocus","autoFocus","resizable","maxHeight","minHeight","maxWidth","minWidth","showMask","onEsc","onClickoutside"]))],6)),[[$r,{zIndex:this.zIndex,enabled:this.show}]]))},1032,["to","show"])}});const za={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};var _a=re({name:"DrawerContent",props:za,slots:Object,setup(){const e=Ve(Xe,null);e||Ir("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function r(){t(!1)}return{handleCloseClick:r,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:r,mergedTheme:g,bodyClass:m,bodyStyle:v,bodyContentClass:C,bodyContentStyle:F,headerClass:P,headerStyle:f,footerClass:M,footerStyle:b,scrollbarProps:R,closable:z,$slots:l}=this;return n(),u("div",{role:"none",class:H([`${t}-drawer-content`,r&&`${t}-drawer-content--native-scrollbar`])},[l.header||e||z?(n(),u("div",{key:0,class:H([`${t}-drawer-header`,P]),style:ce(f),role:"none"},[a("div",{class:H(`${t}-drawer-header__main`),role:"heading","aria-level":"1"},[l.header!==void 0?(n(),u(te,{key:0},[L(()=>l.header())],64)):(n(),u(te,{key:1},[L(()=>e)],64))],2),L(()=>z&&(n(),y(Tr,{onClick:this.handleCloseClick,clsPrefix:t,class:H(`${t}-drawer-header__close`),absolute:!0},null,8,["onClick","clsPrefix","class"])))],6)):L(()=>null),r?(n(),u("div",{key:2,class:H([`${t}-drawer-body`,m]),style:ce(v),role:"none"},[a("div",{class:H([`${t}-drawer-body-content-wrapper`,C]),style:ce(F),role:"none"},[L(()=>l.default?.())],6)],6)):(n(),y(wt,ge({key:3,themeOverrides:g.peerOverrides.Scrollbar,theme:g.peers.Scrollbar},R,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,C],contentStyle:F}),qe(l),1040,["themeOverrides","theme","class","contentClass","contentStyle"])),l.footer?(n(),u("div",{key:4,class:H([`${t}-drawer-footer`,M]),style:ce(b),role:"none"},[L(()=>l.footer())],6)):L(()=>null)],2)}});const Fa={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Pa=re({name:"FolderOpenOutline",render:function(t,r){return n(),u("svg",Fa,r[0]||(r[0]=[a("path",{d:"M64 192v-72a40 40 0 0 1 40-40h75.89a40 40 0 0 1 22.19 6.72l27.84 18.56a40 40 0 0 0 22.19 6.72H408a40 40 0 0 1 40 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),a("path",{d:"M479.9 226.55L463.68 392a40 40 0 0 1-39.93 40H88.25a40 40 0 0 1-39.93-40L32.1 226.55A32 32 0 0 1 64 192h384.1a32 32 0 0 1 31.8 34.55z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ma={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ba=re({name:"TimeOutline",render:function(t,r){return n(),u("svg",Ma,r[0]||(r[0]=[a("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192s192-86 192-192S362 64 256 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 128v144h96"},null,-1)]))}});function $a(e={}){const t=new URLSearchParams;e.page&&t.set("page",String(e.page)),e.page_size&&t.set("page_size",String(e.page_size)),e.streamer_id&&t.set("streamer_id",String(e.streamer_id)),e.q?.trim()&&t.set("q",e.q.trim());const r=t.toString();return Ee(`/v1/sessions${r?`?${r}`:""}`)}const Ra=e=>Ee(`/v1/sessions/${e}`),Ta=e=>kt("/v1/files/reveal",{kind:"recording",file_name:e}),xt=e=>`/static/${encodeURIComponent(e)}`;async function Ia(e){const t=xt(e),r=new URLSearchParams({method:"GET",path:t}),m=(await kt(`/v1/desktop-ticket?${r.toString()}`))?.ticket;if(!m)throw new Error("换票失败:服务未返回票据");return`${t}?desktop_ticket=${encodeURIComponent(m)}`}function Oa(e){return Ee(`/v1/sessions/${e}/danmaku-density`)}const Ea={class:"page"},Aa={class:"page-head"},Ua={class:"toolbar"},La={key:0,class:"stat-grid"},Na={key:1,class:"compact-summary"},ja={class:"list-bar"},Da={key:2,class:"loading"},Ha={key:3,class:"error-panel"},Va={class:"error-msg"},Wa={class:"table panel"},qa=["onClick"],Xa={class:"cell-title"},Ya={class:"title-text"},Ka={class:"title-sub mono"},Ja={class:"cell-muted"},Qa={class:"cell-muted mono"},Za={class:"mono"},Ga={class:"mono"},en={class:"mono"},tn={class:"pager"},rn={key:0,class:"loading"},an={key:1,class:"detail"},nn={class:"detail-title"},on={class:"detail-meta"},sn={class:"mono"},ln={class:"detail-label"},dn={key:0,class:"segments"},cn={class:"seg-main"},un={class:"seg-name mono"},mn={class:"seg-sub"},fn={class:"mono"},hn={class:"seg-actions"},pn={key:1,class:"no-seg"},vn={key:2,class:"agent-row"},ft=20,gn=re({__name:"RecordingsView",setup(e){const t=Lr(),r=Vr();async function g(_,o){if(Er()){o.preventDefault();try{const i=await Ia(_.file_name),h=document.createElement("a");h.href=i,h.download=_.file_name,h.rel="noopener",document.body.appendChild(h),h.click(),h.remove()}catch(i){const h=i instanceof Error?i.message:"获取下载票据失败";t.error(h)}}}const m=B(!1),v=B(!1),C=B(!1),F=A(()=>v.value?"100%":600),P=B([]),f=B(0),M=B(1),b=B(!0),R=B(""),z=B(""),l=B(null),p=B([]),w=B(!1),k=B(null),N=B(!1),J=A(()=>[{label:"全部主播",value:0},...p.value.map(_=>({label:_.remark||_.url,value:_.id}))]),V=A(()=>{const _=P.value.reduce((h,Y)=>h+(Y.duration_ms||0),0),o=P.value.reduce((h,Y)=>h+(Y.bytes||0),0),i=P.value.filter(h=>h.recording).length;return{duration:_,bytes:o,recording:i}});let Q=0;async function c(){const _=++Q;b.value=!0,R.value="";try{const o=await $a({page:M.value,page_size:ft,streamer_id:l.value||void 0,q:z.value||void 0});if(_!==Q)return;P.value=o.items,f.value=o.total}catch(o){if(_!==Q)return;R.value=o instanceof Error?o.message:"加载失败"}finally{_===Q&&(b.value=!1)}}let T;Fe(z,()=>{T&&window.clearTimeout(T),T=window.setTimeout(()=>{M.value!==1?M.value=1:c()},380)});function I(){v.value=window.innerWidth<640}yt(()=>{T&&window.clearTimeout(T),window.removeEventListener("resize",I)}),Fe(l,()=>{M.value!==1?M.value=1:c()}),Fe(M,()=>c());let x=0;async function $(_){const o=++x;w.value=!0,N.value=!0,k.value=null;try{const i=await Ra(_.id);if(o!==x)return;k.value=i}catch(i){if(o!==x)return;t.error(i instanceof Error?i.message:"读取场次详情失败")}finally{o===x&&(N.value=!1)}}async function j(){if(!r||!k.value)return;const _=window.miniapp?.host?.composer;if(!_?.append){t.error("当前宿主不支持输入框协同");return}C.value=!0;try{const o=k.value,h=(await Oa(o.id).catch(()=>null))?.density??null,Y=[...h?.peaks??[]].sort((K,Z)=>Z.count-K.count).slice(0,5),ae=["请根据以下直播场次生成切片方案(仅处理本人或已授权内容):","标题:"+(o.title||"未命名直播"),"时长:"+ie(o.duration_ms),"弹幕总数:"+String(h?.total??0)];if(Y.length){ae.push("弹幕密度 Top-5 高能区间:");for(const K of Y)ae.push("- "+ie(K.from_ms)+"–"+ie(K.to_ms)+":"+K.count+" 条(基线 "+K.ratio.toFixed(1)+" 倍)")}else ae.push("弹幕密度:暂无可用数据");ae.push("请先复核弹幕密度,再创建切片草稿。"),await _.append(ae.join(` +`)),t.success("已送入输入框,确认后由 Agent 生成切片方案")}catch(o){t.error("送入输入框失败:"+(o instanceof Error?o.message:"未知错误"))}finally{C.value=!1}}async function le(_){try{await Ta(_.file_name),t.success("已在文件管理器中定位")}catch(o){t.error(o instanceof Error?o.message:"定位失败")}}function de(_){switch(_){case"recording":return{label:"录制中",type:"error"};case"finished":return{label:"已完成",type:"success"};case"missing":return{label:"文件缺失",type:"warning"};case"deleted":return{label:"已删除",type:"default"};case"pending_delete":return{label:"待清理",type:"warning"};default:return{label:_,type:"default"}}}return Or(async()=>{if(I(),window.addEventListener("resize",I),r)try{const _=await Ee("/_miniapp/runtime-status");m.value=_.mode==="remote"}catch{m.value=!1}p.value=await Hr().catch(()=>[]),await c()}),(_,o)=>(n(),u("div",Ea,[a("div",Aa,[o[4]||(o[4]=a("div",null,[a("h1",{class:"page-title"},"录像库"),a("p",{class:"page-sub"},"按场次归档的录制文件,可直接下载或在文件夹中定位")],-1)),a("div",Ua,[O(d(Se),{quaternary:"",circle:"",loading:b.value,"aria-label":"刷新",onClick:c},{icon:D(()=>[O(d(ze),null,{default:D(()=>[O(d(Wr))]),_:1})]),_:1},8,["loading"])])]),v.value?Ce("",!0):(n(),u("div",La,[O($e,{label:"场次总数",value:f.value,hint:"所有已归档的直播场次",icon:d(tt),tone:"accent"},null,8,["value","icon"]),O($e,{label:"本页录制中",value:V.value.recording,hint:"仍在写入的场次",tone:"live"},null,8,["value"]),O($e,{label:"本页时长",value:d(ie)(V.value.duration),hint:"当前页 20 场累计",icon:d(Ba)},null,8,["value","icon"]),O($e,{label:"本页大小",value:d(_e)(V.value.bytes),hint:"当前页 20 场累计",icon:d(rt)},null,8,["value","icon"])])),v.value?(n(),u("div",Na,[a("span",null,[o[5]||(o[5]=se("场次 ",-1)),a("b",null,E(f.value),1)]),a("span",null,[o[6]||(o[6]=se("录制中 ",-1)),a("b",null,E(V.value.recording),1)]),a("span",null,[o[7]||(o[7]=se("时长 ",-1)),a("b",null,E(d(ie)(V.value.duration)),1)]),a("span",null,[o[8]||(o[8]=se("大小 ",-1)),a("b",null,E(d(_e)(V.value.bytes)),1)])])):Ce("",!0),a("div",ja,[O(d(ht),{value:l.value,"onUpdate:value":o[0]||(o[0]=i=>l.value=i),class:"filter",options:J.value,placeholder:"全部主播"},null,8,["value","options"]),O(d(je),{value:z.value,"onUpdate:value":o[1]||(o[1]=i=>z.value=i),class:"search",placeholder:"搜索场次标题或主播",clearable:""},{prefix:D(()=>[O(d(ze),{size:16},{default:D(()=>[O(d(qr))]),_:1})]),_:1},8,["value"])]),b.value?(n(),u("div",Da,[O(d(Ge),{size:"large"})])):R.value?(n(),u("div",Ha,[o[10]||(o[10]=a("div",{class:"error-title"},"录像列表加载失败",-1)),a("div",Va,E(R.value),1),O(d(Se),{size:"small",onClick:c},{default:D(()=>[...o[9]||(o[9]=[se("重试",-1)])]),_:1})])):P.value.length===0?(n(),y(jr,{key:4,title:"还没有录像",description:"当监控中的主播开播并完成录制后,这里会按场次出现录像记录。",compact:""})):(n(),u(te,{key:5},[a("div",Wa,[o[13]||(o[13]=a("div",{class:"thead row"},[a("span",null,"场次"),a("span",null,"主播"),a("span",null,"开始时间"),a("span",null,"时长"),a("span",null,"大小"),a("span",null,"分段"),a("span",null,"状态")],-1)),(n(!0),u(te,null,Ne(P.value,i=>(n(),u("button",{key:i.id,class:"row body-row",onClick:h=>$(i)},[a("span",Xa,[a("span",Ya,E(i.title||"未命名直播"),1),a("span",Ka,"#"+E(i.id),1)]),a("span",Ja,E(i.streamer_name||"—"),1),a("span",Qa,E(d(et)(i.started_at)),1),a("span",Za,E(d(ie)(i.duration_ms)),1),a("span",Ga,E(d(_e)(i.bytes)),1),a("span",en,E(i.segment_count),1),a("span",null,[i.recording?(n(),y(d(Le),{key:0,size:"small",type:"error",bordered:!1,round:""},{default:D(()=>[...o[11]||(o[11]=[a("span",{class:"rec-tag"},[a("span",{class:"live-dot"}),se("录制中")],-1)])]),_:1})):(n(),y(d(Le),{key:1,size:"small",bordered:!1,round:""},{default:D(()=>[...o[12]||(o[12]=[se("已结束",-1)])]),_:1}))])],8,qa))),128))]),a("div",tn,[O(d(oa),{page:M.value,"onUpdate:page":o[2]||(o[2]=i=>M.value=i),"page-size":ft,"item-count":f.value,"page-slot":7},null,8,["page","item-count"])])],64)),O(d(Sa),{show:w.value,"onUpdate:show":o[3]||(o[3]=i=>w.value=i),width:F.value,placement:"right"},{default:D(()=>[O(d(_a),{closable:""},{header:D(()=>[...o[14]||(o[14]=[a("div",{class:"drawer-title"},"场次详情",-1)])]),default:D(()=>[N.value?(n(),u("div",rn,[O(d(Ge))])):k.value?(n(),u("div",an,[a("h3",nn,E(k.value.title||"未命名直播"),1),a("div",on,[a("span",null,E(k.value.streamer_name||"未知主播"),1),a("span",sn,E(d(et)(k.value.started_at)),1),a("span",null,E(d(ie)(k.value.duration_ms)),1),a("span",null,E(d(_e)(k.value.bytes)),1)]),a("div",ln,"分段文件("+E(k.value.segments.length)+")",1),k.value.segments.length?(n(),u("div",dn,[(n(!0),u(te,null,Ne(k.value.segments,i=>(n(),u("div",{key:i.id,class:"segment"},[a("div",cn,[a("div",un,E(i.file_name),1),a("div",mn,[O(d(Le),{size:"tiny",type:de(i.state).type,bordered:!1},{default:D(()=>[se(E(de(i.state).label),1)]),_:2},1032,["type"]),a("span",null,E(d(ie)((i.end_ms??i.start_ms)-i.start_ms)),1),a("span",null,E(d(_e)(i.bytes)),1),a("span",fn,E(i.container),1)])]),a("div",hn,[m.value?Ce("",!0):(n(),y(d(Se),{key:0,size:"tiny",secondary:"",onClick:h=>le(i)},{icon:D(()=>[O(d(ze),null,{default:D(()=>[O(d(Pa))]),_:1})]),default:D(()=>[o[15]||(o[15]=se(" 定位 ",-1))]),_:1},8,["onClick"])),O(d(Se),{size:"tiny",secondary:"",tag:"a",href:d(xt)(i.file_name),target:d(r)?void 0:"_blank",download:d(r)?i.file_name:void 0,rel:"noopener",onClick:h=>g(i,h)},{icon:D(()=>[O(d(ze),null,{default:D(()=>[O(d(rt))]),_:1})]),default:D(()=>[o[16]||(o[16]=se(" 下载 ",-1))]),_:1},8,["href","target","download","onClick"])])]))),128))])):(n(),u("div",pn,"这一场还没有可读的分段文件。")),d(r)?(n(),u("div",vn,[O(d(Se),{size:"small",secondary:"",type:"primary",loading:C.value,onClick:j},{icon:D(()=>[O(d(ze),null,{default:D(()=>[O(d(tt))]),_:1})]),default:D(()=>[o[17]||(o[17]=se(" 交给 Agent 生成切片方案 ",-1))]),_:1},8,["loading"])])):Ce("",!0),k.value.gaps.length?(n(),u(te,{key:3},[o[18]||(o[18]=a("div",{class:"detail-label"},"断流缺口",-1)),(n(!0),u(te,null,Ne(k.value.gaps,(i,h)=>(n(),u("div",{key:h,class:"gap"},E(d(ie)(i.from_ms))+" → "+E(d(ie)(i.to_ms))+" ("+E(d(ie)(i.to_ms-i.from_ms))+") ",1))),128))],64)):Ce("",!0)])):Ce("",!0)]),_:1})]),_:1},8,["show","width"])]))}}),Tn=Dr(gn,[["__scopeId","data-v-09b435c0"]]);export{Tn as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-g6Rw4_09.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-g6Rw4_09.css new file mode 100644 index 00000000..340df1cb --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-g6Rw4_09.css @@ -0,0 +1 @@ +.list-bar[data-v-09b435c0]{display:flex;gap:10px;justify-content:flex-end;margin-bottom:14px}.filter[data-v-09b435c0]{width:200px}.search[data-v-09b435c0]{width:260px}.loading[data-v-09b435c0]{display:grid;place-items:center;padding:70px 0}.table[data-v-09b435c0]{overflow:hidden}.row[data-v-09b435c0]{display:grid;grid-template-columns:minmax(220px,2.2fr) 1.1fr 1.3fr .8fr .8fr .5fr .8fr;gap:12px;align-items:center;padding:11px 16px;text-align:left}.thead[data-v-09b435c0]{font-size:10.5px;letter-spacing:.6px;color:var(--muted-2);text-transform:uppercase;border-bottom:1px solid var(--line);background:#94c5d608}.body-row[data-v-09b435c0]{width:100%;border:0;border-bottom:1px solid rgba(148,197,214,.07);background:transparent;color:var(--text);font-family:inherit;font-size:12.5px;cursor:pointer;transition:background .14s ease}.body-row[data-v-09b435c0]:last-child{border-bottom:0}.body-row[data-v-09b435c0]:hover{background:#2dd4bf0b}.cell-title[data-v-09b435c0]{display:flex;align-items:baseline;gap:8px;min-width:0}.title-text[data-v-09b435c0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}.title-sub[data-v-09b435c0]{font-size:10px;color:var(--muted-2)}.cell-muted[data-v-09b435c0]{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rec-tag[data-v-09b435c0]{display:inline-flex;align-items:center;gap:5px}.pager[data-v-09b435c0]{display:flex;justify-content:flex-end;margin-top:16px}.drawer-title[data-v-09b435c0]{font-size:15px;font-weight:650}.detail-title[data-v-09b435c0]{margin:0 0 8px;font-size:17px}.detail-meta[data-v-09b435c0]{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.detail-label[data-v-09b435c0]{margin:18px 0 10px;font-size:11px;letter-spacing:.6px;color:var(--muted-2);text-transform:uppercase}.segments[data-v-09b435c0]{display:flex;flex-direction:column;gap:8px}.segment[data-v-09b435c0]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:#94c5d608}.seg-main[data-v-09b435c0]{min-width:0}.seg-name[data-v-09b435c0]{font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seg-sub[data-v-09b435c0]{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:10.5px;color:var(--muted)}.seg-actions[data-v-09b435c0]{display:flex;gap:6px;flex:none}.no-seg[data-v-09b435c0],.gap[data-v-09b435c0]{font-size:12px;color:var(--muted)}.gap[data-v-09b435c0]{padding:6px 0}.error-panel[data-v-09b435c0]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-09b435c0]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-09b435c0]{margin:7px 0 14px;font-size:12px;color:var(--muted)}@media(max-width:1080px){.row[data-v-09b435c0]{grid-template-columns:minmax(180px,2fr) 1fr 1.2fr .8fr .8fr}.row[data-v-09b435c0]>:nth-child(6),.row[data-v-09b435c0]>:nth-child(7){display:none}}@media(max-width:720px){.filter[data-v-09b435c0],.search[data-v-09b435c0]{width:100%}.list-bar[data-v-09b435c0]{flex-direction:column}}.compact-summary[data-v-09b435c0]{display:flex;gap:12px;margin-bottom:14px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}.compact-summary b[data-v-09b435c0]{margin-left:3px;color:var(--text);font-family:var(--mono);font-weight:600}.agent-row[data-v-09b435c0]{display:flex;justify-content:flex-end;margin-top:16px}@media(max-width:639px){.thead[data-v-09b435c0]{display:none}.row.body-row[data-v-09b435c0]{grid-template-columns:1fr;gap:6px;margin-bottom:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#94c5d608}.body-row[data-v-09b435c0]>:nth-child(6),.body-row[data-v-09b435c0]>:nth-child(7){display:none}.body-row[data-v-09b435c0]>:nth-child(2):before{content:"主播:";color:var(--muted-2)}.body-row[data-v-09b435c0]>:nth-child(3):before{content:"时间:";color:var(--muted-2)}.body-row[data-v-09b435c0]>:nth-child(4):before{content:"时长:";color:var(--muted-2)}.body-row[data-v-09b435c0]>:nth-child(5):before{content:"大小:";color:var(--muted-2)}.cell-title[data-v-09b435c0]{flex-direction:column;align-items:flex-start;gap:2px}.pager[data-v-09b435c0]{justify-content:center}.detail-meta[data-v-09b435c0]{gap:8px}.segment[data-v-09b435c0]{flex-direction:column;align-items:stretch}.seg-actions[data-v-09b435c0]{justify-content:flex-end}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CIl2qHSI.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CIl2qHSI.js new file mode 100644 index 00000000..15149304 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CIl2qHSI.js @@ -0,0 +1 @@ +import{d as n,c as t,a as o,o as r}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-D751WEBC.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-D751WEBC.css new file mode 100644 index 00000000..91e1bc57 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-D751WEBC.css @@ -0,0 +1 @@ +.notice[data-v-a2d58258]{display:flex;align-items:center;gap:8px;margin-bottom:16px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#ffb0880d;color:var(--muted);font-size:12px;line-height:1.6}.relay-list[data-v-a2d58258]{display:flex;flex-direction:column;gap:10px}.relay-card[data-v-a2d58258]{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#1a1d27b8,#12141cdb)}.relay-card.active[data-v-a2d58258]{border-color:#34d39952;box-shadow:0 0 0 1px #34d3990d}.relay-main[data-v-a2d58258]{min-width:0;flex:1 1 340px;display:flex;flex-direction:column;gap:6px}.relay-title-row[data-v-a2d58258]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.relay-title[data-v-a2d58258]{font-size:14px;font-weight:650}.relay-since[data-v-a2d58258]{font-size:11px;color:var(--muted)}.relay-meta[data-v-a2d58258]{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:var(--muted)}.relay-created[data-v-a2d58258]{font-size:11.5px;color:var(--muted-2)}.target-list[data-v-a2d58258]{margin:2px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}.target-row[data-v-a2d58258]{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:12px}.target-host[data-v-a2d58258]{max-width:460px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.target-message[data-v-a2d58258]{color:#fcd34d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.target-stats[data-v-a2d58258]{flex:1 1 100%;padding-left:16px;font-size:11px;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.target-empty[data-v-a2d58258]{color:var(--muted-2)}.relay-message[data-v-a2d58258]{font-size:12px;color:#fcd34d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.relay-stats[data-v-a2d58258]{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;font-size:11.5px;color:var(--muted)}.stats-label[data-v-a2d58258]{flex:none;padding:1px 6px;border:1px solid var(--line);border-radius:5px;font-size:10px;color:var(--muted-2)}.relay-actions[data-v-a2d58258]{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex-shrink:0}.empty[data-v-a2d58258]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:60px 20px;border:1px dashed var(--line);border-radius:16px;text-align:center}.empty-title[data-v-a2d58258]{font-size:15px;font-weight:650}.empty-sub[data-v-a2d58258]{max-width:460px;font-size:12.5px;color:var(--muted);line-height:1.7}.modal-title[data-v-a2d58258]{font-size:16px;font-weight:700}.modal-sub[data-v-a2d58258]{margin-top:4px;font-size:12px;color:var(--muted)}.log-head[data-v-a2d58258]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.log-view[data-v-a2d58258]{margin:0;max-height:60vh;overflow:auto;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#08090db3;font-family:var(--mono);font-size:12px;line-height:1.6;color:var(--text);white-space:pre-wrap;word-break:break-all}.modal-foot[data-v-a2d58258]{display:flex;justify-content:flex-end;gap:10px}.target-editor[data-v-a2d58258]{display:flex;flex-direction:column;gap:8px;width:100%}.target-edit-row[data-v-a2d58258]{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.target-input[data-v-a2d58258]{flex:1 1 auto;min-width:0}.target-limit[data-v-a2d58258]{color:var(--warn)}.transcode-grid[data-v-a2d58258]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}.transcode-cell[data-v-a2d58258]{display:flex;flex-direction:column;gap:4px}.transcode-label[data-v-a2d58258]{font-size:11.5px;color:var(--muted)}.hint[data-v-a2d58258]{font-size:11.5px;color:var(--muted);line-height:1.6}@media(max-width:720px){.relay-card[data-v-a2d58258]{flex-direction:column;align-items:stretch}.relay-actions[data-v-a2d58258]{justify-content:flex-start}.target-host[data-v-a2d58258]{max-width:100%}.transcode-grid[data-v-a2d58258]{grid-template-columns:1fr}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-h5lf4-Vn.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-h5lf4-Vn.js new file mode 100644 index 00000000..0b0bb903 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-h5lf4-Vn.js @@ -0,0 +1 @@ +import{T as R,S as M}from"./Select-P9AqjsDB.js";import{I as re}from"./Input-DS3FhrY_.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-Bmcyfv7z.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as Ye,S as W}from"./Switch-C33rKL-M.js";import{u as Ze}from"./use-message-BaVpnNbE.js";import{A as ue,F as Ke,a as w}from"./AddOutline-DDWMaSa8.js";import{D as Qe,I as et}from"./DocumentTextOutline-BvVIG18e.js";import{d as tt}from"./streamers-D5Y-fBfU.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-CIl2qHSI.js";import{G as nt}from"./GitCompareOutline-4zZKl19q.js";import"./use-compitable-CSVBov8c.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ze(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ke),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-BOYIL3j0.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-BOYIL3j0.js new file mode 100644 index 00000000..4965fc29 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-BOYIL3j0.js @@ -0,0 +1 @@ +import{d as o,o as r,c as n,a as t}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-P9AqjsDB.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-P9AqjsDB.js new file mode 100644 index 00000000..e7482c77 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-P9AqjsDB.js @@ -0,0 +1,410 @@ +import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-BaVpnNbE.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b1 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,bd as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-Bmcyfv7z.js";import{u as Xt,S as ro}from"./Input-DS3FhrY_.js";import{u as At,a as lo}from"./use-compitable-CSVBov8c.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("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"}),ce("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"})],-1))})()}}),ao=V("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--n-font-size); +`,[D("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); + `,[fe("+",[D("description",` + margin-top: 8px; + `)])]),D("description",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),D("extra",` + text-align: center; + transition: color .3s var(--n-bezier); + margin-top: 12px; + color: var(--n-extra-text-color); + `)]);const so={...Ce.props,description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function};var co=ve({name:"Empty",props:so,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:o}=Ge(e),r=Ce("Empty","-empty",ao,En,e,t),{localeRef:a}=Xt("Empty"),i=E(()=>e.description??o?.value?.Empty?.description),l=E(()=>o?.value?.Empty?.renderIcon||(()=>(u(),Z(io)))),f=E(()=>{const{size:v}=e,{common:{cubicBezierEaseInOut:h},self:{[re("iconSize",v)]:F,[re("fontSize",v)]:z,textColor:C,iconColor:w,extraTextColor:I}}=r.value;return{"--n-icon-size":F,"--n-font-size":z,"--n-bezier":h,"--n-text-color":C,"--n-icon-color":w,"--n-extra-text-color":I}}),c=n?qe("empty",E(()=>{let v="";const{size:h}=e;return v+=h[0],v}),f,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:E(()=>i.value||a.value.description),cssVars:n?void 0:f,themeClass:c?.themeClass,onRender:c?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n?.(),u(),k("div",{class:M([`${t}-empty`,this.themeClass]),style:Ne(this.cssVars)},[this.showIcon?(u(),k("div",{key:0,class:M(`${t}-empty__icon`)},[e.icon?(u(),k(ae,{key:0},[T(()=>e.icon())],64)):(u(),Z(Ut,{key:1,clsPrefix:t},{default:this.mergedRenderIcon},1032,["clsPrefix"]))],2)):T(()=>null),this.showDescription?(u(),k("div",{key:2,class:M(`${t}-empty__description`)},[e.default?(u(),k(ae,{key:0},[T(()=>e.default())],64)):(u(),k(ae,{key:1},[T(()=>this.localizedDescription)],64))],2)):T(()=>null),e.extra?(u(),k("div",{key:4,class:M(`${t}-empty__extra`)},[T(()=>e.extra())],2)):T(()=>null)],6)}});function Et(e){return e&-e}class Qt{constructor(t,n){this.l=t,this.min=n;const o=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let a=t*o;for(;t>0;)a+=n[t],t-=Et(t);return a}getBound(t){let n=0,o=this.l;for(;o>n;){const r=Math.floor((n+o)/2),a=this.sum(r);if(a>t){o=r;continue}else if(a"u"?!1:(ot===void 0&&("matchMedia"in window?ot=window.matchMedia("(pointer:coarse)").matches:ot=!1),ot)}let pt;function $t(){return typeof document>"u"?1:(pt===void 0&&(pt="chrome"in window?window.devicePixelRatio:1),pt)}const Jt="VVirtualListXScroll";function fo({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){const o=A(0),r=A(0),a=E(()=>{const c=e.value;if(c.length===0)return null;const v=new Qt(c.length,0);return c.forEach((h,F)=>{v.add(F,h.width)}),v}),i=Be(()=>{const c=a.value;return c!==null?Math.max(c.getBound(r.value)-1,0):0}),l=c=>{const v=a.value;return v!==null?v.sum(c):0},f=Be(()=>{const c=a.value;return c!==null?Math.min(c.getBound(r.value+o.value)+1,e.value.length-1):0});return lt(Jt,{startIndexRef:i,endIndexRef:f,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:l}),{listWidthRef:o,scrollLeftRef:r}}const Lt=ve({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:o,renderColRef:r,renderItemWithColsRef:a}=Ft(Jt);return{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:a,getLeft:o}},render(){const{startIndex:e,endIndex:t,columns:n,renderCol:o,renderItemWithCols:r,getLeft:a,item:i}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:i,getLeft:a});if(o!=null){const l=[];for(let f=e;f<=t;++f){const c=n[f];l.push(o({column:c,left:a(f),item:i}))}return l}return null}}),ho=rt(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[rt("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[rt("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),vo=ve({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=Gt();ho.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:jt,ssr:t}),Ye(()=>{const{defaultScrollIndex:p,defaultScrollKey:x}=e;p!=null?I({index:p}):x!=null&&I({key:x})});let n=!1,o=!1;$n(()=>{if(n=!1,!o){o=!0;return}I({top:z.value,left:i.value})}),Ln(()=>{n=!0,o||(o=!0)});const r=Be(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let p=0;return e.columns.forEach(x=>{p+=x.width}),p}),a=E(()=>{const p=new Map,{keyField:x}=e;return e.items.forEach((K,L)=>{p.set(K[x],L)}),p}),{scrollLeftRef:i,listWidthRef:l}=fo({columnsRef:ie(e,"columns"),renderColRef:ie(e,"renderCol"),renderItemWithColsRef:ie(e,"renderItemWithCols")}),f=A(null),c=A(void 0),v=new Map,h=E(()=>{const{items:p,itemSize:x,keyField:K}=e,L=new Qt(p.length,x);return p.forEach((ee,Q)=>{const U=ee[K],ne=v.get(U);ne!==void 0&&L.add(Q,ne)}),L}),F=A(0),z=A(0),C=Be(()=>Math.max(h.value.getBound(z.value-St(e.paddingTop))-1,0)),w=E(()=>{const{value:p}=c;if(p===void 0)return[];const{items:x,itemSize:K}=e,L=C.value,ee=Math.min(L+Math.ceil(p/K+1),x.length-1),Q=[];for(let U=L;U<=ee;++U)Q.push(x[U]);return Q}),I=(p,x)=>{if(typeof p=="number"){b(p,x,"auto");return}const{left:K,top:L,index:ee,key:Q,position:U,behavior:ne,debounce:Y=!0}=p;if(K!==void 0||L!==void 0)b(K,L,ne);else if(ee!==void 0)P(ee,ne,Y);else if(Q!==void 0){const he=a.value.get(Q);he!==void 0&&P(he,ne,Y)}else U==="bottom"?b(0,Number.MAX_SAFE_INTEGER,ne):U==="top"&&b(0,0,ne)};let S,R=null;function P(p,x,K){const L=f.value;if(L==null)return;const{value:ee}=h,Q=ee.sum(p)+St(e.paddingTop);if(!K)L.scrollTo({left:0,top:Q,behavior:x});else{S=p,R!==null&&window.clearTimeout(R),R=window.setTimeout(()=>{S=void 0,R=null},16);const{scrollTop:U,offsetHeight:ne}=L;if(Q>U){const Y=ee.get(p);Q+Y<=U+ne||L.scrollTo({left:0,top:Q+Y-ne,behavior:x})}else L.scrollTo({left:0,top:Q,behavior:x})}}function b(p,x,K){const L=f.value;L?.scrollTo({left:p,top:x,behavior:K})}function m(p,x){var K,L,ee;if(n||e.ignoreItemResize||X(x.target))return;const{value:Q}=h,U=a.value.get(p),ne=Q.get(U),Y=(ee=(L=(K=x.borderBoxSize)===null||K===void 0?void 0:K[0])===null||L===void 0?void 0:L.blockSize)!==null&&ee!==void 0?ee:x.contentRect.height;if(Y===ne)return;Y-e.itemSize===0?v.delete(p):v.set(p,Y-e.itemSize);const de=Y-ne;if(de===0)return;Q.add(U,de);const g=f.value;if(g!=null){if(S===void 0){const $=Q.sum(U);g.scrollTop>$&&g.scrollBy(0,de)}else if(Ug.scrollTop+g.offsetHeight&&g.scrollBy(0,de)}oe()}F.value++}const O=!uo();let W=!1;function j(p){var x;(x=e.onScroll)===null||x===void 0||x.call(e,p),(!O||!W)&&oe()}function te(p){var x;if((x=e.onWheel)===null||x===void 0||x.call(e,p),O){const K=f.value;if(K!=null){if(p.deltaX===0&&(K.scrollTop===0&&p.deltaY<=0||K.scrollTop+K.offsetHeight>=K.scrollHeight&&p.deltaY>=0))return;p.preventDefault(),K.scrollTop+=p.deltaY/$t(),K.scrollLeft+=p.deltaX/$t(),oe(),W=!0,On(()=>{W=!1})}}}function H(p){if(n||X(p.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(p.contentRect.height===c.value)return}else if(p.contentRect.height===c.value&&p.contentRect.width===l.value)return;c.value=p.contentRect.height,l.value=p.contentRect.width;const{onResize:x}=e;x!==void 0&&x(p)}function oe(){const{value:p}=f;p!=null&&(z.value=p.scrollTop,i.value=p.scrollLeft)}function X(p){let x=p;for(;x!==null;){if(x.style.display==="none")return!0;x=x.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:a,itemsStyle:E(()=>{const{itemResizable:p}=e,x=je(h.value.sum());return F.value,[e.itemsStyle,{boxSizing:"content-box",width:je(r.value),height:p?"":x,minHeight:p?x:"",paddingTop:je(e.paddingTop),paddingBottom:je(e.paddingBottom)}]}),visibleItemsStyle:E(()=>(F.value,{transform:`translateY(${je(h.value.sum(C.value))})`})),viewportItems:w,listElRef:f,itemsElRef:A(null),scrollTo:I,handleListResize:H,handleListScroll:j,handleListWheel:te,handleItemResize:m}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return we(It,{onResize:this.handleListResize},{default:()=>{var r,a;return we("div",ze(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?we("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[we(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:i,renderItemWithCols:l}=this;return this.viewportItems.map(f=>{const c=f[t],v=n.get(c),h=i!=null?we(Lt,{index:v,item:f}):void 0,F=l!=null?we(Lt,{index:v,item:f}):void 0,z=this.$slots.default({item:f,renderedCols:h,renderedItemWithCols:F,index:v})[0];return e?we(It,{key:c,onResize:C=>this.handleItemResize(c,C)},{default:()=>z}):(z.key=c,z)})}})]):(a=(r=this.$slots).empty)===null||a===void 0?void 0:a.call(r)])}})}}),ke="v-hidden",go=rt("[v-hidden]",{display:"none!important"}),Nt=ve({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=A(null),o=A(null);function r(i){const{value:l}=n,{getCounter:f,getTail:c}=e;let v;if(f!==void 0?v=f():v=o.value,!l||!v)return;v.hasAttribute(ke)&&v.removeAttribute(ke);const{children:h}=l;if(i.showAllItemsBeforeCalculate)for(const P of h)P.hasAttribute(ke)&&P.removeAttribute(ke);const F=l.offsetWidth,z=[],C=t.tail?c?.():null;let w=C?C.offsetWidth:0,I=!1;const S=l.children.length-(t.tail?1:0);for(let P=0;PF){const{updateCounter:O}=e;for(let W=P;W>=0;--W){const j=S-1-W;O!==void 0?O(j):v.textContent=`${j}`;const te=v.offsetWidth;if(w-=z[W],w+te<=F||W===0){I=!0,P=W-1,C&&(P===-1?(C.style.maxWidth=`${F-te}px`,C.style.boxSizing="border-box"):C.style.maxWidth="");const{onUpdateCount:H}=e;H&&H(j);break}}}}const{onUpdateOverflow:R}=e;I?R!==void 0&&R(!0):(R!==void 0&&R(!1),v.setAttribute(ke,""))}const a=Gt();return go.mount({id:"vueuc/overflow",head:!0,anchorMetaName:jt,ssr:a}),Ye(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:o,sync:r}},render(){const{$slots:e}=this;return Pt(()=>this.sync({showAllItemsBeforeCalculate:!1})),we("div",{class:"v-overflow",ref:"selfRef"},[Nn(e,"default"),e.counter?e.counter():we("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});var bo={color:Object,type:{type:String,default:"default"},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},po=V("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); +`,[le("strong",` + font-weight: var(--n-font-weight-strong); + `),D("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); + `),D("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); + `),D("avatar",` + display: flex; + margin: 0 6px 0 0; + `),D("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),le("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[D("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),D("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),le("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),le("icon, avatar",[le("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),le("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),le("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[Ie("disabled",[fe("&:hover","background-color: var(--n-color-hover-checkable);",[Ie("checked","color: var(--n-text-color-hover-checkable);")]),fe("&:active","background-color: var(--n-color-pressed-checkable);",[Ie("checked","color: var(--n-text-color-pressed-checkable);")])]),le("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[Ie("disabled",[fe("&:hover","background-color: var(--n-color-checked-hover);"),fe("&:active","background-color: var(--n-color-checked-pressed);")])])])]);const mo=["onClick","onMouseenter","onMouseleave"],yo={...Ce.props,...bo,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},wo=Vn("n-tag");var mt=ve({name:"Tag",props:yo,slots:Object,setup(e){const t=A(null),{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:a,mergedComponentPropsRef:i}=Ge(e),l=E(()=>e.size||i?.value?.Tag?.size||"medium"),f=Ce("Tag","-tag",po,Kn,e,o);lt(wo,{roundRef:ie(e,"round")});function c(){if(!e.disabled&&e.checkable){const{checked:w,onCheckedChange:I,onUpdateChecked:S,"onUpdate:checked":R}=e;S&&S(!w),R&&R(!w),I&&I(!w)}}function v(w){if(e.triggerClickOnClose||w.stopPropagation(),!e.disabled){const{onClose:I}=e;I&&pe(I,w)}}const h={setTextContent(w){const{value:I}=t;I&&(I.textContent=w)}},F=Ot("Tag",a,o),z=E(()=>{const{type:w,color:{color:I,textColor:S}={}}=e,R=l.value,{common:{cubicBezierEaseInOut:P},self:{padding:b,closeMargin:m,borderRadius:O,opacityDisabled:W,textColorCheckable:j,textColorHoverCheckable:te,textColorPressedCheckable:H,textColorChecked:oe,colorCheckable:X,colorHoverCheckable:p,colorPressedCheckable:x,colorChecked:K,colorCheckedHover:L,colorCheckedPressed:ee,closeBorderRadius:Q,fontWeightStrong:U,[re("colorBordered",w)]:ne,[re("closeSize",R)]:Y,[re("closeIconSize",R)]:he,[re("fontSize",R)]:de,[re("height",R)]:g,[re("color",w)]:$,[re("textColor",w)]:ge,[re("border",w)]:Se,[re("closeIconColor",w)]:xe,[re("closeIconColorHover",w)]:be,[re("closeIconColorPressed",w)]:ue,[re("closeColorHover",w)]:Re,[re("closeColorPressed",w)]:me}}=f.value,ye=Le(m);return{"--n-font-weight-strong":U,"--n-avatar-size-override":`calc(${g} - 8px)`,"--n-bezier":P,"--n-border-radius":O,"--n-border":Se,"--n-close-icon-size":he,"--n-close-color-pressed":me,"--n-close-color-hover":Re,"--n-close-border-radius":Q,"--n-close-icon-color":xe,"--n-close-icon-color-hover":be,"--n-close-icon-color-pressed":ue,"--n-close-icon-color-disabled":xe,"--n-close-margin-top":ye.top,"--n-close-margin-right":ye.right,"--n-close-margin-bottom":ye.bottom,"--n-close-margin-left":ye.left,"--n-close-size":Y,"--n-color":I||(n.value?ne:$),"--n-color-checkable":X,"--n-color-checked":K,"--n-color-checked-hover":L,"--n-color-checked-pressed":ee,"--n-color-hover-checkable":p,"--n-color-pressed-checkable":x,"--n-font-size":de,"--n-height":g,"--n-opacity-disabled":W,"--n-padding":b,"--n-text-color":S||ge,"--n-text-color-checkable":j,"--n-text-color-checked":oe,"--n-text-color-hover-checkable":te,"--n-text-color-pressed-checkable":H}}),C=r?qe("tag",E(()=>{let w="";const{type:I,color:{color:S,textColor:R}={}}=e;return w+=I[0],w+=l.value[0],S&&(w+=`a${Bt(S)}`),R&&(w+=`b${Bt(R)}`),n.value&&(w+="c"),w}),z,e):void 0;return{...h,rtlEnabled:F,mergedClsPrefix:o,contentRef:t,mergedBordered:n,handleClick:c,handleCloseClick:v,cssVars:r?void 0:z,themeClass:C?.themeClass,onRender:C?.onRender}},render(){const{mergedClsPrefix:e,rtlEnabled:t,closable:n,color:{borderColor:o}={},round:r,onRender:a,$slots:i}=this;a?.();const l=it(i.avatar,c=>c&&(u(),k("div",{class:M(`${e}-tag__avatar`)},[T(()=>c)],2))),f=it(i.icon,c=>c&&(u(),k("div",{class:M(`${e}-tag__icon`)},[T(()=>c)],2)));return u(),k("div",{class:M([`${e}-tag`,this.themeClass,{[`${e}-tag--rtl`]:t,[`${e}-tag--strong`]:this.strong,[`${e}-tag--disabled`]:this.disabled,[`${e}-tag--checkable`]:this.checkable,[`${e}-tag--checked`]:this.checkable&&this.checked,[`${e}-tag--round`]:r,[`${e}-tag--avatar`]:l,[`${e}-tag--icon`]:f,[`${e}-tag--closable`]:n}]),style:Ne(this.cssVars),onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},[T(()=>f||l),ce("span",{class:M(`${e}-tag__content`),ref:"contentRef"},[T(()=>this.$slots.default?.())],2),!this.checkable&&n?(u(),Z(Dn,{key:0,clsPrefix:e,class:M(`${e}-tag__close`),disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:r,isButtonTag:this.internalCloseIsButtonTag,absolute:!0},null,8,["clsPrefix","class","disabled","onClick","focusable","round","isButtonTag"])):T(()=>null),!this.checkable&&this.mergedBordered?(u(),k("div",{key:2,class:M(`${e}-tag__border`),style:Ne({borderColor:o})},null,6)):T(()=>null)],46,mo)}});function Dt(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function en(e,t){t&&(Ye(()=>{const{value:n}=e;n&>.registerHandler(n,t)}),_e(e,(n,o)=>{o&>.unregisterHandler(o)},{deep:!1}),qt(()=>{const{value:n}=e;n&>.unregisterHandler(n)}))}var Co=ve({props:{onFocus:Function,onBlur:Function},setup(e){return()=>(()=>{const t=zt("d16ead82505dc285");return u(),k("div",{style:"width: 0; height: 0",tabindex:0,onFocus:t[0]||(t[0]=n=>e.onFocus?.(n)),onBlur:t[1]||(t[1]=n=>e.onBlur?.(n))},null,32)})()}}),xo=Co,Kt=ve({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:o}=Ft(Tt);return{labelField:n,nodeProps:o,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:o,tmNode:{rawNode:r}}=this,a=o?.(r),i=t?t(r,!1):$e(r[this.labelField],r,!1),l=(u(),k("div",ze(a,{class:[`${e}-base-select-group-header`,a?.class]}),[T(()=>i)],16));return r.render?r.render({node:l,option:r}):n?n({node:l,option:r,selected:!1}):l}}),ko=ve({name:"Checkmark",render(){return(()=>{const e=zt("3c84eac8ae4e1f96");return e[0]||(e[0]=ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},[ce("g",{fill:"none"},[ce("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"})])],-1))})()}});const So=["onClick","onMouseenter","onMousemove"];function Ro(e,t){return u(),Z(Yt,{name:"fade-in-scale-up-transition"},{default:()=>e?(u(),Z(Ut,{key:1,clsPrefix:t,class:M(`${t}-base-select-option__check`)},{default:()=>we(ko)},1032,["clsPrefix","class"])):null},1024)}var Vt=ve({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:o,valueSetRef:r,renderLabelRef:a,renderOptionRef:i,labelFieldRef:l,valueFieldRef:f,showCheckmarkRef:c,nodePropsRef:v,handleOptionClick:h,handleOptionMouseEnter:F}=Ft(Tt),z=Be(()=>{const{value:S}=n;return S?e.tmNode.key===S.key:!1});function C(S){const{tmNode:R}=e;R.disabled||h(S,R)}function w(S){const{tmNode:R}=e;R.disabled||F(S,R)}function I(S){const{tmNode:R}=e,{value:P}=z;R.disabled||P||F(S,R)}return{multiple:o,isGrouped:Be(()=>{const{tmNode:S}=e,{parent:R}=S;return R&&R.rawNode.type==="group"}),showCheckmark:c,nodeProps:v,isPending:z,isSelected:Be(()=>{const{value:S}=t,{value:R}=o;if(S===null)return!1;const P=e.tmNode.rawNode[f.value];if(R){const{value:b}=r;return b.has(P)}else return S===P}),labelField:l,renderLabel:a,renderOption:i,handleMouseMove:I,handleMouseEnter:w,handleClick:C}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:o,isGrouped:r,showCheckmark:a,nodeProps:i,renderOption:l,renderLabel:f,handleClick:c,handleMouseEnter:v,handleMouseMove:h}=this,F=Ro(n,e),z=f?[f(t,n),a&&F]:[$e(t[this.labelField],t,n),a&&F],C=i?.(t),w=(u(),k("div",ze(C,{class:[`${e}-base-select-option`,t.class,C?.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:a}],style:[C?.style||"",t.style||""],onClick:bt([c,C?.onClick]),onMouseenter:bt([v,C?.onMouseenter]),onMousemove:bt([h,C?.onMousemove])}),[ce("div",{class:M(`${e}-base-select-option__content`)},[T(()=>z)],2)],16,So));return t.render?t.render({node:w,option:t,selected:n}):l?l({node:w,option:t,selected:n}):w}}),To=V("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); +`,[V("scrollbar",` + max-height: var(--n-height); + `),V("virtual-list",` + max-height: var(--n-height); + `),V("base-select-option",` + min-height: var(--n-option-height); + font-size: var(--n-option-font-size); + display: flex; + align-items: center; + `,[D("content",` + z-index: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + `)]),V("base-select-group-header",` + min-height: var(--n-option-height); + font-size: .93em; + display: flex; + align-items: center; + `),V("base-select-menu-option-wrapper",` + position: relative; + width: 100%; + `),D("loading, empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),D("loading",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + `),D("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); + `),D("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); + `),V("base-select-group-header",` + position: relative; + cursor: default; + padding: var(--n-option-padding); + color: var(--n-group-header-text-color); + `),V("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; + `,[le("show-checkmark",` + padding-right: calc(var(--n-option-padding-right) + 20px); + `),fe("&::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); + `),fe("&:active",` + color: var(--n-option-text-color-pressed); + `),le("grouped",` + padding-left: calc(var(--n-option-padding-left) * 1.5); + `),le("pending",[fe("&::before",` + background-color: var(--n-option-color-pending); + `)]),le("selected",` + color: var(--n-option-text-color-active); + `,[fe("&::before",` + background-color: var(--n-option-color-active); + `),le("pending",[fe("&::before",` + background-color: var(--n-option-color-active-pending); + `)])]),le("disabled",` + cursor: not-allowed; + `,[Ie("selected",` + color: var(--n-option-text-color-disabled); + `),le("selected",` + opacity: var(--n-option-opacity-disabled); + `)]),D("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); + `,[Zt({enterScale:"0.5"})])])]);function Wt(e){return Array.isArray(e)?e:[e]}const Rt={STOP:"STOP"};function tn(e,t){const n=t(e);e.children!==void 0&&n!==Rt.STOP&&e.children.forEach(o=>tn(o,t))}function zo(e,t={}){const{preserveGroup:n=!1}=t,o=[],r=n?i=>{i.isLeaf||(o.push(i.key),a(i.children))}:i=>{i.isLeaf||(i.isGroup||o.push(i.key),a(i.children))};function a(i){i.forEach(r)}return a(e),o}function Fo(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function Po(e){return e.children}function Oo(e){return e.key}function Mo(){return!1}function Io(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function Bo(e){return e.disabled===!0}function _o(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function yt(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function wt(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Ao(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)||n.add(o)}),Array.from(n)}function Eo(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)&&n.delete(o)}),Array.from(n)}function $o(e){return e?.type==="group"}function Lo(e){const t=new Map;return e.forEach((n,o)=>{t.set(n.key,o)}),n=>{var o;return(o=t.get(n))!==null&&o!==void 0?o:null}}class No extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Do(e,t,n,o){return at(t.concat(e),n,o,!1)}function Ko(e,t){const n=new Set;return e.forEach(o=>{const r=t.treeNodeMap.get(o);if(r!==void 0){let a=r.parent;for(;a!==null&&!(a.disabled||n.has(a.key));)n.add(a.key),a=a.parent}}),n}function Vo(e,t,n,o){const r=at(t,n,o,!1),a=at(e,n,o,!0),i=Ko(e,n),l=[];return r.forEach(f=>{(a.has(f)||i.has(f))&&l.push(f)}),l.forEach(f=>r.delete(f)),r}function Ct(e,t){const{checkedKeys:n,keysToCheck:o,keysToUncheck:r,indeterminateKeys:a,cascade:i,leafOnly:l,checkStrategy:f,allowNotLoaded:c}=e;if(!i)return o!==void 0?{checkedKeys:Ao(n,o),indeterminateKeys:Array.from(a)}:r!==void 0?{checkedKeys:Eo(n,r),indeterminateKeys:Array.from(a)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)};const{levelTreeNodeMap:v}=t;let h;r!==void 0?h=Vo(r,n,t,c):o!==void 0?h=Do(o,n,t,c):h=at(n,t,c,!1);const F=f==="parent",z=f==="child"||l,C=h,w=new Set,I=Math.max.apply(null,Array.from(v.keys()));for(let S=I;S>=0;S-=1){const R=S===0,P=v.get(S);for(const b of P){if(b.isLeaf)continue;const{key:m,shallowLoaded:O}=b;if(z&&O&&b.children.forEach(H=>{!H.disabled&&!H.isLeaf&&H.shallowLoaded&&C.has(H.key)&&C.delete(H.key)}),b.disabled||!O)continue;let W=!0,j=!1,te=!0;for(const H of b.children){const oe=H.key;if(!H.disabled){if(te&&(te=!1),C.has(oe))j=!0;else if(w.has(oe)){j=!0,W=!1;break}else if(W=!1,j)break}}W&&!te?(F&&b.children.forEach(H=>{!H.disabled&&C.has(H.key)&&C.delete(H.key)}),C.add(m)):j&&w.add(m),R&&z&&C.has(m)&&C.delete(m)}}return{checkedKeys:Array.from(C),indeterminateKeys:Array.from(w)}}function at(e,t,n,o){const{treeNodeMap:r,getChildren:a}=t,i=new Set,l=new Set(e);return e.forEach(f=>{const c=r.get(f);c!==void 0&&tn(c,v=>{if(v.disabled)return Rt.STOP;const{key:h}=v;if(!i.has(h)&&(i.add(h),l.add(h),_o(v.rawNode,a))){if(o)return Rt.STOP;if(!n)throw new No}})}),l}function Wo(e,{includeGroup:t=!1,includeSelf:n=!0},o){var r;const a=o.treeNodeMap;let i=e==null?null:(r=a.get(e))!==null&&r!==void 0?r:null;const l={keyPath:[],treeNodePath:[],treeNode:i};if(i?.ignored)return l.treeNode=null,l;for(;i;)!i.ignored&&(t||!i.isGroup)&&l.treeNodePath.push(i),i=i.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(f=>f.key),l}function Ho(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function jo(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r+1)%o]:r===n.length-1?null:n[r+1]}function Ht(e,t,{loop:n=!1,includeDisabled:o=!1}={}){const r=t==="prev"?Uo:jo,a={reverse:t==="prev"};let i=!1,l=null;function f(c){if(c!==null){if(c===e){if(!i)i=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const v=Mt(c,a);v!==null?l=v:f(r(c,n))}else{const v=r(c,!1);if(v!==null)f(v);else{const h=Go(c);h?.isGroup?f(r(h,n)):n&&f(r(c,!0))}}}}return f(e),l}function Uo(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r-1+o)%o]:r===0?null:n[r-1]}function Go(e){return e.parent}function Mt(e,t={}){const{reverse:n=!1}=t,{children:o}=e;if(o){const{length:r}=o,a=n?r-1:0,i=n?-1:r,l=n?-1:1;for(let f=a;f!==i;f+=l){const c=o[f];if(!c.disabled&&!c.ignored)if(c.isGroup){const v=Mt(c,t);if(v!==null)return v}else return c}}return null}const qo={getChild(){return this.ignored?null:Mt(this)},getParent(){const{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Ht(this,"next",e)},getPrev(e={}){return Ht(this,"prev",e)}};function Yo(e,t){const n=t?new Set(t):void 0,o=[];function r(a){a.forEach(i=>{o.push(i),!(i.isLeaf||!i.children||i.ignored)&&(i.isGroup||n===void 0||n.has(i.key))&&r(i.children)})}return r(e),o}function Zo(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function nn(e,t,n,o,r,a=null,i=0){const l=[];return e.forEach((f,c)=>{var v;const h=Object.create(o);if(h.rawNode=f,h.siblings=l,h.level=i,h.index=c,h.isFirstChild=c===0,h.isLastChild=c+1===e.length,h.parent=a,!h.ignored){const F=r(f);Array.isArray(F)&&(h.children=nn(F,t,n,o,r,h,i+1))}l.push(h),t.set(h.key,h),n.has(i)||n.set(i,[]),(v=n.get(i))===null||v===void 0||v.push(h)}),l}function Xo(e,t={}){var n;const o=new Map,r=new Map,{getDisabled:a=Bo,getIgnored:i=Mo,getIsGroup:l=$o,getKey:f=Oo}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:Po,v=t.ignoreEmptyChildren?b=>{const m=c(b);return Array.isArray(m)?m.length?m:null:m}:c,h=Object.assign({get key(){return f(this.rawNode)},get disabled(){return a(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return Fo(this.rawNode,v)},get shallowLoaded(){return Io(this.rawNode,v)},get ignored(){return i(this.rawNode)},contains(b){return Zo(this,b)}},qo),F=nn(e,o,r,h,v);function z(b){if(b==null)return null;const m=o.get(b);return m&&!m.isGroup&&!m.ignored?m:null}function C(b){if(b==null)return null;const m=o.get(b);return m&&!m.ignored?m:null}function w(b,m){const O=C(b);return O?O.getPrev(m):null}function I(b,m){const O=C(b);return O?O.getNext(m):null}function S(b){const m=C(b);return m?m.getParent():null}function R(b){const m=C(b);return m?m.getChild():null}const P={treeNodes:F,treeNodeMap:o,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:v,getFlattenedNodes(b){return Yo(F,b)},getNode:z,getPrev:w,getNext:I,getParent:S,getChild:R,getFirstAvailableNode(){return Ho(F)},getPath(b,m={}){return Wo(b,m,P)},getCheckedKeys(b,m={}){const{cascade:O=!0,leafOnly:W=!1,checkStrategy:j="all",allowNotLoaded:te=!1}=m;return Ct({checkedKeys:yt(b),indeterminateKeys:wt(b),cascade:O,leafOnly:W,checkStrategy:j,allowNotLoaded:te},P)},check(b,m,O={}){const{cascade:W=!0,leafOnly:j=!1,checkStrategy:te="all",allowNotLoaded:H=!1}=O;return Ct({checkedKeys:yt(m),indeterminateKeys:wt(m),keysToCheck:b==null?[]:Wt(b),cascade:W,leafOnly:j,checkStrategy:te,allowNotLoaded:H},P)},uncheck(b,m,O={}){const{cascade:W=!0,leafOnly:j=!1,checkStrategy:te="all",allowNotLoaded:H=!1}=O;return Ct({checkedKeys:yt(m),indeterminateKeys:wt(m),keysToUncheck:b==null?[]:Wt(b),cascade:W,leafOnly:j,checkStrategy:te,allowNotLoaded:H},P)},getNonLeafKeys(b={}){return zo(F,b)}};return P}const Qo=["tabindex","onFocusin","onFocusout","onKeyup","onKeydown","onMousedown","onMouseenter","onMouseleave"];var Jo=ve({name:"InternalSelectMenu",props:{...Ce.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,scrollbarProps:Object,onToggle:Function},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:o}=Ge(e),r=Ot("InternalSelectMenu",n,t),a=Ce("InternalSelectMenu","-internal-select-menu",To,Un,e,ie(e,"clsPrefix")),i=A(null),l=A(null),f=A(null),c=E(()=>e.treeMate.getFlattenedNodes()),v=E(()=>Lo(c.value)),h=A(null);function F(){const{treeMate:g}=e;let $=null;const{value:ge}=e;ge===null?$=g.getFirstAvailableNode():(e.multiple?$=g.getNode((ge||[])[(ge||[]).length-1]):$=g.getNode(ge),(!$||$.disabled)&&($=g.getFirstAvailableNode())),L($||null)}function z(){const{value:g}=h;g&&!e.treeMate.getNode(g.key)&&(h.value=null)}let C;_e(()=>e.show,g=>{g?C=_e(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?F():z(),Pt(ee)):z()},{immediate:!0}):C?.()},{immediate:!0}),qt(()=>{C?.()});const w=E(()=>St(a.value.self[re("optionHeight",e.size)])),I=E(()=>Le(a.value.self[re("padding",e.size)])),S=E(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),R=E(()=>{const g=c.value;return g&&g.length===0}),P=E(()=>o?.value?.Select?.renderEmpty);function b(g){const{onToggle:$}=e;$&&$(g)}function m(g){const{onScroll:$}=e;$&&$(g)}function O(g){f.value?.sync(),m(g)}function W(){f.value?.sync()}function j(){const{value:g}=h;return g||null}function te(g,$){$.disabled||L($,!1)}function H(g,$){$.disabled||b($)}function oe(g){Ue(g,"action")||e.onKeyup?.(g)}function X(g){Ue(g,"action")||e.onKeydown?.(g)}function p(g){e.onMousedown?.(g),!e.focusable&&g.preventDefault()}function x(){const{value:g}=h;g&&L(g.getNext({loop:!0}),!0)}function K(){const{value:g}=h;g&&L(g.getPrev({loop:!0}),!0)}function L(g,$=!1){h.value=g,$&&ee()}function ee(){const g=h.value;if(!g)return;const $=v.value(g.key);$!==null&&(e.virtualScroll?l.value?.scrollTo({index:$}):f.value?.scrollTo({index:$,elSize:w.value}))}function Q(g){i.value?.contains(g.target)&&e.onFocus?.(g)}function U(g){i.value?.contains(g.relatedTarget)||e.onBlur?.(g)}lt(Tt,{handleOptionMouseEnter:te,handleOptionClick:H,valueSetRef:S,pendingTmNodeRef:h,nodePropsRef:ie(e,"nodeProps"),showCheckmarkRef:ie(e,"showCheckmark"),multipleRef:ie(e,"multiple"),valueRef:ie(e,"value"),renderLabelRef:ie(e,"renderLabel"),renderOptionRef:ie(e,"renderOption"),labelFieldRef:ie(e,"labelField"),valueFieldRef:ie(e,"valueField")}),lt(Mn,i),Ye(()=>{const{value:g}=f;g&&g.sync()});const ne=E(()=>{const{size:g}=e,{common:{cubicBezierEaseInOut:$},self:{height:ge,borderRadius:Se,color:xe,groupHeaderTextColor:be,actionDividerColor:ue,optionTextColorPressed:Re,optionTextColor:me,optionTextColorDisabled:ye,optionTextColorActive:De,optionOpacityDisabled:Ke,optionCheckColor:Fe,actionTextColor:Pe,optionColorPending:Ve,optionColorActive:We,loadingColor:He,loadingSize:Ae,optionColorActivePending:Ee,[re("optionFontSize",g)]:Oe,[re("optionHeight",g)]:d,[re("optionPadding",g)]:N}}=a.value;return{"--n-height":ge,"--n-action-divider-color":ue,"--n-action-text-color":Pe,"--n-bezier":$,"--n-border-radius":Se,"--n-color":xe,"--n-option-font-size":Oe,"--n-group-header-text-color":be,"--n-option-check-color":Fe,"--n-option-color-pending":Ve,"--n-option-color-active":We,"--n-option-color-active-pending":Ee,"--n-option-height":d,"--n-option-opacity-disabled":Ke,"--n-option-text-color":me,"--n-option-text-color-active":De,"--n-option-text-color-disabled":ye,"--n-option-text-color-pressed":Re,"--n-option-padding":N,"--n-option-padding-left":Le(N,"left"),"--n-option-padding-right":Le(N,"right"),"--n-loading-color":He,"--n-loading-size":Ae}}),{inlineThemeDisabled:Y}=e,he=Y?qe("internal-select-menu",E(()=>e.size[0]),ne,e):void 0,de={selfRef:i,next:x,prev:K,getPendingTmNode:j};return en(i,e.onResize),{mergedTheme:a,mergedClsPrefix:t,rtlEnabled:r,virtualListRef:l,scrollbarRef:f,itemSize:w,padding:I,flattenedNodes:c,empty:R,mergedRenderEmpty:P,virtualListContainer(){const{value:g}=l;return g?.listElRef},virtualListContent(){const{value:g}=l;return g?.itemsElRef},doScroll:m,handleFocusin:Q,handleFocusout:U,handleKeyUp:oe,handleKeyDown:X,handleMouseDown:p,handleVirtualListResize:W,handleVirtualListScroll:O,cssVars:Y?void 0:ne,themeClass:he?.themeClass,onRender:he?.onRender,...de}},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:o,themeClass:r,onRender:a}=this;return a?.(),u(),k("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:M([`${n}-base-select-menu`,`${n}-base-select-menu--${this.size}-size`,this.rtlEnabled&&`${n}-base-select-menu--rtl`,r,this.multiple&&`${n}-base-select-menu--multiple`]),style:Ne(this.cssVars),onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},[T(()=>it(e.header,i=>i&&(u(),k("div",{class:M(`${n}-base-select-menu__header`),"data-header":!0,key:"header"},[T(()=>i)],2)))),this.loading?(u(),k("div",{key:0,class:M(`${n}-base-select-menu__loading`)},[(u(),Z(Wn,{clsPrefix:n,strokeWidth:20},null,8,["clsPrefix"]))],2)):(u(),k(ae,{key:1},[this.empty?(u(),k("div",{key:1,class:M(`${n}-base-select-menu__empty`),"data-empty":!0},[T(()=>jn(e.empty,()=>[this.mergedRenderEmpty?.()||(u(),Z(co,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty,size:this.size},null,8,["theme","themeOverrides","size"]))]))],2)):(u(),Z(Hn,ze({key:0,ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},this.scrollbarProps),{default:()=>t?(u(),Z(vo,{key:1,ref:"virtualListRef",class:M(`${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:i})=>i.isGroup?(u(),Z(Kt,{key:i.key,clsPrefix:n,tmNode:i},null,8,["clsPrefix","tmNode"])):i.ignored?null:(u(),Z(Vt,{clsPrefix:n,key:i.key,tmNode:i},null,8,["clsPrefix","tmNode"]))},1032,["class","items","itemSize","paddingTop","paddingBottom","onResize","onScroll"])):(u(),k("div",{key:4,class:M(`${n}-base-select-menu-option-wrapper`),style:Ne({paddingTop:this.padding.top,paddingBottom:this.padding.bottom})},[T(()=>this.flattenedNodes.map(i=>i.isGroup?(u(),Z(Kt,{key:i.key,clsPrefix:n,tmNode:i},null,8,["clsPrefix","tmNode"])):(u(),Z(Vt,{clsPrefix:n,key:i.key,tmNode:i},null,8,["clsPrefix","tmNode"]))))],6))},1040,["theme","themeOverrides","scrollable","container","content","onScroll"]))],64)),T(()=>it(e.action,i=>i&&[(u(),k("div",{class:M(`${n}-base-select-menu__action`),"data-action":!0,key:"action"},[T(()=>i)],2)),(u(),Z(xo,{onFocus:this.onTabOut,key:"focus-detector"},null,8,["onFocus"]))]))],46,Qo)}});function st(e){return e.type==="group"}function on(e){return e.type==="ignored"}function xt(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function er(e,t){return{getIsGroup:st,getIgnored:on,getKey(n){return st(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function tr(e,t,n,o){if(!t)return e;function r(a){if(!Array.isArray(a))return[];const i=[];for(const l of a)if(st(l)){const f=r(l[o]);f.length&&i.push(Object.assign({},l,{[o]:f}))}else{if(on(l))continue;t(n,l)&&i.push(l)}return i}return r(e)}function nr(e,t,n){const o=new Map;return e.forEach(r=>{st(r)?r[n].forEach(a=>{o.set(a[t],a)}):o.set(r[t],r)}),o}var or=fe([V("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); + `,[V("base-loading",` + color: var(--n-loading-color); + `),V("base-selection-tags","min-height: var(--n-height);"),D("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); + `),D("state-border",` + z-index: 1; + border-color: #0000; + `),V("base-suffix",` + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 10px; + `,[D("arrow",` + font-size: var(--n-arrow-size); + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + `)]),V("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); + `,[D("wrapper",` + flex-basis: 0; + flex-grow: 1; + overflow: hidden; + text-overflow: ellipsis; + `)]),V("base-selection-placeholder",` + color: var(--n-placeholder-color); + `,[D("inner",` + max-width: 100%; + overflow: hidden; + `)]),V("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); + `),V("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; + `,[V("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); + `,[D("content",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `)]),D("render-label",` + color: var(--n-text-color); + `)]),Ie("disabled",[fe("&:hover",[D("state-border",` + box-shadow: var(--n-box-shadow-hover); + border: var(--n-border-hover); + `)]),le("focus",[D("state-border",` + box-shadow: var(--n-box-shadow-focus); + border: var(--n-border-focus); + `)]),le("active",[D("state-border",` + box-shadow: var(--n-box-shadow-active); + border: var(--n-border-active); + `),V("base-selection-label","background-color: var(--n-color-active);"),V("base-selection-tags","background-color: var(--n-color-active);")])]),le("disabled","cursor: not-allowed;",[D("arrow",` + color: var(--n-arrow-color-disabled); + `),V("base-selection-label",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[V("base-selection-input",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + `),D("render-label",` + color: var(--n-text-color-disabled); + `)]),V("base-selection-tags",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `),V("base-selection-placeholder",` + cursor: not-allowed; + color: var(--n-placeholder-color-disabled); + `)]),V("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; + `,[D("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); + `),D("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=>le(`${e}-status`,[D("state-border",`border: var(--n-border-${e});`),Ie("disabled",[fe("&:hover",[D("state-border",` + box-shadow: var(--n-box-shadow-hover-${e}); + border: var(--n-border-hover-${e}); + `)]),le("active",[D("state-border",` + box-shadow: var(--n-box-shadow-active-${e}); + border: var(--n-border-active-${e}); + `),V("base-selection-label",`background-color: var(--n-color-active-${e});`),V("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),le("focus",[D("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),V("base-selection-popover",` + margin-bottom: -3px; + display: flex; + flex-wrap: wrap; + margin-right: -8px; + `),V("base-selection-tag-wrapper",` + max-width: 100%; + display: inline-flex; + padding: 0 7px 3px 0; + `,[fe("&:last-child","padding-right: 0;"),V("tag",` + font-size: 14px; + max-width: 100%; + `,[D("content",` + line-height: 1.25; + text-overflow: ellipsis; + overflow: hidden; + `)])])]);const rr=["disabled","value","autofocus","onBlur","onFocus","onKeydown","onInput","onCompositionstart","onCompositionend"],lr=["tabindex"],ir=["title"],ar=["value","readonly","disabled","autofocus","onFocus","onBlur","onInput","onCompositionstart","onCompositionend"],sr=["tabindex"],cr=["onClick","onMouseenter","onMouseleave","onKeydown","onFocusin","onFocusout","onMousedown"];var dr=ve({name:"InternalSelection",props:{...Ce.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}=Ge(e),o=Ot("InternalSelection",n,t),r=A(null),a=A(null),i=A(null),l=A(null),f=A(null),c=A(null),v=A(null),h=A(null),F=A(null),z=A(null),C=A(!1),w=A(!1),I=A(!1),S=Ce("InternalSelection","-internal-selection",or,qn,e,ie(e,"clsPrefix")),R=E(()=>e.clearable&&!e.disabled&&(I.value||e.active)),P=E(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):$e(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),b=E(()=>{const d=e.selectedOption;if(d)return d[e.labelField]}),m=E(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function O(){const{value:d}=r;if(d){const{value:N}=a;N&&(N.style.width=`${d.offsetWidth}px`,e.maxTagCount!=="responsive"&&F.value?.sync({showAllItemsBeforeCalculate:!1}))}}function W(){const{value:d}=z;d&&(d.style.display="none")}function j(){const{value:d}=z;d&&(d.style.display="inline-block")}_e(ie(e,"active"),d=>{d||W()}),_e(ie(e,"pattern"),()=>{e.multiple&&Pt(O)});function te(d){const{onFocus:N}=e;N&&N(d)}function H(d){const{onBlur:N}=e;N&&N(d)}function oe(d){const{onDeleteOption:N}=e;N&&N(d)}function X(d){const{onClear:N}=e;N&&N(d)}function p(d){const{onPatternInput:N}=e;N&&N(d)}function x(d){(!d.relatedTarget||!i.value?.contains(d.relatedTarget))&&te(d)}function K(d){i.value?.contains(d.relatedTarget)||H(d)}function L(d){X(d)}function ee(){I.value=!0}function Q(){I.value=!1}function U(d){!e.active||!e.filterable||d.target!==a.value&&d.preventDefault()}function ne(d){oe(d)}const Y=A(!1);function he(d){if(d.key==="Backspace"&&!Y.value&&!e.pattern.length){const{selectedOptions:N}=e;N?.length&&ne(N[N.length-1])}}let de=null;function g(d){const{value:N}=r;N&&(N.textContent=d.target.value,O()),e.ignoreComposition&&Y.value?de=d:p(d)}function $(){Y.value=!0}function ge(){Y.value=!1,e.ignoreComposition&&p(de),de=null}function Se(d){w.value=!0,e.onPatternFocus?.(d)}function xe(d){w.value=!1,e.onPatternBlur?.(d)}function be(){if(e.filterable)w.value=!1,c.value?.blur(),a.value?.blur();else if(e.multiple){const{value:d}=l;d?.blur()}else{const{value:d}=f;d?.blur()}}function ue(){e.filterable?(w.value=!1,c.value?.focus()):e.multiple?l.value?.focus():f.value?.focus()}function Re(){const{value:d}=a;d&&(j(),d.focus())}function me(){const{value:d}=a;d&&d.blur()}function ye(d){const{value:N}=v;N&&N.setTextContent(`+${d}`)}function De(){const{value:d}=h;return d}function Ke(){return a.value}let Fe=null;function Pe(){Fe!==null&&window.clearTimeout(Fe)}function Ve(){e.active||(Pe(),Fe=window.setTimeout(()=>{m.value&&(C.value=!0)},100))}function We(){Pe()}function He(d){d||(Pe(),C.value=!1)}_e(m,d=>{d||(C.value=!1)}),Ye(()=>{Yn(()=>{const d=c.value;d&&(e.disabled?d.removeAttribute("tabindex"):d.tabIndex=w.value?-1:0)})}),en(i,e.onResize);const{inlineThemeDisabled:Ae}=e,Ee=E(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:N},self:{fontWeight:ct,borderRadius:dt,color:ut,placeholderColor:ft,textColor:Ze,paddingSingle:Xe,paddingMultiple:Qe,caretColor:ht,colorDisabled:vt,textColorDisabled:Je,placeholderColorDisabled:et,colorActive:s,boxShadowFocus:y,boxShadowActive:B,boxShadowHover:_,border:G,borderFocus:q,borderHover:J,borderActive:se,arrowColor:Me,arrowColorDisabled:rn,loadingColor:ln,colorActiveWarning:an,boxShadowFocusWarning:sn,boxShadowActiveWarning:cn,boxShadowHoverWarning:dn,borderWarning:un,borderFocusWarning:fn,borderHoverWarning:hn,borderActiveWarning:vn,colorActiveError:gn,boxShadowFocusError:bn,boxShadowActiveError:pn,boxShadowHoverError:mn,borderError:yn,borderFocusError:wn,borderHoverError:Cn,borderActiveError:xn,clearColor:kn,clearColorHover:Sn,clearColorPressed:Rn,clearSize:Tn,arrowSize:zn,[re("height",d)]:Fn,[re("fontSize",d)]:Pn}}=S.value,tt=Le(Xe),nt=Le(Qe);return{"--n-bezier":N,"--n-border":G,"--n-border-active":se,"--n-border-focus":q,"--n-border-hover":J,"--n-border-radius":dt,"--n-box-shadow-active":B,"--n-box-shadow-focus":y,"--n-box-shadow-hover":_,"--n-caret-color":ht,"--n-color":ut,"--n-color-active":s,"--n-color-disabled":vt,"--n-font-size":Pn,"--n-height":Fn,"--n-padding-single-top":tt.top,"--n-padding-multiple-top":nt.top,"--n-padding-single-right":tt.right,"--n-padding-multiple-right":nt.right,"--n-padding-single-left":tt.left,"--n-padding-multiple-left":nt.left,"--n-padding-single-bottom":tt.bottom,"--n-padding-multiple-bottom":nt.bottom,"--n-placeholder-color":ft,"--n-placeholder-color-disabled":et,"--n-text-color":Ze,"--n-text-color-disabled":Je,"--n-arrow-color":Me,"--n-arrow-color-disabled":rn,"--n-loading-color":ln,"--n-color-active-warning":an,"--n-box-shadow-focus-warning":sn,"--n-box-shadow-active-warning":cn,"--n-box-shadow-hover-warning":dn,"--n-border-warning":un,"--n-border-focus-warning":fn,"--n-border-hover-warning":hn,"--n-border-active-warning":vn,"--n-color-active-error":gn,"--n-box-shadow-focus-error":bn,"--n-box-shadow-active-error":pn,"--n-box-shadow-hover-error":mn,"--n-border-error":yn,"--n-border-focus-error":wn,"--n-border-hover-error":Cn,"--n-border-active-error":xn,"--n-clear-size":Tn,"--n-clear-color":kn,"--n-clear-color-hover":Sn,"--n-clear-color-pressed":Rn,"--n-arrow-size":zn,"--n-font-weight":ct}}),Oe=Ae?qe("internal-selection",E(()=>e.size[0]),Ee,e):void 0;return{mergedTheme:S,mergedClearable:R,mergedClsPrefix:t,rtlEnabled:o,patternInputFocused:w,filterablePlaceholder:P,label:b,selected:m,showTagsPanel:C,isComposing:Y,counterRef:v,counterWrapperRef:h,patternInputMirrorRef:r,patternInputRef:a,selfRef:i,multipleElRef:l,singleElRef:f,patternInputWrapperRef:c,overflowRef:F,inputTagElRef:z,handleMouseDown:U,handleFocusin:x,handleClear:L,handleMouseEnter:ee,handleMouseLeave:Q,handleDeleteOption:ne,handlePatternKeyDown:he,handlePatternInputInput:g,handlePatternInputBlur:xe,handlePatternInputFocus:Se,handleMouseEnterCounter:Ve,handleMouseLeaveCounter:We,handleFocusout:K,handleCompositionEnd:ge,handleCompositionStart:$,onPopoverUpdateShow:He,focus:ue,focusInput:Re,blur:be,blurInput:me,updateCounter:ye,getCounter:De,getTail:Ke,renderLabel:e.renderLabel,cssVars:Ae?void 0:Ee,themeClass:Oe?.themeClass,onRender:Oe?.onRender}},render(){const{status:e,multiple:t,size:n,disabled:o,filterable:r,maxTagCount:a,bordered:i,clsPrefix:l,ellipsisTagPopoverProps:f,onRender:c,renderTag:v,renderLabel:h}=this;c?.();const F=a==="responsive",z=typeof a=="number",C=F||z,w=(u(),Z(Gn,null,{default:()=>(u(),Z(ro,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>this.$slots.arrow?.()},1032,["clsPrefix","loading","showArrow","showClear","onClear"]))},1024));let I;if(t){const{labelField:S}=this,R=X=>(u(),k("div",{class:M(`${l}-base-selection-tag-wrapper`),key:X.value},[v?(u(),k(ae,{key:0},[T(()=>v({option:X,handleClose:()=>{this.handleDeleteOption(X)}}))],64)):(u(),Z(mt,{key:1,size:n,closable:!X.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(X)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>h?h(X,!0):$e(X[S],X,!0)},1032,["size","closable","disabled","onClose"]))],2)),P=()=>(z?this.selectedOptions.slice(0,a):this.selectedOptions).map(R),b=r?(u(),k("div",{class:M(`${l}-base-selection-input-tag`),ref:"inputTagElRef",key:"__input-tag__"},[ce("input",ze(this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,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}),null,16,rr),ce("span",{ref:"patternInputMirrorRef",class:M(`${l}-base-selection-input-tag__mirror`)},[T(()=>this.pattern)],2)],2)):null,m=F?()=>(u(),k("div",{class:M(`${l}-base-selection-tag-wrapper`),ref:"counterWrapperRef"},[(u(),Z(mt,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o},null,8,["size","onMouseenter","onMouseleave","disabled"]))],2)):void 0;let O;if(z){const X=this.selectedOptions.length-a;X>0&&(O=(p=>(u(),k("div",{class:M(`${l}-base-selection-tag-wrapper`),key:"__counter__"},[(u(),Z(mt,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${X}`},1032,["size","onMouseenter","disabled"]))],2)))())}const W=F?r?(u(),Z(Nt,{key:3,ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:P,counter:m,tail:()=>b},1032,["updateCounter","getCounter","getTail"])):(u(),Z(Nt,{key:4,ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:P,counter:m},1032,["updateCounter","getCounter"])):z&&O?P().concat(O):P(),j=C?()=>(u(),k("div",{class:M(`${l}-base-selection-popover`)},[F?(u(),k(ae,{key:0},[T(()=>P())],64)):(u(),k(ae,{key:1},[T(()=>this.selectedOptions.map(R))],64))],2)):void 0,te=C?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover,...f}:null,H=!this.selected&&(!this.active||!this.pattern&&!this.isComposing)?(u(),k("div",{key:5,class:M(`${l}-base-selection-placeholder ${l}-base-selection-overlay`)},[ce("div",{class:M(`${l}-base-selection-placeholder__inner`)},[T(()=>this.placeholder)],2)],2)):null,oe=r?(u(),k("div",{key:6,ref:"patternInputWrapperRef",class:M(`${l}-base-selection-tags`)},[T(()=>W),F?T(()=>null):(u(),k(ae,{key:1},[T(()=>b)],64)),T(()=>w)],2)):(u(),k("div",{key:7,ref:"multipleElRef",class:M(`${l}-base-selection-tags`),tabindex:o?void 0:0},[T(()=>W),T(()=>w)],10,lr));I=(X=>(u(),k(ae,{key:8},[C?(u(),Z(In,ze({key:0},te,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>oe,default:j},1040)):(u(),k(ae,{key:1},[T(()=>oe)],64)),T(()=>H)],64)))()}else if(r){const S=this.pattern||this.isComposing,R=this.active?!S:!this.selected,P=this.active?!1:this.selected;I=(b=>(u(),k("div",{key:9,ref:"patternInputWrapperRef",class:M(`${l}-base-selection-label`),title:this.patternInputFocused?void 0:Dt(this.label)},[ce("input",ze(this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd}),null,16,ar),P?(u(),k("div",{class:M(`${l}-base-selection-label__render-label ${l}-base-selection-overlay`),key:"input"},[ce("div",{class:M(`${l}-base-selection-overlay__wrapper`)},[v?(u(),k(ae,{key:0},[T(()=>v({option:this.selectedOption,handleClose:()=>{}}))],64)):(u(),k(ae,{key:1},[h?(u(),k(ae,{key:0},[T(()=>h(this.selectedOption,!0))],64)):(u(),k(ae,{key:1},[T(()=>$e(this.label,this.selectedOption,!0))],64))],64))],2)],2)):T(()=>null),R?(u(),k("div",{class:M(`${l}-base-selection-placeholder ${l}-base-selection-overlay`),key:"placeholder"},[ce("div",{class:M(`${l}-base-selection-overlay__wrapper`)},[T(()=>this.filterablePlaceholder)],2)],2)):T(()=>null),T(()=>w)],10,ir)))()}else I=(S=>(u(),k("div",{key:10,ref:"singleElRef",class:M(`${l}-base-selection-label`),tabindex:this.disabled?void 0:0},[this.label!==void 0?(u(),k("div",{class:M(`${l}-base-selection-input`),title:Dt(this.label),key:"input"},[ce("div",{class:M(`${l}-base-selection-input__content`)},[v?(u(),k(ae,{key:0},[T(()=>v({option:this.selectedOption,handleClose:()=>{}}))],64)):(u(),k(ae,{key:1},[h?(u(),k(ae,{key:0},[T(()=>h(this.selectedOption,!0))],64)):(u(),k(ae,{key:1},[T(()=>$e(this.label,this.selectedOption,!0))],64))],64))],2)],10,["title"])):(u(),k("div",{class:M(`${l}-base-selection-placeholder ${l}-base-selection-overlay`),key:"placeholder"},[ce("div",{class:M(`${l}-base-selection-placeholder__inner`)},[T(()=>this.placeholder)],2)],2)),T(()=>w)],10,sr)))();return u(),k("div",{ref:"selfRef",class:M([`${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:Ne(this.cssVars),onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},[T(()=>I),i?(u(),k("div",{key:0,class:M(`${l}-base-selection__border`)},null,2)):T(()=>null),i?(u(),k("div",{key:2,class:M(`${l}-base-selection__state-border`)},null,2)):T(()=>null)],46,cr)}}),ur=fe([V("select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + font-weight: var(--n-font-weight); + `),V("select-menu",` + margin: 4px 0; + box-shadow: var(--n-menu-box-shadow); + `,[Zt({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]);const fr={...Ce.props,to:kt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearCreatedOptionsOnClear:{type:Boolean,default:!0},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},scrollbarProps:Object,onChange:[Function,Array],items:Array};var pr=ve({name:"Select",props:fr,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:o,inlineThemeDisabled:r,mergedComponentPropsRef:a}=Ge(e),i=Ce("Select","-select",ur,oo,e,t),l=A(e.defaultValue),f=ie(e,"value"),c=At(f,l),v=A(!1),h=A(""),F=lo(e,["items","options"]),z=A([]),C=A([]),w=E(()=>C.value.concat(z.value).concat(F.value)),I=E(()=>{const{filter:s}=e;if(s)return s;const{labelField:y,valueField:B}=e;return(_,G)=>{if(!G)return!1;const q=G[y];if(typeof q=="string")return xt(_,q);const J=G[B];return typeof J=="string"?xt(_,J):typeof J=="number"?xt(_,String(J)):!1}}),S=E(()=>{if(e.remote)return F.value;{const{value:s}=w,{value:y}=h;return!y.length||!e.filterable?s:tr(s,I.value,y,e.childrenField)}}),R=E(()=>{const{valueField:s,childrenField:y}=e,B=er(s,y);return Xo(S.value,B)}),P=E(()=>nr(w.value,e.valueField,e.childrenField)),b=A(!1),m=At(ie(e,"show"),b),O=A(null),W=A(null),j=A(null),{localeRef:te}=Xt("Select"),H=E(()=>e.placeholder??te.value.placeholder),oe=[],X=A(new Map),p=E(()=>{const{fallbackOption:s}=e;if(s===void 0){const{labelField:y,valueField:B}=e;return _=>({[y]:String(_),[B]:_})}return s===!1?!1:y=>Object.assign(s(y),{value:y})});function x(s){const y=e.remote,{value:B}=X,{value:_}=P,{value:G}=p,q=[];return s.forEach(J=>{if(_.has(J))q.push(_.get(J));else if(y&&B.has(J))q.push(B.get(J));else if(G){const se=G(J);se&&q.push(se)}}),q}const K=E(()=>{if(e.multiple){const{value:s}=c;return Array.isArray(s)?x(s):[]}return null}),L=E(()=>{const{value:s}=c;return!e.multiple&&!Array.isArray(s)?s===null?null:x([s])[0]||null:null}),ee=Xn(e,{mergedSize:s=>{const{size:y}=e;if(y)return y;const{mergedSize:B}=s||{};if(B?.value)return B.value;const _=a?.value?.Select?.size;return _||"medium"}}),{mergedSizeRef:Q,mergedDisabledRef:U,mergedStatusRef:ne}=ee;function Y(s,y){const{onChange:B,"onUpdate:value":_,onUpdateValue:G}=e,{nTriggerFormChange:q,nTriggerFormInput:J}=ee;B&&pe(B,s,y),G&&pe(G,s,y),_&&pe(_,s,y),l.value=s,q(),J()}function he(s){const{onBlur:y}=e,{nTriggerFormBlur:B}=ee;y&&pe(y,s),B()}function de(){const{onClear:s}=e;s&&pe(s)}function g(s){const{onFocus:y,showOnFocus:B}=e,{nTriggerFormFocus:_}=ee;y&&pe(y,s),_(),B&&be()}function $(s){const{onSearch:y}=e;y&&pe(y,s)}function ge(s){const{onScroll:y}=e;y&&pe(y,s)}function Se(){const{remote:s,multiple:y}=e;if(s){const{value:B}=X;if(y){const{valueField:_}=e;K.value?.forEach(G=>{B.set(G[_],G)})}else{const _=L.value;_&&B.set(_[e.valueField],_)}}}function xe(s){const{onUpdateShow:y,"onUpdate:show":B}=e;y&&pe(y,s),B&&pe(B,s),b.value=s}function be(){U.value||(xe(!0),b.value=!0,e.filterable&&Qe())}function ue(){xe(!1)}function Re(){h.value="",C.value=oe}const me=A(!1);function ye(){e.filterable&&(me.value=!0)}function De(){e.filterable&&(me.value=!1,m.value||Re())}function Ke(){U.value||(m.value?e.filterable?Qe():ue():be())}function Fe(s){j.value?.selfRef?.contains(s.relatedTarget)||(v.value=!1,he(s),ue())}function Pe(s){g(s),v.value=!0}function Ve(){v.value=!0}function We(s){O.value?.$el.contains(s.relatedTarget)||(v.value=!1,he(s),ue())}function He(){O.value?.focus(),ue()}function Ae(s){m.value&&(O.value?.$el.contains(Jn(s))||ue())}function Ee(s){if(!Array.isArray(s))return[];if(p.value)return Array.from(s);{const{remote:y}=e,{value:B}=P;if(y){const{value:_}=X;return s.filter(G=>B.has(G)||_.has(G))}else return s.filter(_=>B.has(_))}}function Oe(s){d(s.rawNode)}function d(s){if(U.value)return;const{tag:y,remote:B,clearFilterAfterSelect:_,valueField:G}=e;if(y&&!B){const{value:q}=C,J=q[0]||null;if(J){const se=z.value;se.length?se.push(J):z.value=[J],C.value=oe}}if(B&&X.value.set(s[G],s),e.multiple){const q=Ee(c.value),J=q.findIndex(se=>se===s[G]);if(~J){if(q.splice(J,1),y&&!B){const se=N(s[G]);~se&&(z.value.splice(se,1),_&&(h.value=""))}}else q.push(s[G]),_&&(h.value="");Y(q,x(q))}else{if(y&&!B){const q=N(s[G]);~q?z.value=[z.value[q]]:z.value=oe}Xe(),ue(),Y(s[G],s)}}function N(s){return z.value.findIndex(y=>y[e.valueField]===s)}function ct(s){m.value||be();const{value:y}=s.target;h.value=y;const{tag:B,remote:_}=e;if($(y),B&&!_){if(!y){C.value=oe;return}const{onCreate:G}=e,q=G?G(y):{[e.labelField]:y,[e.valueField]:y},{valueField:J,labelField:se}=e;F.value.some(Me=>Me[J]===q[J]||Me[se]===q[se])||z.value.some(Me=>Me[J]===q[J]||Me[se]===q[se])?C.value=oe:C.value=[q]}}function dt(s){s.stopPropagation();const{multiple:y,tag:B,remote:_,clearCreatedOptionsOnClear:G}=e;!y&&e.filterable&&ue(),B&&!_&&G&&(z.value=oe),de(),y?Y([],[]):Y(null,null)}function ut(s){!Ue(s,"action")&&!Ue(s,"empty")&&!Ue(s,"header")&&s.preventDefault()}function ft(s){ge(s)}function Ze(s){if(!e.keyboard){s.preventDefault();return}switch(s.key){case" ":if(e.filterable)break;s.preventDefault();case"Enter":if(!O.value?.isComposing){if(m.value){const y=j.value?.getPendingTmNode();y?Oe(y):e.filterable||(ue(),Xe())}else if(be(),e.tag&&me.value){const y=C.value[0];if(y){const B=y[e.valueField],{value:_}=c;e.multiple&&Array.isArray(_)&&_.includes(B)||d(y)}}}s.preventDefault();break;case"ArrowUp":if(s.preventDefault(),e.loading)return;m.value&&j.value?.prev();break;case"ArrowDown":if(s.preventDefault(),e.loading)return;m.value?j.value?.next():be();break;case"Escape":m.value&&(eo(s),ue()),O.value?.focus()}}function Xe(){O.value?.focus()}function Qe(){O.value?.focusInput()}function ht(){m.value&&W.value?.syncPosition()}Se(),_e(ie(e,"options"),Se);const vt={focus:()=>{O.value?.focus()},focusInput:()=>{O.value?.focusInput()},blur:()=>{O.value?.blur()},blurInput:()=>{O.value?.blurInput()}},Je=E(()=>{const{self:{menuBoxShadow:s}}=i.value;return{"--n-menu-box-shadow":s}}),et=r?qe("select",void 0,Je,e):void 0;return{...vt,mergedStatus:ne,mergedClsPrefix:t,mergedBordered:n,namespace:o,treeMate:R,isMounted:Qn(),triggerRef:O,menuRef:j,pattern:h,uncontrolledShow:b,mergedShow:m,adjustedTo:kt(e),uncontrolledValue:l,mergedValue:c,followerRef:W,localizedPlaceholder:H,selectedOption:L,selectedOptions:K,mergedSize:Q,mergedDisabled:U,focused:v,activeWithoutMenuOpen:me,inlineThemeDisabled:r,onTriggerInputFocus:ye,onTriggerInputBlur:De,handleTriggerOrMenuResize:ht,handleMenuFocus:Ve,handleMenuBlur:We,handleMenuTabOut:He,handleTriggerClick:Ke,handleToggle:Oe,handleDeleteOption:d,handlePatternInput:ct,handleClear:dt,handleTriggerBlur:Fe,handleTriggerFocus:Pe,handleKeydown:Ze,handleMenuAfterLeave:Re,handleMenuClickOutside:Ae,handleMenuScroll:ft,handleMenuKeydown:Ze,handleMenuMousedown:ut,mergedTheme:i,cssVars:r?void 0:Je,themeClass:et?.themeClass,onRender:et?.onRender}},render(){return u(),k("div",{class:M(`${this.mergedClsPrefix}-select`)},[Zn(Bn,null,{_:1,default:Te(()=>[(u(),Z(_n,null,{_:1,default:Te(()=>(u(),Z(dr,{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},{_:1,arrow:Te(()=>[this.$slots.arrow?.()])},8,["inlineThemeDisabled","status","inputProps","clsPrefix","showArrow","maxTagCount","ellipsisTagPopoverProps","bordered","active","pattern","placeholder","selectedOption","selectedOptions","multiple","renderTag","renderLabel","filterable","clearable","disabled","size","theme","labelField","valueField","themeOverrides","loading","focused","onClick","onDeleteOption","onPatternInput","onClear","onBlur","onFocus","onKeydown","onPatternBlur","onPatternFocus","onResize","ignoreComposition"])))})),(u(),Z(An,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===kt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{_:1,default:Te(()=>(u(),Z(Yt,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{_:1,default:Te(()=>this.mergedShow||this.displayDirective==="show"?(this.onRender?.(),to((u(),Z(Jo,ze(this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,this.menuProps?.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:[this.menuProps?.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,scrollbarProps:this.scrollbarProps}),{_:1,empty:Te(()=>[this.$slots.empty?.()]),header:Te(()=>[this.$slots.header?.()]),action:Te(()=>[this.$slots.action?.()])},16,["onResize","inlineThemeDisabled","virtualScroll","class","clsPrefix","labelField","valueField","nodeProps","theme","themeOverrides","treeMate","multiple","size","renderOption","renderLabel","value","style","onToggle","onScroll","onFocus","onBlur","onKeydown","onTabOut","onMousedown","show","showCheckmark","resetMenuOnOptionsChange","scrollbarProps"])),this.displayDirective==="show"?[[no,this.mergedShow],[_t,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[_t,this.handleMenuClickOutside,void 0,{capture:!0}]])):null)},8,["appear","onAfterLeave"])))},8,["show","to","teleportDisabled","containerClass","width","placement"]))])})],2)}});export{pr as S,mt as T,Jo as a,er as b,Xo as c,Ue as h}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-3yOnzd5g.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-3yOnzd5g.css new file mode 100644 index 00000000..4cf3b9f9 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-3yOnzd5g.css @@ -0,0 +1 @@ +.service-error[data-v-123136ea]{min-height:100vh;display:grid;place-items:center;padding:24px;position:relative;z-index:1;background:#070b0f99}.card[data-v-123136ea]{width:min(460px,100%);padding:28px 30px 24px;border-radius:var(--radius);border:1px solid var(--line);background:var(--panel);box-shadow:0 24px 60px #00000073}.kicker[data-v-123136ea]{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;letter-spacing:1px;color:var(--warn);text-transform:uppercase}.card h1[data-v-123136ea]{margin:10px 0 0;font-size:24px;font-weight:680;letter-spacing:-.3px}.card p[data-v-123136ea]{margin:12px 0 0;font-size:12.5px;line-height:1.75;color:var(--muted)}.result[data-v-123136ea]{margin-top:16px;padding:9px 12px;border-radius:9px;font-size:12px;line-height:1.6;color:#fcd34d;background:#fbbf2414;border:1px solid rgba(251,191,36,.24)}.actions[data-v-123136ea]{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.foot[data-v-123136ea]{margin-top:26px;font-size:9.5px;letter-spacing:2px;color:var(--muted-2)} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-L-sskm9b.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-L-sskm9b.js new file mode 100644 index 00000000..73278413 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-L-sskm9b.js @@ -0,0 +1 @@ +import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-Bmcyfv7z.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{R as y}from"./RefreshOutline-CIl2qHSI.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CJoqn3Jp.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CJoqn3Jp.js new file mode 100644 index 00000000..61029f0f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CJoqn3Jp.js @@ -0,0 +1,3 @@ +import{I as C}from"./Input-DS3FhrY_.js";import{d as V,o as u,c as d,y as he,a as l,ao as T,aV as oe,b as Ce,A as Se,e as i,w as a,u as s,B as m,t as p,f as r,g as w,n as ze,i as B,F as Y,bg as Me,r as c,J as Be,ap as Ee,bh as Ue}from"./index-Bmcyfv7z.js";import{S as D}from"./Select-P9AqjsDB.js";import{N as g,_ as Ae}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as Ne,S as Q}from"./Switch-C33rKL-M.js";import{u as Oe}from"./use-message-BaVpnNbE.js";import{I as j,D as De}from"./DocumentTextOutline-BvVIG18e.js";import{S as Pe}from"./Spin-CCColBh4.js";import{E as te,g as Te,s as Ve,c as qe,r as Re}from"./engine-vojgPPhH.js";import{e as v}from"./engine-state-Cu8p5L8n.js";import{v as Ie}from"./filename-template-DBJXvN0y.js";import{e as x,i as P}from"./runtime-bridge-DmDzFGpU.js";import{V as X}from"./VideocamOutline-DoUnrAre.js";import{R as Le}from"./RefreshOutline-CIl2qHSI.js";import"./use-compitable-CSVBov8c.js";const Fe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=V({name:"ColorPaletteOutline",render:function(f,_){return u(),d("svg",Fe,_[0]||(_[0]=[he('',6)]))}}),$e={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},je=V({name:"KeyOutline",render:function(f,_){return u(),d("svg",$e,_[0]||(_[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=V({name:"SaveOutline",render:function(f,_){return u(),d("svg",Ge,_[0]||(_[0]=[l("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)]))}}),Ke={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Z=V({name:"ServerOutline",render:function(f,_){return u(),d("svg",Ke,_[0]||(_[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Je=()=>T("/v1/configuration"),We=S=>oe("/v1/configuration",S),Ye=[{label:"外部转码工具(需本机自行安装)",value:"ffmpeg"},{label:"内置下载器(边录边传,推荐)",value:"stream-gears"},{label:"外部流下载工具(需本机自行安装)",value:"streamlink"},{label:"内置下载器(同步模式)",value:"sync-downloader"},{label:"内置下载器(落盘录制)",value:"mesio"}],Qe=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Xe=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Ze=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],el={class:"page"},ll={class:"page-head"},sl={class:"toolbar"},nl={key:0,class:"loading"},tl={key:1,class:"error-panel"},il={class:"error-msg"},ol={key:2,class:"sections"},al={class:"section panel"},rl={class:"sec-head"},ul={class:"sec-icon accent"},dl={class:"fields"},pl={class:"field wide"},vl={class:"field wide"},fl={class:"field"},cl={class:"field"},ml={class:"field"},_l={class:"field"},yl={class:"section panel"},gl={class:"sec-head"},kl={class:"sec-icon cyan"},wl={class:"fields"},bl={class:"field"},xl={class:"field"},hl={class:"field wide"},Cl={class:"section panel"},Sl={class:"sec-head"},zl={class:"sec-icon live"},Ml={class:"fields"},Bl={class:"field"},El={class:"field"},Ul={class:"field switch-field"},Al={class:"field switch-field"},Nl={class:"field switch-field"},Ol={class:"section panel"},Dl={class:"sec-head"},Pl={class:"sec-icon live"},Tl={class:"fields"},Vl={class:"field wide"},ql={class:"section panel"},Rl={class:"sec-head"},Il={class:"sec-icon muted"},Ll={class:"readonly"},Fl={class:"mono"},Hl={class:"mono"},$l={class:"mono"},jl={class:"mono"},Gl={class:"section panel"},Kl={class:"sec-head"},Jl={class:"sec-icon cyan"},Wl={class:"engine-install"},Yl={class:"engine-status-row"},Ql={key:0,class:"readonly engine-detail"},Xl={class:"mono"},Zl={class:"mono"},es={key:1,class:"inline-hint"},ls={key:2,class:"inline-hint"},ss={key:3,class:"inline-hint"},ns={key:4,class:"engine-progress"},ts={class:"progress-track"},is={class:"mono"},os={class:"mono"},as={class:"mono"},rs={class:"support-actions"},us={key:5,class:"manual-list"},ds={class:"section panel"},ps={class:"sec-head"},vs={class:"sec-icon accent"},fs={class:"fields"},cs={class:"field wide"},ms={class:"field wide"},_s={class:"field wide"},ys={class:"support-actions"},gs={key:0,class:"inline-hint"},ks={key:1,class:"readonly engine-status"},ws={class:"mono"},bs={class:"mono"},xs={key:2,class:"diagnostic-block"},hs={key:0,class:"inline-error"},Cs={key:1,class:"inline-hint"},Ss={key:2,class:"diag-preview"},zs={class:"support-actions"},Ms={class:"support-note"},Bs={class:"section panel"},Es={class:"sec-head"},Us={class:"sec-icon cyan"},As={class:"fields"},Ns={class:"field wide"},Os=V({__name:"SettingsView",setup(S){const f=Oe(),_=Ne(),y=c(null),E=c(!0),q=c(!1),R=c(""),t=Be({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function ee(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function G(){E.value=!0,R.value="";try{y.value=await Je(),ee(y.value)}catch(n){R.value=n instanceof Error?n.message:"读取配置失败"}finally{E.value=!1}}async function ae(){if(!y.value)return;const n=Ie(t.filename_prefix);if(n){f.error(n);return}q.value=!0;try{const e={...y.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await We(e);y.value=o,ee(o),f.success("设置已保存并生效")}catch(e){f.error(x(e))}finally{q.value=!1}}const z=c(null),I=c("sidecar"),le=c(""),L=c(""),b=c(!1),U=c(""),h=c(!0),K=c(!1);let F;async function H(){if(!P()){h.value=!1,U.value="引擎连接模式仅在 MiniApp 中可用";return}b.value=!0,U.value="";try{const[n,e]=await Promise.all([T("/_miniapp/runtime-status"),T("/_miniapp/connection-config")]);z.value=n,I.value=e.mode==="remote"?"remote":"sidecar",le.value=e.binaryPath??"",L.value=e.ffmpegPath??"",h.value=!0}catch(n){z.value=null,h.value=!1,U.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{b.value=!1}}async function re(){if(P()){b.value=!0;try{await oe("/_miniapp/connection-config",{mode:I.value,ffmpegPath:L.value}),f.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await H()}catch(n){f.error(x(n))}finally{b.value=!1}}}async function ue(){if(P()){b.value=!0;try{await Ee("/_miniapp/engine/restart"),f.success("引擎重启指令已发送"),await H()}catch(n){f.error(x(n))}finally{b.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function J(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,M=0;for(;o>=1024&&M0?J(n)+"/s":"—"}async function A(){if(P())try{v.value=await Te()}catch{v.value=null}}async function ne(){try{const n=await Ve();!n.ok&&n.error&&f.error(n.error),await A()}catch(n){f.error(x(n))}}async function ve(){try{await qe(),await A()}catch(n){f.error(x(n))}}async function fe(){_.warning({title:"重新下载录播引擎",content:"这会重新下载并替换当前引擎,下载和校验完成前不会移除现有引擎。继续吗?",positiveText:"重新下载",negativeText:"取消",onPositiveClick:async()=>{try{const n=await Re();!n.ok&&n.error&&f.error(n.error),await A()}catch(n){f.error(x(n))}}})}const k=c(""),W=c(!1),N=c(""),$=c(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",M=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+M+xe}async function me(){if(N.value="",!P()){k.value="",N.value="诊断日志仅在 MiniApp 中可用";return}W.value=!0;try{const[n,e]=await Promise.all([T("/_miniapp/diagnostics"),T("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?k.value=o.map(ce).join(` +`):e?.lastError?k.value="最近错误:"+e.lastError:k.value="暂无最近错误记录"}catch(n){N.value=x(n),k.value=""}finally{W.value=!1}}function _e(){if(!k.value)return;const n=new Blob([k.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function ye(){const n=k.value.trim();if(!n)return;const e=window.miniapp;if(!e?.host?.composer?.append){f.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: +`+n),f.success("已送入输入框,请确认后发送")}catch(o){f.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function ke(n){Ue(n),f.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const O=c("default");function we(){O.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{O.value=await Notification.requestPermission()}catch{}}return Ce(()=>{G(),H(),A(),me(),we(),F=window.setInterval(()=>{A()},1500)}),Se(()=>{F!==void 0&&(window.clearInterval(F),F=void 0)}),(n,e)=>(u(),d("div",el,[l("div",ll,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",sl,[i(s(m),{disabled:E.value||q.value,onClick:G},{default:a(()=>[...e[19]||(e[19]=[r("重新读取",-1)])]),_:1},8,["disabled"]),i(s(m),{type:"primary",loading:q.value,disabled:E.value||!y.value,onClick:ae},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(ie))]),_:1})]),default:a(()=>[e[20]||(e[20]=r(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),E.value?(u(),d("div",nl,[i(s(Pe),{size:"large"})])):R.value?(u(),d("div",tl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",il,p(R.value),1),i(s(m),{size:"small",onClick:G},{default:a(()=>[...e[22]||(e[22]=[r("重试",-1)])]),_:1})])):(u(),d("div",ol,[l("section",al,[l("header",rl,[l("span",ul,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",dl,[l("label",pl,[e[25]||(e[25]=l("span",null,[r("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(C),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",vl,[e[26]||(e[26]=l("span",null,[r("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(C),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",fl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s(j),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:a(()=>[...e[28]||(e[28]=[r("GB",-1)])]),_:1},8,["value"])]),l("label",cl,[e[30]||(e[30]=l("span",null,[r("分段时间 "),l("em",null,"segment_time")],-1)),i(s(C),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",ml,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s(j),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:a(()=>[...e[32]||(e[32]=[r("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",_l,[e[36]||(e[36]=l("span",null,[r("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s(j),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:a(()=>[...e[35]||(e[35]=[r("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",yl,[l("header",gl,[l("span",kl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",wl,[l("label",bl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s(j),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:a(()=>[...e[39]||(e[39]=[r("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",xl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(D),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Ye)},null,8,["value","options"])]),l("label",hl,[e[43]||(e[43]=l("span",null,"外部转码工具路径(录制引擎)",-1)),i(s(C),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",Cl,[l("header",Sl,[l("span",zl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Ml,[l("label",Bl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(D),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(Qe)},null,8,["value","options"])]),l("label",El,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(D),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Xe)},null,8,["value","options"])]),l("div",Ul,[e[47]||(e[47]=l("span",null,[r("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Q),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Al,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Q),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Nl,[e[51]||(e[51]=l("span",null,[r("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Q),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Ol,[l("header",Dl,[l("span",Pl,[i(s(g),{size:17},{default:a(()=>[i(s(je))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Tl,[l("label",Vl,[e[54]||(e[54]=l("span",null,[r("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(C),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",ql,[l("header",Rl,[l("span",Il,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Ll,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Fl,p(y.value?.pool1_size??"—")+" / "+p(y.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Hl,p(y.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",$l,p(y.value?.retention_hours?y.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",jl,p(y.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Gl,[l("header",Kl,[l("span",Jl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Wl,[l("div",Yl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,p(de(s(v)?.state)),1)]),s(v)?.state==="ready"?(u(),d("div",Ql,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Xl,p(s(v).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Zl,p(s(v).path||"—"),1)])])):w("",!0),s(v)?.error?(u(),d("div",es,p(s(v).error),1)):w("",!0),s(v)?.notice?(u(),d("div",ls,p(s(v).notice),1)):w("",!0),s(te)?w("",!0):(u(),d("div",ss,"引擎下载尚未配置")),s(v)?.state==="downloading"||s(v)?.state==="verifying"?(u(),d("div",ns,[l("div",ts,[l("div",{class:"progress-fill",style:ze({width:se()+"%"})},null,4)]),l("span",is,p(se())+"%",1),l("span",os,p(J(s(v)?.bytesDownloaded||0))+" / "+p(J(s(v)?.bytesTotal||0)),1),l("span",as,p(pe()),1)])):w("",!0),l("div",rs,[s(te)?s(v)?.state==="missing"?(u(),B(s(m),{key:1,type:"primary",onClick:ne},{default:a(()=>[...e[66]||(e[66]=[r("下载引擎",-1)])]),_:1})):s(v)?.state==="failed"?(u(),B(s(m),{key:2,type:"primary",onClick:ne},{default:a(()=>[...e[67]||(e[67]=[r("重新下载",-1)])]),_:1})):s(v)?.state==="ready"?(u(),B(s(m),{key:3,onClick:fe},{default:a(()=>[...e[68]||(e[68]=[r("重新下载",-1)])]),_:1})):s(v)?.state==="downloading"||s(v)?.state==="verifying"?(u(),B(s(m),{key:4,onClick:ve},{default:a(()=>[...e[69]||(e[69]=[r("取消",-1)])]),_:1})):w("",!0):(u(),B(s(m),{key:0,type:"primary",disabled:""},{default:a(()=>[...e[65]||(e[65]=[r("下载引擎",-1)])]),_:1})),i(s(m),{quaternary:"",onClick:e[15]||(e[15]=o=>K.value=!K.value)},{default:a(()=>[...e[70]||(e[70]=[r("手动安装说明",-1)])]),_:1})]),K.value?(u(),d("ol",us,[...e[71]||(e[71]=[l("li",null,[r("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),r(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):w("",!0)])]),l("section",ds,[l("header",ps,[l("span",vs,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",fs,[l("label",cs,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(D),{value:I.value,"onUpdate:value":e[16]||(e[16]=o=>I.value=o),options:s(Ze),disabled:!h.value},null,8,["value","options","disabled"])]),l("label",ms,[e[74]||(e[74]=l("span",null,"引擎命令行路径(只读)",-1)),i(s(C),{value:le.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!h.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[r(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),r(" 的 "),l("code",null,"binaryPath"),r(" 字段。 ")],-1))]),l("label",_s,[e[76]||(e[76]=l("span",null,"外部转码工具路径(Sidecar)",-1)),i(s(C),{value:L.value,"onUpdate:value":e[17]||(e[17]=o=>L.value=o),placeholder:"留空使用系统 PATH",disabled:!h.value},null,8,["value","disabled"])])]),l("div",ys,[i(s(m),{loading:b.value,onClick:H},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(Le))]),_:1})]),default:a(()=>[e[77]||(e[77]=r(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(m),{type:"primary",loading:b.value,disabled:!h.value,onClick:re},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(ie))]),_:1})]),default:a(()=>[e[78]||(e[78]=r(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(m),{loading:b.value,disabled:!h.value,onClick:ue},{default:a(()=>[...e[79]||(e[79]=[r(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(m),{quaternary:"",onClick:e[18]||(e[18]=o=>$.value=!$.value)},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(De))]),_:1})]),default:a(()=>[r(" "+p($.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),U.value?(u(),d("div",gs,p(U.value),1)):w("",!0),z.value?(u(),d("div",ks,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ws,p(z.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,p(z.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",bs,p(z.value.pid??"—"),1)])])):w("",!0),$.value?(u(),d("div",xs,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),N.value?(u(),d("div",hs,p(N.value),1)):w("",!0),W.value?(u(),d("div",Cs,"读取中…")):(u(),d("pre",Ss,p(k.value||"暂无诊断信息"),1)),l("div",zs,[i(s(m),{size:"small",disabled:!k.value,onClick:_e},{default:a(()=>[...e[83]||(e[83]=[r("本地导出",-1)])]),_:1},8,["disabled"]),i(s(m),{size:"small",disabled:!k.value,onClick:ye},{default:a(()=>[...e[84]||(e[84]=[r("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):w("",!0),l("p",Ms,[e[87]||(e[87]=r(" 通知权限: ",-1)),O.value==="granted"?(u(),d(Y,{key:0},[r("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):O.value==="denied"?(u(),d(Y,{key:1},[r("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):O.value==="unsupported"?(u(),d(Y,{key:2},[r("当前环境不支持系统通知。")],64)):(u(),B(s(m),{key:3,size:"tiny",quaternary:"",onClick:be},{default:a(()=>[...e[86]||(e[86]=[r("开启系统通知",-1)])]),_:1}))])]),l("section",Bs,[l("header",Es,[l("span",Us,[i(s(g),{size:17},{default:a(()=>[i(s(He))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",As,[l("label",Ns,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(D),{value:s(Me),options:ge,"onUpdate:value":ke},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),Ws=Ae(Os,[["__scopeId","data-v-4325c122"]]);export{Ws as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Cfxh_2g_.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Cfxh_2g_.css new file mode 100644 index 00000000..2840d08e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Cfxh_2g_.css @@ -0,0 +1 @@ +.loading[data-v-4325c122]{display:grid;place-items:center;padding:90px 0}.sections[data-v-4325c122]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-4325c122]{padding:20px 22px 22px}.sec-head[data-v-4325c122]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-4325c122]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-4325c122]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-4325c122]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-4325c122]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-4325c122]{color:var(--muted)}.sec-head h2[data-v-4325c122]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-4325c122]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-4325c122]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-4325c122]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-4325c122]{grid-column:1 / -1}.field>span[data-v-4325c122]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-4325c122]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-4325c122]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-4325c122]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-4325c122]{grid-column:1 / -1}.readonly[data-v-4325c122]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-4325c122]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-4325c122]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-4325c122]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-4325c122]{font-size:13px;font-weight:600}.error-panel[data-v-4325c122]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-4325c122]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-4325c122]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-4325c122]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-4325c122]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-4325c122]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-4325c122]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-4325c122]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-4325c122]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}.engine-install[data-v-4325c122]{display:flex;flex-direction:column;gap:10px}.engine-status-row[data-v-4325c122]{display:flex;align-items:center;gap:10px;font-size:12.5px}.engine-status-row span[data-v-4325c122]{color:var(--muted)}.engine-status-row b[data-v-4325c122]{color:var(--text, #e6f1f5)}.engine-detail[data-v-4325c122]{display:grid;grid-template-columns:1fr 2fr;gap:8px 12px;font-size:11.5px}.engine-detail>div[data-v-4325c122]{display:flex;flex-direction:column;gap:4px}.engine-detail span[data-v-4325c122]{color:var(--muted)}.engine-detail b[data-v-4325c122]{overflow-wrap:anywhere}.engine-progress[data-v-4325c122]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--muted)}.progress-track[data-v-4325c122]{flex:1 1 180px;height:6px;border-radius:99px;overflow:hidden;background:#94c5d61f}.progress-fill[data-v-4325c122]{height:100%;background:var(--accent, #2dd4bf);transition:width .2s ease}.manual-list[data-v-4325c122]{margin:4px 0 0;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}@media(max-width:640px){.fields[data-v-4325c122],.readonly[data-v-4325c122],.engine-status[data-v-4325c122]{grid-template-columns:1fr}.section[data-v-4325c122]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Cq5T4anl.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Cq5T4anl.js new file mode 100644 index 00000000..087f17e6 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Cq5T4anl.js @@ -0,0 +1,167 @@ +import{T as ee,S as pe}from"./Select-P9AqjsDB.js";import{I as te}from"./Input-DS3FhrY_.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b4 as ke,b5 as _e,b6 as xe,b7 as $e,b8 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,b9 as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-Bmcyfv7z.js";import{C as ve}from"./CheckboxGroup-iTsKmCjZ.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as Je}from"./use-message-BaVpnNbE.js";import{S as Ke}from"./Spin-CCColBh4.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-Cwn6t3sl.js";import{S as et}from"./SearchOutline-BOYIL3j0.js";import{V as tt}from"./VideocamOutline-DoUnrAre.js";import{D as me}from"./DownloadOutline-ZlR9MTyd.js";import{R as rt}from"./RefreshOutline-CIl2qHSI.js";import"./use-compitable-CSVBov8c.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({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(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} + a ${h},${h} 0 1 1 ${f},-100 + a ${h},${h} 0 1 1 0,${O}`,M=Math.PI*2*h;return{pathString:D,pathStyle:{stroke:u==="rail"?y:typeof t.fillColor=="object"?`url(#${k.value})`:y,strokeDasharray:`${Math.min(n,100)/100*(M-z)}px ${C*8}px`,strokeDashoffset:`-${z/2}px`,transformOrigin:p?"center":void 0,transform:p?`rotate(${p}deg)`:void 0}}}const x=()=>{const n=typeof t.fillColor=="object",p=n?t.fillColor.stops[0]:"",y=n?t.fillColor.stops[1]:"";return n&&(o(),s("defs",null,[r("linearGradient",{id:k.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[r("stop",{offset:"0%","stop-color":p},null,8,it),r("stop",{offset:"100%","stop-color":y},null,8,at)],8,ot)]))};return()=>{const{fillColor:n,railColor:p,strokeWidth:y,offsetDegree:u,status:z,percentage:C,showIndicator:q,indicatorTextColor:h,unit:B,gapOffsetDegree:g,clsPrefix:f}=t,{pathString:O,pathStyle:V}=I(100,0,p,"rail"),{pathString:D,pathStyle:M}=I(C,u,n,"fill"),A=100+y;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${f}-progress-graph-circle`),style:j({transform:g?`rotate(${g}deg)`:void 0})},[(o(),s("svg",{viewBox:`0 0 ${A} ${A}`},[N(()=>x()),r("g",null,[r("path",{class:w(`${f}-progress-graph-circle-rail`),d:O,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(V)},null,14,lt)]),r("g",null,[r("path",{class:w([`${f}-progress-graph-circle-fill`,C===0&&`${f}-progress-graph-circle-fill--empty`]),d:D,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(M)},null,14,nt)])],8,st))],6)],2),q?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),role:"none"},[N(()=>c.default())],2)):(o(),s(E,{key:1},[z!=="default"?(o(),s("div",{key:0,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>ct[z]},1032,["clsPrefix"]))],2)):(o(),s("div",{key:1,class:w(`${f}-progress-text`),style:j({color:h}),role:"none"},[r("span",{class:w(`${f}-progress-text__percentage`)},[N(()=>C)],2),r("span",{class:w(`${f}-progress-text__unit`)},[N(()=>B)],2)],6))],64))])):N(()=>null)],2)}}});const dt={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ft=H({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(t,{slots:c}){const k=W(()=>K(t.height)),I=W(()=>typeof t.fillColor=="object"?`linear-gradient(to right, ${t.fillColor?.stops[0]} , ${t.fillColor?.stops[1]})`:t.fillColor),x=W(()=>t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):""),n=W(()=>t.fillBorderRadius!==void 0?K(t.fillBorderRadius):t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:p,railColor:y,railStyle:u,percentage:z,unit:C,indicatorTextColor:q,status:h,showIndicator:B,processing:g,clsPrefix:f}=t;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w([`${f}-progress-graph-line`,{[`${f}-progress-graph-line--indicator-${p}`]:!0}])},[r("div",{class:w(`${f}-progress-graph-line-rail`),style:j([{backgroundColor:y,height:k.value,borderRadius:x.value},u])},[r("div",{class:w([`${f}-progress-graph-line-fill`,g&&`${f}-progress-graph-line-fill--processing`]),style:j({maxWidth:`${t.percentage}%`,background:I.value,height:k.value,lineHeight:k.value,borderRadius:n.value})},[p==="inside"?(o(),s("div",{key:0,class:w(`${f}-progress-graph-line-indicator`),style:j({color:q})},[c.default?(o(),s(E,{key:0},[N(()=>c.default())],64)):(o(),s(E,{key:1},[N(()=>`${z}${C}`)],64))],6)):N(()=>null)],6)],6)],2)],2),B&&p==="outside"?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),style:j({color:q}),role:"none"},[N(()=>c.default())],6)):(o(),s(E,{key:1},[h==="default"?(o(),s("div",{key:0,role:"none",class:w(`${f}-progress-icon ${f}-progress-icon--as-text`),style:j({color:q})},[N(()=>z),N(()=>C)],6)):(o(),s("div",{key:1,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>dt[h]},1032,["clsPrefix"]))],2))],64))])):N(()=>null)],2)}}});const pt=["id"],gt=["stop-color"],vt=["stop-color"],ht=["d","stroke-width"],yt=["d","stroke-width"],mt=["viewBox"];function be(t,c,k=100){return`m ${k/2} ${k/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var bt=H({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(t,{slots:c}){const k=W(()=>t.percentage.map((x,n)=>`${Math.PI*x/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*n)-t.circleGap*n)*2}, ${t.viewBoxWidth*8}`)),I=(x,n)=>{const p=t.fillColor[n],y=typeof p=="object"?p.stops[0]:"",u=typeof p=="object"?p.stops[1]:"";return typeof t.fillColor[n]=="object"&&(o(),s("linearGradient",{id:`gradient-${n}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},[r("stop",{offset:"0%","stop-color":y},null,8,gt),r("stop",{offset:"100%","stop-color":u},null,8,vt)],8,pt))};return()=>{const{viewBoxWidth:x,strokeWidth:n,circleGap:p,showIndicator:y,fillColor:u,railColor:z,railStyle:C,percentage:q,clsPrefix:h}=t;return o(),s("div",{class:w(`${h}-progress-content`),role:"none"},[r("div",{class:w(`${h}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${h}-progress-graph-circle`)},[(o(),s("svg",{viewBox:`0 0 ${x} ${x}`},[r("defs",null,[N(()=>q.map((B,g)=>I(B,g)))]),N(()=>q.map((B,g)=>(o(),s("g",{key:g},[r("path",{class:w(`${h}-progress-graph-circle-rail`),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j([{strokeDashoffset:0,stroke:z[g]},C[g]])},null,14,ht),r("path",{class:w([`${h}-progress-graph-circle-fill`,B===0&&`${h}-progress-graph-circle-fill--empty`]),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j({strokeDasharray:k.value[g],strokeDashoffset:0,stroke:typeof u[g]=="object"?`url(#gradient-${g})`:u[g]})},null,14,yt)]))))],8,mt))],2)],2),y&&c.default?(o(),s("div",{key:0},[r("div",{class:w(`${h}-progress-text`)},[N(()=>c.default())],2)])):N(()=>null)],2)}}}),wt=re([_("progress",{display:"inline-block"},[_("progress-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),X("line",` + width: 100%; + display: block; + `,[_("progress-content",` + display: flex; + align-items: center; + `,[_("progress-graph",{flex:1})]),_("progress-custom-content",{marginLeft:"14px"}),_("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); + `,[X("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); + `)])]),X("circle, dashboard",{width:"120px"},[_("progress-custom-content",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `),_("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; + `),_("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); + `)]),X("multiple-circle",` + width: 200px; + color: inherit; + `,[_("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); + `)]),_("progress-content",{position:"relative"}),_("progress-graph",{position:"relative"},[_("progress-graph-circle",[re("svg",{verticalAlign:"bottom"}),_("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); + `,[X("empty",{opacity:0})]),_("progress-graph-circle-rail",` + transition: stroke .3s var(--n-bezier); + overflow: hidden; + stroke: var(--n-rail-color); + `)]),_("progress-graph-line",[X("indicator-inside",[_("progress-graph-line-rail",` + height: 16px; + line-height: 16px; + border-radius: 10px; + `,[_("progress-graph-line-fill",` + height: inherit; + border-radius: 10px; + `),_("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); + `)])]),X("indicator-inside-label",` + height: 16px; + display: flex; + align-items: center; + `,[_("progress-graph-line-rail",` + flex: 1; + transition: background-color .3s var(--n-bezier); + `),_("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); + `)]),_("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); + `,[_("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); + `,[X("processing",[re("&::after",` + content: ""; + background-image: var(--n-line-bg-processing); + animation: progress-processing-animation 2s var(--n-bezier) infinite; + `)])])])])])]),re("@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; + } + `)]);const kt=["aria-valuenow","role"],_t={...Se.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};var xt=H({name:"Progress",props:_t,setup(t){const c=W(()=>t.indicatorPlacement||t.indicatorPosition),k=W(()=>{if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),{mergedClsPrefixRef:I,inlineThemeDisabled:x}=Ee(t),n=Se("Progress","-progress",wt,Ge,t,I),p=W(()=>{const{status:u}=t,{common:{cubicBezierEaseInOut:z},self:{fontSize:C,fontSizeCircle:q,railColor:h,railHeight:B,iconSizeCircle:g,iconSizeLine:f,textColorCircle:O,textColorLineInner:V,textColorLineOuter:D,lineBgProcessing:M,fontWeightCircle:A,[ge("iconColor",u)]:Y,[ge("fillColor",u)]:U}}=n.value;return{"--n-bezier":z,"--n-fill-color":U,"--n-font-size":C,"--n-font-size-circle":q,"--n-font-weight-circle":A,"--n-icon-color":Y,"--n-icon-size-circle":g,"--n-icon-size-line":f,"--n-line-bg-processing":M,"--n-rail-color":h,"--n-rail-height":B,"--n-text-color-circle":O,"--n-text-color-line-inner":V,"--n-text-color-line-outer":D}}),y=x?Ue("progress",W(()=>t.status[0]),p,t):void 0;return{mergedClsPrefix:I,mergedIndicatorPlacement:c,gapDeg:k,cssVars:x?void 0:p,themeClass:y?.themeClass,onRender:y?.onRender}},render(){const{type:t,cssVars:c,indicatorTextColor:k,showIndicator:I,status:x,railColor:n,railStyle:p,color:y,percentage:u,viewBoxWidth:z,strokeWidth:C,mergedIndicatorPlacement:q,unit:h,borderRadius:B,fillBorderRadius:g,height:f,processing:O,circleGap:V,mergedClsPrefix:D,gapDeg:M,gapOffsetDegree:A,themeClass:Y,$slots:U,onRender:oe}=this;return oe?.(),o(),s("div",{class:w([Y,`${D}-progress`,`${D}-progress--${t}`,`${D}-progress--${x}`]),style:j(c),"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":u,role:t==="circle"||t==="line"||t==="dashboard"?"progressbar":"none"},[t==="circle"||t==="dashboard"?(o(),S(ut,{key:0,clsPrefix:D,status:x,showIndicator:I,indicatorTextColor:k,railColor:n,fillColor:y,railStyle:p,offsetDegree:this.offsetDegree,percentage:u,viewBoxWidth:z,strokeWidth:C,gapDegree:M===void 0?t==="dashboard"?75:0:M,gapOffsetDegree:A,unit:h},ue(U),1032,["clsPrefix","status","showIndicator","indicatorTextColor","railColor","fillColor","railStyle","offsetDegree","percentage","viewBoxWidth","strokeWidth","gapDegree","gapOffsetDegree","unit"])):(o(),s(E,{key:1},[t==="line"?(o(),S(ft,{key:0,clsPrefix:D,status:x,showIndicator:I,indicatorTextColor:k,railColor:n,fillColor:y,railStyle:p,percentage:u,processing:O,indicatorPlacement:q,unit:h,fillBorderRadius:g,railBorderRadius:B,height:f},ue(U),1032,["clsPrefix","status","showIndicator","indicatorTextColor","railColor","fillColor","railStyle","percentage","processing","indicatorPlacement","unit","fillBorderRadius","railBorderRadius","height"])):(o(),s(E,{key:1},[t==="multiple-circle"?(o(),S(bt,{key:0,clsPrefix:D,strokeWidth:C,railColor:n,fillColor:y,railStyle:p,viewBoxWidth:z,percentage:u,showIndicator:I,circleGap:V},ue(U),1032,["clsPrefix","strokeWidth","railColor","fillColor","railStyle","viewBoxWidth","percentage","showIndicator","circleGap"])):N(()=>null)],64))],64))],14,kt)}});const $t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ct=H({name:"CopyOutline",render:function(c,k){return o(),s("svg",$t,k[0]||(k[0]=[r("rect",{x:"128",y:"128",width:"336",height:"336",rx:"57",ry:"57",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),r("path",{d:"M383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},zt=H({name:"MusicalNotesOutline",render:function(c,k){return o(),s("svg",St,k[0]||(k[0]=[r("path",{d:"M192 218v-6c0-14.84 10-27 24.24-30.59l174.59-46.68A20 20 0 0 1 416 154v22",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),r("path",{d:"M416 295.94v80c0 13.91-8.93 25.59-22 30l-22 8c-25.9 8.72-52-10.42-52-38h0a33.37 33.37 0 0 1 23-32l51-18.15c13.07-4.4 22-15.94 22-29.85V58a10 10 0 0 0-12.6-9.61L204 102a16.48 16.48 0 0 0-12 16v226c0 13.91-8.93 25.6-22 30l-52 18c-13.88 4.68-22 17.22-22 32h0c0 27.58 26.52 46.55 52 38l22-8c13.07-4.4 22-16.08 22-30v-80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),we=t=>Q("/v1/shortvideo/parse",{text:t}),Pt=t=>Q("/v1/shortvideo/download",t),Bt=t=>Q("/v1/shortvideo/enumerate",{url:t}),Rt=t=>Q("/v1/shortvideo/batch",t),qt=()=>ze("/v1/shortvideo/tasks"),Nt=t=>Q(`/v1/shortvideo/tasks/${t}/cancel`),Dt=t=>Q(`/v1/shortvideo/tasks/${t}/retry`),It=()=>ze("/v1/shortvideo/cookie"),Ot=t=>Q("/v1/shortvideo/cookie",{cookie:t}),Tt=()=>Le("/v1/shortvideo/cookie"),Mt={class:"page"},Wt={class:"page-head"},Vt={class:"toolbar"},jt={class:"hero panel"},At={class:"hero-line"},Et={class:"hero-foot"},Ut={key:1,class:"result panel fade-up"},Gt={class:"result-main"},Lt=["src"],Xt={key:1,class:"cover placeholder"},Ft={class:"meta"},Yt={class:"title-row"},Ht={class:"sub"},Qt={class:"mono"},Jt={key:0},Kt={key:1},Zt={class:"actions"},er={class:"batch panel"},tr={class:"batch-source"},rr={class:"batch-actions"},or={key:0,class:"batch-list"},ir=["src"],ar={class:"batch-meta"},sr={class:"batch-title"},lr={class:"batch-sub"},nr={key:0},cr={key:1,class:"batch-error"},ur={class:"tasks"},dr={class:"section-head"},fr={key:0,class:"empty"},pr={class:"task-head"},gr={class:"task-title"},vr={class:"mono task-id"},hr={class:"task-actions"},yr={class:"task-progress"},mr={class:"task-numbers"},br={key:0,class:"task-error"},wr={class:"items"},kr={class:"item-label"},_r={key:0,class:"item-path mono"},xr={key:2,class:"item-error"},$r={class:"cookie-status"},Cr={key:0},Sr={class:"cookie-actions"},zr=H({__name:"ShortVideoView",setup(t){const c=Je(),k={value:!1};function I(){try{return window.sessionStorage.getItem("shortvideo_authorized")==="1"}catch{return k.value}}function x(a){k.value=a;try{a?window.sessionStorage.setItem("shortvideo_authorized","1"):window.sessionStorage.removeItem("shortvideo_authorized")}catch{}}const n=P(I()),p=P(""),y=P(!1),u=P(null),z=P(""),C=P([]),q=P(!1),h=P(!1),B=P(""),g=P(null),f=P(""),O=P([]),V=P(!1),D=P(!1),M=P(""),A=P(""),Y=P(!1);let U;const oe=W(()=>(u.value?.qualities??[]).map(a=>({label:a.bitrate>0?`${a.label} · ${Math.round(a.bitrate/1e3)} kbps`:a.label,value:a.label}))),Pe=W(()=>C.value.filter(a=>a.status==="running"||a.status==="pending")),fe=W(()=>(O.value.find(e=>e.view?.qualities.length)?.view?.qualities??[]).map(e=>({label:e.bitrate>0?`${e.label} · ${Math.round(e.bitrate/1e3)} kbps`:e.label,value:e.label})));function Be(a){n.value=a,x(a)}async function Re(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}if(!p.value.trim()){c.warning("请粘贴抖音分享链接或分享文案");return}y.value=!0,u.value=null;try{const a=await we(p.value.trim());u.value=a,z.value=a.qualities[0]?.label??""}catch(a){c.error(a instanceof Error?a.message:"解析失败")}finally{y.value=!1}}async function ie(a){if(u.value){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}try{const e=await Pt({aweme_id:u.value.aweme_id,quality:z.value,parts:a});c.success(`已创建下载任务 #${e.task_id}`),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"创建任务失败")}}}async function qe(){const a=f.value.split(/\r?\n/).map(m=>m.trim()).filter(Boolean).slice(0,20);if(!a.length){c.warning("请每行粘贴一条抖音作品链接");return}V.value=!0;const e=[];for(const m of a)try{const G=await we(m);e.push({link:m,view:G,selected:!0})}catch(G){e.push({link:m,error:G instanceof Error?G.message:"解析失败",selected:!1})}O.value=e;const i=e.find(m=>m.view?.qualities.length)?.view;i?.qualities[0]&&(M.value=i.qualities[0].label),V.value=!1}async function Ne(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}if(!A.value.trim()){c.warning("请粘贴抖音主页或合集链接");return}Y.value=!0;try{const a=await Bt(A.value.trim());if(!a.items.length){c.warning("没有抓到作品,可能需要先在抖音完成登录/验证,或页面尚未加载完");return}const e=20;O.value=a.items.map((i,m)=>{const G=i.kind==="note"?"images":"video";return{link:`https://www.douyin.com/${i.kind==="note"?"note":"video"}/${i.aweme_id}`,selected:me?`已枚举 ${a.items.length} 条作品,只默认勾选前 ${e} 条(后端一次最多 20 条),其余请分批提交`:`已枚举 ${a.items.length} 条作品,请勾选后开始批量下载`)}catch(a){c.error(a instanceof Error?a.message:"自动枚举失败")}finally{Y.value=!1}}async function De(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}const a=O.value.filter(e=>e.selected&&e.view).map(e=>e.link);if(!a.length){c.warning("请至少选择一条可下载的作品");return}D.value=!0;try{const e=await Rt({links:a,quality:M.value||"highest"});c.success(`已创建批量任务,共 ${e.task_ids.length} 条`),e.errors.length&&c.warning(`${e.errors.length} 条失败,见任务列表`),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"批量下载失败")}finally{D.value=!1}}let ae=!1,se=!1,Z=!1;async function L(a=!1){if(!Z){if(ae){a&&(se=!0);return}ae=!0,q.value=!0;try{C.value=await qt()}catch{}finally{ae=!1,q.value=!1,se&&!Z&&(se=!1,L(!0))}}}const le=P(new Set),ne=P(new Set);async function Ie(a){if(!le.value.has(a.id)){le.value.add(a.id);try{await Nt(a.id),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"取消失败")}finally{le.value.delete(a.id)}}}async function Oe(a){if(!ne.value.has(a.id)){ne.value.add(a.id);try{await Dt(a.id),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"重试失败")}finally{ne.value.delete(a.id)}}}async function Te(a){if(a)try{await navigator.clipboard.writeText(a),c.success("路径已复制")}catch{c.error("复制失败,请手动选择路径")}}async function Me(){try{g.value=await It()}catch{g.value=null}}const J=P(!1);async function We(){if(!J.value){if(!B.value.trim()){c.warning("请粘贴 Cookie");return}J.value=!0;try{g.value=await Ot(B.value.trim()),B.value="",c.success("Cookie 已保存")}catch(a){c.error(a instanceof Error?a.message:"保存失败")}finally{J.value=!1}}}async function Ve(){if(!J.value){J.value=!0;try{g.value=await Tt(),c.success("Cookie 已清除")}catch(a){c.error(a instanceof Error?a.message:"清除失败")}finally{J.value=!1}}}function ce(a){switch(a){case"running":return{label:"下载中",type:"info"};case"pending":return{label:"排队中",type:"default"};case"done":return{label:"已完成",type:"success"};case"failed":return{label:"失败",type:"error"};case"cancelled":return{label:"已取消",type:"warning"};default:return{label:a,type:"default"}}}function je(a){if(!a)return"—";const e=Math.floor(a/1e3);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}return Xe(async()=>{await Promise.all([L(),Me()]),!Z&&(U=window.setInterval(()=>{document.visibilityState==="visible"&&(Pe.value.length>0||C.value.some(a=>a.status==="pending"))&&L()},2e3))}),Fe(()=>{Z=!0,U&&window.clearInterval(U)}),(a,e)=>(o(),s("div",Mt,[r("div",Wt,[e[13]||(e[13]=r("div",null,[r("h1",{class:"page-title"},"作品备份"),r("p",{class:"page-sub"},"抖音单条视频、图集、原声下载 · 仅限本人作品或已获授权的内容")],-1)),r("div",Vt,[d(l(ee),{size:"small",round:"",bordered:!1,type:g.value?.has_cookie?"success":"default"},{default:v(()=>[$(b(g.value?.has_cookie?"Cookie 已导入":"自动签名"),1)]),_:1},8,["type"]),d(l(T),{quaternary:"",size:"small",onClick:e[0]||(e[0]=i=>h.value=!0)},{default:v(()=>[...e[12]||(e[12]=[$("Cookie 设置",-1)])]),_:1})])]),r("section",jt,[r("div",At,[d(l(F),{size:18,class:"hero-icon"},{default:v(()=>[d(l(Ze))]),_:1}),e[14]||(e[14]=r("span",null,"粘贴抖音分享链接或整段分享文案",-1))]),d(l(te),{value:p.value,"onUpdate:value":e[1]||(e[1]=i=>p.value=i),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"例如:7.43 复制打开抖音,看看【...】 https://v.douyin.com/xxxxxx/",disabled:!n.value},null,8,["value","disabled"]),r("div",Et,[d(l(ve),{checked:n.value,"onUpdate:checked":Be},{default:v(()=>[...e[15]||(e[15]=[$(" 我确认这是本人作品,或已取得权利人授权,仅用于个人备份 ",-1)])]),_:1},8,["checked"]),d(l(T),{type:"primary",loading:y.value,disabled:!n.value,onClick:Re},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(et))]),_:1})]),default:v(()=>[e[16]||(e[16]=$(" 解析 ",-1))]),_:1},8,["loading","disabled"])])]),y.value?(o(),S(l(Ke),{key:0,size:"large",class:"loading"})):u.value?(o(),s("section",Ut,[r("div",Gt,[u.value.cover?(o(),s("img",{key:0,class:"cover",src:u.value.cover,alt:"",referrerpolicy:"no-referrer"},null,8,Lt)):(o(),s("div",Xt,[d(l(F),{size:30},{default:v(()=>[d(l(tt))]),_:1})])),r("div",Ft,[r("div",Yt,[r("h2",null,b(u.value.title),1),d(l(ee),{size:"small",bordered:!1,type:u.value.kind==="images"?"warning":"info"},{default:v(()=>[$(b(u.value.kind==="images"?`图集 ${u.value.image_count} 张`:"视频"),1)]),_:1},8,["type"])]),r("div",Ht,[r("span",null,b(u.value.author),1),r("span",Qt,b(u.value.aweme_id),1),u.value.duration_ms?(o(),s("span",Jt,"时长 "+b(je(u.value.duration_ms)),1)):R("",!0),u.value.create_time?(o(),s("span",Kt,b(l(he)(u.value.create_time*1e3)),1)):R("",!0)]),r("div",Zt,[u.value.kind==="video"?(o(),s(E,{key:0},[d(l(pe),{value:z.value,"onUpdate:value":e[2]||(e[2]=i=>z.value=i),class:"quality",options:oe.value,placeholder:"选择画质"},null,8,["value","options"]),d(l(T),{type:"primary",onClick:e[3]||(e[3]=i=>ie(["video"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(me))]),_:1})]),default:v(()=>[e[17]||(e[17]=$(" 下载视频 ",-1))]),_:1})],64)):(o(),S(l(T),{key:1,type:"primary",onClick:e[4]||(e[4]=i=>ie(["images"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(me))]),_:1})]),default:v(()=>[e[18]||(e[18]=$(" 下载全部图片 ",-1))]),_:1})),u.value.has_audio?(o(),S(l(T),{key:2,secondary:"",onClick:e[5]||(e[5]=i=>ie(["audio"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(zt))]),_:1})]),default:v(()=>[e[19]||(e[19]=$(" 下载音频 ",-1))]),_:1})):R("",!0)])])])])):R("",!0),r("section",er,[e[23]||(e[23]=r("div",{class:"section-head"},[r("h2",null,"批量链接"),r("span",{class:"batch-hint"},"一行一条,最多 20 条;主页/合集请先展开成作品链接")],-1)),r("div",tr,[d(l(te),{value:A.value,"onUpdate:value":e[6]||(e[6]=i=>A.value=i),placeholder:"粘贴抖音主页或合集链接,桌面版自动枚举",clearable:""},null,8,["value"]),d(l(T),{loading:Y.value,disabled:!n.value,onClick:Ne},{default:v(()=>[...e[20]||(e[20]=[$(" 自动枚举 ",-1)])]),_:1},8,["loading","disabled"])]),e[24]||(e[24]=r("p",{class:"batch-tip"}," 桌面版会用隐藏浏览器抓取作品;服务器部署不支持自动枚举,请直接粘贴作品链接。 ",-1)),d(l(te),{value:f.value,"onUpdate:value":e[7]||(e[7]=i=>f.value=i),type:"textarea",autosize:{minRows:3,maxRows:8},placeholder:`https://www.douyin.com/video/... +https://www.douyin.com/video/...`,disabled:!n.value},null,8,["value","disabled"]),r("div",rr,[d(l(T),{loading:V.value,disabled:!n.value,onClick:qe},{default:v(()=>[...e[21]||(e[21]=[$(" 解析链接 ",-1)])]),_:1},8,["loading","disabled"]),fe.value.length?(o(),S(l(pe),{key:0,value:M.value,"onUpdate:value":e[8]||(e[8]=i=>M.value=i),class:"quality",options:fe.value},null,8,["value","options"])):R("",!0),d(l(T),{type:"primary",loading:D.value,disabled:!n.value||!O.value.some(i=>i.selected&&i.view),onClick:De},{default:v(()=>[...e[22]||(e[22]=[$(" 开始批量下载 ",-1)])]),_:1},8,["loading","disabled"])]),O.value.length?(o(),s("div",or,[(o(!0),s(E,null,de(O.value,(i,m)=>(o(),s("label",{key:m,class:"batch-entry"},[d(l(ve),{checked:i.selected,"onUpdate:checked":G=>i.selected=G,disabled:!i.view},null,8,["checked","onUpdate:checked","disabled"]),i.view?.cover?(o(),s("img",{key:0,src:i.view.cover,alt:"",referrerpolicy:"no-referrer"},null,8,ir)):R("",!0),r("span",ar,[r("span",sr,b(i.view?.title||i.link),1),r("span",lr,[$(b(i.view?.author||"")+" ",1),i.view?.kind==="images"?(o(),s("span",nr," · 图集 "+b(i.view.image_count)+" 张 ",1)):R("",!0),i.error?(o(),s("span",cr,"· "+b(i.error),1)):R("",!0)])])]))),128))])):R("",!0)]),r("section",ur,[r("div",dr,[e[25]||(e[25]=r("h2",null,"下载任务",-1)),d(l(T),{quaternary:"",circle:"",loading:q.value,"aria-label":"刷新",onClick:e[9]||(e[9]=i=>L(!0))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(rt))]),_:1})]),_:1},8,["loading"])]),C.value.length===0?(o(),s("div",fr,"还没有下载任务。解析作品后点击下载即可。")):R("",!0),(o(!0),s(E,null,de(C.value,i=>(o(),s("article",{key:i.id,class:"task panel"},[r("div",pr,[r("div",gr,[r("span",vr,"#"+b(i.id),1),r("span",null,b(i.title),1),d(l(ee),{size:"tiny",type:ce(i.status).type,bordered:!1},{default:v(()=>[$(b(ce(i.status).label),1)]),_:2},1032,["type"]),i.batch_id?(o(),S(l(ee),{key:0,size:"tiny",bordered:!1},{default:v(()=>[$(b(i.batch_title||"批量"),1)]),_:2},1024)):R("",!0)]),r("div",hr,[i.status==="running"||i.status==="pending"?(o(),S(l(T),{key:0,size:"tiny",quaternary:"",onClick:m=>Ie(i)},{default:v(()=>[...e[26]||(e[26]=[$(" 取消 ",-1)])]),_:1},8,["onClick"])):R("",!0),i.status==="failed"||i.status==="cancelled"?(o(),S(l(T),{key:1,size:"tiny",quaternary:"",onClick:m=>Oe(i)},{default:v(()=>[...e[27]||(e[27]=[$(" 重试 ",-1)])]),_:1},8,["onClick"])):R("",!0)])]),r("div",yr,[d(l(xt),{type:"line",percentage:i.total?Math.round(i.done/i.total*100):0,status:i.status==="failed"?"error":i.status==="done"?"success":"default","show-indicator":!1},null,8,["percentage","status"]),r("span",mr,b(i.done)+"/"+b(i.total)+" · "+b(l(ye)(i.bytes)),1)]),i.error?(o(),s("div",br,b(i.error),1)):R("",!0),r("div",wr,[(o(!0),s(E,null,de(i.items,m=>(o(),s("div",{key:m.seq,class:"item"},[r("span",kr,b(m.label),1),r("span",{class:He(["item-status",m.status])},[$(b(ce(m.status).label)+" ",1),m.bytes?(o(),s(E,{key:0},[$(" · "+b(l(ye)(m.bytes)),1)],64)):R("",!0)],2),m.file_path?(o(),s("span",_r,b(m.file_path),1)):R("",!0),m.file_path?(o(),S(l(T),{key:1,size:"tiny",quaternary:"",onClick:G=>Te(m.file_path)},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(Ct))]),_:1})]),default:v(()=>[e[28]||(e[28]=$(" 复制路径 ",-1))]),_:1},8,["onClick"])):R("",!0),m.error?(o(),s("span",xr,b(m.error),1)):R("",!0)]))),128))])]))),128))]),d(l(Ye),{show:h.value,"onUpdate:show":e[11]||(e[11]=i=>h.value=i),preset:"card",style:{width:"560px",maxWidth:"92vw"}},{header:v(()=>[...e[29]||(e[29]=[$("抖音 Cookie(可选)",-1)])]),default:v(()=>[e[32]||(e[32]=r("p",{class:"cookie-hint"}," 通常不需要手动导入。遇到 403、需要登录态或批量受限时,可从浏览器开发者工具复制 `www.douyin.com` 的 Cookie 粘贴到这里。Cookie 只保存在本机,不会回显。 ",-1)),r("div",$r,[r("span",null,"状态:"+b(g.value?.has_cookie?"已导入":"未导入"),1),g.value?.updated_at?(o(),s("span",Cr,"更新于 "+b(l(he)(g.value.updated_at*1e3)),1)):R("",!0)]),d(l(te),{value:B.value,"onUpdate:value":e[10]||(e[10]=i=>B.value=i),type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"ttwid=...; UIFID=..."},null,8,["value"]),r("div",Sr,[d(l(T),{quaternary:"",onClick:Ve},{default:v(()=>[...e[30]||(e[30]=[$("清除 Cookie",-1)])]),_:1}),d(l(T),{type:"primary",onClick:We},{default:v(()=>[...e[31]||(e[31]=[$("保存 Cookie",-1)])]),_:1})])]),_:1},8,["show"])]))}}),Er=Qe(zr,[["__scopeId","data-v-1e0a3edb"]]);export{Er as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-cKyh5vit.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-cKyh5vit.css new file mode 100644 index 00000000..c8aa7538 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-cKyh5vit.css @@ -0,0 +1 @@ +.hero[data-v-1e0a3edb]{padding:18px;margin-bottom:18px}.hero-line[data-v-1e0a3edb]{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);margin-bottom:10px}.hero-icon[data-v-1e0a3edb]{color:var(--accent)}.hero-foot[data-v-1e0a3edb]{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;flex-wrap:wrap}.hero-foot[data-v-1e0a3edb] .n-checkbox__label{font-size:11.5px;color:var(--muted)}.loading[data-v-1e0a3edb]{display:grid;place-items:center;padding:60px 0}.result[data-v-1e0a3edb]{padding:18px;margin-bottom:22px}.result-main[data-v-1e0a3edb]{display:flex;gap:18px}.cover[data-v-1e0a3edb]{width:168px;aspect-ratio:9 / 16;object-fit:cover;border-radius:12px;background:#0a1118;flex:none}.cover.placeholder[data-v-1e0a3edb]{display:grid;place-items:center;color:var(--muted-2)}.meta[data-v-1e0a3edb]{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:10px}.title-row[data-v-1e0a3edb]{display:flex;align-items:flex-start;gap:10px}.title-row h2[data-v-1e0a3edb]{margin:0;font-size:17px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.sub[data-v-1e0a3edb]{display:flex;flex-wrap:wrap;gap:12px;font-size:11.5px;color:var(--muted)}.actions[data-v-1e0a3edb]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px}.quality[data-v-1e0a3edb]{width:210px}.tasks[data-v-1e0a3edb]{margin-top:8px}.section-head[data-v-1e0a3edb]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-head h2[data-v-1e0a3edb]{margin:0;font-size:15px;font-weight:650}.empty[data-v-1e0a3edb]{padding:34px 0;text-align:center;color:var(--muted);font-size:12.5px}.task[data-v-1e0a3edb]{padding:14px 16px;margin-bottom:10px}.task-head[data-v-1e0a3edb]{display:flex;align-items:center;justify-content:space-between;gap:12px}.task-title[data-v-1e0a3edb]{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;font-weight:550}.task-id[data-v-1e0a3edb]{color:var(--muted-2);font-size:11px}.task-actions[data-v-1e0a3edb]{display:flex;gap:4px;flex:none}.task-progress[data-v-1e0a3edb]{display:flex;align-items:center;gap:12px;margin-top:10px}.task-progress[data-v-1e0a3edb] .n-progress{flex:1}.task-numbers[data-v-1e0a3edb]{font-size:11px;color:var(--muted);font-family:var(--mono);flex:none}.task-error[data-v-1e0a3edb]{margin-top:8px;font-size:11.5px;color:var(--danger-text)}.items[data-v-1e0a3edb]{margin-top:10px;display:flex;flex-direction:column;gap:6px}.item[data-v-1e0a3edb]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:var(--muted);padding:5px 8px;border-radius:7px;background:#94c5d608}.item-label[data-v-1e0a3edb]{color:var(--text);min-width:60px}.item-status.done[data-v-1e0a3edb]{color:var(--ok)}.item-status.failed[data-v-1e0a3edb]{color:var(--danger)}.item-path[data-v-1e0a3edb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:52%}.item-error[data-v-1e0a3edb]{color:var(--danger-text)}.cookie-hint[data-v-1e0a3edb]{margin:0 0 12px;font-size:11.5px;line-height:1.7;color:var(--muted)}.cookie-status[data-v-1e0a3edb]{display:flex;gap:14px;font-size:11.5px;color:var(--muted);margin-bottom:10px}.cookie-actions[data-v-1e0a3edb]{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.batch[data-v-1e0a3edb]{padding:18px;margin-bottom:22px}.batch-hint[data-v-1e0a3edb]{font-size:11px;color:var(--muted-2)}.batch-source[data-v-1e0a3edb]{display:flex;gap:10px;margin-bottom:8px}.batch-tip[data-v-1e0a3edb]{margin:0 0 10px;font-size:10.5px;color:var(--muted-2);line-height:1.6}.batch-actions[data-v-1e0a3edb]{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}.batch-list[data-v-1e0a3edb]{margin-top:12px;display:flex;flex-direction:column;gap:6px;max-height:320px;overflow:auto}.batch-entry[data-v-1e0a3edb]{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;background:#94c5d608;cursor:pointer}.batch-entry img[data-v-1e0a3edb]{width:38px;height:50px;object-fit:cover;border-radius:6px;background:#0a1118;flex:none}.batch-meta[data-v-1e0a3edb]{display:flex;flex-direction:column;gap:3px;min-width:0}.batch-title[data-v-1e0a3edb]{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-sub[data-v-1e0a3edb]{font-size:10.5px;color:var(--muted)}.batch-error[data-v-1e0a3edb]{color:var(--danger-text)}@media(max-width:720px){.result-main[data-v-1e0a3edb]{flex-direction:column}.cover[data-v-1e0a3edb]{width:130px}.item-path[data-v-1e0a3edb]{max-width:100%}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CCColBh4.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CCColBh4.js new file mode 100644 index 00000000..31e1f1b1 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CCColBh4.js @@ -0,0 +1,43 @@ +import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-Bmcyfv7z.js";import{a as K}from"./use-compitable-CSVBov8c.js";var L=b([b("@keyframes spin-rotate",` + from { + transform: rotate(0); + } + to { + transform: rotate(360deg); + } + `),a("spin-container",` + position: relative; + `,[a("spin-body",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + `,[$()])]),a("spin-body",` + display: inline-flex; + align-items: center; + justify-content: center; + flex-direction: column; + `),a("spin",` + display: inline-flex; + height: var(--n-size); + width: var(--n-size); + font-size: var(--n-size); + color: var(--n-color); + `,[g("rotate",` + animation: spin-rotate 2s linear infinite; + `)]),a("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; + `),a("spin-content",` + opacity: 1; + transition: opacity .3s var(--n-bezier); + pointer-events: all; + `,[g("spinning",` + user-select: none; + -webkit-user-select: none; + pointer-events: none; + opacity: var(--n-opacity-spinning); + `)])]);const D={small:20,medium:18,large:16},H={...k.props,contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number,...T,strokeWidth:Number};var X=w({name:"Spin",props:H,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=V(e),f=k("Spin","-spin",L,E,e,t),r=y(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:n},self:c}=f.value,{opacitySpinning:S,color:x,textColor:C}=c;return{"--n-bezier":n,"--n-opacity-spinning":S,"--n-size":typeof s=="number"?I(s):c[O("size",s)],"--n-color":x,"--n-text-color":C}}),l=o?N("spin",y(()=>{const{size:s}=e;return typeof s=="number"?String(s):s[0]}),r,e):void 0,v=K(e,["spinning","show"]),h=_(!1);return W(s=>{let n;if(v.value){const{delay:c}=e;if(c){n=window.setTimeout(()=>{h.value=!0},c),s(()=>{clearTimeout(n)});return}}h.value=v.value}),{mergedClsPrefix:t,active:h,mergedStrokeWidth:y(()=>{const{strokeWidth:s}=e;if(s!==void 0)return s;const{size:n}=e;return D[typeof n=="number"?"medium":n]}),cssVars:o?void 0:r,themeClass:l?.themeClass,onRender:l?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,description:o}=this,f=e.icon&&this.rotate,r=(o||e.description)&&(d(),u("div",{class:i(`${t}-spin-description`)},[p(()=>o||e.description?.())],2)),l=e.icon?(d(),u("div",{key:1,class:i([`${t}-spin-body`,this.themeClass])},[z("div",{class:i([`${t}-spin`,f&&`${t}-spin--rotate`]),style:m(e.default?"":this.cssVars)},[p(()=>e.icon())],6),p(()=>r)],2)):(d(),u("div",{key:2,class:i([`${t}-spin-body`,this.themeClass])},[(d(),B(R,{clsPrefix:t,style:m(e.default?"":this.cssVars),stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:i(`${t}-spin`)},null,8,["clsPrefix","style","stroke","stroke-width","radius","scale","class"])),p(()=>r)],2));return this.onRender?.(),e.default?(d(),u("div",{key:3,class:i([`${t}-spin-container`,this.themeClass]),style:m(this.cssVars)},[z("div",{class:i([`${t}-spin-content`,this.active&&`${t}-spin-content--spinning`,this.contentClass]),style:m(this.contentStyle)},[p(()=>e.default?.())],6),P(j,{name:"fade-in-transition"},{default:()=>this.active?l:null},1024)],6)):l}});export{X as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B415Ci4w.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B415Ci4w.js new file mode 100644 index 00000000..8f56928f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B415Ci4w.js @@ -0,0 +1,117 @@ +import{I as ce}from"./Input-DS3FhrY_.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-Bmcyfv7z.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{S as Kt,u as At}from"./Switch-C33rKL-M.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-BaVpnNbE.js";import{S as jt}from"./Spin-CCColBh4.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-CGA7qM0U.js";import{T as Vt,P as qt}from"./PulseOutline-Da42XzaM.js";import{h as Je,c as Gt,T as Pe,S as Jt}from"./Select-P9AqjsDB.js";import{u as Xt}from"./use-compitable-CSVBov8c.js";import{a as je}from"./engine-state-Cu8p5L8n.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-D5Y-fBfU.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{F as pn,a as me,A as Xe}from"./AddOutline-DDWMaSa8.js";import{v as vn}from"./filename-template-DBJXvN0y.js";import{C as fn}from"./CheckboxGroup-iTsKmCjZ.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-DoUnrAre.js";import{R as Ye}from"./RefreshOutline-CIl2qHSI.js";import{S as wn}from"./SearchOutline-BOYIL3j0.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("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"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({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 s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Je({target:B},"dropdownOption")&&!Je({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={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},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({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:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("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); +`,[Ct(),ne("dropdown-option",` + position: relative; + `,[fe("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[fe("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),ne("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); + `,[fe("&::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); + `),He("disabled",[ae("pending",` + color: var(--n-option-text-color-hover); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),fe("&::before","background-color: var(--n-option-color-hover);")]),ae("active",` + color: var(--n-option-text-color-active); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-active); + `),fe("&::before","background-color: var(--n-option-color-active);")]),ae("child-active",` + color: var(--n-option-text-color-child-active); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),ae("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),ae("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[se("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[ae("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),se("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; + `,[ae("show-icon",` + width: var(--n-option-icon-prefix-width); + `),ne("icon",` + font-size: var(--n-option-icon-size); + `)]),se("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),se("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; + `,[ae("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),ne("icon",` + font-size: var(--n-option-icon-size); + `)]),ne("dropdown-menu","pointer-events: all;")]),ne("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),ne("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),ne("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),fe(">",[ne("scrollbar",` + height: inherit; + max-height: inherit; + `)]),He("scrollable",` + padding: var(--n-padding); + `),ae("scrollable",[se("content",` + padding: var(--n-padding); + `)])]);const Rn={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:String,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]},zn=Object.keys(ot),Nn={...ot,...Rn,...Oe.props};var In=V({name:"Dropdown",inheritAttrs:!1,props:Nn,setup(e){const s=_(!1),t=Xt(le(e,"show"),s),i=x(()=>{const{keyField:w,childrenField:I}=e;return Gt(e.options,{getKey(A){return A[w]},getDisabled(A){return A.disabled===!0},getIgnored(A){return A.type==="divider"||A.type==="render"},getChildren(A){return A[I]}})}),r=x(()=>i.value.treeNodes),d=_(null),b=_(null),p=_(null),v=x(()=>d.value??b.value??p.value??null),$=x(()=>i.value.getPath(v.value).keyPath),k=x(()=>i.value.getPath(e.value).keyPath),z=$e(()=>e.keyboard&&t.value);yn({keydown:{ArrowUp:{prevent:!0,handler:Z},ArrowRight:{prevent:!0,handler:H},ArrowDown:{prevent:!0,handler:te},ArrowLeft:{prevent:!0,handler:R},Enter:{prevent:!0,handler:oe},Escape:N}},z);const{mergedClsPrefixRef:f,inlineThemeDisabled:T,mergedComponentPropsRef:M}=tt(e),O=x(()=>e.size||M?.value?.Dropdown?.size||"medium"),F=Oe("Dropdown","-dropdown",Pn,Pt,e,f);he(Ee,{labelFieldRef:le(e,"labelField"),childrenFieldRef:le(e,"childrenField"),renderLabelRef:le(e,"renderLabel"),renderIconRef:le(e,"renderIcon"),hoverKeyRef:d,keyboardKeyRef:b,lastToggledSubmenuKeyRef:p,pendingKeyPathRef:$,activeKeyPathRef:k,animatedRef:le(e,"animated"),mergedShowRef:t,nodePropsRef:le(e,"nodeProps"),renderOptionRef:le(e,"renderOption"),menuPropsRef:le(e,"menuProps"),doSelect:D,doUpdateShow:K}),Be(t,w=>{!e.animated&&!w&&W()});function D(w,I){const{onSelect:A}=e;A&&Ke(A,w,I)}function K(w){const{"onUpdate:show":I,onUpdateShow:A}=e;I&&Ke(I,w),A&&Ke(A,w),s.value=w}function W(){d.value=null,b.value=null,p.value=null}function N(){K(!1)}function R(){P("left")}function H(){P("right")}function Z(){P("up")}function te(){P("down")}function oe(){const w=Y();w?.isLeaf&&t.value&&(D(w.key,w.rawNode),K(!1))}function Y(){const{value:w}=i,{value:I}=v;return!w||I===null?null:w.getNode(I)??null}function P(w){const{value:I}=v,{value:{getFirstAvailableNode:A}}=i;let h=null;if(I===null){const B=A();B!==null&&(h=B.key)}else{const B=Y();if(B){let q;switch(w){case"down":q=B.getNext();break;case"up":q=B.getPrev();break;case"right":q=B.getChild();break;case"left":q=B.getParent()}q&&(h=q.key)}}h!==null&&(d.value=null,b.value=h)}const a=x(()=>{const{inverted:w}=e,I=O.value,{common:{cubicBezierEaseInOut:A},self:h}=F.value,{padding:B,dividerColor:q,borderRadius:re,optionOpacityDisabled:C,[ie("optionIconSuffixWidth",I)]:m,[ie("optionSuffixWidth",I)]:U,[ie("optionIconPrefixWidth",I)]:xe,[ie("optionPrefixWidth",I)]:ct,[ie("fontSize",I)]:pt,[ie("optionHeight",I)]:vt,[ie("optionIconSize",I)]:ft}=h,j={"--n-bezier":A,"--n-font-size":pt,"--n-padding":B,"--n-border-radius":re,"--n-option-height":vt,"--n-option-prefix-width":ct,"--n-option-icon-prefix-width":xe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":m,"--n-option-icon-size":ft,"--n-divider-color":q,"--n-option-opacity-disabled":C};return w?(j["--n-color"]=h.colorInverted,j["--n-option-color-hover"]=h.optionColorHoverInverted,j["--n-option-color-active"]=h.optionColorActiveInverted,j["--n-option-text-color"]=h.optionTextColorInverted,j["--n-option-text-color-hover"]=h.optionTextColorHoverInverted,j["--n-option-text-color-active"]=h.optionTextColorActiveInverted,j["--n-option-text-color-child-active"]=h.optionTextColorChildActiveInverted,j["--n-prefix-color"]=h.prefixColorInverted,j["--n-suffix-color"]=h.suffixColorInverted,j["--n-group-header-text-color"]=h.groupHeaderTextColorInverted):(j["--n-color"]=h.color,j["--n-option-color-hover"]=h.optionColorHover,j["--n-option-color-active"]=h.optionColorActive,j["--n-option-text-color"]=h.optionTextColor,j["--n-option-text-color-hover"]=h.optionTextColorHover,j["--n-option-text-color-active"]=h.optionTextColorActive,j["--n-option-text-color-child-active"]=h.optionTextColorChildActive,j["--n-prefix-color"]=h.prefixColor,j["--n-suffix-color"]=h.suffixColor,j["--n-group-header-text-color"]=h.groupHeaderTextColor),j}),n=T?Rt("dropdown",x(()=>`${O.value[0]}${e.inverted?"i":""}`),a,e):void 0;return{mergedClsPrefix:f,mergedTheme:F,mergedSize:O,tmNodes:r,mergedShow:t,handleAfterLeave:()=>{e.animated&&W()},doUpdateShow:K,cssVars:T?void 0:a,themeClass:n?.themeClass,onRender:n?.onRender}},render(){const e=(i,r,d,b,p)=>{const{mergedClsPrefix:v,menuProps:$}=this;this.onRender?.();const k=$?.(void 0,this.tmNodes.map(f=>f.rawNode))||{},z={ref:Wt(r),class:[i,`${v}-dropdown`,`${v}-dropdown--${this.mergedSize}-size`,this.themeClass],clsPrefix:v,tmNodes:this.tmNodes,style:[...d,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:b,onMouseleave:p};return Me(it,be(this.$attrs,z,k))},{mergedTheme:s}=this,t={show:this.mergedShow,theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return l(),E(Ut,$t(this.$props,zn,t),{_:1,trigger:Qe(()=>this.$slots.default?.())},16)}});let Ae;function Bn(){if(!zt)return!0;if(Ae===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 s=e.scrollHeight===1;return document.body.removeChild(e),Ae=s}return Ae}const Mn={...Oe.props,align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}};var On=V({name:"Space",props:Mn,setup(e){const{mergedClsPrefixRef:s,mergedRtlRef:t,mergedComponentPropsRef:i}=tt(e),r=x(()=>e.size??i?.value?.Space?.size??"medium"),d=Oe("Space","-space",void 0,Mt,e,s),b=Bt("Space",t,s);return{useGap:Bn(),rtlEnabled:b,mergedClsPrefix:s,margin:x(()=>{const p=r.value;if(Array.isArray(p))return{horizontal:p[0],vertical:p[1]};if(typeof p=="number")return{horizontal:p,vertical:p};const{self:{[ie("gap",p)]:v}}=d.value,{row:$,col:k}=Ot(v);return{horizontal:qe(k),vertical:qe($)}})}},render(){const{vertical:e,reverse:s,align:t,inline:i,justify:r,itemClass:d,itemStyle:b,margin:p,wrap:v,mergedClsPrefix:$,rtlEnabled:k,useGap:z,wrapItem:f,internalUseGap:T}=this,M=Nt(gn(this),!1);if(!M.length)return null;const O=`${p.horizontal}px`,F=`${p.horizontal/2}px`,D=`${p.vertical}px`,K=`${p.vertical/2}px`,W=M.length-1,N=r.startsWith("space-");return l(),c("div",{role:"none",class:ee([`${$}-space`,k&&`${$}-space--rtl`]),style:Ve({display:i?"inline-flex":"flex",flexDirection:e&&!s?"column":e&&s?"column-reverse":!e&&s?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!v||e?"nowrap":"wrap",marginTop:z||e?"":`-${K}`,marginBottom:z||e?"":`-${K}`,alignItems:t,gap:z?`${p.vertical}px ${p.horizontal}px`:""})},[!f&&(z||T)?(l(),c(X,{key:0},[J(()=>M)],64)):(l(),c(X,{key:1},[J(()=>M.map((R,H)=>R.type===It?R:(l(),c("div",{key:1,role:"none",class:ee(d),style:Ve([b,{maxWidth:"100%"},z?"":e?{marginBottom:H!==W?D:""}:k?{marginLeft:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginRight:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}:{marginRight:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginLeft:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}])},[J(()=>R)],6))))],64))],6)}});const En={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Kn=V({name:"AlertCircleOutline",render:function(s,t){return l(),c("svg",En,t[0]||(t[0]=[o("path",{d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{d:"M250.26 166.05L256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 367.91a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),An={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ln=V({name:"CloudUploadOutline",render:function(s,t){return l(),c("svg",An,t[0]||(t[0]=[o("path",{d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 255.79l-64-64l-64 64"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 448.21V207.79"},null,-1)]))}}),Tn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Fn=V({name:"EllipsisHorizontal",render:function(s,t){return l(),c("svg",Tn,t[0]||(t[0]=[o("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"416",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"96",cy:"256",r:"48",fill:"currentColor"},null,-1)]))}}),Dn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Un=V({name:"OpenOutline",render:function(s,t){return l(),c("svg",Dn,t[0]||(t[0]=[o("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),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 64h112v112"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M224 288L440 72"},null,-1)]))}}),jn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Wn=V({name:"PauseOutline",render:function(s,t){return l(),c("svg",jn,t[0]||(t[0]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 96h16v320h-16z"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 96h16v320h-16z"},null,-1)]))}}),Hn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Vn=V({name:"PlayOutline",render:function(s,t){return l(),c("svg",Hn,t[0]||(t[0]=[o("path",{d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),qn={key:0,class:"live-dot"},Gn={key:1,class:"plain-dot"},Jn=V({__name:"StatusBadge",props:{status:{default:""},size:{default:"md"}},setup(e){const s=e,t=x(()=>{switch(s.status){case"Working":return{label:"直播中",tone:"live",dot:!0};case"Pending":return{label:"检测中",tone:"info",dot:!1};case"Pause":return{label:"已暂停",tone:"warn",dot:!1};case"OutOfSchedule":return{label:"非录播时间",tone:"muted",dot:!1};case"TitleExcluded":return{label:"标题已排除",tone:"warn",dot:!1};case"StreamExpired":return{label:"流已过期",tone:"warn",dot:!1};default:return{label:"未开播",tone:"muted",dot:!1}}});return(i,r)=>(l(),c("span",{class:ue(["badge",[t.value.tone,e.size]])},[t.value.dot?(l(),c("span",qn)):(l(),c("span",Gn)),L(" "+S(t.value.label),1)],2))}}),Xn=ke(Jn,[["__scopeId","data-v-7e3eb802"]]);function Yn(e,s=!1){if(typeof e!="string")return!1;const t=e.trim();if(!t||t!==e||/[\u0000-\u0020\u007f]/.test(t))return!1;const i=/^([a-z][a-z0-9+.-]*):\/\//i.exec(t);if(!i)return!1;const r=i[1].toLowerCase();if(r!=="http"&&r!=="https"&&!(s&&r==="wxchannel-stream"))return!1;try{return new URL(t).protocol===r+":"}catch{return!1}}const Le=_(Date.now());let ye,Ce=0;function Zn(){return De(()=>{Ce+=1,ye===void 0&&(Le.value=Date.now(),ye=window.setInterval(()=>{Le.value=Date.now()},1e3))}),Ie(()=>{Ce-=1,Ce<=0&&ye!==void 0&&(window.clearInterval(ye),ye=void 0,Ce=0)}),Le}const Qn=["src"],eo={key:1,class:"cover-fallback"},to={class:"platform-glyph"},no={class:"cover-top"},oo=["title"],ro={class:"platform-chip"},ao={class:"cover-bottom"},lo={class:"cover-title"},so={class:"cover-sub"},io={class:"body"},uo={class:"meta-row"},co={class:"meta"},po={class:"meta-value mono"},vo={class:"meta"},fo=["title"],mo={class:"meta-value mono"},ho={class:"meta"},wo={class:"meta-value mono"},yo={class:"meta",title:"开播检查间隔(秒)。连续查询失败会在此基础上按 1x→2x→4x→8x 退避"},bo=["title"],go={class:"probe-text"},ko={key:1,class:"probe-advice"},xo={class:"actions"},_o={class:"ghost-btn","aria-label":"更多操作"},So=V({__name:"StreamerCard",props:{streamer:{}},emits:["toggle","edit","delete"],setup(e,{emit:s}){const t=e,i=s,r=_(!1),d=x(()=>t.streamer.status==="Working"),b=x(()=>t.streamer.status==="Pause"||t.streamer.status==="StreamExpired"),p=x(()=>t.streamer.probe??null),v=x(()=>!!p.value&&!d.value),$=x(()=>p.value?Yt(p.value):""),k=x(()=>p.value?Zt(p.value):""),z=x(()=>d.value&&t.streamer.live_cover_url&&!r.value?Qt(t.streamer.id):""),f=x(()=>t.streamer.remark||t.streamer.live_streamer_name||"未命名直播间"),T=x(()=>t.streamer.live_streamer_name||t.streamer.url),M=Zn(),O=x(()=>{const N=t.streamer.session_started_at;return!d.value||!N?null:Math.max(0,M.value-N)}),F=x(()=>t.streamer.session_started_at?`本场开录于 ${rt(t.streamer.session_started_at)}`:""),D=[{label:"编辑直播间",key:"edit"},{label:"删除",key:"delete"}];function K(N){N==="edit"&&i("edit",t.streamer),N==="delete"&&i("delete",t.streamer)}function W(){Yn(t.streamer.url,!0)&&window.open(t.streamer.url,"_blank","noopener")}return(N,R)=>(l(),c("article",{class:ue(["card fade-up",{live:d.value}])},[o("div",{class:ue(["cover",u(sn)(e.streamer.url)])},[z.value?(l(),c("img",{key:0,class:"cover-img",src:z.value,alt:"",onError:R[0]||(R[0]=H=>r.value=!0)},null,40,Qn)):(l(),c("div",eo,[o("span",to,S(u(Ne)(e.streamer.url)),1)])),R[2]||(R[2]=o("div",{class:"cover-shade"},null,-1)),o("div",no,[v.value?(l(),c("span",{key:1,class:"probe-badge",title:k.value},S($.value)+" ×"+S(p.value.failures),9,oo)):(l(),E(Xn,{key:0,status:e.streamer.status,size:"sm"},null,8,["status"])),o("span",ro,S(u(Ne)(e.streamer.url)),1)]),o("div",ao,[o("div",lo,S(f.value),1),o("div",so,S(T.value),1)])],2),o("div",io,[o("div",uo,[o("div",co,[R[3]||(R[3]=o("span",{class:"meta-label"},"格式",-1)),o("span",po,S(e.streamer.format||"ts"),1)]),o("div",vo,[R[4]||(R[4]=o("span",{class:"meta-label"},"实时码率",-1)),o("span",{class:ue(["meta-value mono",{hot:d.value}])},S(d.value?u(un)(e.streamer.live_bytes_per_sec):"—"),3)]),o("div",{class:"meta",title:F.value},[R[5]||(R[5]=o("span",{class:"meta-label"},"已录制",-1)),o("span",mo,S(O.value!=null?u(dn)(Math.max(O.value,1e3)):"—"),1)],8,fo),o("div",ho,[R[6]||(R[6]=o("span",{class:"meta-label"},"场次",-1)),o("span",wo,S(e.streamer.session_id??"—"),1)]),o("div",yo,[R[7]||(R[7]=o("span",{class:"meta-label"},"间隔",-1)),o("span",{class:ue(["meta-value mono",{hot:v.value}])},S(e.streamer.check_interval_secs?`${e.streamer.check_interval_secs}s`:"—"),3)])]),v.value?(l(),c("div",{key:0,class:"probe-note",title:k.value},[R[8]||(R[8]=o("span",{class:"probe-dot"},null,-1)),o("span",go,S($.value)+":"+S(p.value.message),1)],8,bo)):G("",!0),v.value&&p.value.hint?(l(),c("div",ko,S(p.value.hint),1)):G("",!0),o("div",xo,[y(u(Q),{size:"small",type:b.value?"primary":"default",secondary:"",class:"main-action",disabled:!u(je),onClick:R[1]||(R[1]=H=>i("toggle",e.streamer))},{icon:g(()=>[y(u(de),null,{default:g(()=>[b.value?(l(),E(u(Vn),{key:0})):(l(),E(u(Wn),{key:1}))]),_:1})]),default:g(()=>[L(" "+S(b.value?"恢复监控":"暂停监控"),1)]),_:1},8,["type","disabled"]),y(u(Vt),{trigger:"hover"},{trigger:g(()=>[o("button",{class:"ghost-btn","aria-label":"打开直播间",onClick:W},[y(u(de),{size:17},{default:g(()=>[y(u(Un))]),_:1})])]),default:g(()=>[R[9]||(R[9]=L(" 在浏览器打开直播间 ",-1))]),_:1}),y(u(In),{options:D,trigger:"click",onSelect:K},{default:g(()=>[o("button",_o,[y(u(de),{size:18},{default:g(()=>[y(u(Fn))]),_:1})])]),_:1})])])],2))}}),Co=ke(So,[["__scopeId","data-v-8c08263d"]]);function $o(e){const s=e.trim();if(!s.startsWith("{"))return null;try{const t=JSON.parse(s);if(!t||typeof t!="object")return null;const i=t,r=i.detail??i.error??i.message;return typeof r=="string"&&r.trim()?r:null}catch{return null}}async function ve(e){try{return await e()}catch(s){if(s instanceof Ge){const t=$o(s.message);if(t)throw new Ge(s.status,t,s.authSource)}throw s}}const ut=()=>ve(()=>nt("/v1/wechat-capture/status")),Po=()=>ve(()=>nt("/v1/wechat-capture/streams")),Ro=()=>ve(()=>ge("/v1/wechat-capture/cert/install")),zo=()=>ve(()=>ge("/v1/wechat-capture/cert/uninstall")),No=()=>ve(()=>ge("/v1/wechat-capture/start")),Io=()=>ve(()=>ge("/v1/wechat-capture/stop")),dt=e=>ve(()=>ge("/v1/wechat-capture/record",e)),Bo={class:"capture-panel"},Mo={class:"status-bar"},Oo={class:"status-left"},Eo={class:"status-row"},Ko={class:"status-row"},Ao={key:0,class:"proxy mono"},Lo={key:1,class:"status-hint"},To={key:0,class:"last-error"},Fo={key:1,class:"compliance"},Do={class:"compliance-actions"},Uo={class:"list-bar"},jo={key:2,class:"empty"},Wo={key:3,class:"stream-list"},Ho={class:"stream-head"},Vo=["title"],qo=["title"],Go={class:"remark-row"},Jo={class:"url mono"},Xo=V({__name:"WechatCapturePanel",emits:["recorded"],setup(e,{emit:s}){const t=s,i=Ue(),r=_(null),d=_([]),b=_(!1),p=_(!1),v=_(!1),$=_(!1),k=_(!1),z=_(!1),f=_(null),T=_(!1),M=_(!1),O=_({}),F=new Set;let D,K=!1;const W=x(()=>r.value?.cert_installed?"已安装":"未安装"),N=x(()=>!!r.value?.proxy_running),R=x(()=>r.value?.proxy_port?`127.0.0.1:${r.value.proxy_port}`:""),H=x(()=>d.value.length>0);function Z(C){return C instanceof Error?C.message:"操作失败"}function te(C){const m=O.value[C.id];return m!==void 0?m:[C.author,C.title].filter(Boolean).join(" / ")}function oe(C,m){O.value[C.id]=m,F.add(C.id)}let Y=!1;function P(){Y||D===void 0&&(D=window.setInterval(()=>{document.visibilityState==="visible"&&r.value?.proxy_running&&w()},3e3))}function a(){D!==void 0&&(window.clearInterval(D),D=void 0)}async function n(C=!1){p.value=!0;try{const m=await ut();if(Y)return;r.value=m,b.value=!!m?.available,b.value?P():a()}catch(m){C||i.error(Z(m))}finally{p.value=!1}}async function w(C=!1){if(!K){K=!0,C&&(k.value=!0);try{const m=await Po();d.value=Array.isArray(m)?m:[]}catch(m){C&&i.error(Z(m))}finally{K=!1,C&&(k.value=!1)}}}function I(){document.visibilityState==="visible"&&(n(!0),r.value?.proxy_running&&w())}function A(C){if(!C){B();return}if(!M.value){T.value=!0;return}h()}async function h(){v.value=!0;try{r.value?.cert_installed||(r.value=await Ro());const C=await No();r.value=C,b.value=!!C?.available,T.value=!1,i.success("嗅探已启动,打开视频号直播间播放后即可看到捕获的流"),await w()}catch(C){i.error(Z(C))}finally{v.value=!1}}async function B(){$.value=!0;try{r.value=await Io(),d.value=[],i.success("已停止嗅探,系统代理已还原")}catch(C){i.error(Z(C))}finally{$.value=!1}}async function q(){z.value=!0;try{r.value=await zo(),i.success("临时根证书已卸载")}catch(C){i.error(Z(C))}finally{z.value=!1}}async function re(C){f.value=C.id;try{const m=F.has(C.id)?{stream_id:C.id,name:O.value[C.id]?.trim()||null}:{stream_id:C.id},U=await dt(m);t("recorded",U),i.success("已加入监控,正在检测开播")}catch(m){i.error(Z(m))}finally{f.value=null}}return De(()=>{document.addEventListener("visibilitychange",I),n()}),Ie(()=>{Y=!0,a(),document.removeEventListener("visibilitychange",I)}),(C,m)=>(l(),c("div",Bo,[o("div",Mo,[o("div",Oo,[o("div",Eo,[m[4]||(m[4]=o("span",{class:"status-label"},"证书状态",-1)),y(u(Pe),{size:"small",round:"",bordered:!1,type:r.value?.cert_installed?"success":"warning"},{default:g(()=>[L(S(W.value),1)]),_:1},8,["type"]),r.value?.cert_installed?(l(),E(u(Q),{key:0,quaternary:"",size:"tiny",loading:z.value,onClick:q},{default:g(()=>[...m[3]||(m[3]=[L(" 卸载证书 ",-1)])]),_:1},8,["loading"])):G("",!0)]),o("div",Ko,[m[5]||(m[5]=o("span",{class:"status-label"},"自动嗅探",-1)),y(u(Kt),{size:"small",value:N.value,loading:v.value||$.value||p.value,disabled:!b.value,"onUpdate:value":A},null,8,["value","loading","disabled"]),N.value&&R.value?(l(),c("span",Ao,S(R.value),1)):(l(),c("span",Lo,S(b.value?"未运行":"仅桌面端可用"),1))])]),N.value?(l(),E(u(Q),{key:0,type:"error",secondary:"",size:"small",loading:$.value,onClick:B},{default:g(()=>[...m[6]||(m[6]=[L(" 停止并还原网络 ",-1)])]),_:1},8,["loading"])):G("",!0)]),r.value?.last_error?(l(),c("div",To,S(r.value.last_error),1)):G("",!0),T.value?(l(),c("div",Fo,[m[10]||(m[10]=o("div",{class:"compliance-title"},"开启自动嗅探前请确认",-1)),m[11]||(m[11]=o("ol",{class:"compliance-list"},[o("li",null,"仅用于录制本人或已获授权的内容"),o("li",null,"会在本机安装临时自签根证书"),o("li",null,"仅解密视频号相关域名,其余流量透传,关闭即自动还原系统代理")],-1)),y(u(fn),{checked:M.value,"onUpdate:checked":m[0]||(m[0]=U=>M.value=U),size:"small"},{default:g(()=>[...m[7]||(m[7]=[L("我已阅读并确认以上说明",-1)])]),_:1},8,["checked"]),o("div",Do,[y(u(Q),{size:"small",quaternary:"",disabled:v.value,onClick:m[1]||(m[1]=U=>T.value=!1)},{default:g(()=>[...m[8]||(m[8]=[L(" 取消 ",-1)])]),_:1},8,["disabled"]),y(u(Q),{size:"small",type:"primary",disabled:!M.value,loading:v.value,onClick:h},{default:g(()=>[...m[9]||(m[9]=[L(" 确认并启动 ",-1)])]),_:1},8,["disabled","loading"])])])):G("",!0),o("div",Uo,[m[13]||(m[13]=o("span",{class:"list-title"},"捕获到的流",-1)),y(u(Q),{size:"tiny",quaternary:"",loading:k.value,onClick:m[2]||(m[2]=U=>w(!0))},{default:g(()=>[...m[12]||(m[12]=[L(" 刷新 ",-1)])]),_:1},8,["loading"])]),H.value?(l(),c("div",Wo,[(l(!0),c(X,null,ze(d.value,U=>(l(),c("div",{key:U.id,class:"stream-item"},[o("div",Ho,[o("span",{class:"time",title:u(rt)(U.captured_at)},S(u(cn)(U.captured_at)),9,Vo),y(u(Pe),{size:"small",round:"",bordered:!1,type:U.protocol==="flv"?"success":"info"},{default:g(()=>[L(S(U.protocol.toUpperCase()),1)]),_:2},1032,["type"]),U.quality_hint?(l(),E(u(Pe),{key:0,size:"small",bordered:!1},{default:g(()=>[L(S(U.quality_hint),1)]),_:2},1024)):G("",!0),o("span",{class:"host",title:U.host},S(U.host),9,qo),y(u(Q),{size:"small",type:"primary",secondary:"",loading:f.value===U.id,disabled:!u(je),onClick:xe=>re(U)},{default:g(()=>[...m[14]||(m[14]=[L(" 一键录制 ",-1)])]),_:1},8,["loading","disabled","onClick"])]),o("div",Go,[y(u(ce),{size:"small",value:te(U),placeholder:"备注(主播 / 标题)",clearable:"","onUpdate:value":xe=>oe(U,xe)},null,8,["value","onUpdate:value"])]),o("div",Jo,S(U.url_preview),1)]))),128))])):(l(),c("div",jo," 进入视频号直播间并播放后回到本页,捕获到的流会出现在这里 "))]))}}),Yo=ke(Xo,[["__scopeId","data-v-0f758067"]]),Zo={class:"modal-head"},Qo={class:"modal-title"},er={class:"modal-sub"},tr={key:0,class:"desktop-hint"},nr={key:1,class:"desktop-hint"},or={key:2,class:"mode-switch"},rr={key:0,class:"capability-note"},ar={class:"capability-list"},lr={class:"modal-foot"},sr=V({__name:"AddStreamerModal",props:{show:{type:Boolean},entity:{}},emits:["update:show","saved"],setup(e,{emit:s}){const t=e,i=s,r=Ue(),d=mn(),b=_(null),p=_(!1),v=_("manual"),$=_(!1),k=_([]),z=_(!1),f=_({url:"",remark:"",filename_prefix:"",format:"ts",time_range:"",check_interval:""}),T=_([]),M=x(()=>T.value.filter(P=>P.blocks_probe)),O=x(()=>!!t.entity),F=x(()=>f.value.url.trim()?Ne(f.value.url.trim()):""),D=[{label:"TS(推荐,抗断流)",value:"ts"},{label:"FLV",value:"flv"},{label:"MP4",value:"mp4"},{label:"MKV",value:"mkv"}],K={url:[{required:!0,message:"请填写直播间地址",trigger:["blur","input"]},{validator:(P,a)=>{if(!a)return!0;const n=a.trim();if(!/^(https?|wxchannel-stream):\/\//i.test(n))return new Error("地址格式不正确,需要以 http://、https:// 或 wxchannel-stream:// 开头");try{return new URL(n),!0}catch{return new Error("地址格式不正确,请检查地址是否完整")}},trigger:["blur"]}],filename_prefix:[{validator:(P,a)=>{const n=vn(a);return n?new Error(n):!0},trigger:["blur","input"]}]};Be(()=>t.show,P=>{if(!P)return;const a=t.entity;f.value.url=a?.url??"",f.value.remark=a?.remark??"",f.value.filename_prefix=a?.filename_prefix??"",f.value.format=a?.format??"ts",f.value.time_range=a?.time_range??"",f.value.check_interval=String(a?.override?.event_loop_interval??""),v.value="manual",W(),!a&&!d&&R()});async function W(){if(!(T.value.length>0))try{T.value=await nn()}catch{T.value=[]}}function N(P){const a={...P??{}},n=f.value.check_interval.trim(),w=Number(n);return n&&Number.isFinite(w)&&w>0?a.event_loop_interval=Math.round(w):delete a.event_loop_interval,Object.keys(a).length>0?a:null}async function R(){z.value=!0;try{const P=await ut();k.value=Array.isArray(P?.whitelist)?P.whitelist:[],$.value=!!P?.available}catch{k.value=[],$.value=!1}finally{z.value=!1}}function H(P,a){const n=P.toLowerCase();return a.some(w=>{const I=w.trim().toLowerCase();return I?n===I||n.endsWith(`.${I}`):!1})}function Z(P){const a=P.trim().toLowerCase();if(a.startsWith("wxchannel-stream://"))return!0;if(d||!/^https?:\/\//.test(a)||!/\.flv(?:[?#]|$)/.test(a)&&!/\.m3u8(?:[?#]|$)/.test(a)||k.value.length===0)return!1;try{return H(new URL(a).hostname,k.value)}catch{return!1}}function te(){i("update:show",!1)}async function oe(){try{await b.value?.validate()}catch{return}p.value=!0;try{const P=f.value.url.trim(),a=f.value.remark.trim();t.entity?(await en({...t.entity,url:P,remark:a,filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(t.entity.override)}),r.success("直播间已更新")):Z(P)?(await dt({url:P,name:a||null}),r.success("已加入监控,正在检测开播")):(await tn({url:P,remark:a||Ne(P)+"直播间",filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(null)}),r.success("直播间已添加,正在检测开播状态")),i("saved"),te()}catch(P){r.error(P instanceof Error?P.message:"保存失败")}finally{p.value=!1}}function Y(){i("saved"),te()}return(P,a)=>(l(),E(u(Et),{show:e.show,preset:"card",style:{width:"580px",maxWidth:"92vw"},bordered:!1,"mask-closable":!p.value,"onUpdate:show":a[8]||(a[8]=n=>i("update:show",n))},{header:g(()=>[o("div",Zo,[o("div",null,[o("div",Qo,S(O.value?"编辑直播间":"添加直播间"),1),o("div",er,S(O.value?"修改后会在下一次检测周期生效":"支持抖音、快手、B站、虎牙、斗鱼等平台的直播间地址"),1)]),F.value?(l(),E(u(Pe),{key:0,size:"small",round:"",bordered:!1,type:"success"},{default:g(()=>[L(" 已识别 "+S(F.value),1)]),_:1})):G("",!0)])]),footer:g(()=>[o("div",lr,[y(u(Q),{quaternary:"",disabled:p.value,onClick:te},{default:g(()=>[...a[13]||(a[13]=[L("取消",-1)])]),_:1},8,["disabled"]),O.value||v.value==="manual"?(l(),E(u(Q),{key:0,type:"primary",loading:p.value,disabled:p.value||!u(je),onClick:oe},{default:g(()=>[L(S(O.value?"保存修改":"开始监控"),1)]),_:1},8,["loading","disabled"])):G("",!0)])]),default:g(()=>[O.value?G("",!0):(l(),c(X,{key:0},[u(d)?(l(),c("div",tr," 视频号请直接粘贴直播流地址;自动嗅探请改用桌面客户端。 ")):G("",!0),!u(d)&&!z.value&&!$.value?(l(),c("div",nr," 自动嗅探仅支持桌面端,服务端部署请直接粘贴流地址 ")):G("",!0),u(d)?G("",!0):(l(),c("div",or,[o("button",{class:ue(["mode-pill",{active:v.value==="manual"}]),onClick:a[0]||(a[0]=n=>v.value="manual")}," 手动粘贴流地址 ",2),$.value?(l(),c("button",{key:0,class:ue(["mode-pill",{active:v.value==="capture"}]),onClick:a[1]||(a[1]=n=>v.value="capture")}," 自动嗅探(桌面端) ",2)):G("",!0)]))],64)),!u(d)&&!O.value&&v.value==="capture"&&$.value?(l(),E(Yo,{key:1,onRecorded:Y})):(l(),E(u(pn),{key:2,ref_key:"formRef",ref:b,model:f.value,rules:K,"label-placement":"top","require-mark-placement":"right-hanging"},{default:g(()=>[y(u(me),{label:"直播间地址",path:"url"},{feedback:g(()=>[...a[9]||(a[9]=[o("div",{class:"hint"}," 抖音/快手/B站/虎牙/斗鱼/六间房可直接粘贴直播间地址;抖音分享短链会自动换成长期房间地址。 在场的分享链接只对应这一场直播,链接失效后需要粘贴主播当前开播时的新链接 ",-1),o("div",{class:"hint"}," 视频号请粘贴 *.flv / *.m3u8 流地址(可从视频号助手或抓包工具获取);视频号直链必须是视频号 CDN 域名,其他平台的 .flv/.m3u8 直链照旧直接添加 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.url,placeholder:"https://live.douyin.com/123456789",clearable:"","onUpdate:value":a[2]||(a[2]=n=>f.value.url=n)},null,8,["value"])]),_:1}),y(u(On),{size:14,class:"form-row",style:{width:"100%"}},{default:g(()=>[y(u(me),{label:"备注名称",path:"remark",style:{flex:"1"}},{default:g(()=>[y(u(ce),{value:f.value.remark,placeholder:"例如:某某主播",clearable:"","onUpdate:value":a[3]||(a[3]=n=>f.value.remark=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制格式",path:"format",style:{width:"190px"}},{default:g(()=>[y(u(Jt),{value:f.value.format,options:D,"onUpdate:value":a[4]||(a[4]=n=>f.value.format=n??"")},null,8,["value"])]),_:1})]),_:1}),y(u(me),{label:"文件名前缀",path:"filename_prefix"},{default:g(()=>[y(u(ce),{value:f.value.filename_prefix,placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S;留空使用全局设置",clearable:"","onUpdate:value":a[5]||(a[5]=n=>f.value.filename_prefix=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制时间段",path:"time_range"},{default:g(()=>[y(u(ce),{value:f.value.time_range,placeholder:"可选,例如 20:00:00-23:59:59;留空表示全天监控",clearable:"","onUpdate:value":a[6]||(a[6]=n=>f.value.time_range=n)},null,8,["value"])]),_:1}),y(u(me),{label:"检查间隔(秒)",path:"check_interval"},{feedback:g(()=>[...a[10]||(a[10]=[o("div",{class:"hint"}," 多久查一次这个房间有没有开播(默认沿用全局设置)。查询连续失败时监控会在此基础上 自动退避(1x→2x→4x→8x 封顶),不会把失败当成下播。 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.check_interval,placeholder:"可选,例如 30;留空沿用全局设置",clearable:"","onUpdate:value":a[7]||(a[7]=n=>f.value.check_interval=n)},null,8,["value"])]),_:1}),M.value.length?(l(),c("div",rr,[a[11]||(a[11]=o("div",{class:"capability-title"},"这些平台当前无法检测开播(合规限制)",-1)),o("ul",ar,[(l(!0),c(X,null,ze(M.value,n=>(l(),c("li",{key:n.platform},[o("strong",null,S(n.platform),1),L(":"+S(n.detail),1)]))),128))]),a[12]||(a[12]=o("div",{class:"capability-hint"}," 仍可添加,但房间会显示「查询失败」并给出原因;要真正录制请改用受支持平台, 或按平台官方授权链路接入。 ",-1))])):G("",!0)]),_:1},8,["model"]))]),_:1},8,["show","mask-closable"]))}}),ir=ke(sr,[["__scopeId","data-v-b547d50d"]]),ur={class:"page"},dr={class:"page-head"},cr={class:"page-sub"},pr={key:0,class:"mono version"},vr={class:"toolbar"},fr={key:0,class:"stat-grid"},mr={key:1,class:"compact-summary"},hr={class:"list-bar"},wr={class:"filters"},yr=["onClick"],br={key:2,class:"loading"},gr={key:3,class:"error-panel"},kr={class:"error-msg"},xr={key:0,class:"card-grid"},_r={key:1,class:"no-match"},Sr=V({__name:"StreamersView",setup(e){const s=Ue(),t=At(),i=_([]),r=_(null),d=_(!0),b=_(!1),p=_(!1),v=_(""),$=_(""),k=_("all"),z=_(!1),f=_(null);let T;const M=x(()=>{const a=i.value;return{total:a.length,live:a.filter(n=>n.status==="Working").length,pending:a.filter(n=>n.status==="Pending").length,paused:a.filter(n=>n.status==="Pause"||n.status==="StreamExpired").length,probeFailed:a.filter(n=>n.status==="ProbeFailed").length}}),O=x(()=>{const a=$.value.trim().toLowerCase();return i.value.filter(n=>k.value==="live"&&n.status!=="Working"||k.value==="paused"&&n.status!=="Pause"&&n.status!=="StreamExpired"||k.value==="failed"&&n.status!=="ProbeFailed"||k.value==="idle"&&(n.status==="Working"||n.status==="Pause"||n.status==="StreamExpired"||n.status==="ProbeFailed")?!1:a?n.remark.toLowerCase().includes(a)||n.url.toLowerCase().includes(a)||(n.live_streamer_name??"").toLowerCase().includes(a):!0).sort((n,w)=>{const I=A=>A.status==="Working"?0:A.status==="Pending"?1:A.status==="ProbeFailed"?2:3;return I(n)-I(w)||w.id-n.id})});function F(){p.value=window.innerWidth<640}let D=!1,K=!1,W=!1;async function N(a=!1){if(!K){if(D){a||(W=!0);return}D=!0,a?b.value=!0:d.value=i.value.length===0;try{const[n,w]=await Promise.all([on(),rn().catch(()=>null)]);i.value=n,w&&(r.value=w),v.value=""}catch(n){v.value=n instanceof Error?n.message:"加载失败"}finally{D=!1,d.value=!1,b.value=!1,W&&!K&&(W=!1,N(!0))}}}function R(a){k.value=a}function H(){f.value=null,z.value=!0}function Z(a){f.value=a,z.value=!0}async function te(a){try{await an(a.id);const n=a.status==="Pause"||a.status==="StreamExpired";s.success(n?"已恢复监控":"已暂停监控"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"操作失败")}}function oe(a){t.warning({title:"删除直播间",content:`确定删除「${a.remark||a.url}」?已录制的文件不会被删除。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await ln(a.id),s.success("已删除"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"删除失败")}}})}function Y(){document.visibilityState==="visible"&&N(!0)}De(async()=>{F(),window.addEventListener("resize",F),await N(),!K&&(T=window.setInterval(()=>{document.visibilityState==="visible"&&N(!0)},1e4),document.addEventListener("visibilitychange",Y))}),Ie(()=>{K=!0,T&&window.clearInterval(T),document.removeEventListener("visibilitychange",Y),window.removeEventListener("resize",F)});const P=[{label:"全部",value:"all"},{label:"录制中",value:"live"},{label:"查询失败",value:"failed"},{label:"已暂停",value:"paused"},{label:"未开播",value:"idle"}];return(a,n)=>(l(),c("div",ur,[o("div",dr,[o("div",null,[n[6]||(n[6]=o("h1",{class:"page-title"},"直播监控",-1)),o("p",cr,[n[5]||(n[5]=L(" 添加直播间后自动检测开播并录制,下播自动收尾 ",-1)),r.value?.version?(l(),c("span",pr,"· 服务 v"+S(r.value.version),1)):G("",!0)])]),o("div",vr,[y(u(Q),{quaternary:"",circle:"",loading:b.value,"aria-label":"刷新",onClick:n[0]||(n[0]=w=>N(!0))},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Ye))]),_:1})]),_:1},8,["loading"]),y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Xe))]),_:1})]),default:g(()=>[n[7]||(n[7]=L(" 添加直播间 ",-1))]),_:1})])]),p.value?G("",!0):(l(),c("div",fr,[y(we,{label:"监控直播间",value:M.value.total,hint:"正在值守的直播间总数",icon:u(hn),tone:"accent"},null,8,["value","icon"]),y(we,{label:"正在录制",value:M.value.live,hint:"当前有直播流正在写盘",icon:u(qt),tone:"live"},null,8,["value","icon"]),y(we,{label:"检测中",value:M.value.pending,hint:"等待平台返回开播状态",icon:u(Ye)},null,8,["value","icon"]),y(we,{label:"查询失败",value:M.value.probeFailed,hint:"平台没返回开播状态(不等于下播),卡片上带原因与建议",icon:u(Kn),tone:M.value.probeFailed>0?"warn":"default"},null,8,["value","icon","tone"]),y(we,{label:"上传任务",value:r.value?.uploading??0,hint:"已配置自动上传时显示",icon:u(Ln)},null,8,["value","icon"])])),p.value?(l(),c("div",mr,[o("span",null,[n[8]||(n[8]=L("监控 ",-1)),o("b",null,S(M.value.total),1)]),o("span",null,[n[9]||(n[9]=L("录制中 ",-1)),o("b",null,S(M.value.live),1)]),o("span",null,[n[10]||(n[10]=L("检测中 ",-1)),o("b",null,S(M.value.pending),1)]),o("span",null,[n[11]||(n[11]=L("异常 ",-1)),o("b",null,S(M.value.probeFailed),1)])])):G("",!0),o("div",hr,[o("div",wr,[(l(),c(X,null,ze(P,w=>o("button",{key:w.value,class:ue(["pill",{active:k.value===w.value}]),onClick:I=>R(w.value)},S(w.label),11,yr)),64))]),y(u(ce),{value:$.value,"onUpdate:value":n[1]||(n[1]=w=>$.value=w),class:"search",placeholder:"搜索备注、主播名或地址",clearable:""},{prefix:g(()=>[y(u(de),{size:16},{default:g(()=>[y(u(wn))]),_:1})]),_:1},8,["value"])]),d.value?(l(),c("div",br,[y(u(jt),{size:"large"}),n[12]||(n[12]=o("span",null,"正在连接录制服务…",-1))])):v.value?(l(),c("div",gr,[n[14]||(n[14]=o("div",{class:"error-title"},"无法连接录制服务",-1)),o("div",kr,S(v.value),1),y(u(Q),{size:"small",onClick:n[2]||(n[2]=w=>N())},{default:g(()=>[...n[13]||(n[13]=[L("重试",-1)])]),_:1})])):i.value.length===0?(l(),E(Ht,{key:4,title:"还没有添加直播间",description:"粘贴抖音直播间地址即可开始监控。主播开播后会自动录制,下播后按场次归档。"},{default:g(()=>[y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Xe))]),_:1})]),default:g(()=>[n[15]||(n[15]=L(" 添加第一个直播间 ",-1))]),_:1})]),_:1})):(l(),c(X,{key:5},[O.value.length?(l(),c("div",xr,[(l(!0),c(X,null,ze(O.value,w=>(l(),E(Co,{key:w.id,streamer:w,onToggle:te,onEdit:Z,onDelete:oe},null,8,["streamer"]))),128))])):(l(),c("div",_r," 没有匹配的直播间,换个关键词或筛选条件试试。 "))],64)),y(ir,{show:z.value,"onUpdate:show":n[3]||(n[3]=w=>z.value=w),entity:f.value,onSaved:n[4]||(n[4]=w=>N(!0))},null,8,["show","entity"])]))}}),Hr=ke(Sr,[["__scopeId","data-v-cdfe01c6"]]);export{Hr as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BKuNqWdg.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BKuNqWdg.css new file mode 100644 index 00000000..eb364c1c --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BKuNqWdg.css @@ -0,0 +1 @@ +.badge[data-v-7e3eb802]{display:inline-flex;align-items:center;gap:6px;border-radius:99px;font-weight:600;letter-spacing:.2px;white-space:nowrap;border:1px solid transparent}.badge.md[data-v-7e3eb802]{font-size:11.5px;padding:4px 9px}.badge.sm[data-v-7e3eb802]{font-size:10.5px;padding:3px 7px}.badge.live[data-v-7e3eb802]{color:#ff8095;background:#ff4d6d1a;border-color:#ff4d6d42}.badge.info[data-v-7e3eb802]{color:#93dcff;background:#7dd3fc17;border-color:#7dd3fc38}.badge.warn[data-v-7e3eb802]{color:#fcd34d;background:#fbbf2417;border-color:#fbbf2438}.badge.muted[data-v-7e3eb802]{color:var(--muted);background:#94c5d60f;border-color:var(--line)}.plain-dot[data-v-7e3eb802]{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}.probe-badge[data-v-8c08263d]{display:inline-flex;align-items:center;gap:5px;border-radius:99px;font-size:10.5px;font-weight:600;padding:3px 8px;color:#fcd34d;background:#fbbf241f;border:1px solid rgba(251,191,36,.28);white-space:nowrap}.probe-note[data-v-8c08263d]{display:flex;align-items:flex-start;gap:6px;margin:0 16px 8px;padding:8px 10px;border-radius:9px;border:1px solid rgba(251,191,36,.22);background:#fbbf240f;font-size:11.5px;line-height:1.55;color:#fcd34d}.probe-text[data-v-8c08263d]{word-break:break-word}.probe-advice[data-v-8c08263d]{margin:-2px 16px 10px;font-size:11px;line-height:1.5;color:var(--muted)}.probe-dot[data-v-8c08263d]{width:6px;height:6px;border-radius:50%;background:#fbbf24;margin-top:5px;flex:none}.card[data-v-8c08263d]{border-radius:16px;overflow:hidden;border:1px solid var(--line);background:linear-gradient(180deg,#14202bc7,#0c1219eb);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.card[data-v-8c08263d]:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:0 16px 38px #00000052}.card.live[data-v-8c08263d]{border-color:#ff4d6d3d;box-shadow:0 0 0 1px #ff4d6d0d,0 18px 40px #ff4d6d12}.cover[data-v-8c08263d]{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#0a1118}.cover-img[data-v-8c08263d]{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01)}.cover-fallback[data-v-8c08263d]{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(400px 160px at 20% 0%,rgba(45,212,191,.22),transparent 65%),radial-gradient(360px 200px at 100% 100%,rgba(125,211,252,.12),transparent 60%),linear-gradient(135deg,#0d1b22,#0a1017)}.cover-fallback.douyin[data-v-8c08263d],.cover-fallback.kuaishou[data-v-8c08263d],.cover-fallback.bilibili[data-v-8c08263d],.cover-fallback.huya[data-v-8c08263d],.cover-fallback.douyu[data-v-8c08263d]{background:radial-gradient(420px 180px at 18% 0%,rgba(45,212,191,.2),transparent 65%),radial-gradient(360px 220px at 100% 100%,rgba(125,211,252,.1),transparent 60%),linear-gradient(135deg,#0d1b22,#0a1017)}.platform-glyph[data-v-8c08263d]{font-size:30px;font-weight:800;letter-spacing:2px;color:#e8f2f624;transform:rotate(-6deg);-webkit-user-select:none;user-select:none}.cover-shade[data-v-8c08263d]{position:absolute;inset:0;background:linear-gradient(180deg,#05080b1a,#05080b00 38%,#05080bdb)}.cover-top[data-v-8c08263d]{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between}.platform-chip[data-v-8c08263d]{font-size:10.5px;color:#e8f2f6db;padding:3px 8px;border-radius:99px;background:#070b0f9e;border:1px solid rgba(232,242,246,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.cover-bottom[data-v-8c08263d]{position:absolute;left:12px;right:12px;bottom:10px}.cover-title[data-v-8c08263d]{font-size:15px;font-weight:650;text-shadow:0 2px 12px rgba(0,0,0,.55);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cover-sub[data-v-8c08263d]{margin-top:2px;font-size:10.5px;color:#e8f2f69e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body[data-v-8c08263d]{padding:13px 14px 14px}.meta-row[data-v-8c08263d]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-bottom:12px;border-bottom:1px solid var(--line)}.meta[data-v-8c08263d]{display:flex;flex-direction:column;gap:3px;min-width:0}.meta-label[data-v-8c08263d]{font-size:10px;color:var(--muted-2);letter-spacing:.3px}.meta-value[data-v-8c08263d]{font-size:12px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-value.hot[data-v-8c08263d]{color:#ff9db0}.actions[data-v-8c08263d]{display:flex;align-items:center;gap:8px;margin-top:12px}.main-action[data-v-8c08263d]{flex:1}.ghost-btn[data-v-8c08263d]{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;border:1px solid var(--line);background:#94c5d60a;color:var(--muted);cursor:pointer;transition:all .16s ease}.ghost-btn[data-v-8c08263d]:hover{color:var(--text);border-color:var(--line-strong);background:#94c5d617}.capture-panel[data-v-0f758067]{display:flex;flex-direction:column;gap:12px}.status-bar[data-v-0f758067]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0f172099}.status-left[data-v-0f758067]{display:flex;flex-direction:column;gap:8px;min-width:0}.status-row[data-v-0f758067]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status-label[data-v-0f758067]{min-width:52px;font-size:11px;color:var(--muted)}.proxy[data-v-0f758067]{font-size:12px;color:var(--accent)}.status-hint[data-v-0f758067]{font-size:11px;color:var(--muted-2)}.last-error[data-v-0f758067]{padding:8px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:#fca5a5;font-size:11.5px;word-break:break-all}.compliance[data-v-0f758067]{padding:14px;border:1px solid var(--line-strong);border-radius:12px;background:#14202b8c}.compliance-title[data-v-0f758067]{margin-bottom:8px;font-size:13px;font-weight:650}.compliance-list[data-v-0f758067]{margin:0 0 10px;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}.compliance-actions[data-v-0f758067]{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.list-bar[data-v-0f758067]{display:flex;align-items:center;justify-content:space-between}.list-title[data-v-0f758067]{font-size:12px;font-weight:650}.empty[data-v-0f758067]{padding:28px 18px;text-align:center;font-size:11.5px;line-height:1.7;color:var(--muted);border:1px dashed var(--line-strong);border-radius:12px}.stream-list[data-v-0f758067]{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow-y:auto}.stream-item[data-v-0f758067]{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0f172099}.stream-head[data-v-0f758067]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.time[data-v-0f758067]{font-size:11px;color:var(--muted-2)}.host[data-v-0f758067]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}.remark-row[data-v-0f758067]{margin-top:10px}.url[data-v-0f758067]{margin-top:8px;font-family:var(--mono);font-size:11px;color:var(--muted-2);word-break:break-all}.capability-note[data-v-b547d50d]{margin:4px 0 14px;padding:11px 13px;border-radius:10px;border:1px solid rgba(251,191,36,.26);background:#fbbf2412;font-size:12px;line-height:1.65}.capability-title[data-v-b547d50d]{font-weight:650;color:#fcd34d;margin-bottom:4px}.capability-list[data-v-b547d50d]{margin:0;padding-left:16px;color:var(--muted)}.capability-hint[data-v-b547d50d]{margin-top:6px;color:var(--muted-2)}.modal-head[data-v-b547d50d]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-title[data-v-b547d50d]{font-size:17px;font-weight:650}.modal-sub[data-v-b547d50d]{margin-top:4px;font-size:11.5px;color:var(--muted)}.hint[data-v-b547d50d]{font-size:11px;color:var(--muted-2)}.desktop-hint[data-v-b547d50d]{margin-bottom:10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fbbf240f;font-size:11.5px;color:var(--muted)}.mode-switch[data-v-b547d50d]{display:inline-flex;gap:4px;padding:4px;margin-bottom:14px;border:1px solid var(--line);border-radius:11px;background:#0d131a99}.mode-pill[data-v-b547d50d]{border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;cursor:pointer;transition:all .16s ease}.mode-pill[data-v-b547d50d]:hover{color:var(--text)}.mode-pill.active[data-v-b547d50d]{color:#042f2c;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.modal-foot[data-v-b547d50d]{display:flex;justify-content:flex-end;gap:10px}@media(max-width:639px){.form-row[data-v-b547d50d]{display:flex;flex-direction:column;gap:14px}.form-row[data-v-b547d50d]>*{width:100%!important}}.version[data-v-cdfe01c6]{color:var(--muted-2);font-size:11px;margin-left:4px}.list-bar[data-v-cdfe01c6]{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 16px;flex-wrap:wrap}.filters[data-v-cdfe01c6]{display:inline-flex;gap:4px;padding:4px;border-radius:11px;border:1px solid var(--line);background:var(--chip-bg)}.pill[data-v-cdfe01c6]{border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;cursor:pointer;transition:all .16s ease}.pill[data-v-cdfe01c6]:hover{color:var(--text)}.pill.active[data-v-cdfe01c6]{color:#042f2c;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.search[data-v-cdfe01c6]{width:260px}.loading[data-v-cdfe01c6]{display:flex;align-items:center;justify-content:center;gap:12px;padding:90px 0;color:var(--muted);font-size:13px}.error-panel[data-v-cdfe01c6]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-cdfe01c6]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-cdfe01c6]{margin:7px 0 14px;font-size:12px;color:var(--muted);word-break:break-all}.no-match[data-v-cdfe01c6]{padding:44px 0;text-align:center;color:var(--muted);font-size:13px}.compact-summary[data-v-cdfe01c6]{display:flex;gap:12px;margin-bottom:14px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}.compact-summary b[data-v-cdfe01c6]{margin-left:3px;color:var(--text);font-family:var(--mono);font-weight:600}.compact-summary span[data-v-cdfe01c6]:not(:last-child):after{content:"·";margin-left:12px;color:var(--muted-2)}@media(max-width:720px){.search[data-v-cdfe01c6]{width:100%}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-C33rKL-M.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-C33rKL-M.js new file mode 100644 index 00000000..1acbc305 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-C33rKL-M.js @@ -0,0 +1,102 @@ +import{aS as ve,W as ge,bl as we,a2 as X,a7 as a,ba as Y,a4 as A,a6 as l,a5 as Q,d as me,a8 as J,bm as E,o as u,c as m,a as p,R as r,P as n,n as q,aa as pe,bd as ye,r as H,ac as ke,j as P,ad as M,b1 as v,i as G,bn as xe,Q as Se,be as _e,bo as ze,af as g,bp as I,am as s,ae as $e}from"./index-Bmcyfv7z.js";import{u as Be}from"./use-compitable-CSVBov8c.js";function Ke(){const e=ge(we,null);return e===null&&ve("use-dialog","No outer founded."),e}var Ce=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; +`,[a("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),a("rail-placeholder",` + display: flex; + flex-wrap: none; + `),a("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); + `,[Y({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),a("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; + `),a("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),a("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),A("&:focus",[a("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),l("round",[a("rail","border-radius: calc(var(--n-rail-height) / 2);",[a("button","border-radius: calc(var(--n-button-height) / 2);")])]),Q("disabled",[Q("icon",[l("rubber-band",[l("pressed",[a("rail",[a("button","max-width: var(--n-button-width-pressed);")])]),a("rail",[A("&:active",[a("button","max-width: var(--n-button-width-pressed);")])]),l("active",[l("pressed",[a("rail",[a("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),a("rail",[A("&:active",[a("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),l("active",[a("rail",[a("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),a("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); + `,[a("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; + `,[Y()]),a("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); + `)]),l("active",[a("rail","background-color: var(--n-rail-color-active);")]),l("loading",[a("rail",` + cursor: wait; + `)]),l("disabled",[a("rail",` + cursor: not-allowed; + opacity: .5; + `)])]);const Re=["aria-checked","tabindex","onClick","onFocus","onBlur","onKeyup","onKeydown"],Ve={...J.props,size:String,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},spinProps:Object,onChange:[Function,Array]};let z;var Te=me({name:"Switch",props:Ve,slots:Object,setup(e){z===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?z=CSS.supports("width","max(1px)"):z=!1:z=!0);const{mergedClsPrefixRef:$,inlineThemeDisabled:y,mergedComponentPropsRef:K}=pe(e),T=J("Switch","-switch",Ce,ze,e,$),w=ye(e,{mergedSize(t){if(e.size!==void 0)return e.size;if(t)return t.mergedSize.value;const b=K?.value?.Switch?.size;return b||"medium"}}),{mergedSizeRef:k,mergedDisabledRef:h}=w,x=H(e.defaultValue),B=$e(e,"value"),f=Be(B,x),C=P(()=>f.value===e.checkedValue),i=H(!1),o=H(!1),S=P(()=>{const{railStyle:t}=e;if(t)return t({focused:o.value,checked:C.value})});function R(t){const{"onUpdate:value":b,onChange:V,onUpdateValue:F}=e,{nTriggerFormInput:W,nTriggerFormChange:j}=w;b&&M(b,t),F&&M(F,t),V&&M(V,t),x.value=t,W(),j()}function Z(){const{nTriggerFormFocus:t}=w;t()}function ee(){const{nTriggerFormBlur:t}=w;t()}function te(){e.loading||h.value||(f.value!==e.checkedValue?R(e.checkedValue):R(e.uncheckedValue))}function ae(){o.value=!0,Z()}function ie(){o.value=!1,ee(),i.value=!1}function ne(t){e.loading||h.value||t.key===" "&&(f.value!==e.checkedValue?R(e.checkedValue):R(e.uncheckedValue),i.value=!1)}function oe(t){e.loading||h.value||t.key===" "&&(t.preventDefault(),i.value=!0)}const O=P(()=>{const{value:t}=k,{self:{opacityDisabled:b,railColor:V,railColorActive:F,buttonBoxShadow:W,buttonColor:j,boxShadowFocus:re,loadingColor:le,textColor:se,iconColor:ce,[g("buttonHeight",t)]:c,[g("buttonWidth",t)]:de,[g("buttonWidthPressed",t)]:ue,[g("railHeight",t)]:d,[g("railWidth",t)]:_,[g("railBorderRadius",t)]:he,[g("buttonBorderRadius",t)]:fe},common:{cubicBezierEaseInOut:be}}=T.value;let D,N,U;return z?(D=`calc((${d} - ${c}) / 2)`,N=`max(${d}, ${c})`,U=`max(${_}, calc(${_} + ${c} - ${d}))`):(D=I((s(d)-s(c))/2),N=I(Math.max(s(d),s(c))),U=s(d)>s(c)?_:I(s(_)+s(c)-s(d))),{"--n-bezier":be,"--n-button-border-radius":fe,"--n-button-box-shadow":W,"--n-button-color":j,"--n-button-width":de,"--n-button-width-pressed":ue,"--n-button-height":c,"--n-height":N,"--n-offset":D,"--n-opacity-disabled":b,"--n-rail-border-radius":he,"--n-rail-color":V,"--n-rail-color-active":F,"--n-rail-height":d,"--n-rail-width":_,"--n-width":U,"--n-box-shadow-focus":re,"--n-loading-color":le,"--n-text-color":se,"--n-icon-color":ce}}),L=y?ke("switch",P(()=>k.value[0]),O,e):void 0;return{handleClick:te,handleBlur:ie,handleFocus:ae,handleKeyup:ne,handleKeydown:oe,mergedRailStyle:S,pressed:i,mergedClsPrefix:$,mergedValue:f,checked:C,mergedDisabled:h,cssVars:y?void 0:O,themeClass:L?.themeClass,onRender:L?.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:$,checked:y,mergedRailStyle:K,onRender:T,$slots:w}=this;T?.();const{checked:k,unchecked:h,icon:x,"checked-icon":B,"unchecked-icon":f}=w,C=!(E(x)&&E(B)&&E(f));return u(),m("div",{role:"switch","aria-checked":y,class:n([`${e}-switch`,this.themeClass,C&&`${e}-switch--icon`,y&&`${e}-switch--active`,$&&`${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:q(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[p("div",{class:n(`${e}-switch__rail`),"aria-hidden":"true",style:q(K)},[r(()=>v(k,i=>v(h,o=>i||o?(u(),m("div",{key:4,"aria-hidden":!0,class:n(`${e}-switch__children-placeholder`)},[p("div",{class:n(`${e}-switch__rail-placeholder`)},[p("div",{class:n(`${e}-switch__button-placeholder`)},null,2),r(()=>i)],2),p("div",{class:n(`${e}-switch__rail-placeholder`)},[p("div",{class:n(`${e}-switch__button-placeholder`)},null,2),r(()=>o)],2)],2)):null))),p("div",{class:n(`${e}-switch__button`)},[r(()=>v(x,i=>v(B,o=>v(f,S=>(u(),G(_e,null,{default:()=>this.loading?(u(),G(xe,Se({key:"loading",clsPrefix:e,strokeWidth:20},this.spinProps),null,16,["clsPrefix"])):this.checked&&(o||i)?(u(),m("div",{class:n(`${e}-switch__button-icon`),key:o?"checked-icon":"icon"},[r(()=>o||i)],2)):!this.checked&&(S||i)?(u(),m("div",{class:n(`${e}-switch__button-icon`),key:S?"unchecked-icon":"icon"},[r(()=>S||i)],2)):null},1024)))))),r(()=>v(k,i=>i&&(u(),m("div",{key:"checked",class:n(`${e}-switch__checked`)},[r(()=>i)],2)))),r(()=>v(h,i=>i&&(u(),m("div",{key:"unchecked",class:n(`${e}-switch__unchecked`)},[r(()=>i)],2))))],2)],6)],46,Re)}});export{Te as S,Ke as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DoUnrAre.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DoUnrAre.js new file mode 100644 index 00000000..6f55f6d7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DoUnrAre.js @@ -0,0 +1 @@ +import{d as t,c as n,a as o,o as r}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DdbJvs3T.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DdbJvs3T.js new file mode 100644 index 00000000..539f76f7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DdbJvs3T.js @@ -0,0 +1,9 @@ +import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-Bmcyfv7z.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[l("color-transition",{transition:"color .3s var(--n-bezier)"}),l("depth",{color:"var(--n-color)"},[u("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),u("svg",{height:"1em",width:"1em"})]);const N={...p.props,depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]},w=b({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:N,setup(e){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=$(e),o=p("Icon","-icon",S,C,e,r),t=a(()=>{const{depth:i}=e,{common:{cubicBezierEaseInOut:c},self:f}=o.value;if(i!==void 0){const{color:h,[`opacity${i}Depth`]:g}=f;return{"--n-bezier":c,"--n-color":h,"--n-opacity":g}}return{"--n-bezier":c,"--n-color":"","--n-opacity":""}}),s=n?x("icon",a(()=>`${e.depth||"d"}`),t,e):void 0;return{mergedClsPrefix:r,mergedStyle:a(()=>{const{size:i,color:c}=e;return{fontSize:R(i),color:c}}),cssVars:n?void 0:t,themeClass:s?.themeClass,onRender:s?.onRender}},render(){const{$parent:e,depth:r,mergedClsPrefix:n,component:o,onRender:t,themeClass:s}=this;return e?.$options?._n_icon__&&v("icon","don't wrap `n-icon` inside `n-icon`"),t?.(),m("i",y(this.$attrs,{role:"img",class:[`${n}-icon`,s,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?m(o):this.$slots.default?.())}}),I=(e,r)=>{const n=e.__vccOpts||e;for(const[o,t]of r)n[o]=t;return n};export{w as N,I as _,R as f}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/empty-live-dVnauh0o.jpg b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/empty-live-dVnauh0o.jpg new file mode 100644 index 00000000..a53c4226 Binary files /dev/null and b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/empty-live-dVnauh0o.jpg differ diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-Cu8p5L8n.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-Cu8p5L8n.js new file mode 100644 index 00000000..c00575ef --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-Cu8p5L8n.js @@ -0,0 +1 @@ +import{r as e,j as a}from"./index-Bmcyfv7z.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-vojgPPhH.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-vojgPPhH.js new file mode 100644 index 00000000..9ac59aba --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-vojgPPhH.js @@ -0,0 +1 @@ +import{ap as n,ao as a}from"./index-Bmcyfv7z.js";const o=!0,s=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),t=()=>n("/miniapp/engine/redownload"),p=()=>n("/miniapp/engine/cancel");export{o as E,p as c,s as g,t as r,i as s}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/filename-template-DBJXvN0y.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/filename-template-DBJXvN0y.js new file mode 100644 index 00000000..c6fe854c --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/filename-template-DBJXvN0y.js @@ -0,0 +1 @@ +const d=new Set("YCymdeHkIlPpMSfRTXxcDFvhbBaAwujUWGgVstnzrZq+".split("")),m=new Set(["streamer","title","url"]);function S(e){if(e==null||e==="")return null;const l=[...e.matchAll(/\{([^}]*)\}/g)];let r="",s=0,o=!1;for(const n of l){const i=n.index??0;r+=e.slice(s,i),s=i+n[0].length,n[1].includes("{")&&(o=!0)}if(r+=e.slice(s),o||r.includes("{"))return"文件名模板里的花括号未闭合:检查 {streamer} / {title} 是否少了 }";for(const n of l)if(!m.has(n[1]))return`不支持的占位符 {${n[1]}}:只支持 {streamer} / {title} / {url}`;for(let n=0;n=e.length)return"行尾单个 % 无效:要输出字面量 % 请写 %%";const c=()=>`不支持的时间占位符 ${e.slice(i,t+1)}:可用写法如 %Y-%m-%dT%H_%M_%S,字面量 % 请写 %%`;if(e[t]==="%"){n=t;continue}if("-_0^#".includes(e[t])&&t++,e[t]===".")for(t++;t="0"&&e[t]<="9";)t++;if("369".includes(e[t])){if(e[t+1]!=="f")return c();t++}if(e[t]===":"){const f=e.slice(t+1);if(f.startsWith("::z"))t+=3;else if(f.startsWith(":z"))t+=2;else if(f.startsWith("z"))t+=1;else return c();n=t;continue}if(t>=e.length)return"行尾单个 % 无效:要输出字面量 % 请写 %%";const h=e[t];if(!d.has(h))return c();n=t}return null}export{S as v}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/format-B8CnorUZ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/format-B8CnorUZ.js new file mode 100644 index 00000000..ee67e2c6 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/format-B8CnorUZ.js @@ -0,0 +1 @@ +function i(r,t=1){if(!r||r<=0)return"0 B";const n=["B","KB","MB","GB","TB"];let e=r,u=0;for(;e>=1024&&u0?`${n}:${String(e).padStart(2,"0")}:${String(u).padStart(2,"0")}`:`${e}:${String(u).padStart(2,"0")}`}function c(r){if(!r)return"—";const t=new Date(r),n=e=>String(e).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function s(r){if(!r)return"";const t=Date.now()-r;return t<6e4?"刚刚":t<36e5?`${Math.floor(t/6e4)} 分钟前`:t<864e5?`${Math.floor(t/36e5)} 小时前`:`${Math.floor(t/864e5)} 天前`}function o(r){if(!r)return"直播源";const t=r.toLowerCase();if(t.startsWith("wxchannel-stream://"))return"视频号";if(t.includes("douyin.com"))return"抖音";if(t.includes("kuaishou.com"))return"快手";if(t.includes("bilibili.com")||t.includes("b23.tv"))return"哔哩哔哩";if(t.includes("huya.com"))return"虎牙";if(t.includes("douyu.com"))return"斗鱼";if(t.includes("youtube.com")||t.includes("youtu.be"))return"YouTube";if(t.includes("twitch.tv"))return"Twitch";if(t.includes("cc.163.com"))return"网易 CC";if(t.includes("6.cn"))return"六间房";if(t.includes("shanxuanwenhua.com"))return"在场";try{return new URL(r).hostname.replace(/^www\./,"")}catch{return"直播源"}}function l(r){const t=o(r);return t==="视频号"?"wechat":t==="抖音"?"douyin":t==="快手"?"kuaishou":t==="哔哩哔哩"?"bilibili":t==="虎牙"?"huya":t==="斗鱼"?"douyu":t==="六间房"?"sixroom":t==="在场"?"zaichang":"other"}export{l as a,f as b,c,i as d,a as f,o as p,s as r}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Bmcyfv7z.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Bmcyfv7z.js new file mode 100644 index 00000000..0a6d082b --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Bmcyfv7z.js @@ -0,0 +1,816 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-DFTjbjn3.js","assets/Input-DS3FhrY_.js","assets/use-compitable-CSVBov8c.js","assets/CheckboxGroup-iTsKmCjZ.js","assets/_plugin-vue_export-helper-DdbJvs3T.js","assets/Spin-CCColBh4.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-L-sskm9b.js","assets/RefreshOutline-CIl2qHSI.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-DH1IaDgc.js","assets/PulseOutline-Da42XzaM.js","assets/use-message-BaVpnNbE.js","assets/streamers-D5Y-fBfU.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-vojgPPhH.js","assets/engine-state-Cu8p5L8n.js","assets/VideocamOutline-DoUnrAre.js","assets/FilmOutline-DCmf1Zmt.js","assets/GitCompareOutline-4zZKl19q.js","assets/CloudDownloadOutline-Cwn6t3sl.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-B415Ci4w.js","assets/Switch-C33rKL-M.js","assets/EmptyState-CGA7qM0U.js","assets/EmptyState-BJiq6Btv.css","assets/Select-P9AqjsDB.js","assets/format-B8CnorUZ.js","assets/AddOutline-DDWMaSa8.js","assets/filename-template-DBJXvN0y.js","assets/SearchOutline-BOYIL3j0.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-CS8l23Jb.js","assets/DownloadOutline-ZlR9MTyd.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-h5lf4-Vn.js","assets/DocumentTextOutline-BvVIG18e.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-Cq5T4anl.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-CJoqn3Jp.js","assets/SettingsView-Cfxh_2g_.css"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function va(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Oe={},lr=[],co=()=>{},Cd=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),qe=Object.assign,Ca=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Em=Object.prototype.hasOwnProperty,Re=(e,t)=>Em.call(e,t),ge=Array.isArray,Uo=e=>On(e)==="[object Map]",mi=e=>On(e)==="[object Set]",ss=e=>On(e)==="[object Date]",ye=e=>typeof e=="function",Ve=e=>typeof e=="string",kt=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",xd=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),yd=Object.prototype.toString,On=e=>yd.call(e),_m=e=>On(e).slice(8,-1),Sd=e=>On(e)==="[object Object]",Bi=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ki=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},$m=/-\w/g,wt=ki(e=>e.replace($m,t=>t.slice(1).toUpperCase())),Rm=/\B([A-Z])/g,Cr=ki(e=>e.replace(Rm,"-$1").toLowerCase()),Di=ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),ml=ki(e=>e?`on${Di(e)}`:""),io=(e,t)=>!Object.is(e,t),gl=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},Im=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Am=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let cs;const Li=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ge(e)){const t={};for(let o=0;oo.startsWith("/*")?"":o).split(Hm).forEach(o=>{if(o){const r=o.split(Mm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function mr(e){let t="";if(Ve(e))t=e;else if(ge(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Om=e=>Ve(e)?e:e==null?"":ge(e)||Ie(e)&&(e.toString===yd||!ye(e.toString))?Td(e)?Om(e.value):JSON.stringify(e,Ed,2):String(e),Ed=(e,t)=>Td(t)?Ed(e,t.value):Uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[bl(r,i)+" =>"]=n,o),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bl(o))}:kt(t)?bl(t):Ie(t)&&!ge(t)&&!Sd(t)?String(t):t,bl=(e,t="")=>{var o;return kt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let it;class Wm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&it&&(it.active?(this.parent=it,this.index=(it.scopes||(it.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(it===this)it=this.prevScope;else{let t=it;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(pn){let t=pn;for(pn=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;hn;){let t=hn;for(hn=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Id(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ad(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Sa(r),jm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function Wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wl(e))))return;e.flags|=2;const t=e.dep,o=We,r=Xt;We=e,Xt=!0;try{Id(e);const n=e.fn(e._value);(t.version===0||io(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{We=o,Xt=r,Ad(e),e.flags&=-3}}function Sa(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Sa(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function jm(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Xt=!0;const Md=[];function fo(){Md.push(Xt),Xt=!1}function ho(){const e=Md.pop();Xt=e===void 0?!0:e}function fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=We;We=void 0;try{t()}finally{We=o}}}let yn=0;class Vm{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{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(!We||!Xt||We===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==We)o=this.activeLink=new Vm(We,this),We.deps?(o.prevDep=We.depsTail,We.depsTail.nextDep=o,We.depsTail=o):We.deps=We.depsTail=o,zd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=We.depsTail,o.nextDep=void 0,We.depsTail.nextDep=o,We.depsTail=o,We.deps===o&&(We.deps=r)}return o}trigger(t){this.version++,yn++,this.notify(t)}notify(t){xa();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ya()}}}function zd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zd(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const gi=new WeakMap,ur=Symbol(""),Nl=Symbol(""),Sn=Symbol("");function ht(e,t,o){if(Xt&&We){let r=gi.get(e);r||gi.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new wa),n.map=r,n.key=o),n.track()}}function To(e,t,o,r,n,i){const l=gi.get(e);if(!l){yn++;return}const a=s=>{s&&s.trigger()};if(xa(),t==="clear")l.forEach(a);else{const s=ge(e),d=s&&Bi(o);if(s&&o==="length"){const c=Number(r);l.forEach((u,f)=>{(f==="length"||f===Sn||!kt(f)&&f>=c)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),d&&a(l.get(Sn)),t){case"add":s?d&&a(l.get("length")):(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"delete":s||(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"set":Uo(e)&&a(l.get(ur));break}}ya()}function Gm(e,t){const o=gi.get(e);return o&&o.get(t)}function _r(e){const t=_e(e);return t===e||(ht(t,"iterate",Sn),Ft(e))?t:mo(e)?qo(e)?t.map(o=>Ko(jt(o))):t.map(Ko):t.map(jt)}function Wi(e){return ht(e=_e(e),"iterate",Sn),e}function oo(e,t){return mo(e)?Ko(qo(e)?jt(t):t):jt(t)}const Um={__proto__:null,[Symbol.iterator](){return Cl(this,Symbol.iterator,e=>oo(this,e))},concat(...e){return _r(this).concat(...e.map(t=>ge(t)?_r(t):t))},entries(){return Cl(this,"entries",e=>(e[1]=oo(this,e[1]),e))},every(e,t){return yo(this,"every",e,t,void 0,arguments)},filter(e,t){return yo(this,"filter",e,t,o=>o.map(r=>oo(this,r)),arguments)},find(e,t){return yo(this,"find",e,t,o=>oo(this,o),arguments)},findIndex(e,t){return yo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yo(this,"findLast",e,t,o=>oo(this,o),arguments)},findLastIndex(e,t){return yo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yo(this,"forEach",e,t,void 0,arguments)},includes(...e){return xl(this,"includes",e)},indexOf(...e){return xl(this,"indexOf",e)},join(e){return _r(this).join(e)},lastIndexOf(...e){return xl(this,"lastIndexOf",e)},map(e,t){return yo(this,"map",e,t,void 0,arguments)},pop(){return Jr(this,"pop")},push(...e){return Jr(this,"push",e)},reduce(e,...t){return ps(this,"reduce",e,t)},reduceRight(e,...t){return ps(this,"reduceRight",e,t)},shift(){return Jr(this,"shift")},some(e,t){return yo(this,"some",e,t,void 0,arguments)},splice(...e){return Jr(this,"splice",e)},toReversed(){return _r(this).toReversed()},toSorted(e){return _r(this).toSorted(e)},toSpliced(...e){return _r(this).toSpliced(...e)},unshift(...e){return Jr(this,"unshift",e)},values(){return Cl(this,"values",e=>oo(this,e))}};function Cl(e,t,o){const r=Wi(e),n=r[t],i=n.call(r);if(r!==e&&!Ft(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const l=Object.create(Object.getPrototypeOf(i));return l.next=()=>hs(i.next(),o),n!==Fd[t]&&Object.defineProperties(l,{return:{get(){const a=i.return;return typeof a=="function"?a.bind(i):a}},throw:{get(){const a=i.throw;return typeof a=="function"?a.bind(i):a}}}),l}i._next=i.next,i.next=()=>hs(i._next(),o)}return i}function hs(e,t){return e.done||(e.value=t(e.value)),e}const Fd=Array.prototype;function yo(e,t,o,r,n,i){const l=Wi(e),a=l!==e&&!Ft(e),s=l[t];if(s!==Fd[t]){const u=s.apply(e,i);return a?jt(u):u}let d=o;l!==e&&(a?d=function(u,f){return o.call(this,oo(e,u),f,e)}:o.length>2&&(d=function(u,f){return o.call(this,u,f,e)}));const c=s.call(l,d,r);return a&&n?n(c):c}function ps(e,t,o,r){const n=Wi(e),i=n!==e&&!Ft(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(d,c,u){return a&&(a=!1,d=oo(e,d)),o.call(this,d,oo(e,c),u,e)}):o.length>3&&(l=function(d,c,u){return o.call(this,d,c,u,e)}));const s=n[t](l,...r);return a?oo(e,s):s}function xl(e,t,o){const r=_e(e);ht(r,"iterate",Sn);const n=r[t](...o);return(n===-1||n===!1)&&Ni(o[0])?(o[0]=_e(o[0]),r[t](...o)):n}function Jr(e,t,o=[]){fo(),xa();const r=_e(e)[t].apply(e,o);return ya(),ho(),r}const qm=va("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function Km(e){kt(e)||(e=String(e));const t=_e(this);return ht(t,"has",e),t.hasOwnProperty(e)}class kd{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?ng:Wd:i?Od:Ld).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=ge(t);if(!n){let s;if(l&&(s=Um[o]))return s;if(o==="hasOwnProperty")return Km}const a=Reflect.get(t,o,ot(t)?t:r);if((kt(o)?Bd.has(o):qm(o))||(n||ht(t,"get",o),i))return a;if(ot(a)){const s=l&&Bi(o)?a:a.value;return n&&Ie(s)?po(s):s}return Ie(a)?n?po(a):xr(a):a}}class Dd extends kd{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=ge(t)&&Bi(o);if(!this._isShallow){const d=mo(i);if(!Ft(r)&&!mo(r)&&(i=_e(i),r=_e(r)),!l&&ot(i)&&!ot(r))return d||(i.value=r),!0}const a=l?Number(o)e,Yn=e=>Reflect.getPrototypeOf(e);function Qm(e,t,o){return function(...r){const n=this.__v_raw,i=_e(n),l=Uo(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,d=n[e](...r),c=o?jl:t?Ko:jt;return!t&&ht(i,"iterate",s?Nl:ur),qe(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:a?[c(u[0]),c(u[1])]:c(u),done:f}}})}}function Xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eg(e,t){const o={get(n){const i=this.__v_raw,l=_e(i),a=_e(n);e||(io(n,a)&&ht(l,"get",n),ht(l,"get",a));const{has:s}=Yn(l),d=t?jl:e?Ko:jt;if(s.call(l,n))return d(i.get(n));if(s.call(l,a))return d(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&ht(_e(n),"iterate",ur),n.size},has(n){const i=this.__v_raw,l=_e(i),a=_e(n);return e||(io(n,a)&&ht(l,"has",n),ht(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=_e(a),d=t?jl:e?Ko:jt;return!e&&ht(s,"iterate",ur),a.forEach((c,u)=>n.call(i,d(c),d(u),l))}};return qe(o,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(n){const i=_e(this),l=Yn(i),a=_e(n),s=!t&&!Ft(n)&&!mo(n)?a:n;return l.has.call(i,s)||io(n,s)&&l.has.call(i,n)||io(a,s)&&l.has.call(i,a)||(i.add(s),To(i,"add",s,s)),this},set(n,i){!t&&!Ft(i)&&!mo(i)&&(i=_e(i));const l=_e(this),{has:a,get:s}=Yn(l);let d=a.call(l,n);d||(n=_e(n),d=a.call(l,n));const c=s.call(l,n);return l.set(n,i),d?io(i,c)&&To(l,"set",n,i):To(l,"add",n,i),this},delete(n){const i=_e(this),{has:l,get:a}=Yn(i);let s=l.call(i,n);s||(n=_e(n),s=l.call(i,n)),a&&a.call(i,n);const d=i.delete(n);return s&&To(i,"delete",n,void 0),d},clear(){const n=_e(this),i=n.size!==0,l=n.clear();return i&&To(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Qm(n,e,t)}),o}function Pa(e,t){const o=eg(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_isShallow"?t:n==="__v_raw"?r:Reflect.get(Re(o,n)&&n in r?o:r,n,i)}const tg={get:Pa(!1,!1)},og={get:Pa(!1,!0)},rg={get:Pa(!0,!1)};const Ld=new WeakMap,Od=new WeakMap,Wd=new WeakMap,ng=new WeakMap;function ig(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xr(e){return mo(e)?e:Ta(e,!1,Xm,tg,Ld)}function Nd(e){return Ta(e,!1,Jm,og,Od)}function po(e){return Ta(e,!0,Zm,rg,Wd)}function Ta(e,t,o,r,n){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=ig(_m(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function qo(e){return mo(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Ni(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Vl(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&wd(e,"__v_skip",!0),e}const jt=e=>Ie(e)?xr(e):e,Ko=e=>Ie(e)?po(e):e;function ot(e){return e?e.__v_isRef===!0:!1}function se(e){return Vd(e,!1)}function jd(e){return Vd(e,!0)}function Vd(e,t){return ot(e)?e:new lg(e,t)}class lg{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:_e(t),this._value=o?t:jt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||Ft(t)||mo(t);t=r?t:_e(t),io(t,o)&&(this._rawValue=t,this._value=r?t:jt(t),this.dep.trigger())}}function Yt(e){return ot(e)?e.value:e}const ag={get:(e,t,o)=>t==="__v_raw"?e:Yt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return ot(n)&&!ot(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function Gd(e){return qo(e)?e:new Proxy(e,ag)}class sg{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=kt(o)?o:String(o),this._raw=_e(t);let n=!0,i=t;if(!ge(t)||kt(this._key)||!Bi(this._key))do n=!Ni(i)||Ft(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Yt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ot(this._raw[this._key])){const o=this._object[this._key];if(ot(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Gm(this._raw,this._key)}}class cg{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 uo(e,t,o){return ot(e)?e:ye(e)?new cg(e):Ie(e)&&arguments.length>1?dg(e,t,o):se(e)}function dg(e,t,o){return new sg(e,t,o)}class ug{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Rd(this,!0),!0}get value(){const t=this.dep.track();return Hd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,o=!1){let r,n;return ye(e)?r=e:(r=e.get,n=e.set),new ug(r,n,o)}const Zn={},bi=new WeakMap;let or;function hg(e,t=!1,o=or){if(o){let r=bi.get(o);r||bi.set(o,r=[]),r.push(e)}}function pg(e,t,o=Oe){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,d=P=>n?P:Ft(P)||n===!1||n===0?Eo(P,1):Eo(P);let c,u,f,h,p=!1,g=!1;if(ot(e)?(u=()=>e.value,p=Ft(e)):qo(e)?(u=()=>d(e),p=!0):ge(e)?(g=!0,p=e.some(P=>qo(P)||Ft(P)),u=()=>e.map(P=>{if(ot(P))return P.value;if(qo(P))return d(P);if(ye(P))return s?s(P,2):P()})):ye(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){fo();try{f()}finally{ho()}}const P=or;or=c;try{return s?s(e,3,[h]):e(h)}finally{or=P}}:u=co,t&&n){const P=u,A=n===!0?1/0:n;u=()=>Eo(P(),A)}const b=Nm(),C=()=>{c.stop(),b&&b.active&&Ca(b.effects,c)};if(i&&t){const P=t;t=(...A)=>{try{return P(...A)}finally{C()}}}let y=g?new Array(e.length).fill(Zn):Zn;const T=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const A=c.run();if(P||n||p||(g?A.some((M,v)=>io(M,y[v])):io(A,y))){const M=or;fo();try{f&&f(),or=c;const v=[A,y===Zn?void 0:g&&y[0]===Zn?[]:y,h];y=A,s?s(t,3,v):t(...v)}finally{or=M,ho()}}}else c.run()};return a&&a(T),c=new _d(u),c.scheduler=l?()=>l(T,!1):T,h=P=>hg(P,!1,c),f=c.onStop=()=>{const P=bi.get(c);if(P){if(s)s(P,4);else for(const A of P)A();bi.delete(c)}},t?r?T(!0):y=c.run():l?l(T.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function Eo(e,t=1/0,o){if(t<=0||!Ie(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,ot(e))Eo(e.value,t,o);else if(ge(e))for(let r=0;r{Eo(r,t,o)});else if(Sd(e)){for(const r in e)Eo(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Eo(e[r],t,o)}return e}function Wn(e,t,o,r){try{return r?e(...r):e()}catch(n){ji(n,t,o)}}function Vt(e,t,o,r){if(ye(e)){const n=Wn(e,t,o,r);return n&&xd(n)&&n.catch(i=>{ji(i,t,o,void 0,!0)}),n}if(ge(e)){const n=[];for(let i=0;i>>1,n=yt[r],i=wn(n);i=wn(o)?yt.push(e):yt.splice(gg(t),0,e),e.flags|=1,qd()}}function qd(){vi||(vi=Ud.then(Xd))}function bg(e){if(!ge(e))Wo&&e.id===-1?Wo.splice(Ar+1,0,e):e.flags&1||(ro.push(e),e.flags|=1);else for(let t=0;t=t))continue;yt.splice(r,1),r=e?r-1:Ut,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Yd(e,t,o=0){if(ro.length){let r=ro,n=0;if(t){r=[];for(let l=0;lwn(l)-wn(a));if(ro.length=n,Wo){for(let l=0;le.id==null?e.flags&2?-1:1/0:e.id;function Xd(e){try{for(Ut=0;Ut{r._d&&wi(-1);const i=Ci(t),l=$o.length;let a;try{a=e(...n)}finally{for(let s=$o.length;s>l;s--)Ha();Ci(i),r._d&&wi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Gl(e,t){if(lt===null)return e;const o=Yi(lt),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ye(t)?t.call(r&&r.proxy):t}}const Cg=Symbol.for("v-scx"),xg=()=>De(Cg);function Gi(e,t){return Ea(e,null,t)}function Nt(e,t,o){return Ea(e,t,o)}function Ea(e,t,o=Oe){const{immediate:r,deep:n,flush:i,once:l}=o,a=qe({},o),s=t&&r||!t&&i!=="post";let d;if(In){if(i==="sync"){const h=xg();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=co,h.resume=co,h.pause=co,h}}const c=mt;a.call=(h,p,g)=>Vt(h,c,p,g);let u=!1;i==="post"?a.scheduler=h=>{h.i=c,ft(h,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Vi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=pg(e,t,a);return In&&(d?d.push(f):s&&f()),f}function yg(e,t,o){const r=this.proxy,n=Ve(e)?e.includes(".")?Jd(r,e):()=>r[e]:e.bind(r,r);let i;ye(t)?i=t:(i=t.handler,o=t);const l=jn(this),a=Ea(n,i.bind(r),o);return l(),a}function Jd(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,nr=e=>e&&(e.disabled||e.disabled===""),Sg=e=>e&&(e.defer||e.defer===""),ms=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ul=(e,t)=>{const o=e&&e.to;return Ve(o)?t?t(o):null:o},wg={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,d){const{mc:c,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b,parentNode:C}}=d,y=nr(t.props);let{dynamicChildren:T}=t;const P=(v,w,_)=>{v.shapeFlag&16&&c(v.children,w,_,n,i,l,a,s)},A=(v=t)=>{const w=nr(v.props),_=v.target=Ul(v.props,p),H=ql(_,v,g,h);_&&(l!=="svg"&&ms(_)?l="svg":l!=="mathml"&&gs(_)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(_),w||(P(v,_,H),an(v,!1)))},M=v=>{const w=()=>{if(Lo.get(v)===w){if(Lo.delete(v),nr(v.props)){const _=C(v.el)||o;P(v,_,v.anchor),an(v,!0)}A(v)}};Lo.set(v,w),ft(w,i)};if(e==null){const v=t.el=g(""),w=t.anchor=g("");if(h(v,o,r),h(w,o,r),Sg(t.props)||i&&i.pendingBranch){M(t);return}y&&(P(t,o,w),an(t,!0)),A()}else{t.el=e.el;const v=t.anchor=e.anchor,w=Lo.get(e);if(w){w.flags|=8,Lo.delete(e),M(t);return}t.targetStart=e.targetStart;const _=t.target=e.target,H=t.targetAnchor=e.targetAnchor,O=nr(e.props),$=O?o:_,K=O?v:H;if(l==="svg"||ms(_)?l="svg":(l==="mathml"||gs(_))&&(l="mathml"),T?(f(e.dynamicChildren,T,$,n,i,l,a),Aa(e,t,!0)):s||u(e,t,$,K,n,i,l,a,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jn(t,o,v,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=Ul(t.props,p);ie&&(t.target=ie,Jn(t,ie,null,d,0))}else O&&Jn(t,_,H,d,1);an(t,y)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:d,targetAnchor:c,target:u,props:f}=e,h=nr(f),p=i||!h,g=Lo.get(e);if(g&&(g.flags|=8,Lo.delete(e)),u&&(n(d),n(c)),i&&n(s),!g&&(h||u)&&l&16)for(let b=0;b{e.isMounted=!0}),Gt(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],tu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},Tg={name:"BaseTransition",props:tu,setup(e,{slots:t}){const o=Wr(),r=eu();return()=>{const n=t.default&&$a(t.default(),!0),i=n&&n.length?ou(n):o.subTree?db():void 0;if(!i)return;const l=_e(e),{mode:a}=l;if(r.isLeaving)return Sl(i);const s=xi(i);if(!s)return Sl(i);const d=Pn(s,l,r,o);s.type!==Ze&&_o(s,d);let c=o.subTree&&xi(o.subTree);if(c&&c.type!==Ze&&!ir(c,s)&&Tn(o.subTree)){let u=Pn(c,l,r,o);if(_o(c,u),a==="out-in"&&s.type!==Ze)return r.isLeaving=!0,u.afterLeave=()=>{if(r.isLeaving=!1,!(o.job.flags&8))if(o.effect.flags&2){const f=()=>{o.job.flags&8||o.update()};f.i=o,Vi(f)}else o.update();delete u.afterLeave,c=void 0},Sl(i);a==="in-out"&&s.type!==Ze?u.delayLeave=(f,h,p)=>{const g=ru(r,c);g[String(c.key)]=c,f[Wt]=()=>{h(),f[Wt]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function ou(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Ze){t=o;break}}return t}const Eg=Tg;function ru(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Pn(e,t,o,r){const{appear:n,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:u,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:y}=t,T=String(e.key),P=ru(o,e),A=(w,_)=>{w&&Vt(w,r,9,_)},M=(w,_)=>{const H=_[1];A(w,_),ge(w)?w.every(O=>O.length<=1)&&H():w.length<=1&&H()},v={mode:i,persisted:l,beforeEnter(w){let _=a;if(!o.isMounted)if(n)_=g||a;else return;w[Wt]&&w[Wt](!0);const H=P[T];if(H&&ir(e,H)){let O=H.el[Wt];if(!O){const $=Tn(H);O=$&&$.el[Wt]}O&&O()}A(_,[w])},enter(w){if(P[T]===e)return;let _=s,H=d,O=c;if(!o.isMounted)if(n)_=b||s,H=C||d,O=y||c;else return;let $=!1;w[Qr]=ie=>{$||($=!0,ie?A(O,[w]):A(H,[w]),v.delayedLeave&&v.delayedLeave(),w[Qr]=void 0)};const K=w[Qr].bind(null,!1);_?M(_,[w,K]):K()},leave(w,_){const H=String(e.key);if(w[Qr]&&w[Qr](!0),o.isUnmounting)return _();A(u,[w]);let O=!1;w[Wt]=K=>{O||(O=!0,_(),K?A(p,[w]):A(h,[w]),w[Wt]=void 0,P[H]===e&&delete P[H])};const $=w[Wt].bind(null,!1);P[H]=e,f?M(f,[w,$]):$()},clone(w){const _=Pn(w,t,o,r);return _.afterLeave=()=>{v.afterLeave&&v.afterLeave()},_.delayLeave=(H,O,$)=>{v.delayLeave?v.delayLeave(H,O,$):$()},_.delayedLeave=()=>{v.delayedLeave&&v.delayedLeave()},_}};return v}function Sl(e){if(qi(e))return e=go(e),e.children=null,e}function xi(e){if(!qi(e))return Ui(e.type)&&e.children?ou(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ye(o.default))return o.default()}}function _o(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;_o(Ui(o.type)&&xi(o)||o,t)}else if(e.shapeFlag&128){const o=e.suspense;if(o){const r=o.isHydrating?o.pendingBranch:o.activeBranch;r&&_o(r,t.clone(r))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===Te&&ge(e.children)){const o=vu(e.children,!1);o&&_o(o,t)}}function $a(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;imn(g,t&&(ge(t)?t[b]:t),o,r,n));return}if(Mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?Yi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,d=t&&t.r,c=a.refs===Oe?a.refs={}:a.refs,u=a.setupState,f=_e(u),h=u===Oe?Cd:g=>bs(c,g)?!1:Re(f,g),p=(g,b)=>!(b&&bs(c,b));if(d!=null&&d!==s){if(vs(t),Ve(d))c[d]=null,h(d)&&(u[d]=null);else if(ot(d)){const g=t;p(d,g.k)&&(d.value=null),g.k&&(c[g.k]=null)}}if(ye(s))Wn(s,a,12,[l,c]);else{const g=Ve(s),b=ot(s);if(g||b){const C=()=>{if(e.f){const y=g?h(s)?u[s]:c[s]:p()||!e.k?s.value:c[e.k];if(n)ge(y)&&Ca(y,i);else if(ge(y))y.includes(i)||y.push(i);else if(g)c[s]=[i],h(s)&&(u[s]=c[s]);else{const T=[i];p(s,e.k)&&(s.value=T),e.k&&(c[e.k]=T)}}else g?(c[s]=l,h(s)&&(u[s]=l)):b&&(p(s,e.k)&&(s.value=l),e.k&&(c[e.k]=l))};if(l){const y=()=>{C(),yi.delete(e)};y.id=-1,yi.set(e,y),ft(y,o)}else vs(e),C()}}}function vs(e){const t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}Li().requestIdleCallback;Li().cancelIdleCallback;const Mr=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function iu(e,t){au(e,"a",t)}function lu(e,t){au(e,"da",t)}function au(e,t,o=mt){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,r,o),o){let n=o.parent;for(;n&&n.parent;)qi(n.parent.vnode)&&_g(r,t,o,n),n=n.parent}}function _g(e,t,o,r){const n=En(t,e,r,!0),i=En("um",()=>Ca(r[t],n),o);i.flags=16}function En(e,t,o=mt,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{fo();const a=jn(o),s=Vt(t,o,e,l);return a(),ho(),s});return r?n.unshift(i):n.push(i),i}}const Ao=e=>(t,o=mt)=>{(!In||e==="sp")&&En(e,(...r)=>t(...r),o)},yr=Ao("bm"),bo=Ao("m"),$g=Ao("bu"),su=Ao("u"),Gt=Ao("bum"),cu=Ao("um"),Rg=Ao("sp"),Ig=Ao("rtg"),Ag=Ao("rtc");function Hg(e,t=mt){En("ec",e,t)}const du="components";function Mg(e,t){return fu(du,e,!0,t)||e}const uu=Symbol.for("v-ndc");function k_(e){return Ve(e)?fu(du,e,!1)||e:e||uu}function fu(e,t,o=!0,r=!1){const n=lt||mt;if(n){const i=n.type;{const a=vb(i,!1);if(a&&(a===t||a===wt(t)||a===Di(wt(t))))return i}const l=Cs(n[e]||i[e],t)||Cs(n.appContext[e],t);return!l&&r?i:l}}function Cs(e,t){return e&&(e[t]||e[wt(t)]||e[Di(wt(t))])}function D_(e,t,o,r){let n;const i=o,l=ge(e);if(l||Ve(e)){const a=l&&qo(e);let s=!1,d=!1;a&&(s=!Ft(e),d=mo(e),e=Wi(e)),n=new Array(e.length);for(let c=0,u=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,d=a.length;s0;return k(),ae(Te,null,[je("slot",d,r)],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=$o.length;k();let s;try{const d=l&&hu(l(o)),c=o.key||i||d&&d.key;s=ae(Te,{key:(c&&!kt(c)?c:`_${t}`)+(!d&&r?"_fb":"")},d||(r?r():[]),d&&e._===1?64:-2)}catch(d){for(let c=$o.length;c>a;c--)Ha();throw d}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function hu(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!hu(t.children)):!0)?e:null}const Kl=e=>e?Mu(e)?Yi(e):Kl(e.parent):null,gn=qe(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=>Kl(e.parent),$root:e=>Kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mu(e),$forceUpdate:e=>e.f||(e.f=()=>{Vi(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>yg.bind(e)}),wl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Re(e,t),Fg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(wl(r,t))return l[t]=1,r[t];if(n!==Oe&&Re(n,t))return l[t]=2,n[t];if(Re(i,t))return l[t]=3,i[t];if(o!==Oe&&Re(o,t))return l[t]=4,o[t];Yl&&(l[t]=0)}}const d=gn[t];let c,u;if(d)return t==="$attrs"&&ht(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(o!==Oe&&Re(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Re(u,t))return u[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return wl(n,t)?(n[t]=o,!0):r!==Oe&&Re(r,t)?(r[t]=o,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Oe&&a[0]!=="$"&&Re(e,a)||wl(t,a)||Re(i,a)||Re(r,a)||Re(gn,a)||Re(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Re(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function xs(e){return ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Yl=!0;function Bg(e){const t=mu(e),o=e.proxy,r=e.ctx;Yl=!1,t.beforeCreate&&ys(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:C,beforeUnmount:y,destroyed:T,unmounted:P,render:A,renderTracked:M,renderTriggered:v,errorCaptured:w,serverPrefetch:_,expose:H,inheritAttrs:O,components:$,directives:K,filters:ie}=t;if(d&&kg(d,r,null),l)for(const J in l){const ue=l[J];ye(ue)&&(r[J]=ue.bind(o))}if(n){const J=n.call(o,o);Ie(J)&&(e.data=xr(J))}if(Yl=!0,i)for(const J in i){const ue=i[J],He=ye(ue)?ue.bind(o,o):ye(ue.get)?ue.get.bind(o,o):co,$e=!ye(ue)&&ye(ue.set)?ue.set.bind(o):co,Le=X({get:He,set:$e});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Le.value,set:ke=>Le.value=ke})}if(a)for(const J in a)pu(a[J],r,o,J);if(s){const J=ye(s)?s.call(o):s;Reflect.ownKeys(J).forEach(ue=>{at(ue,J[ue])})}c&&ys(c,e,"c");function ce(J,ue){ge(ue)?ue.forEach(He=>J(He.bind(o))):ue&&J(ue.bind(o))}if(ce(yr,u),ce(bo,f),ce($g,h),ce(su,p),ce(iu,g),ce(lu,b),ce(Hg,w),ce(Ag,M),ce(Ig,v),ce(Gt,y),ce(cu,P),ce(Rg,_),ge(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(ue=>{Object.defineProperty(J,ue,{get:()=>o[ue],set:He=>o[ue]=He,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===co&&(e.render=A),O!=null&&(e.inheritAttrs=O),$&&(e.components=$),K&&(e.directives=K),_&&nu(e)}function kg(e,t,o=co){ge(e)&&(e=Xl(e));for(const r in e){const n=e[r];let i;Ie(n)?"default"in n?i=De(n.from||r,n.default,!0):i=De(n.from||r):i=De(n),ot(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ys(e,t,o){Vt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function pu(e,t,o,r){let n=r.includes(".")?Jd(o,r):()=>o[r];if(Ve(e)){const i=t[e];ye(i)&&Nt(n,i)}else if(ye(e))Nt(n,e.bind(o));else if(Ie(e))if(ge(e))e.forEach(i=>pu(i,t,o,r));else{const i=ye(e.handler)?e.handler.bind(o):t[e.handler];ye(i)&&Nt(n,i,e)}}function mu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(d=>Si(s,d,l,!0)),Si(s,t,l)),Ie(t)&&i.set(t,s),s}function Si(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Si(e,i,o,!0),n&&n.forEach(l=>Si(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=Dg[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Dg={data:Ss,props:ws,emits:ws,methods:sn,computed:sn,beforeCreate:Ct,created:Ct,beforeMount:Ct,mounted:Ct,beforeUpdate:Ct,updated:Ct,beforeDestroy:Ct,beforeUnmount:Ct,destroyed:Ct,unmounted:Ct,activated:Ct,deactivated:Ct,errorCaptured:Ct,serverPrefetch:Ct,components:sn,directives:sn,watch:Og,provide:Ss,inject:Lg};function Ss(e,t){return t?e?function(){return qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Lg(e,t){return sn(Xl(e),Xl(t))}function Xl(e){if(ge(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${Cr(t)}Modifiers`];function Vg(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Oe;let n=o;const i=t.startsWith("update:"),l=i&&jg(r,t.slice(7));l&&(l.trim&&(n=o.map(c=>Ve(c)?c.trim():c)),l.number&&(n=n.map(Im)));let a,s=r[a=ml(t)]||r[a=ml(wt(t))];!s&&i&&(s=r[a=ml(Cr(t))]),s&&Vt(s,e,6,n);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Vt(d,e,6,n)}}const Gg=new WeakMap;function bu(e,t,o=!1){const r=o?Gg:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!ye(e)){const s=d=>{const c=bu(d,t,!0);c&&(a=!0,qe(l,c))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(Ie(e)&&r.set(e,null),null):(ge(i)?i.forEach(s=>l[s]=null):qe(l,i),Ie(e)&&r.set(e,l),l)}function Ki(e,t){return!e||!zi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Cr(t))||Re(e,t))}function Ps(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:d,renderCache:c,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ci(e);let C,y;try{if(o.shapeFlag&4){const P=n||r,A=P;C=no(d.call(A,P,c,u,h,f,p)),y=a}else{const P=t;C=no(P.length>1?P(u,{attrs:a,slots:l,emit:s}):P(u,null)),y=t.props?a:Ug(a)}}catch(P){$o.length=0,ji(P,e,1),C=je(Ze)}let T=C;if(y&&g!==!1){const P=Object.keys(y),{shapeFlag:A}=T;P.length&&A&7&&(i&&P.some(Fi)&&(y=qg(y,i)),T=go(T,y,!1,!0))}if(o.dirs&&(T=go(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(o.dirs):o.dirs),o.transition){const P=Ui(T.type)&&xi(T)||T;_o(P,o.transition)}return C=T,Ci(b),C}function vu(e,t=!0){let o;for(let r=0;r{let t;for(const o in e)(o==="class"||o==="style"||zi(o))&&((t||(t={}))[o]=e[o]);return t},qg=(e,t)=>{const o={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Kg(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Ts(r,l,d):!!l;if(s&8){const c=t.dynamicProps;for(let u=0;uObject.create(xu),Su=e=>Object.getPrototypeOf(e)===xu;function Xg(e,t,o,r=!1){const n={},i=yu();e.propsDefaults=Object.create(null),wu(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:Nd(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Zg(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=_e(n),[s]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,h]=Pu(u,t,!0);qe(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Ie(e)&&r.set(e,lr),lr;if(ge(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Ia=e=>ge(e)?e.map(no):[no(e)],Qg=(e,t,o)=>{if(t._n)return t;const r=so((...n)=>Ia(t(...n)),o);return r._c=!1,r},Tu=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Ra(n))continue;const i=e[n];if(ye(i))t[n]=Qg(n,i,r);else if(i!=null){const l=Ia(i);t[n]=()=>l}}},Eu=(e,t)=>{const o=Ia(t);e.slots.default=()=>o},_u=(e,t,o)=>{for(const r in t)(o||!Ra(r))&&(e[r]=t[r])},eb=(e,t,o)=>{const r=e.slots=yu();if(e.vnode.shapeFlag&32){const n=t._;n?(_u(r,t,o),o&&wd(r,"_",n,!0)):Tu(t,r)}else t&&Eu(e,t)},tb=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Oe;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:_u(n,t,o):(i=!t.$stable,Tu(t,n)),l=t}else t&&(Eu(e,t),l={default:1});if(i)for(const a in n)!Ra(a)&&l[a]==null&&delete n[a]},ft=ab;function ob(e){return rb(e)}function rb(e,t){const o=Li();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=co,insertStaticContent:p}=e,g=(m,x,S,E=null,R=null,B=null,W=void 0,U=null,G=!!x.dynamicChildren)=>{if(m===x)return;m&&!ir(m,x)&&(E=z(m),ke(m,R,B,!0),m=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null),x.dynamicChildren&&m&&m.dynamicChildren&&m.dynamicChildren.hasOnce&&(x.dynamicChildren===lr&&(x.dynamicChildren=[]),x.dynamicChildren.hasOnce=!0);const{type:I,ref:Z,shapeFlag:q}=x;switch(I){case Nn:b(m,x,S,E);break;case Ze:C(m,x,S,E);break;case ci:m==null&&y(x,S,E,W);break;case Te:$(m,x,S,E,R,B,W,U,G);break;default:q&1?A(m,x,S,E,R,B,W,U,G):q&6?K(m,x,S,E,R,B,W,U,G):(q&64||q&128)&&I.process(m,x,S,E,R,B,W,U,G,L)}Z!=null&&R?mn(Z,m&&m.ref,B,x||m,!x):Z==null&&m&&m.ref!=null&&mn(m.ref,null,B,m,!0)},b=(m,x,S,E)=>{if(m==null)r(x.el=a(x.children),S,E);else{const R=x.el=m.el;x.children!==m.children&&d(R,x.children)}},C=(m,x,S,E)=>{m==null?r(x.el=s(x.children||""),S,E):x.el=m.el},y=(m,x,S,E)=>{[m.el,m.anchor]=p(m.children,x,S,E,m.el,m.anchor)},T=({el:m,anchor:x},S,E)=>{let R;for(;m&&m!==x;)R=f(m),r(m,S,E),m=R;r(x,S,E)},P=({el:m,anchor:x})=>{let S;for(;m&&m!==x;)S=f(m),n(m),m=S;n(x)},A=(m,x,S,E,R,B,W,U,G)=>{if(x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),m==null)M(x,S,E,R,B,W,U,G);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),_(m,x,R,B,W,U,G)}finally{I&&I._endPatch()}}},M=(m,x,S,E,R,B,W,U)=>{let G,I;const{props:Z,shapeFlag:q,transition:de,dirs:ve}=m;if(G=m.el=l(m.type,B,Z&&Z.is,Z),q&8?c(G,m.children):q&16&&w(m.children,G,null,E,R,Pl(m,B),W,U),ve&&Jo(m,null,E,"created"),v(G,m,m.scopeId,W,E),Z){for(const Me in Z)Me!=="value"&&!fn(Me)&&i(G,Me,null,Z[Me],B,E);"value"in Z&&i(G,"value",null,Z.value,B),(I=Z.onVnodeBeforeMount)&&Jt(I,E,m)}ve&&Jo(m,null,E,"beforeMount");const we=nb(R,de);we?de.beforeEnter(G):de&&!de.persisted&&(G[lb]=!0),r(G,x,S),((I=Z&&Z.onVnodeMounted)||we||ve)&&ft(()=>{I&&Jt(I,E,m),we&&de.enter(G),ve&&Jo(m,null,E,"mounted")},R)},v=(m,x,S,E,R)=>{if(S&&h(m,S),E)for(let B=0;B{for(let I=G;I{const U=x.el=m.el;let{patchFlag:G,dynamicChildren:I,dirs:Z}=x;G|=m.patchFlag&16;const q=m.props||Oe,de=x.props||Oe;let ve;if(S&&Qo(S,!1),(ve=de.onVnodeBeforeUpdate)&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"beforeUpdate"),S&&Qo(S,!0),I&&(!m.dynamicChildren||m.dynamicChildren.length!==I.length)&&(G=0,W=!1,I=null),(q.innerHTML&&de.innerHTML==null||q.textContent&&de.textContent==null)&&c(U,""),I?H(m.dynamicChildren,I,U,S,E,Pl(x,R),B):W||ue(m,x,U,null,S,E,Pl(x,R),B,!1),G>0){if(G&16)O(U,q,de,S,R);else if(G&2&&q.class!==de.class&&i(U,"class",null,de.class,R),G&4&&i(U,"style",q.style,de.style,R),G&8){const we=x.dynamicProps;for(let Me=0;Me{ve&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"updated")},E)},H=(m,x,S,E,R,B,W)=>{for(let U=0;U{if(x!==S){if(x!==Oe)for(const B in x)!fn(B)&&!(B in S)&&i(m,B,x[B],null,R,E);for(const B in S){if(fn(B))continue;const W=S[B],U=x[B];W!==U&&B!=="value"&&i(m,B,U,W,R,E)}"value"in S&&i(m,"value",x.value,S.value,R)}},$=(m,x,S,E,R,B,W,U,G)=>{const I=x.el=m?m.el:a(""),Z=x.anchor=m?m.anchor:a("");let{patchFlag:q,dynamicChildren:de,slotScopeIds:ve}=x;ve&&(U=U?U.concat(ve):ve),m==null?(r(I,S,E),r(Z,S,E),w(x.children||[],S,Z,R,B,W,U,G)):q>0&&q&64&&de&&m.dynamicChildren&&m.dynamicChildren.length===de.length?(H(m.dynamicChildren,de,S,R,B,W,U),(x.key!=null||R&&x===R.subTree)&&Aa(m,x,!0)):ue(m,x,S,Z,R,B,W,U,G)},K=(m,x,S,E,R,B,W,U,G)=>{x.slotScopeIds=U,m==null?x.shapeFlag&512?R.ctx.activate(x,S,E,W,G):ie(x,S,E,R,B,W,G):be(m,x,G)},ie=(m,x,S,E,R,B,W)=>{const U=m.component=hb(m,E,R);if(qi(m)&&(U.ctx.renderer=L),pb(U,!1,W),U.asyncDep){if(R&&R.registerDep(U,ce,W,B),!m.el){const G=U.subTree=je(Ze);C(null,G,x,S),m.placeholder=G.el}}else ce(U,m,x,S,R,B,W)},be=(m,x,S)=>{const E=x.component=m.component;if(Kg(m,x,S))if(E.asyncDep&&!E.asyncResolved){x.el=m.el,x.placeholder=m.placeholder,J(E,x,S);return}else E.next=x,E.update();else x.el=m.el,x.placeholder=m.placeholder,E.vnode=x},ce=(m,x,S,E,R,B,W)=>{const U=()=>{if(m.isMounted){let{next:q,bu:de,u:ve,parent:we,vnode:Me}=m;{const Et=$u(m);if(Et){q&&(q.el=Me.el,J(m,q,W)),Et.asyncDep.then(()=>{const At=()=>{m.job.flags&8||(R&&R.pendingBranch?ft(At,R):I())};At.flags=48,ft(At,R)});return}}let ze=q,Ge;Qo(m,!1),q?(q.el=Me.el,J(m,q,W)):q=Me,de&&gl(de),(Ge=q.props&&q.props.onVnodeBeforeUpdate)&&Jt(Ge,we,q,Me),Qo(m,!0);const Qe=Ps(m),It=m.subTree;m.subTree=Qe,g(It,Qe,u(It.el||bn(It)),z(It),m,R,B),q.el=Qe.el,ze===null&&Yg(m,Qe.el),ve&&ft(ve,R),(Ge=q.props&&q.props.onVnodeUpdated)&&ft(()=>Jt(Ge,we,q,Me),R)}else{let q;const{el:de,props:ve}=x,{bm:we,m:Me,parent:ze,root:Ge,type:Qe}=m,It=Mr(x);Qo(m,!1),we&&gl(we),!It&&(q=ve&&ve.onVnodeBeforeMount)&&Jt(q,ze,x),Qo(m,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(Qe,m.parent?m.parent.type:void 0);const Et=m.subTree=Ps(m);g(null,Et,S,E,m,R,B),x.el=Et.el}if(Me&&ft(Me,R),!It&&(q=ve&&ve.onVnodeMounted)){const Et=x;ft(()=>Jt(q,ze,Et),R)}(x.shapeFlag&256||ze&&Mr(ze.vnode)&&ze.vnode.shapeFlag&256)&&m.a&&ft(m.a,R),m.isMounted=!0,x=S=E=null}};m.scope.on();const G=m.effect=new _d(U);m.scope.off();const I=m.update=G.run.bind(G),Z=m.job=G.runIfDirty.bind(G);Z.i=m,Z.id=m.uid,G.scheduler=()=>Vi(Z),Qo(m,!0),I()},J=(m,x,S)=>{x.component=m;const E=m.vnode.props;m.vnode=x,m.next=null,Zg(m,x.props,E,S),tb(m,x.children,S),fo(),Kd(m),ho()},ue=(m,x,S,E,R,B,W,U,G=!1)=>{const I=m&&m.children,Z=m?m.shapeFlag:0,q=x.children,{patchFlag:de,shapeFlag:ve}=x;if(de>0){if(de&128){$e(I,q,S,E,R,B,W,U,G);return}else if(de&256){He(I,q,S,E,R,B,W,U,G);return}}ve&8?(Z&16&&Se(I,R,B),q!==I&&c(S,q)):Z&16?ve&16?$e(I,q,S,E,R,B,W,U,G):Se(I,R,B,!0):(Z&8&&c(S,""),ve&16&&w(q,S,E,R,B,W,U,G))},He=(m,x,S,E,R,B,W,U,G)=>{m=m||lr,x=x||lr;const I=m.length,Z=x.length,q=Math.min(I,Z);let de;for(de=0;deZ?Se(m,R,B,!0,!1,q):w(x,S,E,R,B,W,U,G,q)},$e=(m,x,S,E,R,B,W,U,G)=>{let I=0;const Z=x.length;let q=m.length-1,de=Z-1;for(;I<=q&&I<=de;){const ve=m[I],we=x[I]=G?Po(x[I]):no(x[I]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;I++}for(;I<=q&&I<=de;){const ve=m[q],we=x[de]=G?Po(x[de]):no(x[de]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;q--,de--}if(I>q){if(I<=de){const ve=de+1,we=vede)for(;I<=q;)ke(m[I],R,B,!0),I++;else{const ve=I,we=I,Me=new Map;for(I=we;I<=de;I++){const ct=x[I]=G?Po(x[I]):no(x[I]);ct.key!=null&&Me.set(ct.key,I)}let ze,Ge=0;const Qe=de-we+1;let It=!1,Et=0;const At=new Array(Qe);for(I=0;I=Qe){ke(ct,R,B,!0);continue}let N;if(ct.key!=null)N=Me.get(ct.key);else for(ze=we;ze<=de;ze++)if(At[ze-we]===0&&ir(ct,x[ze])){N=ze;break}N===void 0?ke(ct,R,B,!0):(At[N-we]=I+1,N>=Et?Et=N:It=!0,g(ct,x[N],S,null,R,B,W,U,G),Ge++)}const Xr=It?ib(At):lr;for(ze=Xr.length-1,I=Qe-1;I>=0;I--){const ct=we+I,N=x[ct],he=x[ct+1],xe=ct+1{const{el:B,type:W,transition:U,children:G,shapeFlag:I}=m;if(I&6){Le(m.component.subTree,x,S,E);return}if(I&128){m.suspense.move(x,S,E);return}if(I&64){W.move(m,x,S,L);return}if(W===Te){r(B,x,S);for(let q=0;qU.enter(B),R));else{const{leave:q,delayLeave:de,afterLeave:ve}=U,we=()=>{m.ctx.isUnmounted?n(B):r(B,x,S)},Me=()=>{const ze=B._isLeaving||!!B[Wt];B._isLeaving&&B[Wt](!0),U.persisted&&!ze?we():q(B,()=>{we(),ve&&ve()})};de?de(B,we,Me):Me()}else r(B,x,S)},ke=(m,x,S,E=!1,R=!1)=>{const{type:B,props:W,ref:U,children:G,dynamicChildren:I,shapeFlag:Z,patchFlag:q,dirs:de,cacheIndex:ve,memo:we}=m;if((q===-2||I&&I.hasOnce)&&(R=!1),U!=null&&(fo(),mn(U,null,S,m,!0),ho()),ve!=null&&(!m.ctx||m.ctx===x)&&(x.renderCache[ve]=void 0),Z&256&&x.ctx.deactivate(m))return;const Me=Z&1&&de,ze=!Mr(m);let Ge;if(ze&&(Ge=W&&W.onVnodeBeforeUnmount)&&Jt(Ge,x,m),Z&6)vt(m.component,S,E);else{if(Z&128){m.suspense.unmount(S,E);return}Me&&Jo(m,null,x,"beforeUnmount"),Z&64?m.type.remove(m,x,S,L,E):I&&!I.hasOnce&&(B!==Te||q>0&&q&64)?Se(I,x,S,!1,!0):(B===Te&&q&384||!R&&Z&16)&&Se(G,x,S),E&&nt(m)}const Qe=we!=null&&ve==null;(ze&&(Ge=W&&W.onVnodeUnmounted)||Me||Qe)&&ft(()=>{Ge&&Jt(Ge,x,m),Me&&Jo(m,null,x,"unmounted"),Qe&&(m.el=null)},S)},nt=m=>{const{type:x,el:S,anchor:E,transition:R}=m,B=x===Te;if(B&&!R){Je(S,E);return}if(x===ci){P(m),R&&!R.persisted&&R.afterLeave&&R.afterLeave();return}const W=B?Tn(m):m,U=()=>{B?u(S)&&Je(S,E):n(S),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(W&&W.shapeFlag&1&&R&&!R.persisted){const{leave:G,delayLeave:I}=R,Z=W.el,q=()=>G(Z,U);I?I(Z,U,q):q()}else U()},Je=(m,x)=>{let S;for(;m!==x;)S=f(m),n(m),m=S;n(x)},vt=(m,x,S)=>{const{bum:E,scope:R,job:B,subTree:W,um:U,m:G,a:I}=m;_s(G),_s(I),E&&gl(E),R.stop(),B?(B.flags|=8,ke(W,m,x,S)):W&&(W.transition=m.vnode.transition,ke(W,m,x,S)),U&&ft(U,x);const Z=()=>{m.isUnmounted=!0};Z.flags=16,ft(Z,x)},Se=(m,x,S,E=!1,R=!1,B=0)=>{for(let W=B;W{if(m.shapeFlag&6)return z(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=f(m.anchor||m.el),S=x&&x[Qd];return S?f(S):x},ee=(m,x,S)=>{const E=m&&x._vnode?void 0:m&&m.component?m.component.uid:fb();vg(()=>{m==null?x._vnode&&ke(x._vnode,null,null,!0):g(x._vnode||null,m,x,null,null,null,S),x._vnode=m},E)},L={p:g,um:ke,m:Le,r:nt,mt:ie,mc:w,pc:ue,pbc:H,n:z,o:e};return{render:ee,hydrate:void 0,createApp:Ng(ee)}}function Pl({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Qo({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Aa(e,t,o=!1){const r=e.children,n=t.children;if(ge(r)&&ge(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function $u(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$u(t)}function _s(e){if(e)for(let t=0;te.__isSuspense,lb=Symbol("_deferredEnter");function ab(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):bg(e)}const Te=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),ci=Symbol.for("v-stc"),$o=[];let Mt=null;function k(e=!1){$o.push(Mt=e?null:[])}function Ha(){$o.pop(),Mt=$o[$o.length-1]||null}let _n=1;function wi(e,t=!1){_n+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function Iu(e){return e.dynamicChildren=_n>0?Mt||lr:null,Ha(),_n>0&&Mt&&Mt.push(e),e}function pe(e,t,o,r,n,i){return Iu(Pe(e,t,o,r,n,i,!0))}function ae(e,t,o,r,n){return Iu(je(e,t,o,r,n,!0))}function Ro(e){return e?e.__v_isVNode===!0:!1}function ir(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,di=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||ot(e)||ye(e)?{i:lt,r:e,k:t,f:!!o}:e:null);function Pe(e,t=null,o=null,r=0,n=null,i=e===Te?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&di(t),scopeId:Zd,slotScopeIds:null,children:o,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:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:lt};return a?(Pi(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ve(o)?8:16),_n>0&&!l&&Mt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Mt.push(s),s}const je=sb;function sb(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===uu)&&(e=Ze),Ro(e)){const a=go(e,t,!0);return o&&Pi(a,o),_n>0&&!i&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(e)]=a:Mt.push(a)),a.patchFlag=-2,a}if(Cb(e)&&(e=e.__vccOpts),t){t=cb(t);let{class:a,style:s}=t;a&&!Ve(a)&&(t.class=mr(a)),Ie(s)&&(Ni(s)&&!ge(s)&&(s=qe({},s)),t.style=Be(s))}const l=Ve(e)?1:Ru(e)?128:Ui(e)?64:Ie(e)?4:ye(e)?2:0;return Pe(e,t,o,r,n,l,i,!0)}function cb(e){return e?Ni(e)?qe({},e):Su(e)?qe({},e[Fu]||e):e:null}function go(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,d=t?Bt(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Au(d),ref:t&&t.ref?o&&i?ge(i)?i.concat(di(t)):[i,di(t)]:di(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return s&&r&&_o(c,s.clone(c)),c}function $n(e=" ",t=0){return je(Nn,null,e,t)}function L_(e,t){const o=je(ci,null,e);return o.staticCount=t,o}function db(e="",t=!1){return t?(k(),ae(Ze,null,e)):je(Ze,null,e)}function no(e){return e==null||typeof e=="boolean"?je(Ze):ge(e)?je(Te,null,e.slice()):Ro(e)?Po(e):je(Nn,null,String(e))}function Po(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}function Pi(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Su(t)?t._ctx=lt:n===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ye(t)){if(r&65){Pi(e,{default:t});return}t={default:t,_ctx:lt},o=32}else t=String(t),r&64?(o=16,t=[$n(t)]):o=8;e.children=t,e.shapeFlag|=o}function Bt(...e){const t={};for(let o=0;omt||lt;let Ti,Rn;{const e=Li(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Ti=t("__VUE_INSTANCE_SETTERS__",o=>mt=o),Rn=t("__VUE_SSR_SETTERS__",o=>In=o)}const jn=e=>{const t=mt;return Ti(e),e.scope.on(),()=>{e.scope.off(),Ti(t)}},$s=()=>{mt&&mt.scope.off(),Ti(null)};function Mu(e){return e.vnode.shapeFlag&4}let In=!1;function pb(e,t=!1,o=!1){t&&Rn(t);const{props:r,children:n}=e.vnode,i=Mu(e);Xg(e,r,i,t),eb(e,n,o||t);const l=i?mb(e,t):void 0;return t&&Rn(!1),l}function mb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fg);const{setup:r}=o;if(r){fo();const n=e.setupContext=r.length>1?bb(e):null,i=jn(e),l=Wn(r,e,0,[e.props,n]),a=xd(l);if(ho(),i(),(a||e.sp)&&!Mr(e)&&nu(e),a){if(l.then($s,$s),t)return l.then(s=>{Rn(!0);try{Rs(e,s,t)}finally{Rn(!1)}}).catch(s=>{ji(s,e,0,void 0,!0),e.ssrRender=(d,c)=>c("")});e.asyncDep=l}else Rs(e,l)}else zu(e)}function Rs(e,t,o){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Gd(t)),zu(e)}function zu(e,t,o){const r=e.type;e.render||(e.render=r.render||co);{const n=jn(e);fo();try{Bg(e)}finally{ho(),n()}}}const Fu=Symbol(),gb={get(e,t){return ht(e,"get",""),t===Fu?e:e[t]}};function bb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,gb),slots:e.slots,emit:e.emit,expose:t}}function Yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gd(Vl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in gn)return gn[o](e)},has(t,o){return o in t||o in gn}})):e.proxy}function vb(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Cb(e){return ye(e)&&"__vccOpts"in e}const X=(e,t)=>fg(e,t,In);function Rt(e,t,o){try{wi(-1);const r=arguments.length;return r===2?Ie(t)&&!ge(t)?Ro(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Ro(o)&&(o=[o]),je(e,t,o))}finally{wi(1)}}const xb="3.5.45";let Jl;const Is=typeof window<"u"&&window.trustedTypes;if(Is)try{Jl=Is.createPolicy("vue",{createHTML:e=>e})}catch{}const Bu=Jl?e=>Jl.createHTML(e):e=>e,yb="http://www.w3.org/2000/svg",Sb="http://www.w3.org/1998/Math/MathML",wo=typeof document<"u"?document:null,As=wo&&wo.createElement("template"),wb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?wo.createElementNS(yb,e):t==="mathml"?wo.createElementNS(Sb,e):o?wo.createElement(e,{is:o}):wo.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{As.innerHTML=Bu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=As.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Fo="transition",en="animation",kr=Symbol("_vtc"),ku={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},Du=qe({},tu,ku),Pb=e=>(e.displayName="Transition",e.props=Du,e),br=Pb((e,{slots:t})=>Rt(Eg,Lu(e),t)),er=(e,t=[])=>{ge(e)?e.forEach(o=>o(...t)):e&&e(...t)},Hs=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Lu(e){const t={};for(const $ in e)$ in ku||(t[$]=e[$]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:d=l,appearToClass:c=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(n),g=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:y,onEnterCancelled:T,onLeave:P,onLeaveCancelled:A,onBeforeAppear:M=C,onAppear:v=y,onAppearCancelled:w=T}=t,_=($,K,ie,be)=>{$._enterCancelled=be,Oo($,K?c:a),Oo($,K?d:l),ie&&ie()},H=($,K)=>{$._isLeaving=!1,Oo($,u),Oo($,h),Oo($,f),K&&K()},O=$=>(K,ie)=>{const be=$?v:y,ce=()=>_(K,$,ie);er(be,[K,ce]),Ms(()=>{Oo(K,$?s:i),to(K,$?c:a),Hs(be)||zs(K,r,g,ce)})};return qe(t,{onBeforeEnter($){er(C,[$]),to($,i),to($,l)},onBeforeAppear($){er(M,[$]),to($,s),to($,d)},onEnter:O(!1),onAppear:O(!0),onLeave($,K){$._isLeaving=!0;const ie=()=>H($,K);to($,u),$._enterCancelled?(to($,f),Ql($)):(Ql($),to($,f)),Ms(()=>{$._isLeaving&&(Oo($,u),to($,h),Hs(P)||zs($,r,b,ie))}),er(P,[$,ie])},onEnterCancelled($){_($,!1,void 0,!0),er(T,[$])},onAppearCancelled($){_($,!0,void 0,!0),er(w,[$])},onLeaveCancelled($){H($),er(A,[$])}})}function Tb(e){if(e==null)return null;if(Ie(e))return[Tl(e.enter),Tl(e.leave)];{const t=Tl(e);return[t,t]}}function Tl(e){return Am(e)}function to(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[kr]||(e[kr]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[kr];o&&(o.delete(t),o.size||(e[kr]=void 0))}function Ms(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eb=0;function zs(e,t,o,r){const n=e._endId=++Eb,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Ou(e,t);if(!l)return r();const d=l+"end";let c=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++c>=s&&u()};setTimeout(()=>{c(o[p]||"").split(", "),n=r(`${Fo}Delay`),i=r(`${Fo}Duration`),l=Fs(n,i),a=r(`${en}Delay`),s=r(`${en}Duration`),d=Fs(a,s);let c=null,u=0,f=0;t===Fo?l>0&&(c=Fo,u=l,f=i.length):t===en?d>0&&(c=en,u=d,f=s.length):(u=Math.max(l,d),c=u>0?l>d?Fo:en:null,f=c?c===Fo?i.length:s.length:0);const h=c===Fo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Fo}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:h}}function Fs(e,t){for(;e.lengthBs(o)+Bs(e[r])))}function Bs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ql(e){return(e?e.ownerDocument:document).body.offsetHeight}function _b(e,t,o){const r=e[kr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ei=Symbol("_vod"),Ma=Symbol("_vsh"),ks={name:"show",beforeMount(e,{value:t},{transition:o}){e[Ei]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),tn(e,!0),r.enter(e)):r.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[Ei]:"none",e[Ma]=!t}const $b=Symbol(""),Rb=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const r=e.style,n=Ve(o);let i=!1;if(o&&!n){if(t)if(Ve(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&cn(r,a,"")}else for(const l in t)o[l]==null&&cn(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?Hb(e,l,!Ve(t)&&t?t[l]:void 0,a)||cn(r,l,a):cn(r,l,"")}}else if(n){if(t!==o){const l=r[$b];l&&(o+=";"+l),r.cssText=o,i=Rb.test(o)}}else t&&e.removeAttribute("style");Ei in e&&((!n||t!==o)&&(e[Ei]=i?r.display:""),e[Ma]&&(r.display="none"))}const Qn=/\s*!important$/;function cn(e,t,o){if(ge(o))o.forEach(r=>cn(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Qn.test(o)?e.setProperty(t,o.replace(Qn,""),"important"):e.setProperty(t,o);else{const r=Ab(e,t);Qn.test(o)?e.setProperty(Cr(r),o.replace(Qn,""),"important"):e[r]=o}}const Ds=["Webkit","Moz","ms"],El={};function Ab(e,t){const o=El[t];if(o)return o;let r=wt(t);if(r!=="filter"&&r in e)return El[t]=r;r=Di(r);for(let n=0;n_l||(Lb.then(()=>_l=0),_l=Date.now());function Wb(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(ge(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nb=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?_b(e,r,l):t==="style"?Ib(e,o,r):zi(t)?Fi(t)||Fb(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jb(e,t,r,l))?(Ws(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Os(e,t,r,l,i,t!=="value")):e._isVueCE&&(Vb(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ve(r)))?Ws(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Os(e,t,r,l))};function jb(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&js(t)&&ye(o));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 n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return js(t)&&Ve(o)?!1:t in e}function Vb(e,t){const o=e._def.props;if(!o)return!1;const r=wt(t);return Array.isArray(o)?o.some(n=>wt(n)===r):Object.keys(o).some(n=>wt(n)===r)}const Wu=new WeakMap,Nu=new WeakMap,_i=Symbol("_moveCb"),Vs=Symbol("_enterCb"),ea=new WeakMap,Gb=e=>(delete e.props.mode,e),Ub=Gb({name:"TransitionGroup",props:qe({},Du,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Wr(),r=eu();let n,i,l,a;const s=()=>(a===void 0&&(a=n.length>0&&ev(n[0].el,o.vnode.el,Gs(e))),a);return su(()=>{if(ea.delete(o),!s()){n=[],l=void 0;return}const d=Gs(e);n.forEach(Kb);const c=l&&Qb(l,o.vnode.el);l=void 0,n.forEach(f=>Yb(f,c));const u=n.filter(Xb);Ql(o.vnode.el),u.forEach(f=>{const h=f.el,p=h.style;to(h,d),p.transform=p.webkitTransform=p.transitionDuration="";const g=h[_i]=b=>{b&&b.target!==h||(!b||b.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",g),h[_i]=null,Oo(h,d))};h.addEventListener("transitionend",g)}),n=[]}),()=>{const d=_e(e),c=Lu(d);let u=d.tag||Te;if(n=[],a=void 0,i)for(let f=0;fr.willMove()&&r.item.contains(t));return o&&Xi(o.item,o)}function ev(e,t,o){const r=e.cloneNode(),n=e[kr];n&&n.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=Ou(r);return i.removeChild(r),l}const tv=["ctrl","shift","alt","meta"],ov={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)=>tv.some(o=>e[`${o}Key`]&&!t.includes(o))},O_=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const t=nv().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=av(r);if(!n)return;const i=t._component;!ye(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,lv(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function lv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function av(e){return Ve(e)?document.querySelector(e):e}function sv(e){let t=".",o="__",r="--",n;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){n=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(C){g=C.bem.b,b=C.bem.els,C.bem.els=null},after(C){C.bem.b=g,C.bem.els=b},$({context:C,props:y}){return p=typeof p=="string"?p:p({context:C,props:y}),C.bem.b=p,`${y?.bPrefix||t}${C.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:C}){return p=typeof p=="string"?p:p({context:b,props:C}),b.bem.els=p.split(",").map(y=>y.trim()),b.bem.els.map(y=>`${C?.bPrefix||t}${b.bem.b}${o}${y}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=p.split(",").map(P=>P.trim());function y(P){return C.map(A=>`&${b?.bPrefix||t}${g.bem.b}${P!==void 0?`${o}${P}`:""}${r}${A}`).join(", ")}const T=g.bem.els;return T!==null?y(T[0]):y()}}}function d(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=g.bem.els;return`&:not(${b?.bPrefix||t}${g.bem.b}${C!==null&&C.length>0?`${o}${C[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>n(l(p[0]),p[1],p[2])),cE:((...p)=>n(a(p[0]),p[1],p[2])),cM:((...p)=>n(s(p[0]),p[1],p[2])),cNotM:((...p)=>n(d(p[0]),p[1],p[2]))}),i}function cv(e){let t=0;for(let o=0;o{let n=cv(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function fv(e,t){const o=[];return t.split(ju).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function hv(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=uv(t,o):t=fv(t,o))}),t.join(", ").replace(dv," ")}function qs(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function pv(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ei(e){return e?/^\s*@(s|m)/.test(e):!1}const mv=/[A-Z]/g;function Vu(e){return e.replace(mv,t=>"-"+t.toLowerCase())}function gv(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(o=>t+` ${Vu(o[0])}: ${o[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function bv(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function Ks(e,t,o,r){if(!t)return"";const n=bv(t,o,r);if(!n)return"";if(typeof n=="string")return`${e} { +${n} +}`;const i=Object.keys(n);if(i.length===0)return o.config.keepEmptyBlock?e+` { +}`:"";const l=e?[e+" {"]:[];return i.forEach(a=>{const s=n[a];if(a==="raw"){l.push(` +`+s+` +`);return}a=Vu(a),s!=null&&l.push(` ${a}${gv(s)}`)}),e&&l.push("}"),l.join(` +`)}function ta(e,t,o){e&&e.forEach(r=>{if(Array.isArray(r))ta(r,t,o);else if(typeof r=="function"){const n=r(t);Array.isArray(n)?ta(n,t,o):n&&o(n)}else r&&o(r)})}function Gu(e,t,o,r,n){const i=e.$;let l="";if(!i||typeof i=="string")ei(i)?l=i:t.push(i);else if(typeof i=="function"){const d=i({context:r.context,props:n});ei(d)?l=d:t.push(d)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")ei(i.$)?l=i.$:t.push(i.$);else if(i.$){const d=i.$({context:r.context,props:n});ei(d)?l=d:t.push(d)}const a=hv(t),s=Ks(a,e.props,r,n);l?o.push(`${l} {`):s.length&&o.push(s),e.children&&ta(e.children,{context:r.context,props:n},d=>{if(typeof d=="string"){const c=Ks(a,{raw:d},r,n);o.push(c)}else Gu(d,t,o,r,n)}),t.pop(),l&&o.push("}"),i&&i.after&&i.after(r.context)}function vv(e,t,o){const r=[];return Gu(e,[],r,t,o),r.join(` + +`)}function An(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){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 Cv(e,t,o,r){const{els:n}=t;if(o===void 0)n.forEach(qs),t.els=[];else{const i=Zi(o,r);i&&n.includes(i)&&(qs(i),t.els=n.filter(l=>l!==i))}}function Ys(e,t){e.push(t)}function xv(e,t,o,r,n,i,l,a,s){let d;if(o===void 0&&(d=t.render(r),o=An(d)),s){s.adapter(o,d??t.render(r));return}a===void 0&&(a=document.head);const c=Zi(o,a);if(c!==null&&!i)return c;const u=c??pv(o);if(d===void 0&&(d=t.render(r)),u.textContent=d,c!==null)return c;if(l){const f=a.querySelector(`meta[name="${l}"]`);if(f)return a.insertBefore(u,f),Ys(t.els,u),u}return n?a.insertBefore(u,a.querySelector("style, link")):a.appendChild(u),Ys(t.els,u),u}function yv(e){return vv(this,this.instance,e)}function Sv(e={}){const{id:t,ssr:o,props:r,head:n=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return xv(this.instance,this,t,r,n,i,l,a,o)}function wv(e={}){const{id:t,parent:o}=e;Cv(this.instance,this,t,o)}const ti=function(e,t,o,r){return{instance:e,$:t,props:o,children:r,els:[],render:yv,mount:Sv,unmount:wv}},Pv=function(e,t,o,r){return Array.isArray(t)?ti(e,{$:null},null,t):Array.isArray(o)?ti(e,t,null,o):Array.isArray(r)?ti(e,t,o,r):ti(e,t,o,null)};function Tv(e={}){const t={c:((...o)=>Pv(t,...o)),use:(o,...r)=>o.install(t,...r),find:Zi,context:{},config:e};return t}function Ev(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return Zi(e)!==null}const Hn=".n-",_v="__",$v="--",Uu=Tv(),qu=sv({blockPrefix:Hn,elementPrefix:_v,modifierPrefix:$v});Uu.use(qu);const{c:D,find:W_}=Uu,{cB:oe,cE:re,cM:ne,cNotM:oa}=qu;function Ku(e){return D(({props:{bPrefix:t}})=>`${t||Hn}modal, ${t||Hn}drawer`,[e])}function Rv(e){return D(({props:{bPrefix:t}})=>`${t||Hn}popover`,[e])}function Yu(e){return D(({props:{bPrefix:t}})=>`&${t||Hn}modal`,e)}const N_=(...e)=>D(">",[oe(...e)]);function Ce(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}const Iv={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"}},Xs={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},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:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"},Heatmap:{less:"少",more:"多",monthFormat:"MMM",weekdayFormat:"eeeeee"}};function Fr(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function lo(e){return(t,o)=>{const r=o?.context?String(o.context):"standalone";let n;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,a=o?.width?String(o.width):l;n=e.formattingValues[a]||e.formattingValues[l]}else{const l=e.defaultWidth,a=o?.width?String(o.width):e.defaultWidth;n=e.values[a]||e.values[l]}const i=e.argumentCallback?e.argumentCallback(t):t;return n[i]}}function ao(e){return(t,o={})=>{const r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;const l=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?Hv(a,u=>u.test(l)):Av(a,u=>u.test(l));let d;d=e.valueCallback?e.valueCallback(s):s,d=o.valueCallback?o.valueCallback(d):d;const c=t.slice(l.length);return{value:d,rest:c}}}function Av(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function Hv(e,t){for(let o=0;o{const r=t.match(e.matchPattern);if(!r)return null;const n=r[0],i=t.match(e.parsePattern);if(!i)return null;let l=e.valueCallback?e.valueCallback(i[0]):i[0];l=o.valueCallback?o.valueCallback(l):l;const a=t.slice(n.length);return{value:l,rest:a}}}const Zs=Symbol.for("constructDateFrom");function Zu(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Zs in e?e[Zs](t):e instanceof Date?new e.constructor(t):new Date(t)}function Mv(e,...t){const o=Zu.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}let zv={};function Fv(){return zv}function Bv(e,t){return Zu(t||e,e)}function Js(e,t){const o=Fv(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Bv(e,t?.in),i=n.getDay(),l=(i{let r;const n=Dv[e];return typeof n=="string"?r=n:t===1?r=n.one:r=n.other.replace("{{count}}",t.toString()),o?.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r},Ov={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wv=(e,t,o,r)=>Ov[e],Nv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vv={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"]},Gv={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"]},Uv={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"}},qv={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"}},Kv=(e,t)=>{const o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Yv={ordinalNumber:Kv,era:lo({values:Nv,defaultWidth:"wide"}),quarter:lo({values:jv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lo({values:Vv,defaultWidth:"wide"}),day:lo({values:Gv,defaultWidth:"wide"}),dayPeriod:lo({values:Uv,defaultWidth:"wide",formattingValues:qv,defaultFormattingWidth:"wide"})},Xv=/^(\d+)(th|st|nd|rd)?/i,Zv=/\d+/i,Jv={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},Qv={any:[/^b/i,/^(a|c)/i]},eC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tC={any:[/1/i,/2/i,/3/i,/4/i]},oC={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},rC={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]},nC={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},iC={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]},lC={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},aC={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}},sC={ordinalNumber:Xu({matchPattern:Xv,parsePattern:Zv,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:Jv,defaultMatchWidth:"wide",parsePatterns:Qv,defaultParseWidth:"any"}),quarter:ao({matchPatterns:eC,defaultMatchWidth:"wide",parsePatterns:tC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:oC,defaultMatchWidth:"wide",parsePatterns:rC,defaultParseWidth:"any"}),day:ao({matchPatterns:nC,defaultMatchWidth:"wide",parsePatterns:iC,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:lC,defaultMatchWidth:"any",parsePatterns:aC,defaultParseWidth:"any"})},cC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fC={date:Fr({formats:cC,defaultWidth:"full"}),time:Fr({formats:dC,defaultWidth:"full"}),dateTime:Fr({formats:uC,defaultWidth:"full"})},hC={code:"en-US",formatDistance:Lv,formatLong:fC,formatRelative:Wv,localize:Yv,match:sC,options:{weekStartsOn:0,firstWeekContainsDate:1}},pC={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},mC=(e,t,o)=>{let r;const n=pC[e];return typeof n=="string"?r=n:t===1?r=n.one:r=n.other.replace("{{count}}",String(t)),o?.addSuffix?o.comparison&&o.comparison>0?r+"内":r+"前":r},gC={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},bC={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vC={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},CC={date:Fr({formats:gC,defaultWidth:"full"}),time:Fr({formats:bC,defaultWidth:"full"}),dateTime:Fr({formats:vC,defaultWidth:"full"})};function Qs(e,t,o){const r="eeee p";return kv(e,t,o)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}const xC={lastWeek:Qs,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Qs,other:"PP p"},yC=(e,t,o,r)=>{const n=xC[e];return typeof n=="function"?n(t,o,r):n},SC={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wC={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},PC={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},TC={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},EC={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},_C={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},$C=(e,t)=>{const o=Number(e);switch(t?.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},RC={ordinalNumber:$C,era:lo({values:SC,defaultWidth:"wide"}),quarter:lo({values:wC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lo({values:PC,defaultWidth:"wide"}),day:lo({values:TC,defaultWidth:"wide"}),dayPeriod:lo({values:EC,defaultWidth:"wide",formattingValues:_C,defaultFormattingWidth:"wide"})},IC=/^(第\s*)?\d+(日|时|分|秒)?/i,AC=/\d+/i,HC={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},MC={any:[/^(前)/i,/^(公元)/i]},zC={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},FC={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},BC={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i},kC={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^(一|1(?!\d))/i,/^(二|2)/i,/^(三|3)/i,/^(四|4)/i,/^(五|5)/i,/^(六|6)/i,/^(七|7)/i,/^(八|8)/i,/^(九|9)/i,/^(十(?!(一|二))|10)/i,/^(十一|11)/i,/^(十二|12)/i]},DC={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},LC={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},OC={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},WC={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},NC={ordinalNumber:Xu({matchPattern:IC,parsePattern:AC,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:HC,defaultMatchWidth:"wide",parsePatterns:MC,defaultParseWidth:"any"}),quarter:ao({matchPatterns:zC,defaultMatchWidth:"wide",parsePatterns:FC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:BC,defaultMatchWidth:"wide",parsePatterns:kC,defaultParseWidth:"any"}),day:ao({matchPatterns:DC,defaultMatchWidth:"wide",parsePatterns:LC,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:OC,defaultMatchWidth:"any",parsePatterns:WC,defaultParseWidth:"any"})},jC={code:"zh-CN",formatDistance:mC,formatLong:CC,formatRelative:yC,localize:RC,match:NC,options:{weekStartsOn:1,firstWeekContainsDate:4}},VC={name:"en-US",locale:hC},ec={name:"zh-CN",locale:jC};var Ju=typeof global=="object"&&global&&global.Object===Object&&global,GC=typeof self=="object"&&self&&self.Object===Object&&self,Nr=Ju||GC||Function("return this")(),Dr=Nr.Symbol,Qu=Object.prototype,UC=Qu.hasOwnProperty,qC=Qu.toString,on=Dr?Dr.toStringTag:void 0;function KC(e){var t=UC.call(e,on),o=e[on];try{e[on]=void 0;var r=!0}catch{}var n=qC.call(e);return r&&(t?e[on]=o:delete e[on]),n}var YC=Object.prototype,XC=YC.toString;function ZC(e){return XC.call(e)}var JC="[object Null]",QC="[object Undefined]",tc=Dr?Dr.toStringTag:void 0;function Vn(e){return e==null?e===void 0?QC:JC:tc&&tc in Object(e)?KC(e):ZC(e)}function jr(e){return e!=null&&typeof e=="object"}var ex="[object Symbol]";function tx(e){return typeof e=="symbol"||jr(e)&&Vn(e)==ex}function ox(e,t){for(var o=-1,r=e==null?0:e.length,n=Array(r);++o0){if(++t>=wx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _x(e){return function(){return e}}var Ri=(function(){try{var e=Fa(Object,"defineProperty");return e({},"",{}),e}catch{}})(),$x=Ri?function(e,t){return Ri(e,"toString",{configurable:!0,enumerable:!1,value:_x(t),writable:!0})}:tf,Rx=Ex($x),Ix=9007199254740991,Ax=/^(?:0|[1-9]\d*)$/;function of(e,t){var o=typeof e;return t=t??Ix,!!t&&(o=="number"||o!="symbol"&&Ax.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Dx}function ka(e){return e!=null&&rf(e.length)&&!za(e)}function Lx(e,t,o){if(!Sr(o))return!1;var r=typeof t;return(r=="number"?ka(o)&&of(t,o.length):r=="string"&&t in o)?Ji(o[t],e):!1}function Ox(e){return kx(function(t,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,l=n>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,l&&Lx(o[0],o[1],l)&&(i=n<3?void 0:i,n=1),t=Object(t);++r-1}function q0(e,t){var o=this.__data__,r=Qi(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function Ho(e){var t=-1,o=e==null?0:e.length;for(this.clear();++tn?0:n+t),o=o>n?n:o,o<0&&(o+=n),n=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(n);++r=r?e:ay(e,t,o)}var cy="\\ud800-\\udfff",dy="\\u0300-\\u036f",uy="\\ufe20-\\ufe2f",fy="\\u20d0-\\u20ff",hy=dy+uy+fy,py="\\ufe0e\\ufe0f",my="\\u200d",gy=RegExp("["+my+cy+hy+py+"]");function mf(e){return gy.test(e)}function by(e){return e.split("")}var gf="\\ud800-\\udfff",vy="\\u0300-\\u036f",Cy="\\ufe20-\\ufe2f",xy="\\u20d0-\\u20ff",yy=vy+Cy+xy,Sy="\\ufe0e\\ufe0f",wy="["+gf+"]",na="["+yy+"]",ia="\\ud83c[\\udffb-\\udfff]",Py="(?:"+na+"|"+ia+")",bf="[^"+gf+"]",vf="(?:\\ud83c[\\udde6-\\uddff]){2}",Cf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ty="\\u200d",xf=Py+"?",yf="["+Sy+"]?",Ey="(?:"+Ty+"(?:"+[bf,vf,Cf].join("|")+")"+yf+xf+")*",_y=yf+xf+Ey,$y="(?:"+[bf+na+"?",na,vf,Cf,wy].join("|")+")",Ry=RegExp(ia+"(?="+ia+")|"+$y+_y,"g");function Iy(e){return e.match(Ry)||[]}function Ay(e){return mf(e)?Iy(e):by(e)}function Hy(e){return function(t){t=ey(t);var o=mf(t)?Ay(t):void 0,r=o?o[0]:t.charAt(0),n=o?sy(o,1).join(""):t.slice(1);return r[e]()+n}}var My=Hy("toUpperCase");function zy(){this.__data__=new Ho,this.size=0}function Fy(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function By(e){return this.__data__.get(e)}function ky(e){return this.__data__.has(e)}var Dy=200;function Ly(e,t){var o=this.__data__;if(o instanceof Ho){var r=o.__data__;if(!ff||r.length{const{bordered:r}=e;return r!==void 0?r:o?.mergedBorderedRef.value??t.defaultBordered??!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:jd("n"),namespaceRef:X(()=>o?.mergedNamespaceRef.value)}}const Fn="naive-ui-style";var Zo={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"};const{fontSize:Zy,fontFamily:Jy,lineHeight:Qy}=Zo;var Pf=D("body",` + margin: 0; + font-size: ${Zy}; + font-family: ${Jy}; + line-height: ${Qy}; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +`,[D("input",` + font-family: inherit; + font-size: inherit; + `)]);const e1="@css-render/vue3-ssr";function t1(e,t){return``}function o1(e,t,o){const{styles:r,ids:n}=o;n.has(e)||r!==null&&(n.add(e),r.push(t1(e,t)))}const r1=typeof document<"u";function ol(){if(r1)return;const e=De(e1,null);if(e!==null)return{adapter:(t,o)=>o1(t,o,e),context:e}}function rl(e,t,o){if(!t)return;const r=ol(),n=De(Yo,null),i=()=>{const l=o.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:Fn,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:n?.styleMountTarget}),n?.preflightStyleDisabled||Pf.mount({id:"n-global",head:!0,anchorMetaName:Fn,ssr:r,parent:n?.styleMountTarget})};r?i():yr(i)}const Il=new WeakMap;function Ur(e){const t=Wr();if(t){Il.has(t)||Il.set(t,{});const o=Il.get(t);return o[e]||(o[e]=[])}else return[]}function te(e,t=1){let o=je,r=!1;return typeof e=="function"&&(r=!0,k(),o=ae,e=e()),Ro(e)?r?ae(mc(e)):mc(e):Array.isArray(e)?r?pe(Te,null,e.map(n=>te(()=>n)),-2):Pe(Te,null,e.slice()):e==null||typeof e=="boolean"?o(Ze):o(Nn,null,String(e),t)}function mc(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}const n1=e=>Array.isArray(e)?e.map(t=>te(t)):[te(e)],Tf=e=>e._n?e:so((...t)=>n1(e(...t))),Bn=e=>typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ro(e)?e:{default:so(()=>[te(()=>e)])},le=e=>mr(e)||null;function Da(e){return e.composedPath()[0]||null}function gc(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function i1(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function jo(e,t){const o=e.trim().split(/\s+/g),r={top:o[0]};switch(o.length){case 1:r.right=o[0],r.bottom=o[0],r.left=o[0];break;case 2:r.right=o[1],r.left=o[1],r.bottom=o[0];break;case 3:r.right=o[1],r.bottom=o[2],r.left=o[1];break;case 4:r.right=o[1],r.bottom=o[2],r.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function V_(e,t){const[o,r]=e.split(" ");return{row:o,col:r||o}}const bc={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 l1(e,t,o){t/=100,o/=100;let r=(n,i=(n+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function a1(e,t,o){t/=100,o/=100;let r=t*Math.min(o,1-o),n=(i,l=(i+e/30)%12)=>o-r*Math.max(Math.min(l-3,9-l,1),-1);return[n(0)*255,n(8)*255,n(4)*255]}const vo="^\\s*",Co="\\s*$",Xo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",zt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ar="([0-9A-Fa-f])",sr="([0-9A-Fa-f]{2})",Ef=new RegExp(`${vo}hsl\\s*\\(${zt},${Xo},${Xo}\\)${Co}`),_f=new RegExp(`${vo}hsv\\s*\\(${zt},${Xo},${Xo}\\)${Co}`),$f=new RegExp(`${vo}hsla\\s*\\(${zt},${Xo},${Xo},${zt}\\)${Co}`),Rf=new RegExp(`${vo}hsva\\s*\\(${zt},${Xo},${Xo},${zt}\\)${Co}`),s1=new RegExp(`${vo}rgb\\s*\\(${zt},${zt},${zt}\\)${Co}`),c1=new RegExp(`${vo}rgba\\s*\\(${zt},${zt},${zt},${zt}\\)${Co}`),d1=new RegExp(`${vo}#${ar}${ar}${ar}${Co}`),u1=new RegExp(`${vo}#${sr}${sr}${sr}${Co}`),f1=new RegExp(`${vo}#${ar}${ar}${ar}${ar}${Co}`),h1=new RegExp(`${vo}#${sr}${sr}${sr}${sr}${Co}`);function $t(e){return parseInt(e,16)}function p1(e){try{let t;if(t=$f.exec(e))return[Ii(t[1]),Vo(t[5]),Vo(t[9]),fr(t[13])];if(t=Ef.exec(e))return[Ii(t[1]),Vo(t[5]),Vo(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function m1(e){try{let t;if(t=Rf.exec(e))return[Ii(t[1]),Vo(t[5]),Vo(t[9]),fr(t[13])];if(t=_f.exec(e))return[Ii(t[1]),Vo(t[5]),Vo(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Io(e){try{let t;if(t=u1.exec(e))return[$t(t[1]),$t(t[2]),$t(t[3]),1];if(t=s1.exec(e))return[pt(t[1]),pt(t[5]),pt(t[9]),1];if(t=c1.exec(e))return[pt(t[1]),pt(t[5]),pt(t[9]),fr(t[13])];if(t=d1.exec(e))return[$t(t[1]+t[1]),$t(t[2]+t[2]),$t(t[3]+t[3]),1];if(t=h1.exec(e))return[$t(t[1]),$t(t[2]),$t(t[3]),fr($t(t[4])/255)];if(t=f1.exec(e))return[$t(t[1]+t[1]),$t(t[2]+t[2]),$t(t[3]+t[3]),fr($t(t[4]+t[4])/255)];if(e in bc)return Io(bc[e]);if(Ef.test(e)||$f.test(e)){const[o,r,n,i]=p1(e);return[...a1(o,r,n),i]}else if(_f.test(e)||Rf.test(e)){const[o,r,n,i]=m1(e);return[...l1(o,r,n),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function g1(e){return e>1?1:e<0?0:e}function sa(e,t,o,r){return`rgba(${pt(e)}, ${pt(t)}, ${pt(o)}, ${g1(r)})`}function Al(e,t,o,r,n){return pt((e*t*(1-r)+o*r)/n)}function Y(e,t){Array.isArray(e)||(e=Io(e)),Array.isArray(t)||(t=Io(t));const o=e[3],r=t[3],n=fr(o+r-o*r);return sa(Al(e[0],o,t[0],r,n),Al(e[1],o,t[1],r,n),Al(e[2],o,t[2],r,n),n)}function F(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:Io(e);return typeof t.alpha=="number"?sa(o,r,n,t.alpha):sa(o,r,n,i)}function Xe(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:Io(e),{lightness:l=1,alpha:a=1}=t;return b1([o*l,r*l,n*l,i*a])}function fr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ii(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Vo(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function b1(e){const[t,o,r]=e;return 3 in e?`rgba(${pt(t)}, ${pt(o)}, ${pt(r)}, ${fr(e[3])})`:`rgba(${pt(t)}, ${pt(o)}, ${pt(r)}, 1)`}function nl(e=8){return Math.random().toString(16).slice(2,2+e)}const Q={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)"},v1=Io(Q.neutralBase),If=Io(Q.neutralInvertBase),C1=`rgba(${If.slice(0,3).join(", ")}, `;function Ee(e){return`${C1+String(e)})`}function x1(e){const t=Array.from(If);return t[3]=Number(e),Y(v1,t)}const j={name:"common",...Zo,baseColor:Q.neutralBase,primaryColor:Q.primaryDefault,primaryColorHover:Q.primaryHover,primaryColorPressed:Q.primaryActive,primaryColorSuppl:Q.primarySuppl,infoColor:Q.infoDefault,infoColorHover:Q.infoHover,infoColorPressed:Q.infoActive,infoColorSuppl:Q.infoSuppl,successColor:Q.successDefault,successColorHover:Q.successHover,successColorPressed:Q.successActive,successColorSuppl:Q.successSuppl,warningColor:Q.warningDefault,warningColorHover:Q.warningHover,warningColorPressed:Q.warningActive,warningColorSuppl:Q.warningSuppl,errorColor:Q.errorDefault,errorColorHover:Q.errorHover,errorColorPressed:Q.errorActive,errorColorSuppl:Q.errorSuppl,textColorBase:Q.neutralTextBase,textColor1:Ee(Q.alpha1),textColor2:Ee(Q.alpha2),textColor3:Ee(Q.alpha3),textColorDisabled:Ee(Q.alpha4),placeholderColor:Ee(Q.alpha4),placeholderColorDisabled:Ee(Q.alpha5),iconColor:Ee(Q.alpha4),iconColorDisabled:Ee(Q.alpha5),iconColorHover:Ee(Number(Q.alpha4)*1.25),iconColorPressed:Ee(Number(Q.alpha4)*.8),opacity1:Q.alpha1,opacity2:Q.alpha2,opacity3:Q.alpha3,opacity4:Q.alpha4,opacity5:Q.alpha5,dividerColor:Ee(Q.alphaDivider),borderColor:Ee(Q.alphaBorder),closeIconColorHover:Ee(Number(Q.alphaClose)),closeIconColor:Ee(Number(Q.alphaClose)),closeIconColorPressed:Ee(Number(Q.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Ee(Q.alpha4),clearColorHover:Xe(Ee(Q.alpha4),{alpha:1.25}),clearColorPressed:Xe(Ee(Q.alpha4),{alpha:.8}),scrollbarColor:Ee(Q.alphaScrollbar),scrollbarColorHover:Ee(Q.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ee(Q.alphaProgressRail),railColor:Ee(Q.alphaRail),popoverColor:Q.neutralPopover,tableColor:Q.neutralCard,cardColor:Q.neutralCard,modalColor:Q.neutralModal,bodyColor:Q.neutralBody,tagColor:x1(Q.alphaTag),avatarColor:Ee(Q.alphaAvatar),invertedColor:Q.neutralBase,inputColor:Ee(Q.alphaInput),codeColor:Ee(Q.alphaCode),tabColor:Ee(Q.alphaTab),actionColor:Ee(Q.alphaAction),tableHeaderColor:Ee(Q.alphaAction),hoverColor:Ee(Q.alphaPending),tableColorHover:Ee(Q.alphaTablePending),tableColorStriped:Ee(Q.alphaTableStriped),pressedColor:Ee(Q.alphaPressed),opacityDisabled:Q.alphaDisabled,inputColorDisabled:Ee(Q.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)"},me={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"},y1=Io(me.neutralBase),Af=Io(me.neutralInvertBase),S1=`rgba(${Af.slice(0,3).join(", ")}, `;function vc(e){return`${S1+String(e)})`}function ut(e){const t=Array.from(Af);return t[3]=Number(e),Y(y1,t)}const V={name:"common",...Zo,baseColor:me.neutralBase,primaryColor:me.primaryDefault,primaryColorHover:me.primaryHover,primaryColorPressed:me.primaryActive,primaryColorSuppl:me.primarySuppl,infoColor:me.infoDefault,infoColorHover:me.infoHover,infoColorPressed:me.infoActive,infoColorSuppl:me.infoSuppl,successColor:me.successDefault,successColorHover:me.successHover,successColorPressed:me.successActive,successColorSuppl:me.successSuppl,warningColor:me.warningDefault,warningColorHover:me.warningHover,warningColorPressed:me.warningActive,warningColorSuppl:me.warningSuppl,errorColor:me.errorDefault,errorColorHover:me.errorHover,errorColorPressed:me.errorActive,errorColorSuppl:me.errorSuppl,textColorBase:me.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:ut(me.alpha4),placeholderColor:ut(me.alpha4),placeholderColorDisabled:ut(me.alpha5),iconColor:ut(me.alpha4),iconColorHover:Xe(ut(me.alpha4),{lightness:.75}),iconColorPressed:Xe(ut(me.alpha4),{lightness:.9}),iconColorDisabled:ut(me.alpha5),opacity1:me.alpha1,opacity2:me.alpha2,opacity3:me.alpha3,opacity4:me.alpha4,opacity5:me.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:ut(Number(me.alphaClose)),closeIconColorHover:ut(Number(me.alphaClose)),closeIconColorPressed:ut(Number(me.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:ut(me.alpha4),clearColorHover:Xe(ut(me.alpha4),{lightness:.75}),clearColorPressed:Xe(ut(me.alpha4),{lightness:.9}),scrollbarColor:vc(me.alphaScrollbar),scrollbarColorHover:vc(me.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ut(me.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:me.neutralPopover,tableColor:me.neutralCard,cardColor:me.neutralCard,modalColor:me.neutralModal,bodyColor:me.neutralBody,tagColor:"#eee",avatarColor:ut(me.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:ut(me.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:me.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)"},w1={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function Hf(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return{...w1,height:r,width:n,borderRadius:i,color:t,colorHover:o}}const st={name:"Scrollbar",common:V,self:Hf},gt={name:"Scrollbar",common:j,self:Hf};var P1={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Mf(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s}=e;return{...P1,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:r}}const zo={name:"Empty",common:V,self:Mf},wr={name:"Empty",common:j,self:Mf};function Pr(e,t,o,r){o||Xy("useThemeClass","cssVarsRef is not passed");const n=De(Yo,null),i=n?.mergedThemeHashRef,l=n?.styleMountTarget,a=se(""),s=ol();let d;const c=`__${e}`,u=()=>{let f=c;const h=t?t.value:void 0,p=i?.value;p&&(f+=`-${p}`),h&&(f+=`-${h}`);const{themeOverrides:g,builtinThemeOverrides:b}=r;g&&(f+=`-${An(JSON.stringify(g))}`),b&&(f+=`-${An(JSON.stringify(b))}`),a.value=f,d=()=>{const C=o.value;let y="";for(const T in C)y+=`${T}: ${C[T]};`;D(`.${f}`,y).mount({id:f,ssr:s,parent:l}),d=void 0}};return Gi(()=>{u()}),{themeClass:a,onRender:()=>{d?.()}}}function Pt(e,t,o,r,n,i){const l=ol(),a=De(Yo,null);if(o){const s=()=>{const d=i?.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Fn,ssr:l,parent:a?.styleMountTarget}),a?.preflightStyleDisabled||Pf.mount({id:"n-global",head:!0,anchorMetaName:Fn,ssr:l,parent:a?.styleMountTarget})};l?s():yr(s)}return X(()=>{const{theme:{common:s,self:d,peers:c={}}={},themeOverrides:u={},builtinThemeOverrides:f={}}=n,{common:h,peers:p}=u,{common:g=void 0,[e]:{common:b=void 0,self:C=void 0,peers:y={}}={}}=a?.mergedThemeRef.value||{},{common:T=void 0,[e]:P={}}=a?.mergedThemeOverridesRef.value||{},{common:A,peers:M={}}=P,v=dn({},s||b||g||r.common,T,A,h);return{common:v,self:dn((d||C||r.self)?.(v),f,P,u),peers:dn({},r.peers,y,c),peerOverrides:dn({},f.peers,M,p)}})}Pt.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var T1=oe("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[D("svg",` + height: 1em; + width: 1em; + `)]);const E1=["onClick","onMousedown","onMouseup","role","aria-label","aria-hidden","aria-disabled"];var il=Ae({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){rl("-base-icon",T1,uo(e,"clsPrefix"))},render(){return k(),pe("i",{class:le(`${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},[te(()=>this.$slots.default?.())],42,E1)}}),_1={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 zf(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:l,textColorDisabled:a,primaryColor:s,opacityDisabled:d,hoverColor:c,fontSizeTiny:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:g,heightTiny:b,heightSmall:C,heightMedium:y,heightLarge:T,heightHuge:P}=e;return{..._1,optionFontSizeTiny:u,optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:b,optionHeightSmall:C,optionHeightMedium:y,optionHeightLarge:T,optionHeightHuge:P,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:l,optionTextColorDisabled:a,optionTextColorActive:s,optionOpacityDisabled:d,optionCheckColor:s,optionColorPending:c,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:c,actionTextColor:i,loadingColor:s}}const Gn={name:"InternalSelectMenu",common:V,peers:{Scrollbar:st,Empty:zo},self:zf},Un={name:"InternalSelectMenu",common:j,peers:{Scrollbar:gt,Empty:wr},self:zf};var $1={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Ff(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:l}=e;return{...$1,fontSize:i,borderRadius:n,color:o,dividerColor:l,textColor:r,boxShadow:t}}const Tr={name:"Popover",common:V,peers:{Scrollbar:st},self:Ff},Er={name:"Popover",common:j,peers:{Scrollbar:gt},self:Ff},R1="n-drawer-body",G_="n-drawer",I1="n-modal-body",A1="n-modal-provider",Bf="n-modal",H1="n-popover-body";function ui(e){return e.composedPath()[0]}const M1={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function z1(e,t,o){if(e==="mousemoveoutside"){const r=n=>{t.contains(ui(n))||o(n)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const n=l=>{r=!t.contains(ui(l))},i=l=>{r&&(t.contains(ui(l))||o(l))};return{mousedown:n,mouseup:i,touchstart:n,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function kf(e,t,o){const r=M1[e];let n=r.get(t);n===void 0&&r.set(t,n=new WeakMap);let i=n.get(o);return i===void 0&&n.set(o,i=z1(e,t,o)),i}function F1(e,t,o,r){if(e==="mousemoveoutside"||e==="clickoutside"){const n=kf(e,t,o);return Object.keys(n).forEach(i=>{St(i,document,n[i],r)}),!0}return!1}function B1(e,t,o,r){if(e==="mousemoveoutside"||e==="clickoutside"){const n=kf(e,t,o);return Object.keys(n).forEach(i=>{rt(i,document,n[i],r)}),!0}return!1}function k1(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function n(v,w,_){const H=v[w];return v[w]=function(){return _.apply(v,arguments),H.apply(v,arguments)},v}function i(v,w){v[w]=Event.prototype[w]}const l=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var v;return(v=l.get(this))!==null&&v!==void 0?v:null}function d(v,w){a!==void 0&&Object.defineProperty(v,"currentTarget",{configurable:!0,enumerable:!0,get:w??a.get})}const c={bubble:{},capture:{}},u={};function f(){const v=function(w){const{type:_,eventPhase:H,bubbles:O}=w,$=ui(w);if(H===2)return;const K=H===1?"capture":"bubble";let ie=$;const be=[];for(;ie===null&&(ie=window),be.push(ie),ie!==window;)ie=ie.parentNode||null;const ce=c.capture[_],J=c.bubble[_];if(n(w,"stopPropagation",o),n(w,"stopImmediatePropagation",r),d(w,s),K==="capture"){if(ce===void 0)return;for(let ue=be.length-1;ue>=0&&!e.has(w);--ue){const He=be[ue],$e=ce.get(He);if($e!==void 0){l.set(w,He);for(const Le of $e){if(t.has(w))break;Le(w)}}if(ue===0&&!O&&J!==void 0){const Le=J.get(He);if(Le!==void 0)for(const ke of Le){if(t.has(w))break;ke(w)}}}}else if(K==="bubble"){if(J===void 0)return;for(let ue=0;ue$(w))};return v.displayName="evtdUnifiedWindowEventHandler",v}const p=f(),g=h();function b(v,w){const _=c[v];return _[w]===void 0&&(_[w]=new Map,window.addEventListener(w,p,v==="capture")),_[w]}function C(v){return u[v]===void 0&&(u[v]=new Set,window.addEventListener(v,g)),u[v]}function y(v,w){let _=v.get(w);return _===void 0&&v.set(w,_=new Set),_}function T(v,w,_,H){const O=c[w][_];if(O!==void 0){const $=O.get(v);if($!==void 0&&$.has(H))return!0}return!1}function P(v,w){const _=u[v];return!!(_!==void 0&&_.has(w))}function A(v,w,_,H){let O;if(typeof H=="object"&&H.once===!0?O=ce=>{M(v,w,O,H),_(ce)}:O=_,F1(v,w,O,H))return;const K=H===!0||typeof H=="object"&&H.capture===!0?"capture":"bubble",ie=b(K,v),be=y(ie,w);if(be.has(O)||be.add(O),w===window){const ce=C(v);ce.has(O)||ce.add(O)}}function M(v,w,_,H){if(B1(v,w,_,H))return;const $=H===!0||typeof H=="object"&&H.capture===!0,K=$?"capture":"bubble",ie=b(K,v),be=y(ie,w);if(w===window&&!T(w,$?"bubble":"capture",v,_)&&P(v,_)){const J=u[v];J.delete(_),J.size===0&&(window.removeEventListener(v,g),u[v]=void 0)}be.has(_)&&be.delete(_),be.size===0&&ie.delete(w),ie.size===0&&(window.removeEventListener(v,p,K==="capture"),c[K][v]=void 0)}return{on:A,off:M}}const{on:St,off:rt}=k1();function D1(e){const t=se(!!e.value);if(t.value)return po(t);const o=Nt(e,r=>{r&&(t.value=!0,o())});return po(t)}function ca(e){const t=X(e),o=se(t.value);return Nt(t,r=>{o.value=r}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(r){e.set(r)}}}function Df(){return Wr()!==null}const Lf=typeof window<"u",un=se(null);function Cc(e){if(e.clientX>0||e.clientY>0)un.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:r,width:n,height:i}=t.getBoundingClientRect();o>0||r>0?un.value={x:o+n/2,y:r+i/2}:un.value={x:0,y:0}}else un.value=null}}let oi=0,xc=!0;function Of(){if(!Lf)return po(se(null));oi===0&&St("click",document,Cc,!0);const e=()=>{oi+=1};return xc&&(xc=Df())?(yr(e),Gt(()=>{oi-=1,oi===0&&rt("click",document,Cc,!0)})):e(),po(un)}const L1=se(void 0);let ri=0;function yc(){L1.value=Date.now()}let Sc=!0;function Wf(e){if(!Lf)return po(se(!1));const t=se(!1);let o=null;function r(){o!==null&&window.clearTimeout(o)}function n(){r(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}ri===0&&St("click",window,yc,!0);const i=()=>{ri+=1,St("click",window,n,!0)};return Sc&&(Sc=Df())?(yr(i),Gt(()=>{ri-=1,ri===0&&rt("click",window,yc,!0),rt("click",window,n,!0),r()})):i(),po(t)}function Nf(){const e=se(!1);return bo(()=>{e.value=!0}),po(e)}const O1=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function W1(){return O1}function cr(e,...t){if(Array.isArray(e))e.forEach(o=>cr(o,...t));else return e(...t)}function Ai(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push($n(String(r)));return}if(Array.isArray(r)){Ai(r,t,o);return}if(r.type===Te){if(r.children===null)return;Array.isArray(r.children)&&Ai(r.children,t,o)}else{if(r.type===Ze&&t)return;o.push(r)}}}),o}function U_(e,t="default",o=void 0){const r=e[t];if(!r)return zn("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=Ai(r(o));return n.length===1?n[0]:(zn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function N1(e,t,o){if(!t)return null;const r=Ai(t(o));return r.length===1?r[0]:(zn("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function kn(e,t=[],o){const r={};return t.forEach(n=>{r[n]=e[n]}),Object.assign(r,o)}function qt(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!qt(t.children)):!0)?e:null}function wc(e,t){return e&&qt(e())||t()}function q_(e,t,o){return e&&qt(e(t))||o(t)}function Kt(e,t){return t(e&&qt(e())||null)}function j1(e){return!(e&&qt(e()))}function qr(e,t,o){if(!t)return;const r=ol(),n=X(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=De(Yo,null),l=()=>{Gi(()=>{const{value:a}=o,s=`${a}${e}Rtl`;if(Ev(s,r))return;const{value:d}=n;d&&d.style.mount({id:s,head:!0,anchorMetaName:Fn,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:i?.styleMountTarget})})};return r?l():yr(l),n}function V1(e){const t={isDeactivated:!1};let o=!1;return iu(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),lu(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function Pc(e){const{left:t,right:o,top:r,bottom:n}=jo(e);return`${r} ${t} ${n} ${o}`}const Tc=Ae({render(){return this.$slots.default?.()}}),{cubicBezierEaseInOut:Ec}=Zo;function jf({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:r=Ec,leaveCubicBezier:n=Ec}={}){return[D(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),D(`&.${e}-transition-leave-active`,{transition:`all ${o} ${n}!important`}),D(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),D(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var G1=oe("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[D(">",[oe("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[D("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),D(">",[oe("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),D(">, +",[oe("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + background: var(--n-scrollbar-rail-color); + -webkit-user-select: none; + `,[ne("horizontal",` + height: var(--n-scrollbar-height); + `,[D(">",[re("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),ne("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); + `),ne("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); + `),ne("vertical",` + width: var(--n-scrollbar-width); + `,[D(">",[re("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),ne("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); + `),ne("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); + `),ne("disabled",[D(">",[re("scrollbar","pointer-events: none;")])]),D(">",[re("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); + `,[jf(),D("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]);function _c(e,t,o="default"){const r=t[o];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return r()}function da(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push($n(String(r)));return}if(Array.isArray(r)){da(r,t,o);return}if(r.type===Te){if(r.children===null)return;Array.isArray(r.children)&&da(r.children,t,o)}else(r.type!==Ze||!t)&&o.push(r)}}),o}function K_(e,t,o="default"){const r=t[o];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const n=da(r());if(n.length===1)return n[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}const $r="@@coContext",U1={mounted(e,{value:t,modifiers:o}){e[$r]={handler:void 0},typeof t=="function"&&(e[$r].handler=t,St("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const r=e[$r];typeof t=="function"?r.handler?r.handler!==t&&(rt("clickoutside",e,r.handler,{capture:o.capture}),r.handler=t,St("clickoutside",e,t,{capture:o.capture})):(e[$r].handler=t,St("clickoutside",e,t,{capture:o.capture})):r.handler&&(rt("clickoutside",e,r.handler,{capture:o.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[$r];o&&rt("clickoutside",e,o,{capture:t.capture}),e[$r].handler=void 0}};function q1(e,t){console.error(`[vdirs/${e}]: ${t}`)}class K1{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:r}=this;if(o!==void 0){t.style.zIndex=`${o}`,r.delete(t);return}const{nextZIndex:n}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${n}`,r.set(t,n),this.nextZIndex=n+1,this.squashState())}unregister(t,o){const{elementZIndex:r}=this;r.has(t)?r.delete(t):o===void 0&&q1("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((o,r)=>o[1]-r[1]),this.nextZIndex=2e3,t.forEach(o=>{const r=o[0],n=this.nextZIndex++;`${n}`!==r.style.zIndex&&(r.style.zIndex=`${n}`)})}}const Hl=new K1,Rr="@@ziContext",Y1={mounted(e,t){const{value:o={}}=t,{zIndex:r,enabled:n}=o;e[Rr]={enabled:!!n,initialized:!1},n&&(Hl.ensureZIndex(e,r),e[Rr].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:r,enabled:n}=o,i=e[Rr].enabled;n&&!i&&(Hl.ensureZIndex(e,r),e[Rr].initialized=!0),e[Rr].enabled=!!n},unmounted(e,t){if(!e[Rr].initialized)return;const{value:o={}}=t,{zIndex:r}=o;Hl.unregister(e,r)}};function $c(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Rc(e){var t;return typeof e=="string"?document.querySelector(e):(t=e())!==null&&t!==void 0?t:null}const X1=Ae({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:D1(uo(e,"show")),mergedTo:X(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?_c("lazy-teleport",this.$slots):Rt(_a,{disabled:this.disabled,to:this.mergedTo},_c("lazy-teleport",this.$slots)):null}});var hr=[],Z1=function(){return hr.some(function(e){return e.activeTargets.length>0})},J1=function(){return hr.some(function(e){return e.skippedTargets.length>0})},Ic="ResizeObserver loop completed with undelivered notifications.",Q1=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ic}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ic),window.dispatchEvent(e)},Dn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Dn||(Dn={}));var pr=function(e){return Object.freeze(e)},eS=(function(){function e(t,o){this.inlineSize=t,this.blockSize=o,pr(this)}return e})(),Vf=(function(){function e(t,o,r,n){return this.x=t,this.y=o,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pr(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,r=t.y,n=t.top,i=t.right,l=t.bottom,a=t.left,s=t.width,d=t.height;return{x:o,y:r,top:n,right:i,bottom:l,left:a,width:s,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),La=function(e){return e instanceof SVGElement&&"getBBox"in e},Gf=function(e){if(La(e)){var t=e.getBBox(),o=t.width,r=t.height;return!o&&!r}var n=e,i=n.offsetWidth,l=n.offsetHeight;return!(i||l||e.getClientRects().length)},Ac=function(e){var t;if(e instanceof Element)return!0;var o=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},tS=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},Cn=typeof window<"u"?window:{},ni=new WeakMap,Hc=/auto|scroll/,oS=/^tb|vertical/,rS=/msie|trident/i.test(Cn.navigator&&Cn.navigator.userAgent),Qt=function(e){return parseFloat(e||"0")},Br=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new eS((o?t:e)||0,(o?e:t)||0)},Mc=pr({devicePixelContentBoxSize:Br(),borderBoxSize:Br(),contentBoxSize:Br(),contentRect:new Vf(0,0,0,0)}),Uf=function(e,t){if(t===void 0&&(t=!1),ni.has(e)&&!t)return ni.get(e);if(Gf(e))return ni.set(e,Mc),Mc;var o=getComputedStyle(e),r=La(e)&&e.ownerSVGElement&&e.getBBox(),n=!rS&&o.boxSizing==="border-box",i=oS.test(o.writingMode||""),l=!r&&Hc.test(o.overflowY||""),a=!r&&Hc.test(o.overflowX||""),s=r?0:Qt(o.paddingTop),d=r?0:Qt(o.paddingRight),c=r?0:Qt(o.paddingBottom),u=r?0:Qt(o.paddingLeft),f=r?0:Qt(o.borderTopWidth),h=r?0:Qt(o.borderRightWidth),p=r?0:Qt(o.borderBottomWidth),g=r?0:Qt(o.borderLeftWidth),b=u+d,C=s+c,y=g+h,T=f+p,P=a?e.offsetHeight-T-e.clientHeight:0,A=l?e.offsetWidth-y-e.clientWidth:0,M=n?b+y:0,v=n?C+T:0,w=r?r.width:Qt(o.width)-M-A,_=r?r.height:Qt(o.height)-v-P,H=w+b+A+y,O=_+C+P+T,$=pr({devicePixelContentBoxSize:Br(Math.round(w*devicePixelRatio),Math.round(_*devicePixelRatio),i),borderBoxSize:Br(H,O,i),contentBoxSize:Br(w,_,i),contentRect:new Vf(u,s,w,_)});return ni.set(e,$),$},qf=function(e,t,o){var r=Uf(e,o),n=r.borderBoxSize,i=r.contentBoxSize,l=r.devicePixelContentBoxSize;switch(t){case Dn.DEVICE_PIXEL_CONTENT_BOX:return l;case Dn.BORDER_BOX:return n;default:return i}},nS=(function(){function e(t){var o=Uf(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=pr([o.borderBoxSize]),this.contentBoxSize=pr([o.contentBoxSize]),this.devicePixelContentBoxSize=pr([o.devicePixelContentBoxSize])}return e})(),Kf=function(e){if(Gf(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},iS=function(){var e=1/0,t=[];hr.forEach(function(l){if(l.activeTargets.length!==0){var a=[];l.activeTargets.forEach(function(d){var c=new nS(d.target),u=Kf(d.target);a.push(c),d.lastReportedSize=qf(d.target,d.observedBox),ue?o.activeTargets.push(n):o.skippedTargets.push(n))})})},lS=function(){var e=0;for(zc(e);Z1();)e=iS(),zc(e);return J1()&&Q1(),e>0},Ml,Yf=[],aS=function(){return Yf.splice(0).forEach(function(e){return e()})},sS=function(e){if(!Ml){var t=0,o=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return aS()}).observe(o,r),Ml=function(){o.textContent="".concat(t?t--:t++)}}Yf.push(e),Ml()},cS=function(e){sS(function(){requestAnimationFrame(e)})},fi=0,dS=function(){return!!fi},uS=250,fS={attributes:!0,characterData:!0,childList:!0,subtree:!0},Fc=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bc=function(e){return e===void 0&&(e=0),Date.now()+e},zl=!1,hS=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=uS),!zl){zl=!0;var r=Bc(t);cS(function(){var n=!1;try{n=lS()}finally{if(zl=!1,t=r-Bc(),!dS())return;n?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,fS)};document.body?o():Cn.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Fc.forEach(function(o){return Cn.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Fc.forEach(function(o){return Cn.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e})(),ua=new hS,kc=function(e){!fi&&e>0&&ua.start(),fi+=e,!fi&&ua.stop()},pS=function(e){return!La(e)&&!tS(e)&&getComputedStyle(e).display==="inline"},mS=(function(){function e(t,o){this.target=t,this.observedBox=o||Dn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=qf(this.target,this.observedBox,!0);return pS(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),gS=(function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e})(),ii=new WeakMap,Dc=function(e,t){for(var o=0;o=0&&(i&&hr.splice(hr.indexOf(r),1),r.observationTargets.splice(n,1),kc(-1))},e.disconnect=function(t){var o=this,r=ii.get(t);r.observationTargets.slice().forEach(function(n){return o.unobserve(t,n.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),bS=(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.");li.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ac(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");li.observe(this,t,o)},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(!Ac(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");li.unobserve(this,t)},e.prototype.disconnect=function(){li.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();class vS{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||bS)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const r=this.elHandlersMap.get(o.target);r!==void 0&&r(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Lc=new vS,Oc=Ae({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=Wr().proxy;function r(n){const{onResize:i}=e;i!==void 0&&i(n)}bo(()=>{const n=o.$el;if(n===void 0){$c("resize-observer","$el does not exist.");return}if(n.nextElementSibling!==n.nextSibling&&n.nodeType===3&&n.nodeValue!==""){$c("resize-observer","$el can not be observed (it may be a text node).");return}n.nextElementSibling!==null&&(Lc.registerHandler(n.nextElementSibling,r),t=!0)}),Gt(()=>{t&&Lc.unregisterHandler(o.$el.nextElementSibling)})},render(){return zg(this.$slots,"default")}});function Xf(e){return e instanceof HTMLElement}function Zf(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(Xf(o)&&(Qf(o)||Jf(o)))return!0}return!1}function Qf(e){if(!CS(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function CS(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 rn=[];const xS=Ae({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=nl(),o=se(null),r=se(null);let n=!1,i=!1;const l=typeof document>"u"?null:document.activeElement;function a(){return rn[rn.length-1]===t}function s(b){var C;b.code==="Escape"&&a()&&((C=e.onEsc)===null||C===void 0||C.call(e,b))}bo(()=>{Nt(()=>e.active,b=>{b?(u(),St("keydown",document,s)):(rt("keydown",document,s),n&&f())},{immediate:!0})}),Gt(()=>{rt("keydown",document,s),n&&f()});function d(b){if(!i&&a()){const C=c();if(C===null||C.contains(Da(b)))return;h("first")}}function c(){const b=o.value;if(b===null)return null;let C=b;for(;C=C.nextSibling,!(C===null||C instanceof Element&&C.tagName==="DIV"););return C}function u(){var b;if(!e.disabled){if(rn.push(t),e.autoFocus){const{initialFocusTo:C}=e;C===void 0?h("first"):(b=Rc(C))===null||b===void 0||b.focus({preventScroll:!0})}n=!0,document.addEventListener("focus",d,!0)}}function f(){var b;if(e.disabled||(document.removeEventListener("focus",d,!0),rn=rn.filter(y=>y!==t),a()))return;const{finalFocusTo:C}=e;C!==void 0?(b=Rc(C))===null||b===void 0||b.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(i=!0,l.focus({preventScroll:!0}),i=!1)}function h(b){if(a()&&e.active){const C=o.value,y=r.value;if(C!==null&&y!==null){const T=c();if(T==null||T===y){i=!0,C.focus({preventScroll:!0}),i=!1;return}i=!0;const P=b==="first"?Zf(T):Jf(T);i=!1,P||(i=!0,C.focus({preventScroll:!0}),i=!1)}}}function p(b){if(i)return;const C=c();C!==null&&(b.relatedTarget!==null&&C.contains(b.relatedTarget)?h("last"):h("first"))}function g(b){i||(b.relatedTarget!==null&&b.relatedTarget===o.value?h("last"):h("first"))}return{focusableStartRef:o,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return Rt(Te,null,[Rt("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),Rt("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}}),yS=["onMousedown"],SS=["onScroll","onWheel"],wS=["onMousedown"],PS={...Pt.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,internalExposeWidthCssVar:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}},ll=Ae({name:"Scrollbar",props:PS,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Mo(e),n=qr("Scrollbar",r,t),i=se(null),l=se(null),a=se(null),s=se(null),d=se(null),c=se(null),u=se(null),f=se(null),h=se(null),p=se(null),g=se(null),b=se(0),C=se(0),y=se(!1),T=se(!1);let P=!1,A=!1,M,v,w=0,_=0,H=0,O=0;const $=W1(),K=Pt("Scrollbar","-scrollbar",G1,st,e,t),ie=X(()=>{const{value:N}=f,{value:he}=c,{value:xe}=p;return N===null||he===null||xe===null?0:Math.min(N,xe*N/he+gc(K.value.self.width)*1.5)}),be=X(()=>`${ie.value}px`),ce=X(()=>{const{value:N}=h,{value:he}=u,{value:xe}=g;return N===null||he===null||xe===null?0:xe*N/he+gc(K.value.self.height)*1.5}),J=X(()=>`${ce.value}px`),ue=X(()=>{const{value:N}=f,{value:he}=b,{value:xe}=c,{value:Ue}=p;if(N===null||xe===null||Ue===null)return 0;{const Ye=xe-N;return Ye?he/Ye*(Ue-ie.value):0}}),He=X(()=>`${ue.value}px`),$e=X(()=>{const{value:N}=h,{value:he}=C,{value:xe}=u,{value:Ue}=g;if(N===null||xe===null||Ue===null)return 0;{const Ye=xe-N;return Ye?he/Ye*(Ue-ce.value):0}}),Le=X(()=>`${$e.value}px`),ke=X(()=>{const{value:N}=f,{value:he}=c;return N!==null&&he!==null&&he>N}),nt=X(()=>{const{value:N}=h,{value:he}=u;return N!==null&&he!==null&&he>N}),Je=X(()=>{const{trigger:N}=e;return N==="none"||y.value}),vt=X(()=>{const{trigger:N}=e;return N==="none"||T.value}),Se=X(()=>{const{container:N}=e;return N?N():l.value}),z=X(()=>{const{content:N}=e;return N?N():a.value}),ee=(N,he)=>{if(!e.scrollable)return;if(typeof N=="number"){S(N,he??0,0,!1,"auto");return}const{left:xe,top:Ue,index:Ye,elSize:_t,position:et,behavior:dt,el:xo,debounce:Zr=!0}=N;(xe!==void 0||Ue!==void 0)&&S(xe??0,Ue??0,0,!1,dt),xo!==void 0?S(0,xo.offsetTop,xo.offsetHeight,Zr,dt):Ye!==void 0&&_t!==void 0?S(0,Ye*_t,_t,Zr,dt):et==="bottom"?S(0,Number.MAX_SAFE_INTEGER,0,!1,dt):et==="top"&&S(0,0,0,!1,dt)},L=V1(()=>{e.container||ee({top:b.value,left:C.value})}),fe=()=>{L.isDeactivated||we()},m=N=>{if(L.isDeactivated)return;const{onResize:he}=e;he&&he(N),we()},x=(N,he)=>{if(!e.scrollable)return;const{value:xe}=Se;xe&&(typeof N=="object"?xe.scrollBy(N):xe.scrollBy(N,he||0))};function S(N,he,xe,Ue,Ye){const{value:_t}=Se;if(_t){if(Ue){const{scrollTop:et,offsetHeight:dt}=_t;if(he>et){he+xe<=et+dt||_t.scrollTo({left:N,top:he+xe-dt,behavior:Ye});return}}_t.scrollTo({left:N,top:he,behavior:Ye})}}function E(){G(),I(),we()}function R(){B()}function B(){W(),U()}function W(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{T.value=!1},e.duration)}function U(){M!==void 0&&window.clearTimeout(M),M=window.setTimeout(()=>{y.value=!1},e.duration)}function G(){M!==void 0&&window.clearTimeout(M),y.value=!0}function I(){v!==void 0&&window.clearTimeout(v),T.value=!0}function Z(N){const{onScroll:he}=e;he&&he(N),q()}function q(){const{value:N}=Se;N&&(b.value=N.scrollTop,C.value=N.scrollLeft*(n?.value?-1:1))}function de(){const{value:N}=z;N&&(c.value=N.offsetHeight,u.value=N.offsetWidth);const{value:he}=Se;he&&(f.value=he.offsetHeight,h.value=he.offsetWidth);const{value:xe}=d,{value:Ue}=s;xe&&(g.value=xe.offsetWidth),Ue&&(p.value=Ue.offsetHeight)}function ve(){const{value:N}=Se;N&&(b.value=N.scrollTop,C.value=N.scrollLeft*(n?.value?-1:1),f.value=N.offsetHeight,h.value=N.offsetWidth,c.value=N.scrollHeight,u.value=N.scrollWidth);const{value:he}=d,{value:xe}=s;he&&(g.value=he.offsetWidth),xe&&(p.value=xe.offsetHeight)}function we(){e.scrollable&&(e.useUnifiedContainer?ve():(de(),q()))}function Me(N){return!i.value?.contains(Da(N))}function ze(N){N.preventDefault(),N.stopPropagation(),A=!0,St("mousemove",window,Ge,!0),St("mouseup",window,Qe,!0),_=C.value,H=n?.value?window.innerWidth-N.clientX:N.clientX}function Ge(N){if(!A)return;M!==void 0&&window.clearTimeout(M),v!==void 0&&window.clearTimeout(v);const{value:he}=h,{value:xe}=u,{value:Ue}=ce;if(he===null||xe===null)return;const Ye=(n?.value?window.innerWidth-N.clientX-H:N.clientX-H)*(xe-he)/(he-Ue),_t=xe-he;let et=_+Ye;et=Math.min(_t,et),et=Math.max(et,0);const{value:dt}=Se;if(dt){dt.scrollLeft=et*(n?.value?-1:1);const{internalOnUpdateScrollLeft:xo}=e;xo&&xo(et)}}function Qe(N){N.preventDefault(),N.stopPropagation(),rt("mousemove",window,Ge,!0),rt("mouseup",window,Qe,!0),A=!1,we(),Me(N)&&B()}function It(N){N.preventDefault(),N.stopPropagation(),P=!0,St("mousemove",window,Et,!0),St("mouseup",window,At,!0),w=b.value,O=N.clientY}function Et(N){if(!P)return;M!==void 0&&window.clearTimeout(M),v!==void 0&&window.clearTimeout(v);const{value:he}=f,{value:xe}=c,{value:Ue}=ie;if(he===null||xe===null)return;const Ye=(N.clientY-O)*(xe-he)/(he-Ue),_t=xe-he;let et=w+Ye;et=Math.min(_t,et),et=Math.max(et,0);const{value:dt}=Se;dt&&(dt.scrollTop=et)}function At(N){N.preventDefault(),N.stopPropagation(),rt("mousemove",window,Et,!0),rt("mouseup",window,At,!0),P=!1,we(),Me(N)&&B()}Gi(()=>{const{value:N}=nt,{value:he}=ke,{value:xe}=t,{value:Ue}=d,{value:Ye}=s;Ue&&(N?Ue.classList.remove(`${xe}-scrollbar-rail--disabled`):Ue.classList.add(`${xe}-scrollbar-rail--disabled`)),Ye&&(he?Ye.classList.remove(`${xe}-scrollbar-rail--disabled`):Ye.classList.add(`${xe}-scrollbar-rail--disabled`))}),bo(()=>{e.container||we()}),Gt(()=>{M!==void 0&&window.clearTimeout(M),v!==void 0&&window.clearTimeout(v),rt("mousemove",window,Et,!0),rt("mouseup",window,At,!0)});const Xr=X(()=>{const{common:{cubicBezierEaseInOut:N},self:{color:he,colorHover:xe,height:Ue,width:Ye,borderRadius:_t,railInsetHorizontalTop:et,railInsetHorizontalBottom:dt,railInsetVerticalRight:xo,railInsetVerticalLeft:Zr,railColor:cm}}=K.value,{top:dm,right:um,bottom:fm,left:hm}=jo(et),{top:pm,right:mm,bottom:gm,left:bm}=jo(dt),{top:vm,right:Cm,bottom:xm,left:ym}=jo(n?.value?Pc(xo):xo),{top:Sm,right:wm,bottom:Pm,left:Tm}=jo(n?.value?Pc(Zr):Zr);return{"--n-scrollbar-bezier":N,"--n-scrollbar-color":he,"--n-scrollbar-color-hover":xe,"--n-scrollbar-border-radius":_t,"--n-scrollbar-width":Ye,"--n-scrollbar-height":Ue,"--n-scrollbar-rail-top-horizontal-top":dm,"--n-scrollbar-rail-right-horizontal-top":um,"--n-scrollbar-rail-bottom-horizontal-top":fm,"--n-scrollbar-rail-left-horizontal-top":hm,"--n-scrollbar-rail-top-horizontal-bottom":pm,"--n-scrollbar-rail-right-horizontal-bottom":mm,"--n-scrollbar-rail-bottom-horizontal-bottom":gm,"--n-scrollbar-rail-left-horizontal-bottom":bm,"--n-scrollbar-rail-top-vertical-right":vm,"--n-scrollbar-rail-right-vertical-right":Cm,"--n-scrollbar-rail-bottom-vertical-right":xm,"--n-scrollbar-rail-left-vertical-right":ym,"--n-scrollbar-rail-top-vertical-left":Sm,"--n-scrollbar-rail-right-vertical-left":wm,"--n-scrollbar-rail-bottom-vertical-left":Pm,"--n-scrollbar-rail-left-vertical-left":Tm,"--n-scrollbar-rail-color":cm}}),ct=o?Pr("scrollbar",void 0,Xr,e):void 0;return{scrollTo:ee,scrollBy:x,sync:we,syncUnifiedContainer:ve,handleMouseEnterWrapper:E,handleMouseLeaveWrapper:R,mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:b,wrapperRef:i,containerRef:l,contentRef:a,yRailRef:s,xRailRef:d,needYBar:ke,needXBar:nt,yBarSizePx:be,xBarSizePx:J,yBarTopPx:He,xBarLeftPx:Le,isShowXBar:Je,isShowYBar:vt,isIos:$,handleScroll:Z,handleContentResize:fe,handleContainerResize:m,handleYScrollMouseDown:It,handleXScrollMouseDown:ze,containerWidth:h,cssVars:o?void 0:Xr,themeClass:ct?.themeClass,onRender:ct?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,triggerDisplayManually:o,rtlEnabled:r,internalHoistYRail:n,yPlacement:i,xPlacement:l,xScrollable:a}=this;if(!this.scrollable)return e.default?.();const s=this.trigger==="none",d=(f,h)=>(k(),pe("div",{ref:"yRailRef",class:le([`${t}-scrollbar-rail`,`${t}-scrollbar-rail--vertical`,`${t}-scrollbar-rail--vertical--${i}`,f]),"data-scrollbar-rail":!0,style:Be([h||"",this.verticalRailStyle]),"aria-hidden":!0},[te(()=>Rt(s?Tc:br,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?(k(),pe("div",{key:1,class:le(`${t}-scrollbar-rail__scrollbar`),style:Be({height:this.yBarSizePx,top:this.yBarTopPx}),onMousedown:this.handleYScrollMouseDown},null,46,yS)):null}))],6)),c=()=>(this.onRender?.(),Rt("div",Bt(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${t}-scrollbar`,this.themeClass,r&&`${t}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?e.default?.():(k(),pe("div",{key:2,role:"none",ref:"containerRef",class:le([`${t}-scrollbar-container`,this.containerClass]),style:Be([this.containerStyle,this.internalExposeWidthCssVar?{"--n-scrollbar-current-width":i1(this.containerWidth)}:void 0]),onScroll:this.handleScroll,onWheel:this.onWheel},[(k(),ae(Oc,{onResize:this.handleContentResize},{default:()=>(k(),pe("div",{ref:"contentRef",role:"none",style:Be([{width:this.xScrollable?"fit-content":null},this.contentStyle]),class:le([`${t}-scrollbar-content`,this.contentClass])},[te(()=>e.default?.())],6))},1032,["onResize"]))],46,SS)),n?null:d(void 0,void 0),a&&(k(),pe("div",{ref:"xRailRef",class:le([`${t}-scrollbar-rail`,`${t}-scrollbar-rail--horizontal`,`${t}-scrollbar-rail--horizontal--${l}`]),style:Be(this.horizontalRailStyle),"data-scrollbar-rail":!0,"aria-hidden":!0},[te(()=>Rt(s?Tc:br,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?(k(),pe("div",{key:3,class:le(`${t}-scrollbar-rail__scrollbar`),style:Be({width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx}),onMousedown:this.handleXScrollMouseDown},null,46,wS)):null}))],6))])),u=this.container?c():(k(),ae(Oc,{key:4,onResize:this.handleContainerResize},{default:c},1032,["onResize"]));return n?(k(),pe(Te,{key:5},[te(()=>u),te(()=>d(this.themeClass,this.cssVars))],64)):u}}),Y_=ll;var eh={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};const th={name:"Tag",common:j,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:d,borderColor:c,tagColor:u,opacityDisabled:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:b,closeColorPressed:C,borderRadiusSmall:y,fontSizeMini:T,fontSizeTiny:P,fontSizeSmall:A,fontSizeMedium:M,heightMini:v,heightTiny:w,heightSmall:_,heightMedium:H,buttonColor2Hover:O,buttonColor2Pressed:$,fontWeightStrong:K}=e;return{...eh,closeBorderRadius:y,heightTiny:v,heightSmall:w,heightMedium:_,heightLarge:H,borderRadius:y,opacityDisabled:f,fontSizeTiny:T,fontSizeSmall:P,fontSizeMedium:A,fontSizeLarge:M,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:O,colorPressedCheckable:$,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${c}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:b,closeColorPressed:C,borderPrimary:`1px solid ${F(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:F(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Xe(n,{lightness:.7}),closeIconColorHoverPrimary:Xe(n,{lightness:.7}),closeIconColorPressedPrimary:Xe(n,{lightness:.7}),closeColorHoverPrimary:F(n,{alpha:.16}),closeColorPressedPrimary:F(n,{alpha:.12}),borderInfo:`1px solid ${F(i,{alpha:.3})}`,textColorInfo:i,colorInfo:F(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Xe(i,{alpha:.7}),closeIconColorHoverInfo:Xe(i,{alpha:.7}),closeIconColorPressedInfo:Xe(i,{alpha:.7}),closeColorHoverInfo:F(i,{alpha:.16}),closeColorPressedInfo:F(i,{alpha:.12}),borderSuccess:`1px solid ${F(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:F(l,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Xe(l,{alpha:.7}),closeIconColorHoverSuccess:Xe(l,{alpha:.7}),closeIconColorPressedSuccess:Xe(l,{alpha:.7}),closeColorHoverSuccess:F(l,{alpha:.16}),closeColorPressedSuccess:F(l,{alpha:.12}),borderWarning:`1px solid ${F(a,{alpha:.3})}`,textColorWarning:a,colorWarning:F(a,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Xe(a,{alpha:.7}),closeIconColorHoverWarning:Xe(a,{alpha:.7}),closeIconColorPressedWarning:Xe(a,{alpha:.7}),closeColorHoverWarning:F(a,{alpha:.16}),closeColorPressedWarning:F(a,{alpha:.11}),borderError:`1px solid ${F(s,{alpha:.3})}`,textColorError:s,colorError:F(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Xe(s,{alpha:.7}),closeIconColorHoverError:Xe(s,{alpha:.7}),closeIconColorPressedError:Xe(s,{alpha:.7}),closeColorHoverError:F(s,{alpha:.16}),closeColorPressedError:F(s,{alpha:.12})}}};function Wc(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function qn(e,t){const o=Ae({render(){return t()}});return Ae({name:My(e),setup(){const r=De(Yo,null)?.mergedIconsRef;return()=>{const n=r?.value?.[e];return n?n():(k(),ae(o,{key:1}))}}})}var TS=qn("close",()=>(()=>{const e=Ur("6b30a2290cd08d4");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},[Pe("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[Pe("g",{fill:"currentColor","fill-rule":"nonzero"},[Pe("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"})])])],-1))})()),ES=oe("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; +`,[ne("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),D("&::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; + `),oa("disabled",[D("&:hover",` + color: var(--n-close-icon-color-hover); + `),D("&:hover::before",` + background-color: var(--n-close-color-hover); + `),D("&:focus::before",` + background-color: var(--n-close-color-hover); + `),D("&:active",` + color: var(--n-close-icon-color-pressed); + `),D("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),ne("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),ne("round",[D("&::before",` + border-radius: 50%; + `)])]),al=Ae({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 rl("-base-close",ES,uo(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:r,round:n,isButtonTag:i}=e,l=i?"button":"div";return(()=>{const a=Ur("b5bdc9fe09f5ae00");return k(),ae(l,{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:le([`${t}-base-close`,r&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`]),onMousedown:a[0]||(a[0]=s=>{e.focusable||s.preventDefault()}),onClick:e.onClick},{default:so(()=>[(k(),ae(il,{clsPrefix:t},{default:()=>(k(),ae(TS))},1032,["clsPrefix"]))]),_:2},1032,["type","tabindex","aria-disabled","role","disabled","class","onClick"])})()}}});function _S(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:d,borderColor:c,opacityDisabled:u,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:b,fontSizeMini:C,fontSizeTiny:y,fontSizeSmall:T,fontSizeMedium:P,heightMini:A,heightTiny:M,heightSmall:v,heightMedium:w,closeColorHover:_,closeColorPressed:H,buttonColor2Hover:O,buttonColor2Pressed:$,fontWeightStrong:K}=e;return{...eh,closeBorderRadius:b,heightTiny:A,heightSmall:M,heightMedium:v,heightLarge:w,borderRadius:b,opacityDisabled:u,fontSizeTiny:C,fontSizeSmall:y,fontSizeMedium:T,fontSizeLarge:P,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:O,colorPressedCheckable:$,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${c}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:_,closeColorPressed:H,borderPrimary:`1px solid ${F(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:F(n,{alpha:.12}),colorBorderedPrimary:F(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:F(n,{alpha:.12}),closeColorPressedPrimary:F(n,{alpha:.18}),borderInfo:`1px solid ${F(i,{alpha:.3})}`,textColorInfo:i,colorInfo:F(i,{alpha:.12}),colorBorderedInfo:F(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:F(i,{alpha:.12}),closeColorPressedInfo:F(i,{alpha:.18}),borderSuccess:`1px solid ${F(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:F(l,{alpha:.12}),colorBorderedSuccess:F(l,{alpha:.1}),closeIconColorSuccess:l,closeIconColorHoverSuccess:l,closeIconColorPressedSuccess:l,closeColorHoverSuccess:F(l,{alpha:.12}),closeColorPressedSuccess:F(l,{alpha:.18}),borderWarning:`1px solid ${F(a,{alpha:.35})}`,textColorWarning:a,colorWarning:F(a,{alpha:.15}),colorBorderedWarning:F(a,{alpha:.12}),closeIconColorWarning:a,closeIconColorHoverWarning:a,closeIconColorPressedWarning:a,closeColorHoverWarning:F(a,{alpha:.12}),closeColorPressedWarning:F(a,{alpha:.18}),borderError:`1px solid ${F(s,{alpha:.23})}`,textColorError:s,colorError:F(s,{alpha:.1}),colorBorderedError:F(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:F(s,{alpha:.12}),closeColorPressedError:F(s,{alpha:.18})}}const oh={name:"Tag",common:V,self:_S};var rh={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const Oa={name:"InternalSelection",common:j,peers:{Popover:Er},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:d,errorColor:c,errorColorHover:u,iconColor:f,iconColorDisabled:h,clearColor:p,clearColorHover:g,clearColorPressed:b,placeholderColor:C,placeholderColorDisabled:y,fontSizeTiny:T,fontSizeSmall:P,fontSizeMedium:A,fontSizeLarge:M,heightTiny:v,heightSmall:w,heightMedium:_,heightLarge:H,fontWeight:O}=e;return{...rh,fontWeight:O,fontSizeTiny:T,fontSizeSmall:P,fontSizeMedium:A,fontSizeLarge:M,heightTiny:v,heightSmall:w,heightMedium:_,heightLarge:H,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:C,placeholderColorDisabled:y,color:n,colorDisabled:i,colorActive:F(l,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${F(l,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${F(l,{alpha:.4})}`,caretColor:l,arrowColor:f,arrowColorDisabled:h,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${d}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${F(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${F(s,{alpha:.4})}`,colorActiveWarning:F(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${F(c,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${F(c,{alpha:.4})}`,colorActiveError:F(c,{alpha:.1}),caretColorError:c,clearColor:p,clearColorHover:g,clearColorPressed:b}}};var nh={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"};const $S={name:"Alert",common:j,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:l,textColor2:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:b,fontSize:C}=e;return{...nh,fontSize:C,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:l,iconColor:a,contentTextColor:a,closeBorderRadius:o,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${F(h,{alpha:.35})}`,colorInfo:F(h,{alpha:.25}),titleTextColorInfo:l,iconColorInfo:h,contentTextColorInfo:a,closeColorHoverInfo:s,closeColorPressedInfo:d,closeIconColorInfo:c,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${F(p,{alpha:.35})}`,colorSuccess:F(p,{alpha:.25}),titleTextColorSuccess:l,iconColorSuccess:p,contentTextColorSuccess:a,closeColorHoverSuccess:s,closeColorPressedSuccess:d,closeIconColorSuccess:c,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${F(g,{alpha:.35})}`,colorWarning:F(g,{alpha:.25}),titleTextColorWarning:l,iconColorWarning:g,contentTextColorWarning:a,closeColorHoverWarning:s,closeColorPressedWarning:d,closeIconColorWarning:c,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${F(b,{alpha:.35})}`,colorError:F(b,{alpha:.25}),titleTextColorError:l,iconColorError:b,contentTextColorError:a,closeColorHoverError:s,closeColorPressedError:d,closeIconColorError:c,closeIconColorHoverError:u,closeIconColorPressedError:f}}};var Wa=qn("error",()=>(()=>{const e=Ur("550229f72e94547c");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Pe("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Pe("g",{"fill-rule":"nonzero"},[Pe("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"})])])],-1))})()),Hi=qn("info",()=>(()=>{const e=Ur("1d7d3032c5ab60");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Pe("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Pe("g",{"fill-rule":"nonzero"},[Pe("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"})])])],-1))})()),Na=qn("success",()=>(()=>{const e=Ur("2d4548faff86b4af");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Pe("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Pe("g",{"fill-rule":"nonzero"},[Pe("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"})])])],-1))})()),ja=qn("warning",()=>(()=>{const e=Ur("eb9505c3181fdf04");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Pe("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Pe("g",{"fill-rule":"nonzero"},[Pe("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"})])])],-1))})()),ih=Ae({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(a){e.width?a.style.maxWidth=`${a.offsetWidth}px`:a.style.maxHeight=`${a.offsetHeight}px`,a.offsetWidth}function r(a){e.width?a.style.maxWidth="0":a.style.maxHeight="0",a.offsetWidth;const{onLeave:s}=e;s&&s()}function n(a){e.width?a.style.maxWidth="":a.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(a){if(a.style.transition="none",e.width){const s=a.offsetWidth;a.style.maxWidth="0",a.offsetWidth,a.style.transition="",a.style.maxWidth=`${s}px`}else if(e.reverse)a.style.maxHeight=`${a.offsetHeight}px`,a.offsetHeight,a.style.transition="",a.style.maxHeight="0";else{const s=a.offsetHeight;a.style.maxHeight="0",a.offsetWidth,a.style.transition="",a.style.maxHeight=`${s}px`}a.offsetWidth}function l(a){e.width?a.style.maxWidth="":e.reverse||(a.style.maxHeight=""),e.onAfterEnter?.()}return()=>{const{group:a,width:s,appear:d,mode:c}=e,u=a?qb:br,f={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:d,onEnter:i,onAfterEnter:l,onBeforeLeave:o,onLeave:r,onAfterLeave:n};return a||(f.mode=c),Rt(u,f,t)}}});function RS(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,baseColor:n,dividerColor:i,actionColor:l,textColor1:a,textColor2:s,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:h,infoColor:p,successColor:g,warningColor:b,errorColor:C,fontSize:y}=e;return{...nh,fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${i}`,color:l,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:o,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:h,borderInfo:`1px solid ${Y(n,F(p,{alpha:.25}))}`,colorInfo:Y(n,F(p,{alpha:.08})),titleTextColorInfo:a,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:d,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Y(n,F(g,{alpha:.25}))}`,colorSuccess:Y(n,F(g,{alpha:.08})),titleTextColorSuccess:a,iconColorSuccess:g,contentTextColorSuccess:s,closeColorHoverSuccess:d,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Y(n,F(b,{alpha:.33}))}`,colorWarning:Y(n,F(b,{alpha:.08})),titleTextColorWarning:a,iconColorWarning:b,contentTextColorWarning:s,closeColorHoverWarning:d,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:h,borderError:`1px solid ${Y(n,F(C,{alpha:.25}))}`,colorError:Y(n,F(C,{alpha:.08})),titleTextColorError:a,iconColorError:C,contentTextColorError:s,closeColorHoverError:d,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:h}}const IS={name:"Alert",common:V,self:RS},{cubicBezierEaseInOut:eo,cubicBezierEaseOut:AS,cubicBezierEaseIn:HS}=Zo;function MS({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:r="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:l=void 0,reverse:a=!1}={}){const s=a?"leave":"enter",d=a?"enter":"leave";return[D(`&.fade-in-height-expand-transition-${d}-from, + &.fade-in-height-expand-transition-${s}-to`,{...i,opacity:1}),D(`&.fade-in-height-expand-transition-${d}-to, + &.fade-in-height-expand-transition-${s}-from`,{...l,opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0}),D(`&.fade-in-height-expand-transition-${d}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${eo} ${r}, + opacity ${t} ${AS} ${r}, + margin-top ${t} ${eo} ${r}, + margin-bottom ${t} ${eo} ${r}, + padding-top ${t} ${eo} ${r}, + padding-bottom ${t} ${eo} ${r} + ${o?`,${o}`:""} + `),D(`&.fade-in-height-expand-transition-${s}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${eo}, + opacity ${t} ${HS}, + margin-top ${t} ${eo}, + margin-bottom ${t} ${eo}, + padding-top ${t} ${eo}, + padding-bottom ${t} ${eo} + ${o?`,${o}`:""} + `)]}var zS={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function lh(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:l}=e;return{...zS,borderRadius:t,railColor:o,railColorActive:r,linkColor:F(r,{alpha:.15}),linkTextColor:l,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r}}const FS={name:"Anchor",common:V,self:lh},BS={name:"Anchor",common:j,self:lh};var ah={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function kS(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,warningColor:s,warningColorHover:d,errorColor:c,errorColorHover:u,borderRadius:f,lineHeight:h,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:C,heightTiny:y,heightSmall:T,heightMedium:P,heightLarge:A,clearColor:M,clearColorHover:v,clearColorPressed:w,placeholderColor:_,placeholderColorDisabled:H,iconColor:O,iconColorDisabled:$,iconColorHover:K,iconColorPressed:ie,fontWeight:be}=e;return{...ah,fontWeight:be,countTextColorDisabled:r,countTextColor:o,heightTiny:y,heightSmall:T,heightMedium:P,heightLarge:A,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:C,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:l,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:_,placeholderColorDisabled:H,color:l,colorHover:l,colorDisabled:a,colorFocus:F(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:F(s,{alpha:.1}),borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 8px 0 ${F(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${u}`,colorFocusError:F(c,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${F(c,{alpha:.3})}`,caretColorError:c,clearColor:M,clearColorHover:v,clearColorPressed:w,iconColor:O,iconColorDisabled:$,iconColorHover:K,iconColorPressed:ie,suffixTextColor:t}}const Dt={name:"Input",common:j,peers:{Scrollbar:gt},self:kS},Nc="n-form-item";function DS(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=De(Nc,null);at(Nc,null);const i=X(o?()=>o(n):()=>{const{size:s}=e;if(s)return s;if(n){const{mergedSize:d}=n;if(d.value!==void 0)return d.value}return t}),l=X(r?()=>r(n):()=>{const{disabled:s}=e;return s!==void 0?s:n?n.disabled.value:!1}),a=X(()=>{const{status:s}=e;return s||n?.mergedValidationStatus.value});return Gt(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:l,mergedStatusRef:a,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var Va=Ae({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Nf();return()=>(k(),ae(br,{name:"icon-switch-transition",appear:o.value},Bn(t),1032,["appear"]))}});const{cubicBezierEaseInOut:LS}=Zo;function Mi({originalTransform:e="",left:t=0,top:o=0,transition:r=`all .3s ${LS} !important`}={}){return[D("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),D("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),D("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:r})]}var OS=D([D("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),oe("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[re("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[Mi()]),re("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Mi({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),re("container",` + animation: rotator 3s linear infinite both; + `,[re("icon",` + height: 1em; + width: 1em; + `)])])]);const WS=["viewBox"],NS=["values","dur"],jS=["stroke-width","cx","cy","r","stroke-dasharray","stroke-dashoffset"],VS=["values","dur"],GS=["values","dur"],Fl="1.6s",US={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}};var sh=Ae({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},...US},setup(e){rl("-base-loading",OS,uo(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:r,scale:n}=this,i=t/n;return k(),pe("div",{class:le(`${e}-base-loading`),role:"img","aria-label":"loading"},[je(Va,null,{default:()=>this.show?(k(),pe("div",{key:"icon",class:le(`${e}-base-loading__transition-wrapper`)},[Pe("div",{class:le(`${e}-base-loading__container`)},[(k(),pe("svg",{class:le(`${e}-base-loading__icon`),viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:Be({color:r})},[Pe("g",null,[Pe("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Fl,fill:"freeze",repeatCount:"indefinite"},null,8,NS),Pe("circle",{class:le(`${e}-base-loading__icon`),fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},[Pe("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Fl,fill:"freeze",repeatCount:"indefinite"},null,8,VS),Pe("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Fl,fill:"freeze",repeatCount:"indefinite"},null,8,GS)],10,jS)])],14,WS))],2)],2)):(k(),pe("div",{key:"placeholder",class:le(`${e}-base-loading__placeholder`)},[te(()=>this.$slots.default?.())],2))},1024)],2)}});const Kn=typeof document<"u"&&typeof window<"u",qS=Kn&&"chrome"in window;Kn&&navigator.userAgent.includes("Firefox");const KS=Kn&&navigator.userAgent.includes("Safari")&&!qS;function YS(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,borderColor:s,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:C,fontSizeLarge:y,heightTiny:T,heightSmall:P,heightMedium:A,heightLarge:M,actionColor:v,clearColor:w,clearColorHover:_,clearColorPressed:H,placeholderColor:O,placeholderColorDisabled:$,iconColor:K,iconColorDisabled:ie,iconColorHover:be,iconColorPressed:ce,fontWeight:J}=e;return{...ah,fontWeight:J,countTextColorDisabled:r,countTextColor:o,heightTiny:T,heightSmall:P,heightMedium:A,heightLarge:M,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:C,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:v,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:n,placeholderColor:O,placeholderColorDisabled:$,color:l,colorHover:l,colorDisabled:a,colorFocus:l,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${F(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 0 2px ${F(d,{alpha:.2})}`,caretColorWarning:d,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:l,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${F(u,{alpha:.2})}`,caretColorError:u,clearColor:w,clearColorHover:_,clearColorPressed:H,iconColor:K,iconColorDisabled:ie,iconColorHover:be,iconColorPressed:ce,suffixTextColor:t}}const Lt={name:"Input",common:V,peers:{Scrollbar:st},self:YS};function ch(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const XS={name:"AutoComplete",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:ch},ZS={name:"AutoComplete",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self:ch};function Ht(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?$n(e):typeof e=="number"?$n(String(e)):null}function jc(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}const{cubicBezierEaseIn:Vc,cubicBezierEaseOut:Gc}=Zo;function JS({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:r="",originalTransition:n=""}={}){return[D("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Vc}, transform ${t} ${Vc} ${n&&`,${n}`}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Gc}, transform ${t} ${Gc} ${n&&`,${n}`}`}),D("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${o})`}),D("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}function dh(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:d,modalColor:c,popoverColor:u}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:d,color:Y(r,o),colorModal:Y(c,o),colorPopover:Y(u,o)}}const uh={name:"Avatar",common:V,self:dh},fh={name:"Avatar",common:j,self:dh};function hh(){return{gap:"-12px"}}const QS={name:"AvatarGroup",common:V,peers:{Avatar:uh},self:hh};var ph={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};const ew={name:"BackTop",common:j,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return{...ph,color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,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)"}}};let Ir=0,Uc="",qc="",Kc="",Yc="";const Xc=se("0px");function tw(e){if(typeof document>"u")return;const t=document.documentElement;let o,r=!1;const n=()=>{t.style.marginRight=Uc,t.style.overflow=qc,t.style.overflowX=Kc,t.style.overflowY=Yc,Xc.value="0px"};bo(()=>{o=Nt(e,i=>{if(i){if(!Ir){const l=window.innerWidth-t.offsetWidth;l>0&&(Uc=t.style.marginRight,t.style.marginRight=`${l}px`,Xc.value=`${l}px`),qc=t.style.overflow,Kc=t.style.overflowX,Yc=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Ir++}else Ir--,Ir||n(),r=!1},{immediate:!0})}),Gt(()=>{o?.(),r&&(Ir--,Ir||n(),r=!1)})}function ow(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return{...ph,color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,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 rw={name:"BackTop",common:V,self:ow},nw={name:"Badge",common:j,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},{cubicBezierEaseInOut:Bo}=Zo;function iw({duration:e=".2s",delay:t=".1s"}={}){return[D("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),D("&.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; + `),D("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${Bo}, + max-width ${e} ${Bo} ${t}, + margin-left ${e} ${Bo} ${t}, + margin-right ${e} ${Bo} ${t}; + `),D("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${Bo} ${t}, + max-width ${e} ${Bo}, + margin-left ${e} ${Bo}, + margin-right ${e} ${Bo}; + `)]}var lw=oe("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),aw=Ae({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){rl("-base-wave",lw,uo(e,"clsPrefix"));const t=se(null),o=se(!1);let r=null;return Gt(()=>{r!==null&&window.clearTimeout(r)}),{active:o,selfRef:t,play(){r!==null&&(window.clearTimeout(r),o.value=!1,r=null),gr(()=>{t.value?.offsetHeight,o.value=!0,r=window.setTimeout(()=>{o.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return k(),pe("div",{ref:"selfRef","aria-hidden":!0,class:le([`${e}-base-wave`,this.active&&`${e}-base-wave--active`])},null,2)}});function sw(e){const{errorColor:t,infoColor:o,successColor:r,warningColor:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}const cw={name:"Badge",common:V,self:sw};var dw={fontWeightActive:"400"};function mh(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:l}=e;return{...dw,fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:l,separatorColor:o}}const uw={name:"Breadcrumb",common:V,self:mh},fw={name:"Breadcrumb",common:j,self:mh};var hw={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 gh(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:d,opacityDisabled:c,textColor2:u,textColor3:f,primaryColorHover:h,primaryColorPressed:p,borderColor:g,primaryColor:b,baseColor:C,infoColor:y,infoColorHover:T,infoColorPressed:P,successColor:A,successColorHover:M,successColorPressed:v,warningColor:w,warningColorHover:_,warningColorPressed:H,errorColor:O,errorColorHover:$,errorColorPressed:K,fontWeight:ie,buttonColor2:be,buttonColor2Hover:ce,buttonColor2Pressed:J,fontWeightStrong:ue}=e;return{...hw,heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:d,opacityDisabled:c,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:be,colorSecondaryHover:ce,colorSecondaryPressed:J,colorTertiary:be,colorTertiaryHover:ce,colorTertiaryPressed:J,colorQuaternary:"#0000",colorQuaternaryHover:ce,colorQuaternaryPressed:J,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:f,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:u,textColorText:u,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:u,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:b,colorPrimary:b,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:b,textColorPrimary:C,textColorHoverPrimary:C,textColorPressedPrimary:C,textColorFocusPrimary:C,textColorDisabledPrimary:C,textColorTextPrimary:b,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:u,textColorGhostPrimary:b,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:b,borderPrimary:`1px solid ${b}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${b}`,rippleColorPrimary:b,colorInfo:y,colorHoverInfo:T,colorPressedInfo:P,colorFocusInfo:T,colorDisabledInfo:y,textColorInfo:C,textColorHoverInfo:C,textColorPressedInfo:C,textColorFocusInfo:C,textColorDisabledInfo:C,textColorTextInfo:y,textColorTextHoverInfo:T,textColorTextPressedInfo:P,textColorTextFocusInfo:T,textColorTextDisabledInfo:u,textColorGhostInfo:y,textColorGhostHoverInfo:T,textColorGhostPressedInfo:P,textColorGhostFocusInfo:T,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${T}`,borderPressedInfo:`1px solid ${P}`,borderFocusInfo:`1px solid ${T}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:A,colorHoverSuccess:M,colorPressedSuccess:v,colorFocusSuccess:M,colorDisabledSuccess:A,textColorSuccess:C,textColorHoverSuccess:C,textColorPressedSuccess:C,textColorFocusSuccess:C,textColorDisabledSuccess:C,textColorTextSuccess:A,textColorTextHoverSuccess:M,textColorTextPressedSuccess:v,textColorTextFocusSuccess:M,textColorTextDisabledSuccess:u,textColorGhostSuccess:A,textColorGhostHoverSuccess:M,textColorGhostPressedSuccess:v,textColorGhostFocusSuccess:M,textColorGhostDisabledSuccess:A,borderSuccess:`1px solid ${A}`,borderHoverSuccess:`1px solid ${M}`,borderPressedSuccess:`1px solid ${v}`,borderFocusSuccess:`1px solid ${M}`,borderDisabledSuccess:`1px solid ${A}`,rippleColorSuccess:A,colorWarning:w,colorHoverWarning:_,colorPressedWarning:H,colorFocusWarning:_,colorDisabledWarning:w,textColorWarning:C,textColorHoverWarning:C,textColorPressedWarning:C,textColorFocusWarning:C,textColorDisabledWarning:C,textColorTextWarning:w,textColorTextHoverWarning:_,textColorTextPressedWarning:H,textColorTextFocusWarning:_,textColorTextDisabledWarning:u,textColorGhostWarning:w,textColorGhostHoverWarning:_,textColorGhostPressedWarning:H,textColorGhostFocusWarning:_,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${_}`,borderPressedWarning:`1px solid ${H}`,borderFocusWarning:`1px solid ${_}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:O,colorHoverError:$,colorPressedError:K,colorFocusError:$,colorDisabledError:O,textColorError:C,textColorHoverError:C,textColorPressedError:C,textColorFocusError:C,textColorDisabledError:C,textColorTextError:O,textColorTextHoverError:$,textColorTextPressedError:K,textColorTextFocusError:$,textColorTextDisabledError:u,textColorGhostError:O,textColorGhostHoverError:$,textColorGhostPressedError:K,textColorGhostFocusError:$,textColorGhostDisabledError:O,borderError:`1px solid ${O}`,borderHoverError:`1px solid ${$}`,borderPressedError:`1px solid ${K}`,borderFocusError:`1px solid ${$}`,borderDisabledError:`1px solid ${O}`,rippleColorError:O,waveOpacity:"0.6",fontWeight:ie,fontWeightStrong:ue}}const bt={name:"Button",common:V,self:gh},Tt={name:"Button",common:j,self(e){const t=gh(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}};function tr(e){return Y(e,[255,255,255,.16])}function ai(e){return Y(e,[0,0,0,.12])}const pw="n-button-group";var mw=D([oe("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); + `,[ne("color",[re("border",{borderColor:"var(--n-border-color)"}),ne("disabled",[re("border",{borderColor:"var(--n-border-color-disabled)"})]),oa("disabled",[D("&:focus",[re("state-border",{borderColor:"var(--n-border-color-focus)"})]),D("&:hover",[re("state-border",{borderColor:"var(--n-border-color-hover)"})]),D("&:active",[re("state-border",{borderColor:"var(--n-border-color-pressed)"})]),ne("pressed",[re("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),ne("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[re("border",{border:"var(--n-border-disabled)"})]),oa("disabled",[D("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[re("state-border",{border:"var(--n-border-focus)"})]),D("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[re("state-border",{border:"var(--n-border-hover)"})]),D("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[re("state-border",{border:"var(--n-border-pressed)"})]),ne("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[re("state-border",{border:"var(--n-border-pressed)"})])]),ne("loading","cursor: wait;"),oe("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); + `,[ne("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Kn&&"MozBoxSizing"in document.createElement("div").style?D("&::moz-focus-inner",{border:0}):null,re("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; + `),re("border",` + border: var(--n-border); + `),re("state-border",` + border: var(--n-border); + border-color: #0000; + z-index: 1; + `),re("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; + `,[oe("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; + `,[Mi({top:"50%",originalTransform:"translateY(-50%)"})]),iw()]),re("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[D("~",[re("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),ne("block",` + display: flex; + width: 100%; + `),ne("dashed",[re("border, state-border",{borderStyle:"dashed !important"})]),ne("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),D("@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)"}}),D("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]);const gw={...Pt.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:!KS},spinProps:Object},fa=Ae({name:"Button",props:gw,slots:Object,setup(e){const t=se(null),o=se(null),r=se(!1),n=ca(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=De(pw,{}),{inlineThemeDisabled:l,mergedClsPrefixRef:a,mergedRtlRef:s,mergedComponentPropsRef:d}=Mo(e),{mergedSizeRef:c}=DS({},{defaultSize:"medium",mergedSize:A=>{const{size:M}=e;if(M)return M;const{size:v}=i;if(v)return v;const{mergedSize:w}=A||{};if(w)return w.value;const _=d?.value?.Button?.size;return _||"medium"}}),u=X(()=>e.focusable&&!e.disabled),f=A=>{u.value||A.preventDefault(),!e.nativeFocusBehavior&&(A.preventDefault(),!e.disabled&&u.value&&t.value?.focus({preventScroll:!0}))},h=A=>{if(!e.disabled&&!e.loading){const{onClick:M}=e;M&&cr(M,A),e.text||o.value?.play()}},p=A=>{switch(A.key){case"Enter":if(!e.keyboard)return;r.value=!1}},g=A=>{switch(A.key){case"Enter":if(!e.keyboard||e.loading){A.preventDefault();return}r.value=!0}},b=()=>{r.value=!1},C=Pt("Button","-button",mw,bt,e,a),y=qr("Button",s,a),T=X(()=>{const{common:{cubicBezierEaseInOut:A,cubicBezierEaseOut:M},self:v}=C.value,{rippleDuration:w,opacityDisabled:_,fontWeight:H,fontWeightStrong:O}=v,$=c.value,{dashed:K,type:ie,ghost:be,text:ce,color:J,round:ue,circle:He,textColor:$e,secondary:Le,tertiary:ke,quaternary:nt,strong:Je}=e,vt={"--n-font-weight":Je?O:H};let Se={"--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 z=ie==="tertiary",ee=ie==="default",L=z?"default":ie;if(ce){const I=$e||J;Se={"--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":I||v[Ce("textColorText",L)],"--n-text-color-hover":I?tr(I):v[Ce("textColorTextHover",L)],"--n-text-color-pressed":I?ai(I):v[Ce("textColorTextPressed",L)],"--n-text-color-focus":I?tr(I):v[Ce("textColorTextHover",L)],"--n-text-color-disabled":I||v[Ce("textColorTextDisabled",L)]}}else if(be||K){const I=$e||J;Se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":J||v[Ce("rippleColor",L)],"--n-text-color":I||v[Ce("textColorGhost",L)],"--n-text-color-hover":I?tr(I):v[Ce("textColorGhostHover",L)],"--n-text-color-pressed":I?ai(I):v[Ce("textColorGhostPressed",L)],"--n-text-color-focus":I?tr(I):v[Ce("textColorGhostHover",L)],"--n-text-color-disabled":I||v[Ce("textColorGhostDisabled",L)]}}else if(Le){const I=ee?v.textColor:z?v.textColorTertiary:v[Ce("color",L)],Z=J||I,q=ie!=="default"&&ie!=="tertiary";Se={"--n-color":q?F(Z,{alpha:Number(v.colorOpacitySecondary)}):v.colorSecondary,"--n-color-hover":q?F(Z,{alpha:Number(v.colorOpacitySecondaryHover)}):v.colorSecondaryHover,"--n-color-pressed":q?F(Z,{alpha:Number(v.colorOpacitySecondaryPressed)}):v.colorSecondaryPressed,"--n-color-focus":q?F(Z,{alpha:Number(v.colorOpacitySecondaryHover)}):v.colorSecondaryHover,"--n-color-disabled":v.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ke||nt){const I=ee?v.textColor:z?v.textColorTertiary:v[Ce("color",L)],Z=J||I;ke?(Se["--n-color"]=v.colorTertiary,Se["--n-color-hover"]=v.colorTertiaryHover,Se["--n-color-pressed"]=v.colorTertiaryPressed,Se["--n-color-focus"]=v.colorSecondaryHover,Se["--n-color-disabled"]=v.colorTertiary):(Se["--n-color"]=v.colorQuaternary,Se["--n-color-hover"]=v.colorQuaternaryHover,Se["--n-color-pressed"]=v.colorQuaternaryPressed,Se["--n-color-focus"]=v.colorQuaternaryHover,Se["--n-color-disabled"]=v.colorQuaternary),Se["--n-ripple-color"]="#0000",Se["--n-text-color"]=Z,Se["--n-text-color-hover"]=Z,Se["--n-text-color-pressed"]=Z,Se["--n-text-color-focus"]=Z,Se["--n-text-color-disabled"]=Z}else Se={"--n-color":J||v[Ce("color",L)],"--n-color-hover":J?tr(J):v[Ce("colorHover",L)],"--n-color-pressed":J?ai(J):v[Ce("colorPressed",L)],"--n-color-focus":J?tr(J):v[Ce("colorFocus",L)],"--n-color-disabled":J||v[Ce("colorDisabled",L)],"--n-ripple-color":J||v[Ce("rippleColor",L)],"--n-text-color":$e||(J?v.textColorPrimary:z?v.textColorTertiary:v[Ce("textColor",L)]),"--n-text-color-hover":$e||(J?v.textColorHoverPrimary:v[Ce("textColorHover",L)]),"--n-text-color-pressed":$e||(J?v.textColorPressedPrimary:v[Ce("textColorPressed",L)]),"--n-text-color-focus":$e||(J?v.textColorFocusPrimary:v[Ce("textColorFocus",L)]),"--n-text-color-disabled":$e||(J?v.textColorDisabledPrimary:v[Ce("textColorDisabled",L)])};let fe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};ce?fe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:fe={"--n-border":v[Ce("border",L)],"--n-border-hover":v[Ce("borderHover",L)],"--n-border-pressed":v[Ce("borderPressed",L)],"--n-border-focus":v[Ce("borderFocus",L)],"--n-border-disabled":v[Ce("borderDisabled",L)]};const{[Ce("height",$)]:m,[Ce("fontSize",$)]:x,[Ce("padding",$)]:S,[Ce("paddingRound",$)]:E,[Ce("iconSize",$)]:R,[Ce("borderRadius",$)]:B,[Ce("iconMargin",$)]:W,waveOpacity:U}=v;return{"--n-bezier":A,"--n-bezier-ease-out":M,"--n-ripple-duration":w,"--n-opacity-disabled":_,"--n-wave-opacity":U,...vt,...Se,...fe,...{"--n-width":He&&!ce?m:"initial","--n-height":ce?"initial":m,"--n-font-size":x,"--n-padding":He||ce?"initial":ue?E:S,"--n-icon-size":R,"--n-icon-margin":W,"--n-border-radius":ce?"initial":He||ue?m:B}}}),P=l?Pr("button",X(()=>{let A="";const{dashed:M,type:v,ghost:w,text:_,color:H,round:O,circle:$,textColor:K,secondary:ie,tertiary:be,quaternary:ce,strong:J}=e;M&&(A+="a"),w&&(A+="b"),_&&(A+="c"),O&&(A+="d"),$&&(A+="e"),ie&&(A+="f"),be&&(A+="g"),ce&&(A+="h"),J&&(A+="i"),H&&(A+=`j${Wc(H)}`),K&&(A+=`k${Wc(K)}`);const{value:ue}=c;return A+=`l${ue[0]}`,A+=`m${v[0]}`,A}),T,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:a,mergedFocusable:u,mergedSize:c,showBorder:n,enterPressed:r,rtlEnabled:y,handleMousedown:f,handleKeydown:g,handleBlur:b,handleKeyup:p,handleClick:h,customColorCssVars:X(()=>{const{color:A}=e;if(!A)return null;const M=tr(A);return{"--n-border-color":A,"--n-border-color-hover":M,"--n-border-color-pressed":ai(A),"--n-border-color-focus":M,"--n-border-color-disabled":A}}),cssVars:l?void 0:T,themeClass:P?.themeClass,onRender:P?.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o?.();const r=Kt(this.$slots.default,n=>n&&(k(),pe("span",{class:le(`${e}-button__content`)},[te(()=>n)],2)));return k(),ae(t,{ref:"selfElRef",class:le([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:Be(this.cssVars),disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},{default:so(()=>[te(()=>this.iconPlacement==="right"&&r),je(ih,{width:!0},{default:()=>Kt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&(k(),pe("span",{class:le(`${e}-button__icon`),style:Be({margin:j1(this.$slots.default)?"0":""})},[je(Va,null,{default:()=>this.loading?(k(),ae(sh,Bt({clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20},this.spinProps),null,16,["clsPrefix","class"])):(k(),pe("div",{key:"icon",class:le(`${e}-icon-slot`),role:"none"},[this.renderIcon?(k(),pe(Te,{key:0},[te(()=>this.renderIcon())],64)):(k(),pe(Te,{key:1},[te(()=>n)],64))],2))},1024)],6)))},1024),te(()=>this.iconPlacement==="left"&&r),this.text?te(()=>null):(k(),ae(aw,{key:0,ref:"waveElRef",clsPrefix:e},null,8,["clsPrefix"])),this.showBorder?(k(),pe("div",{key:2,"aria-hidden":!0,class:le(`${e}-button__border`),style:Be(this.customColorCssVars)},null,6)):te(()=>null),this.showBorder?(k(),pe("div",{key:4,"aria-hidden":!0,class:le(`${e}-button__state-border`),style:Be(this.customColorCssVars)},null,6)):te(()=>null)]),_:2},1032,["class","tabindex","type","style","disabled","onClick","onBlur","onMousedown","onKeyup","onKeydown"])}}),X_=fa;var bw={titleFontSize:"22px"};function bh(e){const{borderRadius:t,fontSize:o,lineHeight:r,textColor2:n,textColor1:i,textColorDisabled:l,dividerColor:a,fontWeightStrong:s,primaryColor:d,baseColor:c,hoverColor:u,cardColor:f,modalColor:h,popoverColor:p}=e;return{...bw,borderRadius:t,borderColor:Y(f,a),borderColorModal:Y(h,a),borderColorPopover:Y(p,a),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:l,fontSize:o,lineHeight:r,dateColorCurrent:d,dateTextColorCurrent:c,cellColorHover:Y(f,u),cellColorHoverModal:Y(h,u),cellColorHoverPopover:Y(p,u),cellColor:f,cellColorModal:h,cellColorPopover:p,barColor:d}}const vw={name:"Calendar",common:V,peers:{Button:bt},self:bh};var Cw={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 vh(e){const{primaryColor:t,borderRadius:o,lineHeight:r,fontSize:n,cardColor:i,textColor2:l,textColor1:a,dividerColor:s,fontWeightStrong:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:h,closeColorPressed:p,modalColor:g,boxShadow1:b,popoverColor:C,actionColor:y}=e;return{...Cw,lineHeight:r,color:i,colorModal:g,colorPopover:C,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:l,titleTextColor:a,borderColor:s,actionColor:y,titleFontWeight:d,closeColorHover:h,closeColorPressed:p,closeBorderRadius:o,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:b,borderRadius:o}}const Ga={name:"Card",common:V,self:vh},Ch={name:"Card",common:j,self(e){const t=vh(e),{cardColor:o,modalColor:r,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=n,t}},Zc=oe("card-content",` + flex: 1; + min-width: 0; + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); +`);var xw=D([oe("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); + `,[Yu({background:"var(--n-color-modal)"}),ne("hoverable",[D("&:hover","box-shadow: var(--n-box-shadow);")]),ne("content-segmented",[D(">",[oe("card-content",` + padding-top: var(--n-padding-bottom); + `),re("content-scrollbar",[D(">",[oe("scrollbar-container",[D(">",[oe("card-content",` + padding-top: var(--n-padding-bottom); + `)])])])])])]),ne("content-soft-segmented",[D(">",[oe("card-content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `),re("content-scrollbar",[D(">",[oe("scrollbar-container",[D(">",[oe("card-content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])])])])])]),ne("footer-segmented",[D(">",[re("footer",` + padding-top: var(--n-padding-bottom); + `)])]),ne("footer-soft-segmented",[D(">",[re("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),D(">",[oe("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); + `,[re("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); + `),re("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); + `),re("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),re("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); + `),Zc,oe("card-content",[D("&:first-child",` + padding-top: var(--n-padding-bottom); + `)]),re("content-scrollbar",` + display: flex; + flex-direction: column; + `,[D(">",[oe("scrollbar-container",[D(">",[Zc])])]),D("&:first-child >",[oe("scrollbar-container",[D(">",[oe("card-content",` + padding-top: var(--n-padding-bottom); + `)])])])]),re("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); + `,[D("&:first-child",` + padding-top: var(--n-padding-bottom); + `)]),re("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); + `)]),oe("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[D("img",` + display: block; + width: 100%; + `)]),ne("bordered",` + border: 1px solid var(--n-border-color); + `,[D("&:target","border-color: var(--n-color-target);")]),ne("action-segmented",[D(">",[re("action",[D("&:not(:first-child)",` + border-top: 1px solid var(--n-border-color); + `)])])]),ne("content-segmented, content-soft-segmented",[D(">",[oe("card-content",` + transition: border-color 0.3s var(--n-bezier); + `,[D("&:not(:first-child)",` + border-top: 1px solid var(--n-border-color); + `)]),re("content-scrollbar",` + transition: border-color 0.3s var(--n-bezier); + `,[D("&:not(:first-child)",` + border-top: 1px solid var(--n-border-color); + `)])])]),ne("footer-segmented, footer-soft-segmented",[D(">",[re("footer",` + transition: border-color 0.3s var(--n-bezier); + `,[D("&:not(:first-child)",` + border-top: 1px solid var(--n-border-color); + `)])])]),ne("embedded",` + background-color: var(--n-color-embedded); + `)]),Ku(oe("card",` + background: var(--n-color-modal); + `,[ne("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),Rv(oe("card",` + background: var(--n-color-popover); + `,[ne("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]);const Ua={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,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},yw=tl(Ua),Sw={...Pt.props,...Ua};var ww=Ae({name:"Card",props:Sw,slots:Object,setup(e){const t=()=>{const{onClose:u}=e;u&&cr(u)},{inlineThemeDisabled:o,mergedClsPrefixRef:r,mergedRtlRef:n,mergedComponentPropsRef:i}=Mo(e),l=Pt("Card","-card",xw,Ga,e,r),a=qr("Card",n,r),s=X(()=>e.size||i?.value?.Card?.size||"medium"),d=X(()=>{const u=s.value,{self:{color:f,colorModal:h,colorTarget:p,textColor:g,titleTextColor:b,titleFontWeight:C,borderColor:y,actionColor:T,borderRadius:P,lineHeight:A,closeIconColor:M,closeIconColorHover:v,closeIconColorPressed:w,closeColorHover:_,closeColorPressed:H,closeBorderRadius:O,closeIconSize:$,closeSize:K,boxShadow:ie,colorPopover:be,colorEmbedded:ce,colorEmbeddedModal:J,colorEmbeddedPopover:ue,[Ce("padding",u)]:He,[Ce("fontSize",u)]:$e,[Ce("titleFontSize",u)]:Le},common:{cubicBezierEaseInOut:ke}}=l.value,{top:nt,left:Je,bottom:vt}=jo(He);return{"--n-bezier":ke,"--n-border-radius":P,"--n-color":f,"--n-color-modal":h,"--n-color-popover":be,"--n-color-embedded":ce,"--n-color-embedded-modal":J,"--n-color-embedded-popover":ue,"--n-color-target":p,"--n-text-color":g,"--n-line-height":A,"--n-action-color":T,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-close-icon-color":M,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":w,"--n-close-color-hover":_,"--n-close-color-pressed":H,"--n-border-color":y,"--n-box-shadow":ie,"--n-padding-top":nt,"--n-padding-bottom":vt,"--n-padding-left":Je,"--n-font-size":$e,"--n-title-font-size":Le,"--n-close-size":K,"--n-close-icon-size":$,"--n-close-border-radius":O}}),c=o?Pr("card",X(()=>s.value[0]),d,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:l,handleCloseClick:t,cssVars:o?void 0:d,themeClass:c?.themeClass,onRender:c?.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:r,rtlEnabled:n,onRender:i,embedded:l,tag:a,$slots:s}=this;return i?.(),k(),ae(a,{class:le([`${r}-card`,this.themeClass,l&&`${r}-card--embedded`,{[`${r}-card--rtl`]:n,[`${r}-card--content-scrollable`]:this.contentScrollable,[`${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`]:o}]),style:Be(this.cssVars),role:this.role},{default:so(()=>[te(()=>Kt(s.cover,d=>{const c=this.cover?qt([this.cover()]):d;return c&&(k(),pe("div",{class:le(`${r}-card-cover`),role:"none"},[te(()=>c)],2))})),te(()=>Kt(s.header,d=>{const{title:c}=this,u=c?qt(typeof c=="function"?[c()]:[c]):d;return u||this.closable?(k(),pe("div",{key:1,class:le([`${r}-card-header`,this.headerClass]),style:Be(this.headerStyle),role:"heading"},[Pe("div",{class:le(`${r}-card-header__main`),role:"heading"},[te(()=>u)],2),te(()=>Kt(s["header-extra"],f=>{const h=this.headerExtra?qt([this.headerExtra()]):f;return h&&(k(),pe("div",{class:le([`${r}-card-header__extra`,this.headerExtraClass]),style:Be(this.headerExtraStyle)},[te(()=>h)],6))})),te(()=>this.closable&&(k(),ae(al,{clsPrefix:r,class:le(`${r}-card-header__close`),onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0},null,8,["clsPrefix","class","onClick","focusable"])))],6)):null})),te(()=>Kt(s.default,d=>{const{content:c}=this,u=c?qt(typeof c=="function"?[c()]:[c]):d;return u?this.contentScrollable?(k(),ae(ll,{key:2,class:le(`${r}-card__content-scrollbar`),contentClass:[`${r}-card-content`,this.contentClass],contentStyle:this.contentStyle},{default:()=>u},1032,["class","contentClass","contentStyle"])):(k(),pe("div",{key:3,class:le([`${r}-card-content`,this.contentClass]),style:Be(this.contentStyle),role:"none"},[te(()=>u)],6)):null})),te(()=>Kt(s.footer,d=>{const c=this.footer?qt([this.footer()]):d;return c&&(k(),pe("div",{class:le([`${r}-card__footer`,this.footerClass]),style:Be(this.footerStyle),role:"none"},[te(()=>c)],6))})),te(()=>Kt(s.action,d=>{const c=this.action?qt([this.action()]):d;return c&&(k(),pe("div",{class:le(`${r}-card__action`),role:"none"},[te(()=>c)],2))}))]),_:2},1032,["class","style","role"])}});function xh(){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 Pw={name:"Carousel",common:V,self:xh};var Tw={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function yh(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:l,borderColor:a,primaryColor:s,textColor2:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:p}=e;return{...Tw,labelLineHeight:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:l,checkMarkColorDisabledChecked:l,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${F(s,{alpha:.3})}`,textColor:d,textColorDisabled:l}}const Kr={name:"Checkbox",common:V,self:yh},Yr={name:"Checkbox",common:j,self(e){const{cardColor:t}=e,o=yh(e);return o.color="#0000",o.checkMarkColor=t,o}};function Ew(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:d,errorColor:c,errorColorHover:u,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:g,clearColorHover:b,clearColorPressed:C,placeholderColor:y,placeholderColorDisabled:T,fontSizeTiny:P,fontSizeSmall:A,fontSizeMedium:M,fontSizeLarge:v,heightTiny:w,heightSmall:_,heightMedium:H,heightLarge:O,fontWeight:$}=e;return{...rh,fontSizeTiny:P,fontSizeSmall:A,fontSizeMedium:M,fontSizeLarge:v,heightTiny:w,heightSmall:_,heightMedium:H,heightLarge:O,borderRadius:t,fontWeight:$,textColor:o,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:T,color:n,colorDisabled:i,colorActive:n,border:`1px solid ${f}`,borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${F(l,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${F(l,{alpha:.2})}`,caretColor:l,arrowColor:h,arrowColorDisabled:p,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${d}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${F(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${F(s,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:s,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${F(c,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${F(c,{alpha:.2})}`,colorActiveError:n,caretColorError:c,clearColor:g,clearColorHover:b,clearColorPressed:C}}const qa={name:"InternalSelection",common:V,peers:{Popover:Tr},self:Ew};function Sh(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:l,textColorDisabled:a,dividerColor:s,hoverColor:d,fontSizeMedium:c,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:c,optionColorHover:d,optionTextColor:n,optionTextColorActive:l,optionTextColorDisabled:a,optionCheckMarkColor:l,loadingColor:l,columnWidth:"180px"}}const _w={name:"Cascader",common:V,peers:{InternalSelectMenu:Gn,InternalSelection:qa,Scrollbar:st,Checkbox:Kr,Empty:zo},self:Sh},$w={name:"Cascader",common:j,peers:{InternalSelectMenu:Un,InternalSelection:Oa,Scrollbar:gt,Checkbox:Yr,Empty:zo},self:Sh},wh=new WeakSet;function Z_(e){wh.add(e)}function Rw(e){return!wh.has(e)}const Ph={name:"Code",common:j,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function Iw(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,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:n}}const Th={name:"Code",common:V,self:Iw};function Eh(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:l}=e;return{titleFontSize:l,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:l,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const Aw={name:"Collapse",common:V,self:Eh},Hw={name:"Collapse",common:j,self:Eh};function _h(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const Mw={name:"CollapseTransition",common:V,self:_h};function $h(e){const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:l,heightSmall:a,heightMedium:s,heightLarge:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${l}`,heightSmall:a,heightMedium:s,heightLarge:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}}const zw={name:"ColorPicker",common:V,peers:{Input:Lt,Button:bt},self:$h},Fw={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:()=>(zn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var Bw=Ae({name:"ConfigProvider",alias:["App"],props:Fw,setup(e){const t=De(Yo,null),o=X(()=>{const{theme:g}=e;if(g===null)return;const b=t?.mergedThemeRef.value;return g===void 0?b:b===void 0?g:Object.assign({},b,g)}),r=X(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t?.mergedThemeOverridesRef.value;{const b=t?.mergedThemeOverridesRef.value;return b===void 0?g:dn({},b,g)}}}),n=ca(()=>{const{namespace:g}=e;return g===void 0?t?.mergedNamespaceRef.value:g}),i=ca(()=>{const{bordered:g}=e;return g===void 0?t?.mergedBorderedRef.value:g}),l=X(()=>{const{icons:g}=e;return g===void 0?t?.mergedIconsRef.value:g}),a=X(()=>{const{componentOptions:g}=e;return g!==void 0?g:t?.mergedComponentPropsRef.value}),s=X(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:"n"}),d=X(()=>{const{rtl:g}=e;if(g===void 0)return t?.mergedRtlRef.value;const b={};for(const C of g)b[C.name]=Vl(C),C.peers?.forEach(y=>{y.name in b||(b[y.name]=Vl(y))});return b}),c=X(()=>e.breakpoints||t?.mergedBreakpointsRef.value),u=e.inlineThemeDisabled||t?.inlineThemeDisabled,f=e.preflightStyleDisabled||t?.preflightStyleDisabled,h=e.styleMountTarget||t?.styleMountTarget,p=X(()=>{const{value:g}=o,{value:b}=r,C=b&&Object.keys(b).length!==0,y=g?.name;return y?C?`${y}-${An(JSON.stringify(r.value))}`:y:C?An(JSON.stringify(r.value)):""});return at(Yo,{mergedThemeHashRef:p,mergedBreakpointsRef:c,mergedRtlRef:d,mergedIconsRef:l,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:X(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t?.mergedLocaleRef.value:g}),mergedDateLocaleRef:X(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t?.mergedDateLocaleRef.value:g}),mergedHljsRef:X(()=>{const{hljs:g}=e;return g===void 0?t?.mergedHljsRef.value:g}),mergedKatexRef:X(()=>{const{katex:g}=e;return g===void 0?t?.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1,styleMountTarget:h}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){return this.abstract?this.$slots.default?.():Rt(this.as||this.tag,{class:`${this.mergedClsPrefix||"n"}-config-provider`},this.$slots.default?.())}});const Rh={name:"Popselect",common:j,peers:{Popover:Er,InternalSelectMenu:Un}};function Ka(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,o)}function kw(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Ih={name:"Popselect",common:V,peers:{Popover:Tr,InternalSelectMenu:Gn},self:kw};function Ah(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Hh={name:"Select",common:V,peers:{InternalSelection:qa,InternalSelectMenu:Gn},self:Ah},Mh={name:"Select",common:j,peers:{InternalSelection:Oa,InternalSelectMenu:Un},self:Ah};var Dw={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 zh(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:l,borderColor:a,borderRadius:s,fontSizeTiny:d,fontSizeSmall:c,fontSizeMedium:u,heightTiny:f,heightSmall:h,heightMedium:p}=e;return{...Dw,buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:l,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 ${o}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:s,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:d,itemFontSizeMedium:c,itemFontSizeLarge:u,jumperFontSizeSmall:d,jumperFontSizeMedium:c,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:l}}const Fh={name:"Pagination",common:V,peers:{Select:Hh,Input:Lt,Popselect:Ih},self:zh},Bh={name:"Pagination",common:j,peers:{Select:Mh,Input:Dt,Popselect:Rh},self(e){const{primaryColor:t,opacity3:o}=e,r=F(t,{alpha:Number(o)}),n=zh(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}};var Lw={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 kh(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:l,borderRadius:a,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:u,heightSmall:f,heightMedium:h,heightLarge:p,heightHuge:g,textColor3:b,opacityDisabled:C}=e;return{...Lw,optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:g,borderRadius:a,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:F(t,{alpha:.1}),groupHeaderTextColor:b,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:C}}const Ya={name:"Dropdown",common:V,peers:{Popover:Tr},self:kh},Xa={name:"Dropdown",common:j,peers:{Popover:Er},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=kh(e);return n.colorInverted=r,n.optionColorActive=F(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}};var Dh={padding:"8px 14px"};const sl={name:"Tooltip",common:j,peers:{Popover:Er},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return{...Dh,borderRadius:t,boxShadow:o,color:r,textColor:n}}};var Lh={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};const Oh={name:"Radio",common:j,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return{...Lh,labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${F(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:l,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${F(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s}}},Wh={name:"Ellipsis",common:j,peers:{Tooltip:sl}};function Ow(e){const{borderRadius:t,boxShadow2:o,baseColor:r}=e;return{...Dh,borderRadius:t,boxShadow:o,color:Y(r,"rgba(0, 0, 0, .85)"),textColor:r}}const cl={name:"Tooltip",common:V,peers:{Popover:Tr},self:Ow},Nh={name:"Ellipsis",common:V,peers:{Tooltip:cl}};function Ww(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return{...Lh,labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${F(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:l,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${F(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s}}const jh={name:"Radio",common:V,self:Ww};var Nw={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 Vh(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:l,tableColorHover:a,iconColor:s,primaryColor:d,fontWeightStrong:c,borderRadius:u,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,dividerColor:b,heightSmall:C,opacityDisabled:y,tableColorStriped:T}=e;return{...Nw,actionDividerColor:b,lineHeight:f,borderRadius:u,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,borderColor:Y(t,b),tdColorHover:Y(t,a),tdColorSorting:Y(t,a),tdColorStriped:Y(t,T),thColor:Y(t,l),thColorHover:Y(Y(t,l),a),thColorSorting:Y(Y(t,l),a),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:c,thButtonColorHover:a,thIconColor:s,thIconColorActive:d,borderColorModal:Y(o,b),tdColorHoverModal:Y(o,a),tdColorSortingModal:Y(o,a),tdColorStripedModal:Y(o,T),thColorModal:Y(o,l),thColorHoverModal:Y(Y(o,l),a),thColorSortingModal:Y(Y(o,l),a),tdColorModal:o,borderColorPopover:Y(r,b),tdColorHoverPopover:Y(r,a),tdColorSortingPopover:Y(r,a),tdColorStripedPopover:Y(r,T),thColorPopover:Y(r,l),thColorHoverPopover:Y(Y(r,l),a),thColorSortingPopover:Y(Y(r,l),a),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:d,loadingSize:C,opacityLoading:y}}const jw={name:"DataTable",common:V,peers:{Button:bt,Checkbox:Kr,Radio:jh,Pagination:Fh,Scrollbar:st,Empty:zo,Popover:Tr,Ellipsis:Nh,Dropdown:Ya},self:Vh},Vw={name:"DataTable",common:j,peers:{Button:Tt,Checkbox:Yr,Radio:Oh,Pagination:Bh,Scrollbar:gt,Empty:wr,Popover:Er,Ellipsis:Wh,Dropdown:Xa},self(e){const t=Vh(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}};function Gh(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:l}}const Gw={name:"Icon",common:V,self:Gh},Uw={name:"Icon",common:j,self:Gh};var qw={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Uh(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:l,boxShadow2:a,borderRadius:s,iconColor:d,iconColorDisabled:c}=e;return{...qw,panelColor:t,panelBoxShadow:a,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:l,itemBorderRadius:s,borderRadius:s,iconColor:d,iconColorDisabled:c}}const qh={name:"TimePicker",common:V,peers:{Scrollbar:st,Button:bt,Input:Lt},self:Uh},Kh={name:"TimePicker",common:j,peers:{Scrollbar:gt,Button:Tt,Input:Dt},self:Uh};var Kw={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 Yh(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:l,borderRadiusSmall:a,iconColor:s,iconColorDisabled:d,textColor1:c,dividerColor:u,boxShadow2:f,borderRadius:h,fontWeightStrong:p}=e;return{...Kw,itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:l,itemColorIncluded:F(l,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:l,itemBorderRadius:a,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:c,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:p,scrollItemBorderRadius:h,iconColor:s,iconColorDisabled:d}}const Yw={name:"DatePicker",common:V,peers:{Input:Lt,Button:bt,TimePicker:qh,Scrollbar:st},self:Yh},Xw={name:"DatePicker",common:j,peers:{Input:Dt,Button:Tt,TimePicker:Kh,Scrollbar:gt},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=Yh(e);return n.itemColorDisabled=Y(t,o),n.itemColorIncluded=F(r,{alpha:.15}),n.itemColorHover=Y(t,o),n}};var Zw={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 Xh(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:l,dividerColor:a,borderRadius:s,fontWeightStrong:d,lineHeight:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h}=e;return{...Zw,lineHeight:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:r,thColor:Y(n,t),thColorModal:Y(i,t),thColorPopover:Y(l,t),thTextColor:r,thFontWeight:d,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:l,borderColor:Y(n,a),borderColorModal:Y(i,a),borderColorPopover:Y(l,a),borderRadius:s}}const Jw={name:"Descriptions",common:V,self:Xh},Qw={name:"Descriptions",common:j,self:Xh},Zh="n-dialog-provider",eP="n-dialog-api",tP="n-dialog-reactive-list";var oP={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 Jh(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,infoColor:d,successColor:c,warningColor:u,errorColor:f,primaryColor:h,dividerColor:p,borderRadius:g,fontWeightStrong:b,lineHeight:C,fontSize:y}=e;return{...oP,fontSize:y,lineHeight:C,border:`1px solid ${p}`,titleTextColor:t,textColor:o,color:r,closeColorHover:a,closeColorPressed:s,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeBorderRadius:g,iconColor:h,iconColorInfo:d,iconColorSuccess:c,iconColorWarning:u,iconColorError:f,borderRadius:g,titleFontWeight:b}}const Za={name:"Dialog",common:V,peers:{Button:bt},self:Jh},Qh={name:"Dialog",common:j,peers:{Button:Tt},self:Jh},dl={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},ep=tl(dl);var rP=D([oe("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); + `,[re("icon",` + color: var(--n-icon-color); + `),ne("bordered",` + border: var(--n-border); + `),ne("icon-top",[re("close",` + margin: var(--n-close-margin); + `),re("icon",` + margin: var(--n-icon-margin); + `),re("content",` + text-align: center; + `),re("title",` + justify-content: center; + `),re("action",` + justify-content: center; + `)]),ne("icon-left",[re("icon",` + margin: var(--n-icon-margin); + `),ne("closable",[re("title",` + padding-right: calc(var(--n-close-size) + 6px); + `)])]),re("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; + `),re("content",` + font-size: var(--n-font-size); + margin: var(--n-content-margin); + position: relative; + word-break: break-word; + `,[ne("last","margin-bottom: 0;")]),re("action",` + display: flex; + justify-content: flex-end; + `,[D("> *:not(:last-child)",` + margin-right: var(--n-action-space); + `)]),re("icon",` + font-size: var(--n-icon-size); + transition: color .3s var(--n-bezier); + `),re("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); + `),oe("dialog-icon-container",` + display: flex; + justify-content: center; + `)]),Ku(oe("dialog",` + width: 446px; + max-width: calc(100vw - 32px); + `)),oe("dialog",[Yu(` + width: 446px; + max-width: calc(100vw - 32px); + `)])]);const nP={default:()=>(k(),ae(Hi)),info:()=>(k(),ae(Hi)),success:()=>(k(),ae(Na)),warning:()=>(k(),ae(ja)),error:()=>(k(),ae(Wa))},tp=Ae({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:{...Pt.props,...dl},slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Mo(e),i=qr("Dialog",n,o),l=X(()=>{const{iconPlacement:h}=e;return h||t?.value?.Dialog?.iconPlacement||"left"});function a(h){const{onPositiveClick:p}=e;p&&p(h)}function s(h){const{onNegativeClick:p}=e;p&&p(h)}function d(){const{onClose:h}=e;h&&h()}const c=Pt("Dialog","-dialog",rP,Za,e,o),u=X(()=>{const{type:h}=e,p=l.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:b,lineHeight:C,border:y,titleTextColor:T,textColor:P,color:A,closeBorderRadius:M,closeColorHover:v,closeColorPressed:w,closeIconColor:_,closeIconColorHover:H,closeIconColorPressed:O,closeIconSize:$,borderRadius:K,titleFontWeight:ie,titleFontSize:be,padding:ce,iconSize:J,actionSpace:ue,contentMargin:He,closeSize:$e,[p==="top"?"iconMarginIconTop":"iconMargin"]:Le,[p==="top"?"closeMarginIconTop":"closeMargin"]:ke,[Ce("iconColor",h)]:nt}}=c.value,Je=jo(Le);return{"--n-font-size":b,"--n-icon-color":nt,"--n-bezier":g,"--n-close-margin":ke,"--n-icon-margin-top":Je.top,"--n-icon-margin-right":Je.right,"--n-icon-margin-bottom":Je.bottom,"--n-icon-margin-left":Je.left,"--n-icon-size":J,"--n-close-size":$e,"--n-close-icon-size":$,"--n-close-border-radius":M,"--n-close-color-hover":v,"--n-close-color-pressed":w,"--n-close-icon-color":_,"--n-close-icon-color-hover":H,"--n-close-icon-color-pressed":O,"--n-color":A,"--n-text-color":P,"--n-border-radius":K,"--n-padding":ce,"--n-line-height":C,"--n-border":y,"--n-content-margin":He,"--n-title-font-size":be,"--n-title-font-weight":ie,"--n-title-text-color":T,"--n-action-space":ue}}),f=r?Pr("dialog",X(()=>`${e.type[0]}${l.value[0]}`),u,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:l,mergedTheme:c,handlePositiveClick:a,handleNegativeClick:s,handleCloseClick:d,cssVars:r?void 0:u,themeClass:f?.themeClass,onRender:f?.onRender}},render(){const{bordered:e,mergedIconPlacement:t,cssVars:o,closable:r,showIcon:n,title:i,content:l,action:a,negativeText:s,positiveText:d,positiveButtonProps:c,negativeButtonProps:u,handlePositiveClick:f,handleNegativeClick:h,mergedTheme:p,loading:g,type:b,mergedClsPrefix:C}=this;this.onRender?.();const y=n?(k(),ae(il,{key:1,clsPrefix:C,class:le(`${C}-dialog__icon`)},{default:()=>Kt(this.$slots.icon,P=>P||(this.icon?Ht(this.icon):nP[this.type]()))},1032,["clsPrefix","class"])):null,T=Kt(this.$slots.action,P=>P||d||s||a?(k(),pe("div",{key:2,class:le([`${C}-dialog__action`,this.actionClass]),style:Be(this.actionStyle)},[te(()=>P||(a?[Ht(a)]:[this.negativeText&&(k(),ae(fa,Bt({key:3,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,ghost:!0,size:"small",onClick:h},u),{default:()=>Ht(this.negativeText)},1040,["theme","themeOverrides","onClick"])),this.positiveText&&(k(),ae(fa,Bt({key:4,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:g,loading:g,onClick:f},c),{default:()=>Ht(this.positiveText)},1040,["theme","themeOverrides","type","disabled","loading","onClick"]))]))],6)):null);return k(),pe("div",{class:le([`${C}-dialog`,this.themeClass,this.closable&&`${C}-dialog--closable`,`${C}-dialog--icon-${t}`,e&&`${C}-dialog--bordered`,this.rtlEnabled&&`${C}-dialog--rtl`]),style:Be(o),role:"dialog"},[r?(k(),pe(Te,{key:0},[te(()=>Kt(this.$slots.close,P=>{const A=[`${C}-dialog__close`,this.rtlEnabled&&`${C}-dialog--rtl`];return P?(k(),pe("div",{key:5,class:le(A)},[te(()=>P)],2)):(k(),ae(al,{key:6,focusable:this.closeFocusable,clsPrefix:C,class:le(A),onClick:this.handleCloseClick},null,8,["focusable","clsPrefix","class","onClick"]))}))],64)):te(()=>null),n&&t==="top"?(k(),pe("div",{key:2,class:le(`${C}-dialog-icon-container`)},[te(()=>y)],2)):te(()=>null),Pe("div",{class:le([`${C}-dialog__title`,this.titleClass]),style:Be(this.titleStyle)},[n&&t==="left"?(k(),pe(Te,{key:0},[te(()=>y)],64)):te(()=>null),te(()=>wc(this.$slots.header,()=>[Ht(i)]))],6),Pe("div",{class:le([`${C}-dialog__content`,T?"":`${C}-dialog__content--last`,this.contentClass]),style:Be(this.contentStyle)},[te(()=>wc(this.$slots.default,()=>[Ht(l)]))],6),te(()=>T)],6)}});function op(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const rp={name:"Modal",common:V,peers:{Scrollbar:st,Dialog:Za,Card:Ga},self:op},iP={name:"Modal",common:j,peers:{Scrollbar:gt,Dialog:Qh,Card:Ch},self:op},ha="n-draggable";function lP(e,t){let o;const r=se(null),n=se(null),i=X(()=>e.value!==!1),l=X(()=>i.value?ha:""),a=X(()=>{const c=e.value;return c===!0||c===!1?!0:c?c.bounds!=="none":!0});function s(c){const u=c.querySelector(`.${ha}`);if(!u||!l.value)return;let f=0,h=0,p=0,g=0,b=0,C=0,y,T=null,P=null;function A(_){_.preventDefault(),y=_;const{x:H,y:O,right:$,bottom:K}=c.getBoundingClientRect();if(h=H,g=O,f=window.innerWidth-$,p=window.innerHeight-K,r.value!==null&&n.value!==null)C=r.value,b=n.value;else{const{left:ie,top:be}=c.style;b=+be.slice(0,-2),C=+ie.slice(0,-2)}}function M(){P&&(r.value=P.x,n.value=P.y,P=null),T=null}function v(_){if(!y)return;const{clientX:H,clientY:O}=y;let $=_.clientX-H,K=_.clientY-O;a.value&&($>f?$=f:-$>h&&($=-h),K>p?K=p:-K>g&&(K=-g)),P={x:$+C,y:K+b},T||(T=requestAnimationFrame(M))}function w(){y=void 0,T&&(cancelAnimationFrame(T),T=null),P&&(r.value=P.x,n.value=P.y,P=null),gr(()=>{t.onEnd(c)})}St("mousedown",u,A),St("mousemove",window,v),St("mouseup",window,w),o=()=>{T&&cancelAnimationFrame(T),rt("mousedown",u,A),rt("mousemove",window,v),rt("mouseup",window,w)}}function d(){o&&(o(),o=void 0),r.value=null,n.value=null}return cu(d),{stopDrag:d,startDrag:s,draggableRef:i,draggableClassRef:l,dragX:r,dragY:n}}const Ja=se(!1);function Jc(){Ja.value=!0}function Qc(){Ja.value=!1}let nn=0;function aP(){return Kn&&(yr(()=>{nn||(window.addEventListener("compositionstart",Jc),window.addEventListener("compositionend",Qc)),nn++}),Gt(()=>{nn<=1?(window.removeEventListener("compositionstart",Jc),window.removeEventListener("compositionend",Qc),nn=0):nn--})),Ja}const Qa={...Ua,...dl},sP=tl(Qa),cP=sP.filter(e=>e!=="onClose"&&e!=="onPositiveClick"&&e!=="onNegativeClick");var dP=Ae({name:"ModalBody",inheritAttrs:!1,slots:Object,props:{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,...Qa,onClickoutside:{type:Function,required:!0},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=se(null),o=se(null),r=se(e.show),n=se(null),i=se(null),l=De(Bf);let a=null;Nt(uo(e,"show"),H=>{H&&(a=l.getMousePosition())},{immediate:!0});const{stopDrag:s,startDrag:d,draggableRef:c,draggableClassRef:u,dragX:f,dragY:h}=lP(uo(e,"draggable"),{onEnd:H=>{C(H)}}),p=X(()=>mr([e.titleClass,u.value])),g=X(()=>mr([e.headerClass,u.value]));Nt(uo(e,"show"),H=>{H&&(r.value=!0)}),tw(X(()=>e.blockScroll&&r.value));function b(){if(l.transformOriginRef.value==="center")return"";const{value:H}=n,{value:O}=i;return H===null||O===null?"":o.value?`${H}px ${O+o.value.containerScrollTop}px`:""}function C(H){if(l.transformOriginRef.value==="center"||!a||!o.value)return;const O=o.value.containerScrollTop,{offsetLeft:$,offsetTop:K}=H,ie=a.y,be=a.x;n.value=-($-be),i.value=-(K-ie-O),H.style.transformOrigin=b()}function y(H){gr(()=>{C(H)})}function T(H){H.style.transformOrigin=b(),e.onBeforeLeave()}function P(H){const O=H;c.value&&d(O),e.onAfterEnter&&e.onAfterEnter(O)}function A(){r.value=!1,n.value=null,i.value=null,s(),e.onAfterLeave()}function M(){const{onClose:H}=e;H&&H()}function v(){e.onNegativeClick()}function w(){e.onPositiveClick()}const _=se(null);return Nt(_,H=>{H&&gr(()=>{const O=H.el;O&&t.value!==O&&(t.value=O)})}),at(I1,t),at(R1,null),at(H1,null),{mergedTheme:l.mergedThemeRef,appear:l.appearRef,isMounted:l.isMountedRef,mergedClsPrefix:l.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,draggableClass:u,displayed:r,childNodeRef:_,cardHeaderClass:g,dialogTitleClass:p,handlePositiveClick:w,handleNegativeClick:v,handleCloseClick:M,handleAfterEnter:P,handleAfterLeave:A,handleBeforeLeave:T,handleEnter:y,dragX:f,dragY:h}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterEnter:r,handleAfterLeave:n,handleBeforeLeave:i,preset:l,mergedClsPrefix:a,dragX:s,dragY:d}=this,c={...t};s!==null&&d!==null&&(c.style=Be([c.style,{left:`${s}px`,top:`${d}px`}]));let u=null;if(!l){if(u=N1("default",e.default,{draggableClass:this.draggableClass}),!u){zn("modal","default slot is empty");return}u=go(u),u.props=Bt({class:`${a}-modal`},c,u.props||{})}return this.displayDirective==="show"||this.displayed||this.show?Gl((k(),pe("div",{key:1,role:"none",class:le([`${a}-modal-body-wrapper`,this.maskHidden&&`${a}-modal-body-wrapper--mask-hidden`])},[(k(),ae(ll,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>(k(),ae(xS,{disabled:!this.trapFocus||this.maskHidden,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>(k(),ae(br,{name:"fade-in-scale-up-transition",appear:this.appear??this.isMounted,onEnter:o,onAfterEnter:r,onAfterLeave:n,onBeforeLeave:i},{default:()=>{const f=[[ks,this.show]];return f.push([U1,this.onClickoutside,void 0,{capture:!0}]),Gl(this.preset==="confirm"||this.preset==="dialog"?(k(),ae(tp,Bt({key:2},c,{class:[`${a}-modal`,c.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},kn(this.$props,ep),{titleClass:this.dialogTitleClass,"aria-modal":"true"}),Bn(e),1040,["class","theme","themeOverrides","titleClass"])):this.preset==="card"?(k(),ae(ww,Bt({key:3},c,{ref:"bodyRef",class:[`${a}-modal`,c.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},kn(this.$props,yw),{headerClass:this.cardHeaderClass,"aria-modal":"true",role:"dialog"}),Bn(e),1040,["class","theme","themeOverrides","headerClass"])):this.childNodeRef=u,f)}},1032,["appear","onEnter","onAfterEnter","onAfterLeave","onBeforeLeave"]))},1032,["disabled","active","onEsc","autoFocus"]))},1032,["theme","themeOverrides","contentClass"]))],2)),[[ks,this.displayDirective==="if"||this.displayed||this.show]]):null}}),uP=D([oe("modal-container",` + position: fixed; + left: 0; + top: 0; + height: 0; + width: 0; + display: flex; + `),oe("modal-mask",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + `,[jf({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),oe("modal-body-wrapper",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: visible; + `,[oe("modal-scroll-content",` + min-height: 100%; + display: flex; + position: relative; + `),ne("mask-hidden","pointer-events: none;",[oe("modal-scroll-content",[D("> *",` + pointer-events: all; + `)])])]),oe("modal",` + position: relative; + align-self: center; + color: var(--n-text-color); + margin: auto; + box-shadow: var(--n-box-shadow); + `,[JS({duration:".25s",enterScale:".5"}),D(`.${ha}`,` + cursor: move; + user-select: none; + `)])]);const fP={...Pt.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},...Qa,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}};var hP=Ae({name:"Modal",inheritAttrs:!1,props:fP,slots:Object,setup(e){const t=se(null),{mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Mo(e),i=Pt("Modal","-modal",uP,rp,e,o),l=Wf(64),a=Of(),s=Nf(),d=e.internalDialog?De(Zh,null):null,c=e.internalModal?De(A1,null):null,u=aP();function f(M){const{onUpdateShow:v,"onUpdate:show":w,onHide:_}=e;v&&cr(v,M),w&&cr(w,M),_&&!M&&_(M)}function h(){const{onClose:M}=e;M?Promise.resolve(M()).then(v=>{v!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:M}=e;M?Promise.resolve(M()).then(v=>{v!==!1&&f(!1)}):f(!1)}function g(){const{onNegativeClick:M}=e;M?Promise.resolve(M()).then(v=>{v!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:M,onBeforeHide:v}=e;M&&cr(M),v&&v()}function C(){const{onAfterLeave:M,onAfterHide:v}=e;M&&cr(M),v&&v()}function y(M){const{onMaskClick:v}=e;v&&v(M),e.maskClosable&&t.value?.contains(Da(M))&&f(!1)}function T(M){e.onEsc?.(),e.show&&e.closeOnEsc&&Rw(M)&&(u.value||f(!1))}at(Bf,{getMousePosition:()=>{const M=d||c;if(M){const{clickedRef:v,clickedPositionRef:w}=M;if(v.value&&w.value)return w.value}return l.value?a.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:s,appearRef:uo(e,"internalAppear"),transformOriginRef:uo(e,"transformOrigin")});const P=X(()=>{const{common:{cubicBezierEaseOut:M},self:{boxShadow:v,color:w,textColor:_}}=i.value;return{"--n-bezier-ease-out":M,"--n-box-shadow":v,"--n-color":w,"--n-text-color":_}}),A=n?Pr("theme-class",void 0,P,e):void 0;return{mergedClsPrefix:o,namespace:r,isMounted:s,containerRef:t,presetProps:X(()=>kn(e,cP)),handleEsc:T,handleAfterLeave:C,handleClickoutside:y,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:h,cssVars:n?void 0:P,themeClass:A?.themeClass,onRender:A?.onRender}},render(){const{mergedClsPrefix:e}=this;return k(),ae(X1,{to:this.to,show:this.show},{default:()=>{this.onRender?.();const{showMask:t}=this;return Gl((k(),pe("div",{role:"none",ref:"containerRef",class:le([`${e}-modal-container`,this.themeClass,this.namespace]),style:Be(this.cssVars)},[t?(k(),ae(br,{name:"fade-in-transition",key:"mask",appear:this.internalAppear??this.isMounted},{default:()=>this.show?(k(),pe("div",{key:1,"aria-hidden":!0,class:le(`${e}-modal-mask`)},null,2)):null},1032,["appear"])):te(()=>null),(k(),ae(dP,Bt({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:!t},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:this.handleClickoutside}),Bn(this.$slots),1040,["style","displayDirective","show","preset","autoFocus","trapFocus","draggable","blockScroll","maskHidden","onEsc","onClose","onNegativeClick","onPositiveClick","onBeforeLeave","onAfterEnter","onAfterLeave","onClickoutside"]))],6)),[[Y1,{zIndex:this.zIndex,enabled:this.show}]])}},1032,["to","show"])}});const pP={...dl,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]},mP=Ae({name:"DialogEnvironment",props:{...pP,internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}},setup(e){const t=se(!0);function o(){const{onInternalAfterLeave:c,internalKey:u,onAfterLeave:f}=e;c&&c(u),f&&f()}function r(c){const{onPositiveClick:u}=e;u?Promise.resolve(u(c)).then(f=>{f!==!1&&s()}):s()}function n(c){const{onNegativeClick:u}=e;u?Promise.resolve(u(c)).then(f=>{f!==!1&&s()}):s()}function i(){const{onClose:c}=e;c?Promise.resolve(c()).then(u=>{u!==!1&&s()}):s()}function l(c){const{onMaskClick:u,maskClosable:f}=e;u&&(u(c),f&&s())}function a(){const{onEsc:c}=e;c&&c()}function s(){t.value=!1}function d(c){t.value=c}return{show:t,hide:s,handleUpdateShow:d,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:l,handleEsc:a}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:r,handleAfterLeave:n,handleMaskClick:i,handleEsc:l,to:a,zIndex:s,maskClosable:d,show:c}=this;return k(),ae(hP,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:l,to:a,zIndex:s,maskClosable:d,onAfterEnter:this.onAfterEnter,onAfterLeave:n,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:u})=>(k(),ae(tp,kn(this.$props,ep,{titleClass:mr([this.titleClass,u]),style:this.internalStyle,onClose:r,onNegativeClick:o,onPositiveClick:e}),null,16))},1032,["show","onUpdateShow","onMaskClick","onEsc","to","zIndex","maskClosable","onAfterEnter","onAfterLeave","closeOnEsc","blockScroll","autoFocus","transformOrigin","draggable"])}}),gP={injectionKey:String,to:[String,Object]},bP=Ae({name:"DialogProvider",props:gP,setup(){const e=se([]),t={};function o(a={}){const s=nl(),d=xr({...a,key:s,destroy:()=>{t[`n-dialog-${s}`]?.hide()}});return e.value.push(d),d}const r=["info","success","warning","error"].map(a=>s=>o({...s,type:a}));function n(a){const{value:s}=e;s.splice(s.findIndex(d=>d.key===a),1)}function i(){Object.values(t).forEach(a=>{a?.hide()})}const l={create:o,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return at(eP,l),at(Zh,{clickedRef:Wf(64),clickedPositionRef:Of()}),at(tP,e),{...l,dialogList:e,dialogInstRefs:t,handleAfterLeave:n}},render(){return Rt(Te,null,[this.dialogList.map(e=>Rt(mP,Ka(e,["destroy","style"],{internalStyle:e.style,to:this.to,ref:t=>{t===null?delete this.dialogInstRefs[`n-dialog-${e.key}`]:this.dialogInstRefs[`n-dialog-${e.key}`]=t},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave}))),this.$slots.default?.()])}}),vP={name:"LoadingBar",common:j,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function CP(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const xP={name:"LoadingBar",common:V,self:CP};var yP={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 np(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:l,errorColor:a,warningColor:s,popoverColor:d,boxShadow2:c,primaryColor:u,lineHeight:f,borderRadius:h,closeColorHover:p,closeColorPressed:g}=e;return{...yP,closeBorderRadius:h,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:d,colorInfo:d,colorSuccess:d,colorError:d,colorWarning:d,colorLoading:d,boxShadow:c,boxShadowInfo:c,boxShadowSuccess:c,boxShadowError:c,boxShadowWarning:c,boxShadowLoading:c,iconColor:t,iconColorInfo:i,iconColorSuccess:l,iconColorWarning:s,iconColorError:a,iconColorLoading:u,closeColorHover:p,closeColorPressed:g,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:u,lineHeight:f,borderRadius:h,border:"0"}}const ip={name:"Message",common:V,self:np},SP={name:"Message",common:j,self:np},wP="n-message-api",lp="n-message-provider",ap={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,spinProps:Object,onClose:Function,onMouseenter:Function,onMouseleave:Function};var PP=D([oe("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[MS({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),oe("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); + `,[re("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),re("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=>ne(`${e}-type`,[D("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),D("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Mi()])]),re("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[D("&:hover",` + color: var(--n-close-icon-color-hover); + `),D("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),oe("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[ne("top",` + top: 12px; + left: 0; + right: 0; + `),ne("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),ne("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),ne("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),ne("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),ne("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]);const TP=["onMouseenter","onMouseleave"],EP={info:()=>(k(),ae(Hi)),success:()=>(k(),ae(Na)),warning:()=>(k(),ae(ja)),error:()=>(k(),ae(Wa)),default:()=>null};var _P=Ae({name:"Message",props:{...ap,render:Function},setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Mo(e),{props:r,mergedClsPrefixRef:n}=De(lp),i=qr("Message",o,n),l=Pt("Message","-message",PP,ip,r,n),a=X(()=>{const{type:d}=e,{common:{cubicBezierEaseInOut:c},self:{padding:u,margin:f,maxWidth:h,iconMargin:p,closeMargin:g,closeSize:b,iconSize:C,fontSize:y,lineHeight:T,borderRadius:P,border:A,iconColorInfo:M,iconColorSuccess:v,iconColorWarning:w,iconColorError:_,iconColorLoading:H,closeIconSize:O,closeBorderRadius:$,[Ce("textColor",d)]:K,[Ce("boxShadow",d)]:ie,[Ce("color",d)]:be,[Ce("closeColorHover",d)]:ce,[Ce("closeColorPressed",d)]:J,[Ce("closeIconColor",d)]:ue,[Ce("closeIconColorPressed",d)]:He,[Ce("closeIconColorHover",d)]:$e}}=l.value;return{"--n-bezier":c,"--n-margin":f,"--n-padding":u,"--n-max-width":h,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":C,"--n-close-icon-size":O,"--n-close-border-radius":$,"--n-close-size":b,"--n-close-margin":g,"--n-text-color":K,"--n-color":be,"--n-box-shadow":ie,"--n-icon-color-info":M,"--n-icon-color-success":v,"--n-icon-color-warning":w,"--n-icon-color-error":_,"--n-icon-color-loading":H,"--n-close-color-hover":ce,"--n-close-color-pressed":J,"--n-close-icon-color":ue,"--n-close-icon-color-pressed":He,"--n-close-icon-color-hover":$e,"--n-line-height":T,"--n-border-radius":P,"--n-border":A}}),s=t?Pr("message",X(()=>e.type[0]),a,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:r,handleClose(){e.onClose?.()},cssVars:t?void 0:a,themeClass:s?.themeClass,onRender:s?.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:o,content:r,mergedClsPrefix:n,cssVars:i,themeClass:l,onRender:a,icon:s,handleClose:d,showIcon:c}=this;a?.();const u=e||$P(s,t,n,this.spinProps);return k(),pe("div",{class:le([`${n}-message-wrapper`,l]),onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:Be([{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i])},[e?(k(),pe(Te,{key:0},[te(()=>e(this.$props))],64)):(k(),pe("div",{key:1,class:le([`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`])},[u&&c?(k(),pe("div",{key:0,class:le(`${n}-message__icon ${n}-message__icon--${t}-type`)},[je(Va,null,{default:()=>u},1024)],2)):te(()=>null),Pe("div",{class:le(`${n}-message__content`)},[te(()=>Ht(r))],2),o?(k(),ae(al,{key:2,clsPrefix:n,class:le(`${n}-message__close`),onClick:d,absolute:!0},null,8,["clsPrefix","class","onClick"])):te(()=>null)],2))],46,TP)}});function $P(e,t,o,r){if(typeof e=="function")return e();{const n=t==="loading"?(k(),ae(sh,Bt({key:1,clsPrefix:o,strokeWidth:24,scale:.85},r),null,16,["clsPrefix"])):EP[t]();return n?(k(),ae(il,{clsPrefix:o,key:t},{default:()=>n},1032,["clsPrefix"])):null}}var RP=Ae({name:"MessageEnvironment",props:{...ap,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 o=se(!0);bo(()=>{r()});function r(){const{duration:c}=e;c&&(t=window.setTimeout(l,c))}function n(c){c.currentTarget===c.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(c){c.currentTarget===c.target&&r()}function l(){const{onHide:c}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),c&&c()}function a(){const{onClose:c}=e;c&&c(),l()}function s(){const{onAfterLeave:c,onInternalAfterLeave:u,onAfterHide:f,internalKey:h}=e;c&&c(),u&&u(h),f&&f()}function d(){l()}return{show:o,hide:l,handleClose:a,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:n,deactivate:d}},render(){return k(),ae(ih,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{_:1,default:Tf(()=>[this.show?(k(),ae(_P,{key:1,content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0},null,8,["content","type","icon","showIcon","closable","spinProps","onClose","onMouseenter","onMouseleave"])):null])},8,["onAfterLeave","onLeave"])}});const IP={...Pt.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]};var AP=Ae({name:"MessageProvider",props:IP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r=se({}),n={create(s,d){return i(s,{type:"default",...d})},info(s,d){return i(s,{...d,type:"info"})},success(s,d){return i(s,{...d,type:"success"})},warning(s,d){return i(s,{...d,type:"warning"})},error(s,d){return i(s,{...d,type:"error"})},loading(s,d){return i(s,{...d,type:"loading"})},destroyAll:a};at(lp,{props:e,mergedClsPrefixRef:t}),at(wP,n);function i(s,d){const c=nl(),u=xr({...d,content:s,key:c,destroy:()=>{r.value[c]?.hide()}}),{max:f}=e;return f&&o.value.length>=f&&o.value.shift(),o.value.push(u),u}function l(s){o.value.splice(o.value.findIndex(d=>d.key===s),1),delete r.value[s]}function a(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:o,handleAfterLeave:l},n)},render(){return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.messageList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[Pe("div",{class:le([`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass]),key:"message-container",style:Be(this.containerStyle)},[te(()=>this.messageList.map(e=>(k(),ae(RP,Bt({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},Ka(e,["destroy"],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}),null,16,["internalKey","onInternalAfterLeave","duration","keepAliveOnHover","closable"]))))],6)],8,["to"])):te(()=>null)],64)}}),HP={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function sp(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:l,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:d,closeColorHover:c,closeColorPressed:u,textColor1:f,textColor3:h,borderRadius:p,fontWeightStrong:g,boxShadow2:b,lineHeight:C,fontSize:y}=e;return{...HP,borderRadius:p,lineHeight:C,fontSize:y,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:l,textColor:t,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:d,closeBorderRadius:p,closeColorHover:c,closeColorPressed:u,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:b}}const cp={name:"Notification",common:V,peers:{Scrollbar:st},self:sp},MP={name:"Notification",common:j,peers:{Scrollbar:gt},self:sp},ul="n-notification-provider",zP=Ae({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=De(ul),r=se(null);return Gi(()=>{o.value>0?r?.value?.classList.add("transitioning"):r?.value?.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:r,placement:n}=this;return k(),pe("div",{ref:"selfRef",class:le([`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${n}`])},[t?(k(),ae(ll,{key:0,theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},Bn(e),1032,["theme","themeOverrides"])):(k(),pe(Te,{key:1},[te(()=>e.default?.())],64))],2)}}),FP=["onMouseenter","onMouseleave"],BP={info:()=>(k(),ae(Hi)),success:()=>(k(),ae(Na)),warning:()=>(k(),ae(ja)),error:()=>(k(),ae(Wa)),default:()=>null},es={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},kP=tl(es),DP=Ae({name:"Notification",props:es,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:r}=De(ul),{inlineThemeDisabled:n,mergedRtlRef:i}=Mo(),l=qr("Notification",i,t),a=X(()=>{const{type:d}=e,{self:{color:c,textColor:u,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:b,actionTextColor:C,borderRadius:y,headerFontWeight:T,boxShadow:P,lineHeight:A,fontSize:M,closeMargin:v,closeSize:w,width:_,padding:H,closeIconSize:O,closeBorderRadius:$,closeColorHover:K,closeColorPressed:ie,titleFontSize:be,metaFontSize:ce,descriptionFontSize:J,[Ce("iconColor",d)]:ue},common:{cubicBezierEaseOut:He,cubicBezierEaseIn:$e,cubicBezierEaseInOut:Le}}=o.value,{left:ke,right:nt,top:Je,bottom:vt}=jo(H);return{"--n-color":c,"--n-font-size":M,"--n-text-color":u,"--n-description-text-color":b,"--n-action-text-color":C,"--n-title-text-color":g,"--n-title-font-weight":T,"--n-bezier":Le,"--n-bezier-ease-out":He,"--n-bezier-ease-in":$e,"--n-border-radius":y,"--n-box-shadow":P,"--n-close-border-radius":$,"--n-close-color-hover":K,"--n-close-color-pressed":ie,"--n-close-icon-color":f,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":p,"--n-line-height":A,"--n-icon-color":ue,"--n-close-margin":v,"--n-close-size":w,"--n-close-icon-size":O,"--n-width":_,"--n-padding-left":ke,"--n-padding-right":nt,"--n-padding-top":Je,"--n-padding-bottom":vt,"--n-title-font-size":be,"--n-meta-font-size":ce,"--n-description-font-size":J}}),s=n?Pr("notification",X(()=>e.type[0]),a,r):void 0;return{mergedClsPrefix:t,showAvatar:X(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:l,cssVars:n?void 0:a,themeClass:s?.themeClass,onRender:s?.onRender}},render(){const{mergedClsPrefix:e}=this;return this.onRender?.(),k(),pe("div",{class:le([`${e}-notification-wrapper`,this.themeClass]),onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:Be(this.cssVars)},[Pe("div",{class:le([`${e}-notification`,this.rtlEnabled&&`${e}-notification--rtl`,this.themeClass,{[`${e}-notification--closable`]:this.closable,[`${e}-notification--show-avatar`]:this.showAvatar}]),style:Be(this.cssVars)},[this.showAvatar?(k(),pe("div",{key:0,class:le(`${e}-notification__avatar`)},[this.avatar?(k(),pe(Te,{key:0},[te(()=>Ht(this.avatar))],64)):(k(),pe(Te,{key:1},[this.type!=="default"?(k(),ae(il,{key:0,clsPrefix:e},{default:()=>BP[this.type]()},1032,["clsPrefix"])):te(()=>null)],64))],2)):te(()=>null),this.closable?(k(),ae(al,{key:2,clsPrefix:e,class:le(`${e}-notification__close`),onClick:this.handleCloseClick},null,8,["clsPrefix","class","onClick"])):te(()=>null),Pe("div",{ref:"bodyRef",class:le(`${e}-notification-main`)},[this.title?(k(),pe("div",{key:0,class:le(`${e}-notification-main__header`)},[te(()=>Ht(this.title))],2)):te(()=>null),this.description?(k(),pe("div",{key:2,class:le(`${e}-notification-main__description`)},[te(()=>Ht(this.description))],2)):te(()=>null),this.content?(k(),pe("pre",{key:4,class:le(`${e}-notification-main__content`)},[te(()=>Ht(this.content))],2)):te(()=>null),this.meta||this.action?(k(),pe("div",{key:6,class:le(`${e}-notification-main-footer`)},[this.meta?(k(),pe("div",{key:0,class:le(`${e}-notification-main-footer__meta`)},[te(()=>Ht(this.meta))],2)):te(()=>null),this.action?(k(),pe("div",{key:2,class:le(`${e}-notification-main-footer__action`)},[te(()=>Ht(this.action))],2)):te(()=>null)],2)):te(()=>null)],2)],6)],46,FP)}}),LP={...es,duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function},OP=Ae({name:"NotificationEnvironment",props:{...LP,internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}},setup(e){const{wipTransitionCountRef:t}=De(ul),o=se(!0);let r=null;function n(){o.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,gr(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function l(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:b}=e;g&&g(),b&&b()}function a(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function d(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:b,internalKey:C}=e;p&&p(),g(C),b&&b()}function c(){const{duration:p}=e;p&&(r=window.setTimeout(n,p))}function u(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function f(p){p.currentTarget===p.target&&c()}function h(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&n()}):n()}return bo(()=>{e.duration&&(r=window.setTimeout(n,e.duration))}),{show:o,hide:n,handleClose:h,handleAfterLeave:d,handleLeave:s,handleBeforeLeave:a,handleAfterEnter:l,handleBeforeEnter:i,handleMouseenter:u,handleMouseleave:f}},render(){return k(),ae(br,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{_:1,default:Tf(()=>this.show?(k(),ae(DP,Bt({key:1},kn(this.$props,kP,{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?jc([this.handleMouseenter,this.onMouseenter]):this.onMouseenter,onMouseleave:this.duration&&this.keepAliveOnHover?jc([this.handleMouseleave,this.onMouseleave]):this.onMouseleave})),null,16)):null)},8,["onBeforeEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}});var WP=D([oe("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[D(">",[oe("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[D(">",[oe("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[oe("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),ne("top, top-right, top-left",` + top: 12px; + `,[D("&.transitioning >",[oe("scrollbar",[D(">",[oe("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),ne("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[D(">",[oe("scrollbar",[D(">",[oe("scrollbar-container",[oe("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),oe("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),ne("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[oe("notification-wrapper",[D("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),ne("top",[oe("notification-wrapper",` + transform-origin: top center; + `)]),ne("bottom",[oe("notification-wrapper",` + transform-origin: bottom center; + `)]),ne("top-right, bottom-right",[oe("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),ne("top-left, bottom-left",[oe("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),ne("top-right",` + right: 0; + `,[si("top-right")]),ne("top-left",` + left: 0; + `,[si("top-left")]),ne("bottom-right",` + right: 0; + `,[si("bottom-right")]),ne("bottom-left",` + left: 0; + `,[si("bottom-left")]),ne("scrollable",[ne("top-right",` + top: 0; + `),ne("top-left",` + top: 0; + `),ne("bottom-right",` + bottom: 0; + `),ne("bottom-left",` + bottom: 0; + `)]),oe("notification-wrapper",` + margin-bottom: 12px; + `,[D("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),D("&.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); + `),D("&.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); + `)]),oe("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; + `,[re("avatar",[oe("icon",` + color: var(--n-icon-color); + `),oe("base-icon",` + color: var(--n-icon-color); + `)]),ne("show-avatar",[oe("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),ne("closable",[oe("notification-main",[D("> *:first-child",` + padding-right: 20px; + `)]),re("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),re("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; + `,[oe("icon","transition: color .3s var(--n-bezier);")]),oe("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); + `,[oe("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[re("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),re("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),re("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); + `),re("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); + `),re("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); + `,[D("&:first-child","margin: 0;")])])])])]);function si(e){const t=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return oe("notification-wrapper",[D("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${t}, 0); + `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(0, 0); + `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={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 bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,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:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={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 Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={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"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={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 Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={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 Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,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:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,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:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,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:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,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 ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor: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)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),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)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,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 nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(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 om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(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})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(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 h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({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:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(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 y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-DFTjbjn3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-L-sskm9b.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-DH1IaDgc.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-B415Ci4w.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,30,3,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-CS8l23Jb.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-h5lf4-Vn.js"),__vite__mapDeps([36,27,13,4,2,1,24,29,37,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-Cq5T4anl.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-CJoqn3Jp.js"),__vite__mapDeps([41,1,2,27,13,4,24,37,5,16,17,30,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,c2 as b0,Kt as b1,nl as b2,Nc as b3,Hi as b4,ja as b5,Wa as b6,Na as b7,An as b8,wp as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,Mi as ba,Ku as bb,Rv as bc,DS as bd,Va as be,Kr as bf,hi as bg,J_ as bh,hT as bi,Io as bj,X_ as bk,eP as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-CTfv2gCy.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-CTfv2gCy.css new file mode 100644 index 00000000..fcc309b3 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-CTfv2gCy.css @@ -0,0 +1 @@ +:root{--bg: #070b0f;--bg-elev: #0b1118;--panel: #0f1720;--panel-2: #14202b;--line: rgba(148, 197, 214, .12);--line-strong: rgba(148, 197, 214, .22);--text: #e8f2f6;--muted: #8ba3b0;--muted-2: #5f7481;--accent: #2dd4bf;--accent-soft: rgba(45, 212, 191, .12);--accent-2: #7dd3fc;--live: #ff4d6d;--ok: #34d399;--warn: #fbbf24;--danger: #f87171;--radius: 14px;--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--overlay-strong: rgba(7, 11, 15, .7);--overlay-soft: rgba(7, 11, 15, .55);--chip-bg: rgba(13, 19, 26, .6);--danger-text: #fca5a5}:root[data-theme=light]{--bg: #f4f7fa;--bg-elev: #ffffff;--panel: #ffffff;--panel-2: #eef3f7;--line: rgba(15, 23, 42, .13);--line-strong: rgba(15, 23, 42, .24);--text: #16212b;--muted: #516779;--muted-2: #7b8d9c;--accent: #0d9488;--accent-soft: rgba(13, 148, 136, .12);--accent-2: #0284c7;--live: #e11d48;--ok: #059669;--warn: #b45309;--danger: #dc2626;--overlay-strong: rgba(255, 255, 255, .94);--overlay-soft: rgba(255, 255, 255, .88);--chip-bg: #eef3f7;--danger-text: #b91c1c}:root[data-theme=light] body:before{background:radial-gradient(900px 520px at 8% -10%,rgba(13,148,136,.07),transparent 60%),radial-gradient(800px 500px at 100% 0%,rgba(2,132,199,.05),transparent 55%)}:root[data-theme=light] .panel{background:#fff}:root[data-theme=light] .stat-grid .tile{background:linear-gradient(180deg,var(--bg-elev),var(--bg))}:root[data-theme=light] .stat-grid .tile-hint{color:var(--muted)}*{box-sizing:border-box}html,body,#app{height:100%}body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background:radial-gradient(900px 520px at 8% -10%,rgba(45,212,191,.1),transparent 60%),radial-gradient(800px 500px at 100% 0%,rgba(125,211,252,.07),transparent 55%),radial-gradient(700px 700px at 50% 120%,rgba(45,212,191,.05),transparent 60%)}a{color:inherit;text-decoration:none}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#94c5d62e;border-radius:99px;border:3px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:#94c5d64d;background-clip:content-box}::-webkit-scrollbar-track{background:transparent}.panel{background:linear-gradient(180deg,#14202bb8,#0f1720db);border:1px solid var(--line);border-radius:var(--radius)}.muted{color:var(--muted)}.mono{font-family:var(--mono)}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--live);box-shadow:0 0 #ff4d6db3;animation:live-pulse 1.8s infinite;flex:none}@keyframes live-pulse{0%{box-shadow:0 0 #ff4d6d8c}70%{box-shadow:0 0 0 8px #ff4d6d00}to{box-shadow:0 0 #ff4d6d00}}.fade-up{animation:fade-up .35s ease both}@keyframes fade-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.page{position:relative;z-index:1;padding:26px 30px 40px;max-width:1480px;margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}.page-title{margin:0;font-size:24px;font-weight:650;letter-spacing:.2px}.page-sub{margin:6px 0 0;color:var(--muted);font-size:13px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}@media(max-width:720px){.page{padding:18px 16px 28px}.stat-grid{grid-template-columns:1fr 1fr}}@media(max-width:639px){html,body,#app{overflow-x:hidden}.page{padding:12px 12px 24px}.card-grid{grid-template-columns:1fr}.stat-grid{gap:8px}.stat-grid .tile{padding:10px 11px}.stat-grid .tile-hint{display:none}.stat-grid .tile-value{font-size:20px}.panel{border-radius:10px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/login-art-Ct2j8Jdv.jpg b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/login-art-Ct2j8Jdv.jpg new file mode 100644 index 00000000..6aa66a13 Binary files /dev/null and b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/login-art-Ct2j8Jdv.jpg differ diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-BjHPa6CA.png b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-BjHPa6CA.png new file mode 100644 index 00000000..afed20e0 Binary files /dev/null and b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-BjHPa6CA.png differ diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-X-myaeP_.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-X-myaeP_.js new file mode 100644 index 00000000..91b51b90 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-X-myaeP_.js @@ -0,0 +1 @@ +const o="/app/assets/logo-BjHPa6CA.png";export{o as l}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/runtime-bridge-DmDzFGpU.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/runtime-bridge-DmDzFGpU.js new file mode 100644 index 00000000..ab37055e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/runtime-bridge-DmDzFGpU.js @@ -0,0 +1 @@ +function e(){return typeof window<"u"&&typeof window.miniapp<"u"}function i(n){return n&&typeof n=="object"&&"message"in n?String(n.message):typeof n=="string"?n:n instanceof Error?n.message:"未知错误"}export{i as e,e as i}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-D5Y-fBfU.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-D5Y-fBfU.js new file mode 100644 index 00000000..b1494c8e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-D5Y-fBfU.js @@ -0,0 +1,2 @@ +import{ao as a,aV as t,ap as r,a_ as i}from"./index-Bmcyfv7z.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` +`)}const p=s=>r("/v1/streamers",s),u=s=>t("/v1/streamers",s),d=s=>i(`/v1/streamers/${s}`),g=s=>t(`/v1/streamers/${s}/pause`),$=s=>`/v1/streamers/${s}/cover`;export{m as a,p as b,$ as c,o as d,d as e,c as g,l,v as p,g as t,u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CSVBov8c.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CSVBov8c.js new file mode 100644 index 00000000..a617fea6 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CSVBov8c.js @@ -0,0 +1 @@ +import{L as f,j as e}from"./index-Bmcyfv7z.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-BaVpnNbE.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-BaVpnNbE.js new file mode 100644 index 00000000..42d475f8 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-BaVpnNbE.js @@ -0,0 +1,117 @@ +import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b1 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-Bmcyfv7z.js";import{f as Oe}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as Mn,a as An}from"./use-compitable-CSVBov8c.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();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 to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(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 Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"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"},so={"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"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({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=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("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?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("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; + `,[H(">",[D("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Me("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[Me("scrollable",[Me("show-header-or-footer","padding: var(--n-padding);")])]),Ae("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),Ae("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),me("scrollable, show-header-or-footer",[Ae("content",` + padding: var(--n-padding); + `)])]),D("popover-shared",` + transform-origin: inherit; + `,[D("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[D("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${x}); + height: calc(${x}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),H("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),H("&.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); + `),H("&.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); + `)]),_("top-start",` + top: calc(${x} / -2); + left: calc(${L("top-start")} - var(--v-offset-left)); + `),_("top",` + top: calc(${x} / -2); + transform: translateX(calc(${x} / -2)) rotate(45deg); + left: 50%; + `),_("top-end",` + top: calc(${x} / -2); + right: calc(${L("top-end")} + var(--v-offset-left)); + `),_("bottom-start",` + bottom: calc(${x} / -2); + left: calc(${L("bottom-start")} - var(--v-offset-left)); + `),_("bottom",` + bottom: calc(${x} / -2); + transform: translateX(calc(${x} / -2)) rotate(45deg); + left: 50%; + `),_("bottom-end",` + bottom: calc(${x} / -2); + right: calc(${L("bottom-end")} + var(--v-offset-left)); + `),_("left-start",` + left: calc(${x} / -2); + top: calc(${L("left-start")} - var(--v-offset-top)); + `),_("left",` + left: calc(${x} / -2); + transform: translateY(calc(${x} / -2)) rotate(45deg); + top: 50%; + `),_("left-end",` + left: calc(${x} / -2); + bottom: calc(${L("left-end")} + var(--v-offset-top)); + `),_("right-start",` + right: calc(${x} / -2); + top: calc(${L("right-start")} - var(--v-offset-top)); + `),_("right",` + right: calc(${x} / -2); + transform: translateY(calc(${x} / -2)) rotate(45deg); + top: 50%; + `),_("right-end",` + right: calc(${x} / -2); + bottom: calc(${L("right-end")} + var(--v-offset-top)); + `),...Vr({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 a=o.split("-")[1]==="end",i=`calc((${`var(--v-target-${r}, 0px)`} - ${x}) / 2)`,u=L(o);return H(`[v-placement="${o}"] >`,[D("popover-shared",[me("center-arrow",[D("popover-arrow",`${t}: calc(max(${i}, ${u}) ${a?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function L(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function _(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return H(`[v-placement="${e}"] >`,[D("popover-shared",` + margin-${Te[n]}: var(--n-space); + `,[me("show-arrow",` + margin-${Te[n]}: var(--n-space-arrow); + `),me("overlap",` + margin: 0; + `),on("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${n}: 100%; + ${Te[n]}: auto; + ${r} + `,[D("popover-arrow",t)])])])}const Tt={...He.props,to:ee.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 go({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:o}){return B(),U("div",{key:"__popover-arrow__",style:q(r),class:Q([`${o}-popover-arrow-wrapper`,n])},[mn("div",{class:Q([`${o}-popover-arrow`,e]),style:q(t)},null,6)],6)}var mo=de({name:"PopoverBody",inheritAttrs:!1,props:Tt,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:a,mergedRtlRef:i}=ln(e),u=He("Popover","-popover",vo,un,e,o),s=dn("Popover",i,o),w=P(null),p=F("NPopover"),m=P(null),l=P(e.show),f=P(!1);xt(()=>{const{show:y}=e;y&&!Rr()&&!e.internalDeactivateImmediately&&(f.value=!0)});const v=ie(()=>{const{trigger:y,onClickoutside:S}=e,g=[],{positionManuallyRef:{value:C}}=p;return C||(y==="click"&&!S&&g.push([Je,N,void 0,{capture:!0}]),y==="hover"&&g.push([oo,I])),S&&g.push([Je,N,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&g.push([gn,e.show]),g}),c=ie(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:S,cubicBezierEaseOut:g},self:{space:C,spaceArrow:W,padding:h,fontSize:A,textColor:M,dividerColor:E,color:fe,boxShadow:It,borderRadius:zt,arrowHeight:Lt,arrowOffset:Dt,arrowOffsetVertical:Ft}}=u.value;return{"--n-box-shadow":It,"--n-bezier":y,"--n-bezier-ease-in":S,"--n-bezier-ease-out":g,"--n-font-size":A,"--n-text-color":M,"--n-color":fe,"--n-divider-color":E,"--n-border-radius":zt,"--n-arrow-height":Lt,"--n-arrow-offset":Dt,"--n-arrow-offset-vertical":Ft,"--n-padding":h,"--n-space":C,"--n-space-arrow":W}}),b=ie(()=>{const y=e.width==="trigger"?void 0:Oe(e.width),S=[];y&&S.push({width:y});const{maxWidth:g,minWidth:C}=e;return g&&S.push({maxWidth:Oe(g)}),C&&S.push({maxWidth:Oe(C)}),a||S.push(c.value),S}),d=a?fn("popover",void 0,c,e):void 0;p.setBodyInstance({syncPosition:$}),ue(()=>{p.setBodyInstance(null)}),re(j(e,"show"),y=>{e.animated||(y?l.value=!0:l.value=!1)});function $(){w.value?.syncPosition()}function T(y){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&p.handleMouseEnter(y)}function O(y){e.trigger==="hover"&&e.keepAliveOnHover&&p.handleMouseLeave(y)}function I(y){e.trigger==="hover"&&!z().contains(Re(y))&&p.handleMouseMoveOutside(y)}function N(y){(e.trigger==="click"&&!z().contains(Re(y))||e.onClickoutside)&&p.handleClickOutside(y)}function z(){return p.getTriggerElement()}ae(bt,m),ae(wt,null),ae(mt,null);function ne(){if(d?.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let y;const S=p.internalRenderBodyRef.value,{value:g}=o;if(S)y=S([`${g}-popover-shared`,s?.value&&`${g}-popover--rtl`,d?.themeClass.value,e.overlap&&`${g}-popover-shared--overlap`,e.showArrow&&`${g}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${g}-popover-shared--center-arrow`],m,b.value,T,O);else{const{value:C}=p.extraClassRef,{internalTrapFocus:W}=e,h=!Qe(t.header)||!Qe(t.footer),A=()=>{const M=h?(B(),U(pn,{key:1},[Y(()=>Ce(t.header,E=>E?(B(),U("div",{key:2,class:Q([`${g}-popover__header`,e.headerClass]),style:q(e.headerStyle)},[Y(()=>E)],6)):null)),Y(()=>Ce(t.default,E=>E?(B(),U("div",{key:3,class:Q([`${g}-popover__content`,e.contentClass]),style:q(e.contentStyle)},[Y(()=>t.default?.())],6)):null)),Y(()=>Ce(t.footer,E=>E?(B(),U("div",{key:4,class:Q([`${g}-popover__footer`,e.footerClass]),style:q(e.footerStyle)},[Y(()=>E)],6)):null))],64)):e.scrollable?t.default?.():(B(),U("div",{key:5,class:Q([`${g}-popover__content`,e.contentClass]),style:q(e.contentStyle)},[Y(()=>t.default?.())],6));return[e.scrollable?(B(),oe(vn,{key:6,themeOverrides:u.value.peerOverrides.Scrollbar,theme:u.value.peers.Scrollbar,contentClass:h?void 0:`${g}-popover__content ${e.contentClass??""}`,contentStyle:h?void 0:e.contentStyle},{default:()=>M},1032,["themeOverrides","theme","contentClass","contentStyle"])):M,e.showArrow?go({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:g}):null]};y=V("div",hn({class:[`${g}-popover`,`${g}-popover-shared`,s?.value&&`${g}-popover--rtl`,d?.themeClass.value,C.map(M=>`${g}-${M}`),{[`${g}-popover--scrollable`]:e.scrollable,[`${g}-popover--show-header-or-footer`]:h,[`${g}-popover--raw`]:e.raw,[`${g}-popover-shared--overlap`]:e.overlap,[`${g}-popover-shared--show-arrow`]:e.showArrow,[`${g}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:m,style:b.value,onKeydown:p.handleKeydown,onMouseenter:T,onMouseleave:O},n),W?(B(),oe(cn,{key:7,active:e.show,autoFocus:!0},{default:A},1032,["active"])):A())}return xe(y,v.value)}return{displayed:f,namespace:r,isMounted:p.isMountedRef,zIndex:p.zIndexRef,followerRef:w,adjustedTo:ee(e),followerEnabled:l,renderContentNode:ne}},render(){return B(),oe(po,{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===ee.tdkey},{_:1,default:an(()=>this.animated?(B(),oe(sn,{key:8,name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{this.internalOnAfterLeave?.(),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode},1032,["appear","onEnter","onAfterLeave"])):this.renderContentNode())},8,["zIndex","show","enabled","to","x","y","flip","placement","containerClass","overlap","width","teleportDisabled"])}});const wo={key:1,style:{position:"fixed",top:0,right:0,bottom:0,left:0}},bo=Object.keys(Tt),yo={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function $o(e,t,n){yo[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],a=n[r];o?e.props[r]=(...i)=>{o(...i),a(...i)}:e.props[r]=a})}const xo={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:ee.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},So={...He.props,...xo,internalOnAfterLeave:Function,internalRenderBody:Function};var Eo=de({name:"Popover",inheritAttrs:!1,props:So,slots:Object,__popover__:!0,setup(e){const t=$t(),n=P(null),r=ie(()=>e.show),o=P(e.defaultShow),a=Mn(r,o),i=le(()=>e.disabled?!1:a.value),u=()=>{if(e.disabled)return!0;const{getDisabled:h}=e;return!!h?.()},s=()=>u()?!1:a.value,w=An(e,["arrow","showArrow"]),p=ie(()=>e.overlap?!1:w.value);let m=null;const l=P(null),f=P(null),v=le(()=>e.x!==void 0&&e.y!==void 0);function c(h){const{"onUpdate:show":A,onUpdateShow:M,onShow:E,onHide:fe}=e;o.value=h,A&&ce(A,h),M&&ce(M,h),h&&E&&ce(E,!0),h&&fe&&ce(fe,!1)}function b(){m&&m.syncPosition()}function d(){const{value:h}=l;h&&(window.clearTimeout(h),l.value=null)}function $(){const{value:h}=f;h&&(window.clearTimeout(h),f.value=null)}function T(){const h=u();if(e.trigger==="focus"&&!h){if(s())return;c(!0)}}function O(){const h=u();if(e.trigger==="focus"&&!h){if(!s())return;c(!1)}}function I(){const h=u();if(e.trigger==="hover"&&!h){if($(),l.value!==null||s())return;const A=()=>{c(!0),l.value=null},{delay:M}=e;M===0?A():l.value=window.setTimeout(A,M)}}function N(){const h=u();if(e.trigger==="hover"&&!h){if(d(),f.value!==null||!s())return;const A=()=>{c(!1),f.value=null},{duration:M}=e;M===0?A():f.value=window.setTimeout(A,M)}}function z(){N()}function ne(h){s()&&(e.trigger==="click"&&(d(),$(),c(!1)),e.onClickoutside?.(h))}function y(){e.trigger==="click"&&!u()&&(d(),$(),c(!s()))}function S(h){e.internalTrapFocus&&h.key==="Escape"&&(d(),$(),c(!1))}function g(h){o.value=h}function C(){return n.value?.targetRef}function W(h){m=h}return ae("NPopover",{getTriggerElement:C,handleKeydown:S,handleMouseEnter:I,handleMouseLeave:N,handleClickOutside:ne,handleMouseMoveOutside:z,setBodyInstance:W,positionManuallyRef:v,isMountedRef:t,zIndexRef:j(e,"zIndex"),extraClassRef:j(e,"internalExtraClass"),internalRenderBodyRef:j(e,"internalRenderBody")}),xt(()=>{a.value&&u()&&c(!1)}),{binderInstRef:n,positionManually:v,mergedShowConsideringDisabledProp:i,uncontrolledShow:o,mergedShowArrow:p,getMergedShow:s,setShow:g,handleClick:y,handleMouseEnter:I,handleMouseLeave:N,handleFocus:T,handleBlur:O,syncPosition:b}},render(){const{positionManually:e,$slots:t}=this;let n,r=!1;if(!e&&(n=wn(t,"trigger"),n)){n=bn(n),n=n.type===yn?V("span",[n]):n;const o={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(n.type?.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[o,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[o];else{const{internalInheritedEventHandlers:a}=this,i=[o,...a];$o(n,a?"nested":e?"manual":this.trigger,{onBlur:u=>{i.forEach(s=>{s.onBlur(u)})},onFocus:u=>{i.forEach(s=>{s.onFocus(u)})},onClick:u=>{i.forEach(s=>{s.onClick(u)})},onMouseenter:u=>{i.forEach(s=>{s.onMouseenter(u)})},onMouseleave:u=>{i.forEach(s=>{s.onMouseleave(u)})}})}}return B(),oe(no,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const o=this.getMergedShow();return[this.internalTrapFocus&&o?xe((B(),U("div",wo)),[[yt,{enabled:o,zIndex:this.zIndex}]]):null,e?null:V(ro,null,{default:()=>n}),V(mo,$n(this.$props,bo,{...this.$attrs,showArrow:this.mergedShowArrow,show:o}),{default:()=>this.$slots.default?.(),header:()=>this.$slots.header?.(),footer:()=>this.$slots.footer?.()})]}},1032,["syncTarget","syncTargetWithParent"])}});function _o(){const e=F(Sn,null);return e===null&&xn("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}export{no as B,Eo as P,ro as V,po as a,ee as b,ao as c,Zr as d,pe as e,qr as f,Nn as g,Oo as i,xo as p,go as r,_o as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html new file mode 100644 index 00000000..ac660d85 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html @@ -0,0 +1,14 @@ + + + + + + + Live Stream Recorder + + + + +
+ + diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/miniapp.json b/plugins/charlesnty612/live-stream-recorder/miniapp/miniapp.json new file mode 100644 index 00000000..e39a5b8a --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/miniapp.json @@ -0,0 +1,47 @@ +{ + "schemaVersion": 1, + "artifacts": { + "client": [ + "./miniapp/client" + ], + "node": [ + "./miniapp/node" + ] + }, + "runtime": { + "kind": "process", + "entry": "./miniapp/node/server.mjs", + "lifecycle": "on-demand" + }, + "surface": { + "path": "/app", + "window": { + "width": 1200, + "height": 800, + "minWidth": 720, + "minHeight": 520, + "resizable": true + } + }, + "fileHandlers": [ + { + "id": "recording-media", + "path": "/app", + "extensions": [ + ".flv", + ".mp4", + ".mkv", + ".webm", + ".xml" + ] + } + ], + "engines": { + "mcode": ">=3.1.20" + }, + "permissions": { + "device": [ + "notifications" + ] + } +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/config.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/config.mjs new file mode 100644 index 00000000..689440bb --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/config.mjs @@ -0,0 +1,119 @@ +// context.dataDir 配置持久化(Sidecar / 外部模式切换、令牌脱敏)。 +import { readFileSync, writeFileSync, mkdirSync, chmodSync, existsSync } from 'node:fs'; +import { join, dirname } from 'node:path'; + +const DEFAULT_CONFIG = Object.freeze({ + mode: 'sidecar', + binaryPath: '', + ffmpegPath: '', + renderToolsDir: '', + desktopToken: '', + remote: { + baseUrl: '', + authMode: 'none', // none | auth | token + username: '', + appPassword: '', + token: '', + }, +}); + +const SECRET_FIELDS = ['desktopToken', 'remote.appPassword', 'remote.token']; +const FORBIDDEN_KEYS = new Set(['__proto__', 'constructor', 'prototype']); + +// remote.baseUrl 的 SSRF 拦截:链路本地(含云元数据 169.254.0.0/16)一律拒绝。 +// 127.0.0.1 是模式 B「本机常驻服务」的合法目标,不拦。 +function isForbiddenRemoteBase(base) { + if (typeof base !== 'string' || !base) return false; + try { + const u = new URL(base); + if (!['http:', 'https:'].includes(u.protocol)) return true; + const h = u.hostname.toLowerCase().replace(/^\[|\]$/g, ''); + if (/^169\.254\./.test(h)) return true; + if (/^metadata\.google\.(internal|com)$/.test(h) || h.endsWith('.metadata.google.internal')) return true; + if (/^metadata\.azure\.com$/.test(h)) return true; + return false; + } catch { + return true; + } +} + +function clone(obj) { + return JSON.parse(JSON.stringify(obj)); +} + +// 只接受 DEFAULT_CONFIG 声明过的字段;拒绝原型污染键与未知字段(BUG-03)。 +function merge(base, patch) { + const out = clone(base); + if (!patch || typeof patch !== 'object' || Array.isArray(patch)) return out; + for (const [k, v] of Object.entries(patch)) { + if (FORBIDDEN_KEYS.has(k)) continue; + if (!Object.prototype.hasOwnProperty.call(base, k)) continue; + if (v && typeof v === 'object' && !Array.isArray(v) && + out[k] && typeof out[k] === 'object' && !Array.isArray(out[k])) { + out[k] = merge(out[k], v); + } else if (v !== undefined) { + out[k] = v; + } + } + return out; +} + +export function createConfigStore(dataDir) { + const file = join(dataDir, 'miniapp-config.json'); + let cache = clone(DEFAULT_CONFIG); + try { + mkdirSync(dataDir, { recursive: true }); + if (existsSync(file)) { + const parsed = JSON.parse(readFileSync(file, 'utf8')); + cache = merge(DEFAULT_CONFIG, parsed); + } + } catch { + cache = clone(DEFAULT_CONFIG); + } + cache = merge(DEFAULT_CONFIG, cache); + + function persist() { + try { + mkdirSync(dirname(file), { recursive: true }); + writeFileSync(file, JSON.stringify(cache, null, 2), 'utf8'); + try { chmodSync(file, 0o600); } catch { /* no-op on Windows */ } + } catch { + return false; + } + return true; + } + if (!existsSync(file)) persist(); + + return { + file, + get() { + const view = clone(cache); + for (const field of SECRET_FIELDS) { + const parts = field.split('.'); + const last = parts.pop(); + const parent = parts.reduce((o, k) => (o ? o[k] : undefined), view); + if (parent && parent[last]) { + parent['has' + last[0].toUpperCase() + last.slice(1)] = true; + parent[last] = ''; + } + } + return view; + }, + secrets() { + return clone(cache); + }, + update(patch) { + if (!patch || typeof patch !== 'object' || Array.isArray(patch)) return false; + if (patch.remote && typeof patch.remote === 'object' && + isForbiddenRemoteBase(patch.remote.baseUrl)) return false; + const safe = { ...patch }; + delete safe.binaryPath; + delete safe.cliPath; + cache = merge(cache, safe); + return persist(); + }, + raw() { + return clone(cache); + }, + }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs new file mode 100644 index 00000000..1df66557 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs @@ -0,0 +1,224 @@ +// 引擎按需下载:只在用户明确点击后发起网络请求;落盘到插件数据目录并校验 SHA-256。 +import { createHash } from 'node:crypto'; +import { createReadStream, createWriteStream, existsSync, mkdirSync, renameSync, statSync, statfsSync, unlinkSync } from 'node:fs'; +import { once } from 'node:events'; +import { join } from 'node:path'; +import { Readable, Transform } from 'node:stream'; +import { pipeline } from 'node:stream/promises'; + +// 下载源常量:Release engine-v1.1.3 已发布,以下为真值。 +export const ENGINE_DOWNLOAD_CONFIGURED = true; +export const DOWNLOAD = Object.freeze({ + url: 'https://github.com/charlesnty612/live-stream-recorder/releases/download/engine-v1.1.3/engine-windows-x64.exe', + sha256: '1a4f9ee255b396b84991a9ea3088f66909d6199916bcdbee546fbfdfc1945c20', + sizeBytes: 100927488, + version: 'engine-v1.1.3', +}); + +const RESERVE_BYTES = 500 * 1024 * 1024; + +function defaultFreeBytes(dir) { + try { const s = statfsSync(dir); return Number(s.bavail) * Number(s.bsize); } + catch { return Infinity; } +} + +export function createEngineDownloader({ + dataDir, + fetchImpl = (...a) => fetch(...a), + platform = process.platform, + arch = process.arch, + freeBytes = defaultFreeBytes, + restartEngine = async () => {}, + log = () => {}, + unlink = unlinkSync, + rename = renameSync, + configured = ENGINE_DOWNLOAD_CONFIGURED, + download = DOWNLOAD, +} = {}) { + const binDir = join(dataDir, 'bin'); + const finalPath = join(binDir, platform === 'win32' ? 'biliup.exe' : 'biliup'); + const partPath = finalPath + '.part'; + let state = 'missing'; + let error = ''; + let notice = ''; + let progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; + let controller = null; + let response = null; + let lastSampleAt = 0; + let lastSampleBytes = 0; + let forceMode = false; + + function supported() { return platform === 'win32' && arch === 'x64'; } + function binaryExists() { return existsSync(finalPath); } + + function getStatus() { + const plat = platform + '-' + arch; + if (!supported()) return { state: 'unsupported', platform: plat, error: '当前系统暂无引擎版本' }; + // force 重新下载期间旧引擎仍在盘上:内部下载状态必须先于 binaryExists() 暴露, + // 否则 UI 一直显示「已就绪」、进度条不出现,且 proxy 会误判为可再次触发。 + if (state === 'downloading' || state === 'verifying') return { state, platform: plat, ...progress, error, ...(notice ? { notice } : {}) }; + // 二进制仍在盘上时对外保持 ready,但把内部错误/提示一并带出,避免界面只显示「已就绪」。 + if (binaryExists()) return { + state: 'ready', version: download.version, path: finalPath, platform: plat, + ...(error ? { error } : {}), + ...(notice ? { notice } : {}), + }; + if (state === 'failed') return { state, platform: plat, error, ...(notice ? { notice } : {}) }; + if (!configured) return { state: 'missing', platform: plat, error: '引擎下载尚未配置' }; + return { state: 'missing', platform: plat }; + } + + function hashFile(file) { + return new Promise((resolve, reject) => { + const h = createHash('sha256'); + const rs = createReadStream(file); + rs.on('data', (c) => h.update(c)); + rs.on('error', reject); + rs.on('end', () => resolve(h.digest('hex'))); + }); + } + + function nextBackupPath() { + const base = finalPath + '.old'; + const stamp = Date.now(); + let candidate = base + '-' + stamp; + let n = 1; + while (existsSync(candidate)) { + candidate = base + '-' + stamp + '-' + n; + n += 1; + } + return candidate; + } + + async function verify() { + state = 'verifying'; + const digest = await hashFile(partPath); + if (digest.toLowerCase() !== download.sha256.toLowerCase()) { + try { unlink(partPath); } catch { /* ignore */ } + state = 'failed'; + error = '校验未通过,未安装'; + forceMode = false; + return; + } + if (forceMode && existsSync(finalPath)) { + // 备份名唯一化:不删除任何既有备份,因此不依赖数据目录的删除权限。 + const backupPath = nextBackupPath(); + // 关键步骤:仅两次 rename 决定替换成败;清理备份是成功之后的最力而为。 + try { + rename(finalPath, backupPath); + rename(partPath, finalPath); + } catch (e) { + // 回滚只用 rename:即便删除被拒也能把旧引擎放回原位。 + if (existsSync(backupPath) && !existsSync(finalPath)) { + try { rename(backupPath, finalPath); } catch { /* ignore */ } + } + try { unlink(partPath); } catch { /* ignore */ } + state = 'failed'; + error = '替换失败:' + (e?.message || String(e)); + notice = ''; + forceMode = false; + log('warn', 'engine replace failed: ' + error); + return; + } + // 尽力清理旧备份:失败只记日志 + 可见提示,不改 state、不跳过重启。 + notice = ''; + try { + unlink(backupPath); + } catch (e) { + notice = '旧引擎备份未能自动清理,请手动删除:' + backupPath; + log('warn', 'engine backup cleanup failed: ' + (e?.message || e) + '; backup=' + backupPath); + } + } else { + rename(partPath, finalPath); + notice = ''; + } + state = 'ready'; + error = ''; + forceMode = false; + progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; + try { await restartEngine(); } catch (e) { log('warn', 'engine restart after install failed: ' + (e?.message || e)); } + } + + async function runDownload() { + try { + controller = new AbortController(); + mkdirSync(binDir, { recursive: true }); + const head = await fetchImpl(download.url, { method: 'HEAD', signal: controller.signal }); + const total = Number(head.headers?.get?.('content-length')) || download.sizeBytes; + progress.bytesTotal = total; + let resumeFrom = 0; + if (existsSync(partPath)) { + const sz = statSync(partPath).size; + if (sz > 0 && sz < total) resumeFrom = sz; + else if (sz >= total) { await verify(); return; } + } + const headers = resumeFrom > 0 ? { Range: 'bytes=' + resumeFrom + '-' } : {}; + response = await fetchImpl(download.url, { headers, signal: controller.signal }); + if (!response.ok && response.status !== 206) throw new Error('HTTP ' + response.status); + const append = resumeFrom > 0 && response.status === 206; + if (!append) resumeFrom = 0; + progress.bytesDownloaded = resumeFrom; + lastSampleBytes = resumeFrom; + lastSampleAt = Date.now(); + const out = createWriteStream(partPath, { flags: append ? 'a' : 'w' }); + const counter = new Transform({ transform(chunk, _enc, cb) { + progress.bytesDownloaded += chunk.length; + const t = Date.now(); + if (t - lastSampleAt >= 500) { + const delta = progress.bytesDownloaded - lastSampleBytes; + progress.speedBps = Math.max(0, Math.round(delta * 1000 / (t - lastSampleAt))); + lastSampleAt = t; + lastSampleBytes = progress.bytesDownloaded; + } + cb(null, chunk); + } }); + if (response.body) await pipeline(Readable.fromWeb(response.body), counter, out); + else { out.end(); await once(out, 'finish'); } + if (controller?.signal.aborted) return; + await verify(); + } catch (e) { + if (controller?.signal.aborted) return; + state = 'failed'; + error = '下载失败:' + (e?.message || String(e)); + log('warn', 'engine download failed: ' + error); + } finally { controller = null; response = null; } + } + + function start(options = {}) { + const force = options.force === true; + if (!supported()) { state = 'unsupported'; error = '当前系统暂无引擎版本'; return { ok: false, state }; } + if (binaryExists() && !force) { state = 'ready'; return { ok: false, state }; } + if (state === 'downloading' || state === 'verifying') return { ok: false, state }; + if (!configured) { error = '引擎下载尚未配置'; return { ok: false, state, error }; } + const avail = freeBytes(dataDir); + if (avail < download.sizeBytes + RESERVE_BYTES) { + state = 'failed'; + error = '磁盘空间不足,无法下载引擎'; + return { ok: false, state, error }; + } + state = 'downloading'; + error = ''; + notice = ''; + forceMode = force; + progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; + lastSampleAt = 0; + lastSampleBytes = 0; + void runDownload(); + return { ok: true, state }; + } + + function cancel() { + if (state === 'downloading' || state === 'verifying') { + // 只中止 fetch:pipeline 持有 body 锁,再调 body.cancel() 会抛 ERR_INVALID_STATE。 + try { controller?.abort(); } catch { /* ignore */ } + state = 'missing'; + error = ''; + notice = ''; + forceMode = false; + progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; + } + return { ok: true, state }; + } + + return { getStatus, start, cancel, finalPath, partPath, supported }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/events.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/events.mjs new file mode 100644 index 00000000..30148a89 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/events.mjs @@ -0,0 +1,137 @@ +// 自维护脱敏日志环 + /_miniapp/events SSE 广播 + /v1/activity-events 增量轮询。 +// 不依赖 context.logger(宿主桥会截断消息并丢弃 fields 值)。 +import { randomUUID } from 'node:crypto'; + +const RING_SIZE = 200; +// BUG-38:显式匹配 (?:Bearer|Basic)\s+ 前缀,避免把 authorization: Bearer +// 只脱敏到 'authorization: Bearer' 而把真令牌留在日志里。 +// 字段值分支把可选 scheme 一并吞入,整段替换。 +const SECRET_RE = /(?:authorization|x-desktop-token|x-biliup-auth|cookie|set-cookie|token|appPassword|secret)\s*[:=]?\s*(?:(?:Bearer|Basic)\s+)?[^\s,;]+|(?:Bearer|Basic)\s+[^\s,;]+/gi; + +export function redact(text) { + if (typeof text !== 'string') return String(text); + return text.replace(SECRET_RE, (m) => { + // 裸 scheme(Basic/Bearer + 凭据)分支:先判前缀,避免凭据里的 '=' / ':' 被误当分隔符。 + const scheme = m.match(/^(Bearer|Basic)\s+/i); + if (scheme) return scheme[1] + ' ***'; + const sep = m.match(/[:=]/); + if (sep) return m.slice(0, m.indexOf(sep[0]) + 1) + '***'; + return m.split(/\s+/)[0] + ' ***'; + }); +} + +// BUG-38:有界去重集合,避免重复广播历史事件且防止无界增长。 +const SEEN_IDS_LIMIT = 500; + +export function createEventHub(fetchImpl, logFn) { + const ring = []; + const clients = new Set(); + let lastEventId = null; + let pollTimer = null; + let targetResolver = null; + let stopped = false; + let polling = false; // BUG-38:同步置位,堵住 startPolling 重入窗口 + const seenIds = new Set(); + + function log(level, message, fields) { + const entry = { + ts: new Date().toISOString(), + level, + message: redact(message), + fields: fields ? redact(JSON.stringify(fields)) : '', + }; + ring.push(entry); + if (ring.length > RING_SIZE) ring.shift(); + if (logFn) logFn(level, entry.message); + return entry; + } + + function snapshot() { + return ring.slice(); + } + + function broadcast(event) { + const payload = 'data: ' + JSON.stringify({ ...event, id: event.id || randomUUID() }) + '\n\n'; + for (const res of clients) { + try { res.write(payload); } catch { clients.delete(res); } + } + } + + function subscribe(req, res) { + res.statusCode = 200; + res.setHeader('content-type', 'text/event-stream; charset=utf-8'); + res.setHeader('cache-control', 'no-cache, no-transform'); + res.setHeader('connection', 'keep-alive'); + res.setHeader('x-miniapp-proxy', '1'); + res.flushHeaders?.(); + res.write(': connected\n\n'); + clients.add(res); + const cleanup = () => clients.delete(res); + req.on('close', cleanup); + req.on('error', cleanup); + } + + async function pollOnce() { + if (stopped || !targetResolver) return; + try { + const { base, headers } = targetResolver(); + if (!base) return; + // BUG-21:后端 ListQuery 是 deny_unknown_fields,只认 limit;带 ?after= 会直接 400, + // 之后每次轮询都失败、通知永不触发。增量去重交给下面的 seenIds(有界)。 + const url = new URL('/v1/activity-events', base); + const ctl = new AbortController(); + const timer = setTimeout(() => ctl.abort(), 5000); + let data; + try { + const r = await fetchImpl(url, { headers, signal: ctl.signal }); + if (r.status === 200) data = await r.json(); + } finally { + clearTimeout(timer); + } + const items = Array.isArray(data) ? data : (data?.events || data?.items || []); + for (const ev of items) { + const id = ev?.id ?? ev?.ts ?? Date.now(); + const key = String(id); + // BUG-38:单 ID 去重 + 有界 seenIds,避免反复广播历史事件与无界增长。 + if (seenIds.has(key)) continue; + seenIds.add(key); + if (seenIds.size > SEEN_IDS_LIMIT) { + const oldest = seenIds.values().next().value; + if (oldest !== undefined) seenIds.delete(oldest); + } + broadcast({ type: 'activity', ...ev, id }); + lastEventId = id; + } + } catch (e) { + log('warn', 'activity-events poll failed: ' + (e?.message || e)); + } + } + + // BUG-38:setTimeout 尾递归替代 setInterval,保证前一拍完成后才排下一拍,防并发堆积。 + let pollIntervalMs = 3000; + async function pollLoop() { + if (stopped) return; + await pollOnce(); + if (stopped) return; + pollTimer = setTimeout(pollLoop, pollIntervalMs); + } + + function startPolling(resolver, intervalMs = 3000) { + targetResolver = resolver; + pollIntervalMs = intervalMs; + if (polling || stopped) return; // 同步标志,避免首次 pollOnce 未完成时的重入 + polling = true; + stopped = false; + pollLoop(); + } + + function stop() { + stopped = true; + polling = false; + if (pollTimer) { clearTimeout(pollTimer); pollTimer = null; } + for (const res of clients) { try { res.end(); } catch { /* ignore */ } } + clients.clear(); + } + + return { log, snapshot, broadcast, subscribe, startPolling, stop, get clients() { return clients.size; } }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs new file mode 100644 index 00000000..50e7a203 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs @@ -0,0 +1,466 @@ +// Node 网关反代核心。不自行监听端口,由 server.mjs 用单一 node:http 驱动。 +// 路由优先级:/__mavis/ 放行 → 私有字面量 404 → /_miniapp 控制 → 反代 → /app 静态。 +import http from 'node:http'; +import https from 'node:https'; +import net from 'node:net'; +import tls from 'node:tls'; +import { randomBytes } from 'node:crypto'; +import { createReadStream, statSync, existsSync, realpathSync } from 'node:fs'; +import { join, extname, normalize, isAbsolute } from 'node:path'; + +// opened-file token 映射有效期:10 分钟。过期即 404;dispose() 立即清空。 +const OPENED_FILE_TTL_MS = 10 * 60 * 1000; +// 与 miniapp.json fileHandlers.extensions 对齐的白名单(BUG-02:拒绝任意扩展名)。 +const OPENED_FILE_EXTS = new Set(['.flv', '.mp4', '.mkv', '.webm', '.xml']); +// 回环 Host 白名单:控制接口只允许从本机回环访问(纵深防御,宿主守卫之上的第二道闸)。 +const LOOPBACK_HOSTS = new Set(['127.0.0.1', 'localhost', '[::1]', '::1']); + +const HOP_BY_HOP = new Set([ + 'connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', + 'te', 'trailer', 'trailers', 'transfer-encoding', 'upgrade', +]); +const FORWARDED = new Set(['forwarded', 'x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-real-ip']); +// 私有路由前缀用拼接构造,避免净版源码/产物出现完整私有字面量。 +const PRIV_MEMBER = '/v1/' + 'membership'; +const PRIV_SUPPORT = '/v1/support/' + 'logs'; + +const MIME = { + '.html': 'text/html; charset=utf-8', '.js': 'text/javascript; charset=utf-8', + '.mjs': 'text/javascript; charset=utf-8', '.css': 'text/css; charset=utf-8', + '.json': 'application/json; charset=utf-8', '.svg': 'image/svg+xml', + '.png': 'image/png', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', + '.webp': 'image/webp', '.ico': 'image/x-icon', '.woff': 'font/woff', + '.woff2': 'font/woff2', '.ttf': 'font/ttf', '.map': 'application/json', +}; + +function send(res, status, body, headers = {}) { + if (res.writableEnded || res.destroyed) return; + res.statusCode = status; + for (const [k, v] of Object.entries(headers)) res.setHeader(k, v); + res.setHeader('x-miniapp-proxy', '1'); + if (typeof body === 'string' || Buffer.isBuffer(body)) res.end(body); + else res.end(JSON.stringify(body)); +} + +function json(res, status, obj, extra = {}) { + send(res, status, JSON.stringify(obj), { 'content-type': 'application/json; charset=utf-8', ...extra }); +} + +// BUG-15:按 RFC 7230 合并同名多值头(cookie 用 '; ',其余用 ', ';set-cookie 保持数组)。 +function mergeHeader(headers, key, value) { + const k = key.toLowerCase(); + if (!(k in headers)) { headers[k] = value; return; } + const prev = headers[k]; + if (Array.isArray(prev)) headers[k] = prev.concat(value); + else headers[k] = prev + (k === 'cookie' ? '; ' : ', ') + value; +} + +// BUG-15:从上游响应头中剔除 Connection 提名头(逐跳头),set-cookie 不合并。 +function hopByHopNames(headers) { + const names = new Set(); + const conn = headers.connection || headers.Connection; + if (Array.isArray(conn)) conn.forEach((v) => String(v).split(',').forEach((n) => names.add(n.trim().toLowerCase()))); + else if (typeof conn === 'string') conn.split(',').forEach((n) => names.add(n.trim().toLowerCase())); + return names; +} + +// BUG-16:流式发送辅助函数,挂 stream.on('error') 与 res.on('close') 防连接泄漏。 +function streamFile(res, file, opts) { + const stream = createReadStream(file, opts); + stream.on('error', () => { try { if (!res.headersSent) res.statusCode = 404; res.end(); } catch { /* ignore */ } }); + res.on('close', () => { try { if (!res.writableEnded) stream.destroy(); } catch { /* ignore */ } }); + stream.pipe(res); +} + +// BUG-16:解析 Range,支持 bytes=-500(后缀)与 bytes=100-、bytes=100-200。 +function parseRange(range, size) { + const m = /^bytes=(\d*)-(\d*)$/.exec(range || ''); + if (!m || (!m[1] && !m[2])) return null; + let start, end; + if (!m[1]) { const n = parseInt(m[2], 10); start = Math.max(0, size - n); end = size - 1; } + else { start = parseInt(m[1], 10); end = m[2] ? parseInt(m[2], 10) : size - 1; } + if (isNaN(start)) start = 0; + if (isNaN(end) || end >= size) end = size - 1; + if (start > end || start >= size || size === 0) return { invalid: true, size }; + return { start, end, size }; +} + +export function createProxy(deps) { + const { getConnection, configStore, eventHub, log, clientRoot, isClosing, registerSocket, unregisterSocket, fetchImpl, now, engineDownloader } = deps; + const clock = typeof now === 'function' ? now : Date.now; + + // ---- opened-file token 映射(纯内存,不落盘,不回显路径)---- + // 宿主 files.subscribe 投递 { handlerId, files:[{path,name,extension}] }; + // POST 把每个绝对路径登记为不透明 token,GET 只按 token 流式读取。 + const openedFiles = new Map(); // token -> { path, ext, expiresAt } + + function pruneOpenedFiles() { + const t = clock(); + for (const [token, entry] of openedFiles) { + if (entry.expiresAt <= t) openedFiles.delete(token); + } + } + + function registerOpenedFiles(body) { + const files = Array.isArray(body?.files) ? body.files : []; + pruneOpenedFiles(); + const tokens = []; + for (const f of files) { + if (!f || typeof f !== 'object') continue; + const p = f.path; + // 只接受绝对路径;相对路径/空串一律跳过(纵深防御,杜绝任意路径读取)。 + if (typeof p !== 'string' || !p || !isAbsolute(p)) continue; + // realpath + isFile:拒绝符号链接越界与非普通文件。 + let real = p; + try { + real = realpathSync(p); + if (!statSync(real).isFile()) continue; + } catch { continue; } + // 扩展名白名单必须在 realpath 之后判定,否则符号链接(clip.mp4 → secret.txt) + // 可用白名单后缀绕过,读取任意文件(BUG-02)。 + // 严格只认真实路径扩展名,避免无后缀文件(如 id_rsa)凭请求体伪造 f.extension 拿到死 token。 + const ext = extname(real).toLowerCase(); + if (!OPENED_FILE_EXTS.has(ext)) continue; + const token = randomBytes(32).toString('hex'); + openedFiles.set(token, { path: real, ext, expiresAt: clock() + OPENED_FILE_TTL_MS }); + tokens.push(token); + } + return tokens; + } + + function resolveOpenedFile(id) { + if (typeof id !== 'string' || !id) return null; + const entry = openedFiles.get(id); + if (!entry) return null; + if (entry.expiresAt <= clock()) { openedFiles.delete(id); return null; } + // 读取时复核 realpath:登记后若被替换为符号链接/非普通文件则拒绝(BUG-02)。 + try { + if (!OPENED_FILE_EXTS.has(extname(entry.path).toLowerCase())) return null; + if (realpathSync(entry.path) !== entry.path || !statSync(entry.path).isFile()) return null; + } catch { return null; } + return entry; + } + + function clearOpenedFiles() { openedFiles.clear(); } + + // ---- 静态资源(仅 /app 与 /app/*)---- + function serveStatic(req, res, pathname) { + let rel = pathname === '/app' || pathname === '/app/' ? 'index.html' : pathname.slice('/app/'.length); + // 防目录穿越:归一化后不得含 '..',不得是绝对路径。 + if (rel.includes('..') || rel.includes('\\') || rel.startsWith('/')) { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + let file; + try { file = join(clientRoot, rel); } catch { return send(res, 404, 'not found'); } + // 仅对 /app、/app/ 回退 index.html;子路径不存在直接 404。 + if (!existsSync(file) || !statSync(file).isFile()) { + if ((pathname === '/app' || pathname === '/app/') && existsSync(join(clientRoot, 'index.html'))) { + file = join(clientRoot, 'index.html'); + } else { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + } + const ct = MIME[extname(file).toLowerCase()] || 'application/octet-stream'; + res.statusCode = 200; + res.setHeader('content-type', ct); + res.setHeader('x-miniapp-proxy', '1'); + // 支持静态资源 Range(BUG-16:后缀 bytes=-500 与流式错误/关闭处理)。 + const size = statSync(file).size; + const r = parseRange(req.headers.range, size); + if (r && r.invalid) { + res.statusCode = 416; + res.setHeader('content-range', 'bytes */' + size); + return res.end(); + } + if (r) { + res.statusCode = 206; + res.setHeader('content-range', 'bytes ' + r.start + '-' + r.end + '/' + size); + res.setHeader('accept-ranges', 'bytes'); + res.setHeader('content-length', String(r.end - r.start + 1)); + return streamFile(res, file, { start: r.start, end: r.end }); + } + res.setHeader('content-length', String(size)); + return streamFile(res, file); + } + + // 控制接口纵深防御(BUG-02/03):回环 Host + 严格同源 Origin。 + // 官方文档声称宿主在所有 node:http 服务前装请求守卫(/__mavis/ 401/204 探测), + // 但本会话未探针实测(见 HANDOFF 限制 5);本层不依赖该声称,独立生效。 + // 不引入 bridge token:依据该文档声称与宿主安全模型冲突,且前端无可用令牌。 + function isLoopbackControl(req) { + const rawHost = (req.headers.host || '').toLowerCase(); + const host = rawHost.replace(/:\d+$/, ''); + if (!LOOPBACK_HOSTS.has(host)) return false; + const origin = req.headers.origin; + if (origin === undefined) return true; // 原生进程/宿主注入不带 Origin,放行 + try { + const u = new URL(origin); + // 严格同源:host(含端口)必须与请求的 Host 完全一致, + // 否则本机任意端口页面都能改写 connection-config 造成 Cookie 外泄。 + return u.host.toLowerCase() === rawHost && ['http:', 'https:'].includes(u.protocol); + } catch { return false; } + } + + // ---- 引擎按需下载本机接口 /miniapp/engine/*(只本地处理,绝不反代到引擎)---- + function handleEngine(req, res, pathname) { + if (!isLoopbackControl(req)) { + return json(res, 403, { error: 'forbidden: loopback host/origin required' }); + } + if (!engineDownloader) return json(res, 503, { error: 'engine downloader unavailable' }); + if (pathname === '/miniapp/engine/status' && req.method === 'GET') { + return json(res, 200, engineDownloader.getStatus()); + } + if (pathname === '/miniapp/engine/download' && req.method === 'POST') { + const before = engineDownloader.getStatus(); + if (before.state !== 'missing' && before.state !== 'failed') { + return json(res, 409, { ok: false, state: before.state, error: '当前状态不可下载' }); + } + return json(res, 200, engineDownloader.start()); + } + if (pathname === '/miniapp/engine/redownload' && req.method === 'POST') { + const before = engineDownloader.getStatus(); + if (before.state !== 'ready') { + return json(res, 409, { ok: false, state: before.state, error: '当前状态不可重新下载' }); + } + return json(res, 200, engineDownloader.start({ force: true })); + } + if (pathname === '/miniapp/engine/cancel' && req.method === 'POST') { + return json(res, 200, engineDownloader.cancel()); + } + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + + // ---- 控制接口 /_miniapp/* ---- + function handleControl(req, res, pathname, url) { + // 写操作与文件登记必须过回环校验;GET 状态类保持可读(前端 loadRuntimeStatus 依赖)。 + const isWrite = req.method !== 'GET' || pathname === '/_miniapp/opened-file'; + if (isWrite && !isLoopbackControl(req)) { + return json(res, 403, { error: 'forbidden: loopback host/origin required' }); + } + if (pathname === '/_miniapp/runtime-status' && req.method === 'GET') { + return json(res, 200, getConnection()?.status || { mode: 'unknown', ready: false }); + } + if (pathname === '/_miniapp/connection-config' && req.method === 'GET') { + return json(res, 200, configStore.get()); + } + if (pathname === '/_miniapp/connection-config' && req.method === 'PUT') { + let body = ''; + req.on('data', (c) => { body += c; if (body.length > 1e6) req.destroy(); }); + req.on('end', () => { + try { + const patch = JSON.parse(body || '{}'); + const ok = configStore.update(patch); + json(res, ok ? 200 : 500, { ok }); + } catch { + json(res, 400, { ok: false, error: 'invalid json' }); + } + }); + return; + } + if (pathname === '/_miniapp/diagnostics' && req.method === 'GET') { + return json(res, 200, { lines: eventHub.snapshot() }); + } + if (pathname === '/_miniapp/events' && req.method === 'GET') { + return eventHub.subscribe(req, res); + } + if (pathname === '/_miniapp/engine/restart' && req.method === 'POST') { + deps.restartEngine?.(); + return json(res, 200, { ok: true }); + } + if (pathname === '/_miniapp/opened-file' && req.method === 'POST') { + // 登记:body { handlerId, files:[{path,name,extension}] };只回 token,绝不回显路径。 + let raw = ''; + req.on('data', (c) => { raw += c; if (raw.length > 1e6) req.destroy(); }); + req.on('end', () => { + let body; + try { body = JSON.parse(raw || '{}'); } catch { return json(res, 400, { ok: false, error: 'invalid json' }); } + if (!body || typeof body !== 'object' || Array.isArray(body)) { + return json(res, 400, { ok: false, error: 'invalid request body' }); + } + return json(res, 200, { ok: true, tokens: registerOpenedFiles(body) }); + }); + return; + } + if (pathname === '/_miniapp/opened-file' && req.method === 'GET') { + // 受控流式读取:只接受 POST 登记过的临时 token,绝不接路径参数。 + const id = url.searchParams.get('id') || ''; + const entry = resolveOpenedFile(id); + if (!entry || !existsSync(entry.path) || !statSync(entry.path).isFile()) { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + const ct = MIME[entry.ext.toLowerCase()] || 'application/octet-stream'; + const size = statSync(entry.path).size; + res.statusCode = 200; + res.setHeader('content-type', ct); + res.setHeader('x-miniapp-proxy', '1'); + const r = parseRange(req.headers.range, size); + if (r && r.invalid) { res.statusCode = 416; res.setHeader('content-range', 'bytes */' + size); return res.end(); } + if (r) { + res.statusCode = 206; + res.setHeader('content-range', 'bytes ' + r.start + '-' + r.end + '/' + size); + res.setHeader('accept-ranges', 'bytes'); + res.setHeader('content-length', String(r.end - r.start + 1)); + return streamFile(res, entry.path, { start: r.start, end: r.end }); + } + res.setHeader('content-length', String(size)); + return streamFile(res, entry.path); + } + return json(res, 404, { error: 'unknown control endpoint' }); + } + + // ---- 反向代理(HTTP / SSE)---- + function proxyHttp(req, res, conn, pathname) { + const target = new URL(conn.baseUrl); + const isHttps = target.protocol === 'https:'; + const transport = isHttps ? https : http; + const headers = {}; + // BUG-15:请求侧完整剔除逐跳头(含 Connection 提名),并按 RFC 合并同名多值头。 + const reqHop = hopByHopNames(req.headers); + for (let i = 0; i < req.rawHeaders.length; i += 2) { + const k = req.rawHeaders[i].toLowerCase(); + const v = req.rawHeaders[i + 1]; + if (HOP_BY_HOP.has(k) || reqHop.has(k)) continue; + if (k === 'accept-encoding') continue; // 让上游按自身默认压缩,避免我们要解压 + mergeHeader(headers, k, v); + } + if (conn.mode === 'sidecar') { + // 模式 A:内部令牌 + 内部 Host;严禁任何转发头(匹配 files.rs direct_local)。 + for (const k of FORWARDED) delete headers[k]; + headers['x-desktop-token'] = conn.token || ''; + headers.host = target.host; // 127.0.0.1:internal_port + } else { + // 模式 B:透传 Cookie,显式声明来自本机回环。 + for (const k of FORWARDED) delete headers[k]; + headers['x-forwarded-for'] = '127.0.0.1'; + headers.host = target.host; + if (conn.remoteHeaders) Object.assign(headers, conn.remoteHeaders); + } + const opts = { + protocol: target.protocol, + hostname: target.hostname, + port: target.port || (isHttps ? 443 : 80), + method: req.method, + path: req.url, + headers, + }; + const up = transport.request(opts, (ures) => { + res.statusCode = ures.statusCode || 502; + // BUG-15:响应侧完整剔除逐跳头(含 Connection 提名头),防止逐跳头泄漏到客户端。 + const respHop = hopByHopNames(ures.headers); + for (const [k, v] of Object.entries(ures.headers)) { + const kl = k.toLowerCase(); + if (HOP_BY_HOP.has(kl) || respHop.has(kl)) continue; + if (Array.isArray(v)) res.setHeader(k, v); // set-cookie 等保持数组,不合并 + else res.setHeader(k, v); + } + // 模式 B:剥离 Set-Cookie 的 Domain/Secure 以便 127.0.0.1 接收。 + if (conn.mode === 'remote' && ures.headers['set-cookie']) { + res.setHeader('set-cookie', ures.headers['set-cookie'].map((c) => + c.replace(/;\s*domain=[^;]+/gi, '').replace(/;\s*secure/gi, ''))); + } + res.setHeader('x-miniapp-proxy', '1'); + ures.pipe(res); // 流式:SSE 与 Range 均由上游端到端透传 + }); + up.on('error', (e) => { + log('warn', 'upstream request failed: ' + (e?.message || e)); + if (!res.headersSent) json(res, 502, { error: 'upstream unavailable' }); + else try { res.end(); } catch { /* ignore */ } + }); + req.on('error', () => { try { up.destroy(); } catch { /* ignore */ } }); + // BUG-15:客户端提前断开时销毁上游连接,避免 SSE/大文件传输后上游连接泄漏。 + res.on('close', () => { if (!res.writableEnded) { try { up.destroy(); } catch { /* ignore */ } } }); + req.pipe(up); // 请求体流式上行(POST/PUT) + } + + // ---- WS upgrade:手工重建并透传 /v1/ws/* ---- + function handleUpgrade(req, socket, head) { + let pathname; + try { pathname = new URL(req.url, 'http://localhost').pathname; } catch { socket.destroy(); return; } + if (!pathname.startsWith('/v1/ws/')) { socket.destroy(); return; } // 只透传 WS 白名单 + const conn = getConnection(); + if (!conn) { + socket.end('HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\n\r\n'); + return; + } + const target = new URL(conn.baseUrl); + const isHttps = target.protocol === 'https:'; + const port = Number(target.port || (isHttps ? 443 : 80)); + // BUG-14:https 上游改用 tls.connect(原实现用 net.connect,远端 https WS 必失败)。 + const onConnect = () => { + clearTimeout(connectTimer); + const headers = []; + const skip = new Set(['host', 'connection', 'upgrade', ...FORWARDED]); + for (let i = 0; i < req.rawHeaders.length; i += 2) { + const k = req.rawHeaders[i]; + const kl = k.toLowerCase(); + if (skip.has(kl)) continue; + headers.push(k + ': ' + req.rawHeaders[i + 1]); + } + if (conn.mode === 'sidecar') headers.push('x-desktop-token: ' + (conn.token || '')); + else { + // BUG-14:remote 模式注入完整 remoteHeaders(含 authorization),原实现只发 x-forwarded-for。 + headers.push('x-forwarded-for: 127.0.0.1'); + for (const [k, v] of Object.entries(conn.remoteHeaders || {})) headers.push(k + ': ' + v); + } + const requestLine = req.method + ' ' + req.url + ' HTTP/1.1\r\n'; + const headText = + 'Host: ' + target.host + '\r\n' + + 'Upgrade: websocket\r\n' + + 'Connection: Upgrade\r\n' + + headers.join('\r\n') + '\r\n\r\n'; + upstream.write(requestLine + headText); + if (head && head.length) upstream.write(head); // 完整写入 head + }; + const upstream = isHttps + ? tls.connect({ host: target.hostname, port, servername: target.hostname }, onConnect) + : net.connect(port, target.hostname, onConnect); + // BUG-14:连接超时兜底,避免上游不可达时半开连接永久挂起。 + const connectTimer = setTimeout(() => { try { upstream.destroy(); } catch { /* ignore */ } }, 8000); + registerSocket?.(upstream); registerSocket?.(socket); + const cleanup = () => { clearTimeout(connectTimer); unregisterSocket?.(upstream); unregisterSocket?.(socket); }; + // BUG-14:双端 close/error 均销毁对端,防止单边泄漏。 + upstream.on('error', () => { try { socket.destroy(); } catch { /* ignore */ } cleanup(); }); + socket.on('error', () => { try { upstream.destroy(); } catch { /* ignore */ } cleanup(); }); + upstream.on('close', () => { try { socket.destroy(); } catch { /* ignore */ } cleanup(); }); + socket.on('close', () => { try { upstream.destroy(); } catch { /* ignore */ } cleanup(); }); + upstream.pipe(socket); + socket.pipe(upstream); + } + + // ---- 主请求处理器 ---- + async function handle(req, res) { + if (isClosing?.()) { try { res.destroy(); } catch { /* ignore */ } return; } + let url; + try { url = new URL(req.url, 'http://localhost'); } catch { return send(res, 400, 'bad request'); } + // BUG-15/16:路由判定前安全解码,防止 %5Fminiapp / %2e%2e 等编码绕过白名单与目录穿越守卫。 + let pathname = url.pathname; + try { pathname = decodeURIComponent(pathname); } catch { /* 非法编码保留原值,最终落入 404 */ } + + // 1) /__mavis/ 前缀归宿主所有:不注册拦截、绝不 SPA 回退吞掉。 + if (pathname.startsWith('/__mavis/')) { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + // 2) 开源净版纵深防御:私有字面量直接 404,绝不明文代理。 + if (pathname.startsWith(PRIV_MEMBER + '/') || pathname === PRIV_MEMBER || + pathname.startsWith(PRIV_SUPPORT)) { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + // 4) 控制接口 + if (pathname.startsWith('/_miniapp/')) return handleControl(req, res, pathname, url); + // 4a) 引擎按需下载:本机接口,先于业务反代命中,绝不进入 /v1|/bili|/static 通道。 + if (pathname.startsWith('/miniapp/engine/')) return handleEngine(req, res, pathname); + // 5) 业务反代 + if (pathname.startsWith('/v1/') || pathname.startsWith('/bili/') || pathname.startsWith('/static/')) { + const conn = getConnection(); + if (!conn || !conn.baseUrl) return json(res, 503, { error: 'engine not ready' }); + return proxyHttp(req, res, conn, pathname); + } + // 6) 静态前端(仅 /app 与 /app/*,只对 /app、/app/ 回退 index.html) + if (pathname === '/app' || pathname.startsWith('/app/')) return serveStatic(req, res, pathname); + if (pathname === '/') { res.statusCode = 302; res.setHeader('location', '/app'); res.setHeader('x-miniapp-proxy', '1'); return res.end(); } + // 其余一律 404,绝不做 SPA 回退。 + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + + return { handle, handleUpgrade, clearOpenedFiles }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs new file mode 100644 index 00000000..f1823e06 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs @@ -0,0 +1,132 @@ +// MiniApp Node 入口:单一 node:http 监听 context.listen,零 node_modules 载荷。 +// 红线:只由本进程 node:http 监听分配端口;进程内不另起第二个 HTTP 服务。 +import http from 'node:http'; +import { join, dirname } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createConfigStore } from './config.mjs'; +import { createEventHub } from './events.mjs'; +import { createEngineManager } from './sidecar.mjs'; +import { createEngineDownloader } from './engine.mjs'; +import { createProxy } from './proxy.mjs'; + +const HERE = dirname(fileURLToPath(import.meta.url)); +// 插件根 = miniapp/node/ 的上两级,仅由文件位置推导;数据目录优先用宿主提供的 context.dataDir。 +const PLUGIN_ROOT = join(HERE, '..', '..'); +const CLIENT_ROOT = join(HERE, '..', 'client'); + +function normalizeListen(listen) { + if (typeof listen === 'number') return { host: '127.0.0.1', port: listen }; + if (typeof listen === 'string') { + const i = listen.lastIndexOf(':'); + if (i > 0) return { host: listen.slice(0, i), port: Number(listen.slice(i + 1)) }; + return { host: '127.0.0.1', port: Number(listen) }; + } + if (listen && typeof listen === 'object') { + return { host: listen.host || '127.0.0.1', port: listen.port }; + } + return { host: '127.0.0.1', port: 0 }; +} + +export async function start(context) { + const dataDir = context.dataDir || join(PLUGIN_ROOT, '.data'); + const logger = context.logger; + + // 自维护脱敏日志环:宿主 logger 只传键名且截断,不作为排障依据。 + function log(level, message) { + try { logger?.[level]?.(message); } catch { /* ignore */ } + } + + const configStore = createConfigStore(dataDir); + const eventHub = createEventHub((u, o) => fetch(u, o), log); + // BUG-38:engine/proxy 日志统一走 eventHub.log,先脱敏再入环,便于 /_miniapp/diagnostics 排障。 + const sharedLog = (level, message, fields) => eventHub.log(level, message, fields); + const engine = createEngineManager({ context: { ...context, dataDir }, configStore, log: sharedLog, fetchImpl: (u, o) => fetch(u, o) }); + const engineDownloader = createEngineDownloader({ + dataDir, + restartEngine: () => engine.restart(), + log: sharedLog, + }); + + const activeSockets = new Set(); + const registerSocket = (s) => { if (s && !s.destroyed) activeSockets.add(s); }; + const unregisterSocket = (s) => activeSockets.delete(s); + + let closing = false; + const proxy = createProxy({ + context, + getConnection: () => engine.getConnection(), + configStore, + eventHub, + log: sharedLog, + clientRoot: CLIENT_ROOT, + isClosing: () => closing, + registerSocket, + unregisterSocket, + restartEngine: () => engine.restart(), + engineDownloader, + fetchImpl: (u, o) => fetch(u, o), + }); + + const server = http.createServer((req, res) => { + proxy.handle(req, res).catch((e) => { + log('error', 'handler threw: ' + (e?.message || e)); + if (!res.headersSent) { res.statusCode = 500; res.setHeader('x-miniapp-proxy', '1'); } + try { res.end(); } catch { /* ignore */ } + }); + }); + server.on('upgrade', (req, socket, head) => { + try { proxy.handleUpgrade(req, socket, head); } catch { try { socket.destroy(); } catch { /* ignore */ } } + }); + // 长连接登记便于 dispose 立即断开。 + server.on('connection', (s) => { registerSocket(s); s.on('close', () => unregisterSocket(s)); }); + + const { host, port } = normalizeListen(context.listen); + // 先监听并注册完所有路由,再 resolve —— 这是就绪信号。 + await new Promise((resolve, reject) => { + server.once('error', reject); + server.listen(port, host || '127.0.0.1', () => { server.removeListener('error', reject); resolve(); }); + }); + + // start 内不做阻塞初始化:拉起子进程与事件轮询在后台状态机进行。 + engine.start(); + eventHub.startPolling(() => { + const c = engine.getConnection(); + if (!c) return { base: '', headers: {} }; + return { + base: c.baseUrl, + headers: c.mode === 'sidecar' ? { 'x-desktop-token': c.token } : (c.remoteHeaders || {}), + }; + }, 3000); + + let disposed = false; + async function dispose() { + if (disposed) return; + disposed = true; + closing = true; + log('info', 'dispose begin'); + proxy.clearOpenedFiles(); + // 1) 先销毁所有长连接/WS/SSE + closeAllConnections,避免大文件连接卡住关机。 + for (const s of activeSockets) { try { s.destroy(); } catch { /* ignore */ } } + activeSockets.clear(); + try { server.closeAllConnections?.(); } catch { /* ignore */ } + try { server.closeIdleConnections?.(); } catch { /* ignore */ } + eventHub.stop(); + // 1b) 中断在途下载;.part 保留,下次可续传。 + engineDownloader.cancel(); + // 2) 子进程回收(先 stdin EOF,再进程树强杀兜底,内部约 1.3s)。 + await engine.dispose(); + // 3) 关闭 HTTP 监听。 + await new Promise((resolve) => { + const t = setTimeout(resolve, 300); + try { server.close(() => { clearTimeout(t); resolve(); }); } catch { clearTimeout(t); resolve(); } + }); + log('info', 'dispose done'); + } + + // 生命周期信号:宿主先中止 signal 再调 dispose;这里也兜底触发一次。 + try { + context.signal?.addEventListener?.('abort', () => { dispose().catch(() => {}); }, { once: true }); + } catch { /* ignore */ } + + return { dispose }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/sidecar.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/sidecar.mjs new file mode 100644 index 00000000..bd67de5e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/sidecar.mjs @@ -0,0 +1,307 @@ +// 双模式引擎管理器:sidecar 子进程拉起 + remote 外部实例桥接。 +// 拉起采用能力探测:Phase 0 新版二进制用 --no-fleet/--shutdown-on-stdin-eof; +// master 旧版二进制降级用 --relay-listen 127.0.0.1:0(避免占用 19160 / 弹防火墙)。 +import { spawn, spawnSync } from 'node:child_process'; +import net from 'node:net'; +import { existsSync, mkdirSync } from 'node:fs'; +import { join } from 'node:path'; +import { randomBytes } from 'node:crypto'; + +const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); + +function findBinary(dataDir, configured, log) { + const exe = process.platform === 'win32' ? 'biliup.exe' : 'biliup'; + const candidates = []; + if (configured) candidates.push(configured); + candidates.push(join(dataDir, 'bin', exe)); + candidates.push(join(dataDir, 'bin', 'biliup')); + for (const c of candidates) { + if (c && existsSync(c)) return c; + } + // PATH 探测 + try { + const cmd = process.platform === 'win32' ? 'where' : 'which'; + const r = spawnSync(cmd, ['biliup'], { encoding: 'utf8', windowsHide: true }); + if (r.status === 0) { + const first = r.stdout.split(/\r?\n/).map((s) => s.trim()).find(Boolean); + if (first && existsSync(first)) return first; + } + } catch { /* ignore */ } + log('warn', 'biliup binary not found (candidates: ' + candidates.join(', ') + ')'); + return ''; +} + +function detectCapabilities(binary, log) { + let help = ''; + try { + const r = spawnSync(binary, ['server', '--help'], { encoding: 'utf8', windowsHide: true, timeout: 8000 }); + help = (r.stdout || '') + (r.stderr || ''); + } catch { /* ignore */ } + const cap = { + noFleet: help.includes('--no-fleet') || help.includes('AMOEBA_NO_FLEET'), + stdinEof: help.includes('--shutdown-on-stdin-eof') || help.includes('AMOEBA_SHUTDOWN_ON_STDIN_EOF'), + healthz: true, // /v1/healthz 只能运行时探测,先假设有,探活时降级 + }; + log('info', 'binary capabilities: ' + JSON.stringify(cap)); + return cap; +} + +function freePort() { + return new Promise((resolve, reject) => { + const srv = net.createServer(); + srv.unref(); + srv.on('error', reject); + srv.listen(0, '127.0.0.1', () => { + const port = srv.address().port; + srv.close(() => resolve(port)); + }); + }); +} + +export function createEngineManager({ context, configStore, log, fetchImpl }) { + const dataDir = context.dataDir; + let child = null; + let childPid = null; + let closing = false; + let mode = 'sidecar'; + let token = ''; + let baseUrl = ''; + let port = 0; + let status = { mode: 'sidecar', ready: false, pid: null, lastError: '', capabilities: null }; + let pollTimer = null; + let remoteHeaders = {}; + let cap = null; + + // BUG-12:start/restart/dispose 串行化,避免重叠拉起泄漏旧子进程。 + let transitionLock = Promise.resolve(); + function serializeTask(fn) { + const next = transitionLock.then(fn, fn); + transitionLock = next.catch(() => {}); + return next; + } + + // BUG-13:mode/remote 每次切换都从 configStore 重读,修复「初始化快照一次导致切换无效」。 + function refreshConfig() { + const raw = configStore.raw() || {}; + mode = raw.mode === 'remote' ? 'remote' : 'sidecar'; + remoteHeaders = {}; + if (mode === 'remote') { + const r = raw.remote || {}; + if (r.authMode === 'token' && r.token) { + remoteHeaders.authorization = 'Bearer ' + r.token; + } + // auth 模式的账号登录由前端在远端页面完成,Node 透传 Cookie;不在此处存明文口令。 + } + return raw; + } + refreshConfig(); + + function update(patch) { + status = { ...status, ...patch }; + return status; + } + + function getStatus() { return { ...status }; } + + function getConnection() { + if (mode === 'remote') { + if (!baseUrl) return null; + return { baseUrl, mode: 'remote', remoteHeaders, status: getStatus() }; + } + if (!baseUrl || !child) return null; + return { baseUrl, mode: 'sidecar', token, status: getStatus() }; + } + + async function probeReady() { + const healthCandidates = cap?.healthz === false ? [] : ['/v1/healthz', '/v1/overview', '/v1/system-stats']; + for (const p of healthCandidates) { + try { + const ctl = new AbortController(); + const t = setTimeout(() => ctl.abort(), 1500); + const r = await fetchImpl(new URL(p, baseUrl), { + headers: { 'x-desktop-token': token }, + signal: ctl.signal, + }); + clearTimeout(t); + // 200 正常;401/404 也证明 HTTP 层已就绪(不同二进制版本路由/鉴权不同)。 + if ([200, 401, 404].includes(r.status)) return true; + } catch { /* try next */ } + } + // 最终降级:TCP 可连即视为进程监听就绪。 + return new Promise((resolve) => { + const u = new URL(baseUrl); + const s = net.connect(Number(u.port) || 80, u.hostname); + const done = (v) => { try { s.destroy(); } catch { /* ignore */ } resolve(v); }; + s.setTimeout(1200, () => done(false)); + s.once('connect', () => done(true)); + s.once('error', () => done(false)); + }); + } + + function stopPolling() { + if (pollTimer) { clearTimeout(pollTimer); pollTimer = null; } + } + + // BUG-38:setTimeout 尾递归替代 setInterval,避免 probeReady(最长约 4.7s) + // 在 400ms 间隔下叠出十余个在途探测;await 后复查 closing 防止关闭窗口更新状态。 + function startPolling() { + if (pollTimer) return; + const tick = async () => { + if (closing || !baseUrl) { stopPolling(); return; } + if (status.ready) { stopPolling(); return; } + const ok = await probeReady(); + if (closing) return; + if (ok) { + update({ ready: true, lastError: '' }); + log('info', 'engine ready at ' + baseUrl); + stopPolling(); + return; + } + pollTimer = setTimeout(tick, 400); + }; + pollTimer = setTimeout(tick, 0); + } + + // 优雅停旧进程 → 等退出 → 超时强杀进程树。restart 与 dispose 共用。 + async function stopCurrentChild() { + if (!child || !childPid) return; + const proc = child; + const pid = childPid; + try { proc.stdin?.end(); } catch { /* ignore */ } + try { proc.stdin?.destroy(); } catch { /* ignore */ } + await Promise.race([ + new Promise((resolve) => proc.once('exit', resolve)), + sleep(1150), + ]); + if (proc.exitCode !== null || proc.signalCode !== null) return; + try { + if (process.platform === 'win32') { + const r = spawnSync('taskkill', ['/PID', String(pid), '/T', '/F'], { windowsHide: true, encoding: 'utf8' }); + log('info', 'taskkill result: ' + (r.stdout || r.stderr || '').trim().slice(0, 160)); + } else { + try { process.kill(-pid, 'SIGKILL'); } catch { try { process.kill(pid, 'SIGKILL'); } catch { /* gone */ } } + } + } catch (e) { + log('warn', 'force kill failed: ' + (e?.message || e)); + } + await sleep(150); + } + + async function startSidecar() { + if (closing) return; // BUG-12:入口检查 closing + const cfg = refreshConfig(); + const binary = findBinary(dataDir, cfg.binaryPath, log); + if (!binary) { update({ lastError: 'biliup binary not found' }); return; } + cap = detectCapabilities(binary, log); + port = await freePort(); + if (closing) return; // BUG-12:await freePort 后复查 closing,避免关闭后拉起孤儿进程 + token = randomBytes(32).toString('hex'); + baseUrl = 'http://127.0.0.1:' + port; + mkdirSync(dataDir, { recursive: true }); + + const args = ['server', '-b', '127.0.0.1', '-p', String(port)]; + if (cap.noFleet) args.push('--no-fleet'); + else args.push('--relay-listen', '127.0.0.1:0'); // master 降级路径 + if (cap.stdinEof) args.push('--shutdown-on-stdin-eof'); + + const env = { ...process.env }; + env.AMOEBA_DATA_DIR = dataDir; + env.AMOEBA_DESKTOP_TOKEN = token; + if (cfg.ffmpegPath) env.AMOEBA_FFMPEG_PATH = cfg.ffmpegPath; + if (cfg.renderToolsDir) env.AMOEBA_RENDER_TOOLS_DIR = cfg.renderToolsDir; + // 令牌只经 env.AMOEBA_DESKTOP_TOKEN 注入,biliup server 无 --desktop-token 参数。 + + const isWin = process.platform === 'win32'; + let proc; + try { + proc = spawn(binary, args, { + env, + windowsHide: true, + detached: !isWin, // Unix 下成为进程组 leader,便于 kill(-pid) + stdio: ['pipe', 'pipe', 'pipe'], + }); + } catch (e) { + update({ lastError: 'spawn failed: ' + (e?.message || e) }); + return; + } + child = proc; + childPid = proc.pid; + update({ pid: childPid, mode: 'sidecar', capabilities: cap }); + let stderr = ''; + proc.stderr?.on('data', (buf) => { + const s = buf.toString('utf8'); + stderr = (stderr + s).slice(-4000); + log('warn', 'engine stderr: ' + s.trim().slice(0, 300)); + }); + proc.stdout?.on('data', () => { /* drain */ }); + proc.on('error', (e) => update({ lastError: 'child error: ' + (e?.message || e) })); + proc.on('exit', (code, sig) => { + // BUG-12:旧进程 exit 回调不得误伤新拉起的进程。 + if (child !== proc) return; + if (!closing) update({ ready: false, pid: null, lastError: 'engine exited code=' + code + ' sig=' + (sig || '') }); + child = null; childPid = null; + }); + log('info', 'spawned engine pid=' + childPid + ' port=' + port + ' mode=sidecar'); + startPolling(); + } + + function startRemote() { + const r = (configStore.raw() || {}).remote || {}; + if (!r.baseUrl) { update({ lastError: 'remote baseUrl not configured' }); return; } + try { + const u = new URL(r.baseUrl); + if (!['http:', 'https:'].includes(u.protocol)) throw new Error('unsupported protocol'); + baseUrl = u.toString().replace(/\/$/, ''); + refreshConfig(); + update({ mode: 'remote', ready: true, lastError: '' }); + log('info', 'remote mode configured: ' + baseUrl + ' auth=' + (r.authMode || 'none')); + } catch (e) { + update({ lastError: 'invalid remote baseUrl: ' + (e?.message || e) }); + } + } + + // 让出一次 macrotask(check 阶段),使 poll 阶段已排队的连接先被处理; + // startSidecar 内 detectCapabilities 的 spawnSync 最多同步阻塞 8s,不能抢在就绪探测前。 + const yieldMacrotask = () => new Promise((r) => setImmediate(r)); + + // start 不阻塞 10s 门禁:仅登记状态,实际拉起/探活在串行状态机中进行。 + function start() { + return serializeTask(async () => { + if (closing) return; + if (mode === 'remote') startRemote(); + else { + update({ mode: 'sidecar', ready: false }); + await yieldMacrotask(); + if (closing) return; + await startSidecar(); + } + }).catch((e) => update({ lastError: String(e) })); + } + + // BUG-12/13:restart 先停旧进程并等退出,再重读 config(使 mode 切换与 remote.token 更新生效)。 + function restart() { + return serializeTask(async () => { + if (closing) return; + await stopCurrentChild(); + stopPolling(); + baseUrl = ''; + update({ ready: false, lastError: '' }); + const raw = refreshConfig(); + if (mode === 'remote') startRemote(); + else { await yieldMacrotask(); if (closing) return raw; await startSidecar(); } + return raw; + }).catch((e) => update({ lastError: String(e) })); + } + + // dispose 精准回收:先标记 closing → 关 stdin 优雅退出 1.1–1.2s → 超时进程树强杀。 + function dispose() { + // 必须在进入串行队列前置位 closing,才能立刻打断在途的 start()/restart()(如 freePort 等待)。 + closing = true; + stopPolling(); + return serializeTask(async () => { + await stopCurrentChild(); + }); + } + + return { start, restart, dispose, getStatus, getConnection }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/package.json b/plugins/charlesnty612/live-stream-recorder/package.json new file mode 100644 index 00000000..aab6b8dc --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/package.json @@ -0,0 +1,6 @@ +{ + "mcode": { + "schemaVersion": 2, + "miniApp": "./miniapp/miniapp.json" + } +}