Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix(web): 精简界面提示并接入 seiso 文档检查

longmeidaocae3b9d9d018
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ab7387c38..ea48eb5b8 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -12,7 +12,7 @@ Peach 是单人自托管应用,由一个人维护。欢迎提 Issue 和 PR。
## 开 Issue
- **报缺陷**:写清运行平台(Windows / macOS / Linux)、Python 版本、复现步骤、期望结果和实际结果,并附上 `/healthz` 的返回。贴日志前先去掉路径、局域网地址和凭据。
-- **提需求**:写清要解决什么问题、在什么场景下用。已知的开放需求在 [`docs/PRODUCT_BACKLOG.md`](docs/PRODUCT_BACKLOG.md),设计边界在 [`docs/adr/`](docs/adr/)。ADR 明确排除的方向(多用户、云托管、微服务、PostgreSQL)需要先讨论值不值得新立一份 ADR。
+- **提需求**:写清问题和使用场景。开放需求见 [待办](docs/PRODUCT_BACKLOG.md),设计边界见 [总体架构](docs/ARCHITECTURE.md#明确不做)。涉及多用户、云托管、微服务或 PostgreSQL 的提案,先讨论是否需要新增 ADR。
- **安全问题**:不要开公开 issue,按 [`SECURITY.md`](SECURITY.md) 私下报告。
## 提 PR 之前
@@ -53,6 +53,7 @@ Peach 是单人自托管应用,由一个人维护。欢迎提 Issue 和 PR。
## 文案
+- 文档职责、事实归属和界面提示遵循 [文档与界面文案](docs/WRITING.md)。正式测试入口执行 seiso 稳定规则;预览规则供人工复核。
- 文档、注释、界面文字和测试名一律用中文;代码标识、命令、协议名和库名保留英文。
- 只写现在的状态,不写「改动前后」的对比,也不保留被否掉的做法。`tests/test_copy_final_state.py` 会检查这一条;确实需要记录的事故原文,逐行加 `copy-lint-disable-line` 放行。
- 不要提交媒体、数据库、凭据、日志、构建缓存和个人信息(局域网地址、主机名、账号名、个人目录)。
diff --git a/README.en.md b/README.en.md
index 555093aac..f42f0c5e8 100644
--- a/README.en.md
+++ b/README.en.md
@@ -63,7 +63,7 @@ Want to look around before installing? The [live demo](https://demo.peach.video)
- **Performer pages**: aliases, birthday and measurements, social accounts and JavDB and MISSAV links on one page, above every video of hers in your library and her photos. You can pick an avatar by drawing a box on any cover.
- **Filling in details**: by video code, Peach fills in titles, performers, studios and high-resolution covers from studio sites, DMM, JavBus, JavDB and others. It only fills empty fields and never overwrites your edits.
- **Playback**: play in the browser and pick up where you left off. Like, rate, save for later, add to a playlist, or "log a climax".
-- **New releases**: turn on a subscription on a performer page, or subscribe by name in follow management (she does not need to be in your library yet), and Peach checks for her new titles regularly. Creators can be followed across 11 sites such as FANBOX, Patreon and Kemono, and the same post on different sites shows up as one card.
+- **New releases**: subscribe on a performer page or by name in follow management, including performers not yet in your library. Peach checks for new titles regularly. Follow creators across sites such as FANBOX, Patreon and Kemono; the same work on different sites appears as one card.
- **Statistics**: which drive holds what, how much you have watched and which tags dominate, on one page.
- **Appearance**: light or dark, accent color and sidebar order are all yours to set.
- **Any screen**: works in the browser on desktop, tablet and phone.
@@ -126,7 +126,7 @@ Open an [issue](https://github.com/longmeidao/peach/issues) with the version, wh
Using Peach: [Windows test build](docs/TESTING_DESKTOP.md) · [Operations](docs/OPERATIONS.md) · [Sourcing](docs/SOURCING.md) · [Cloud drive mounts](docs/CLOUDDRIVE.md) · [Changelog](CHANGELOG.md)
-Contributing: [Development guide](AGENTS.md) · [Architecture](docs/ARCHITECTURE.md) · [Testing and dependencies](docs/TESTING.md) · [Frontend](docs/FRONTEND.md) · [Reuse inventory](docs/REUSE.md) · [README maintenance](docs/README_MAINTENANCE.md). Verify changes with Windows `& .\scripts\test.ps1` or macOS/Linux `./scripts/test.sh`.
+Contributing: [Development guide](AGENTS.md) · [Architecture](docs/ARCHITECTURE.md) · [Testing and dependencies](docs/TESTING.md) · [Frontend](docs/FRONTEND.md) · [Reuse inventory](docs/REUSE.md) · [README maintenance](docs/README_MAINTENANCE.md) · [Documentation and UI copy](docs/WRITING.md). Verify changes with Windows `& .\scripts\test.ps1` or macOS/Linux `./scripts/test.sh`.
## Related projects
@@ -139,4 +139,4 @@ The full reuse and credits list is in the [reuse inventory](docs/REUSE.md).
## License
-[AGPL-3.0-or-later](LICENSE) · Copyright (C) 2026 longmeidao. Bundled third-party frontend files keep their own licenses; see [web/vendor](web/vendor/).
+[AGPL-3.0-or-later](LICENSE) · Copyright (C) 2026 longmeidao. Third-party frontend files keep their own licenses. The [dependency manifest](package.json) records versions, and the [vendor script](scripts/vendor_web_dependencies.mjs) records file and license locations in `web/vendor/`.
diff --git a/README.md b/README.md
index ab487f5f4..dbde0c5bf 100644
--- a/README.md
+++ b/README.md
@@ -63,7 +63,7 @@ https://github.com/user-attachments/assets/cc164de3-28d6-4fc9-8067-f2e70e94cb93
- **女优页**:别名、生日身材、社媒和 JavDB、MISSAV 链接汇在一页,下面是她在你馆藏里的全部作品和照片;头像可以直接在作品封面上框一块。
- **补资料**:按番号从片商官网、DMM、JavBus、JavDB 等站点补标题、女优、厂牌和高清封面;只填空着的,不覆盖你改过的。
- **播放**:在浏览器里直接播放,记下看到哪;可以点喜欢、打分、稍后看、加进播放列表,也能「记一次高潮」。
-- **追新作**:在女优页打开订阅,或在关注管理里按名字订阅(馆藏里还没有她也行),Peach 会定期查她的新作;创作者可以跨 FANBOX、Patreon、Kemono 等 11 个站点一起关注,不同站点上的同一个作品合成一张卡。
+- **追新作**:在女优页打开订阅,或在关注管理里按名字订阅,馆藏中尚未收录的女优也可订阅。Peach 会定期检查新作;创作者可跨 FANBOX、Patreon、Kemono 等站点关注,不同站点的同一作品合成一张卡。
- **统计**:片子存在哪块盘、看过多少、标签分布,一页看完。
- **外观**:深色浅色、主题色、侧栏顺序都能自己调。
- **多端**:电脑、平板、手机的浏览器都能用。
@@ -108,7 +108,7 @@ macOS 把后两条换成 `uv sync --locked --python 3.14 --extra macos` 和 `./.
- `<片名>-poster.jpg` 这样的海报。
- 已有的标题、女优、厂牌和海报会直接显示。
- **支持哪些网盘?**
- - 目前是 115 和 PikPak,用 CloudDrive2 挂载成本地磁盘。
+ - 支持通过 CloudDrive2 挂载的 115 和 PikPak。
- Peach 只把它当普通文件夹读,不保存网盘账号。
- **手机上怎么看?**
- 首次设置时选「同一局域网的设备」。
@@ -126,7 +126,7 @@ macOS 把后两条换成 `uv sync --locked --python 3.14 --extra macos` 和 `./.
使用:[Windows 测试版](docs/TESTING_DESKTOP.md) · [运行与配置](docs/OPERATIONS.md) · [来源采集](docs/SOURCING.md) · [网盘挂载](docs/CLOUDDRIVE.md) · [变更日志](CHANGELOG.md)
-参与开发:[开发约定](AGENTS.md) · [总体架构](docs/ARCHITECTURE.md) · [测试与依赖](docs/TESTING.md) · [前端开发](docs/FRONTEND.md) · [复用清单](docs/REUSE.md) · [README 维护](docs/README_MAINTENANCE.md)。改完用 Windows `& .\scripts\test.ps1` 或 macOS/Linux `./scripts/test.sh` 验证。
+参与开发:[开发约定](AGENTS.md) · [总体架构](docs/ARCHITECTURE.md) · [测试与依赖](docs/TESTING.md) · [前端开发](docs/FRONTEND.md) · [复用清单](docs/REUSE.md) · [README 维护](docs/README_MAINTENANCE.md) · [文档与界面文案](docs/WRITING.md)。改完用 Windows `& .\scripts\test.ps1` 或 macOS/Linux `./scripts/test.sh` 验证。
## 相关项目
@@ -135,8 +135,8 @@ macOS 把后两条换成 `uv sync --locked --python 3.14 --extra macos` 和 `./.
- [CloudDrive2](https://www.clouddrive2.com/):把网盘挂载成本地磁盘。
- [OpenAver](https://github.com/slive777/OpenAver)、[Javinizer-Go](https://github.com/javinizer/javinizer-go)、[MetaTube](https://github.com/metatube-community/metatube-sdk-go)、[MDCx](https://github.com/sqzw-x/mdcx):Peach 参考过它们的来源解析和推荐做法。
-完整的复用与致谢见 [复用清单](docs/REUSE.md)。
+各项目的复用位置与取舍见 [复用清单](docs/REUSE.md)。
## 许可证
-[AGPL-3.0-or-later](LICENSE) · Copyright (C) 2026 longmeidao。随附的第三方前端文件保留各自的许可证,见 [web/vendor](web/vendor/)。
+[AGPL-3.0-or-later](LICENSE) · Copyright (C) 2026 longmeidao。第三方前端文件保留各自的许可证;[依赖清单](package.json) 登记版本,[生成脚本](scripts/vendor_web_dependencies.mjs) 登记 `web/vendor/` 中的文件与许可证位置。
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index 2007f3b9f..d03861da7 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -6,7 +6,7 @@
Peach 是一个 FastAPI 模块化单体:逻辑上前后端分离,部署时仍是一个进程。默认单用户、本地自托管;在线追更、外部元数据和可插拔 AI 都是正式能力。
-应用端口不直接暴露到公网。远程访问走 VPN、Cloudflare Tunnel(默认关闭,须先设访问密码,见 `docs/OPERATIONS.md`),或 DDNS + 反代 + HTTPS。
+应用端口不直接暴露到公网。远程访问走 VPN、Cloudflare Tunnel(默认关闭,须先设访问密码,见 [docs/OPERATIONS.md](OPERATIONS.md)),或 DDNS + 反代 + HTTPS。
## 核心边界
@@ -16,7 +16,7 @@ Peach 是一个 FastAPI 模块化单体:逻辑上前后端分离,部署时
2. **API / 应用层**:FastAPI 承载页面、JSON、媒体响应和写入边界。`api.py` 只负责组装,路由分 `routes_auth`、`routes_pages`、`routes_media`、`routes_api` 四个 APIRouter;`/api/{route}` 由 `web_router` 的 handler 表分派到 `web_catalog`、`web_entity`、`web_stats`、`web_batch`、`web_follow` 等域模块。
3. **平台层**:`peach.platform` 是账本路径与本机挂载点之间唯一的翻译层。账本只用 Windows 盘符记路径,读取时按「来源的声明根 → 本机挂载点」翻译:来源即 `asset.location`,两侧由设置文件的 `[media.locations]` 与 `[media.mounts]` 给出,`PEACH_MEDIA_MOUNTS` 可临时覆盖。没有挂载点的来源落到不可达根,整体按脱盘处理。CloudDrive 在 Windows 是盘符、在 macOS 是 macFUSE 挂载点,差异全部收在这一层。
4. **Media Engine**:FastAPI 只持有一个 `MediaEngine`,本地文件与挂载网盘都是原生后端。远端 MP4 默认走标准 Range;`stream-plan` 只在显式开启时给出按时间生成的 HLS 片段。HLS 是例外而不是默认,因为 HEVC-in-TS 会静默黑屏(ADR-0016)。
-5. **Web**:单页、移动端优先。页面按 ADR-0031 从无构建步骤的 `web/` 逐页迁往 `frontend/` 的 React + Tailwind v4 + BoardUI 源码,构建产物提交进 `web/dist/`。只做逐页替换(strangler),不做整站重写,细节见 `docs/FRONTEND.md`。
+5. **Web**:单页、移动端优先。页面按 ADR-0031 从无构建步骤的 `web/` 逐页迁往 `frontend/` 的 React + Tailwind v4 + BoardUI 源码,构建产物提交进 `web/dist/`。只做逐页替换(strangler),不做整站重写,细节见 [docs/FRONTEND.md](FRONTEND.md)。
6. **AI Provider**:`InferenceProvider` 与 `AgentProvider` 分开。AI 只产出带来源和置信度的候选。
7. **Profile**:默认单用户,数据模型预留 user/profile,不引入完整账号体系。
8. **追更来源**:RSS/Atom 等成熟协议先归一化为只读候选;原始证据、复核和 ledger 写入分层。
@@ -38,7 +38,7 @@ AI/外部元数据 -> 经复核的候选 -> ledger
- 抓取或保存 ChatGPT/Claude OAuth token
- 把 Stash 私有目录或 GPL 构建当作 Peach 的稳定打包依赖
-Stash 遗留的数据缺陷与许可证边界见 `docs/STASH.md`;复用与自研的边界、旧脚本的继任关系见 `docs/REUSE.md`。
+Stash 遗留的数据缺陷与许可证边界见 [docs/STASH.md](STASH.md);复用与自研的边界、旧脚本的继任关系见 [docs/REUSE.md](REUSE.md)。
## 运行数据目录
@@ -65,4 +65,4 @@ Windows 与 macOS 各自在内置盘持有代码、`peach-data`、`.venv` 和 wo
- `tools/`:FFmpeg 等本机托管运行时;二进制和许可证不进入 Git
这是约定的分层,不是每台机器的实测形状。Mac 上 `generated` 是指向 `artifacts` 的符号链接,
-另有 `review`、`tmp`,且 `archive`/`sources`/`tools` 指向外置盘。动手前以 `docs/STATUS.md` 为准。
+另有 `review`、`tmp`,且 `archive`/`sources`/`tools` 指向外置盘。动手前以 [docs/STATUS.md](STATUS.md) 为准。
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index 0bc91d817..3b31ffec8 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -1,11 +1,12 @@
# 前端 island 层
-这份文档讲前端代码放在哪、怎么构建和测试、React 页怎么挂进遗留壳,以及迁下一个页面的步骤。
+本页说明前端构建、挂载契约和页面迁移。按任务进入:
-Peach 的界面正在从 `web/app.js`(无构建、一万一千余行的原生 ES module)逐页迁到
-React + Tailwind v4 + BoardUI 源码。迁移方式是 strangler:
-**遗留路由继续拥有外壳和每一个页面**,一页被重写之后,遗留入口只负责铺骨架、把容器和自己独有的助手交出去。
-为什么这么做、以及不做整体重写的理由见 `docs/adr/0031-frontend-react-boardui-tailwind.md`。
+1. 修改现有页面:从 [开发循环](#开发循环) 安装依赖、构建和验证。
+2. 新增 React 页面:按 [迁移下一个页面](#迁移下一个页面) 接入路由与挂载入口。
+3. 查询模块职责:看 [目录与产物](#目录与产物) 和 [挂载契约](#挂载契约)。
+
+Peach 按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页接入 React + Tailwind + BoardUI。`web/app.js` 的原生 ES module 路由拥有应用外壳,负责骨架、容器和页面助手;React 负责所挂载的页面内容。
只有一条不可变的约束:**运行时没有 Node**。Python 服务、PyInstaller 包和 macOS 上的
检出都直接读 `web/`,所以构建产物提交进 Git,不用任何 CDN。
@@ -159,7 +160,7 @@ CI(`GITHUB_ACTIONS=true`)里缺这些就判失败,由工作流负责装齐
其余几条照样全部成立。新增路由要在 `ROUTES` 里写明它的主体。
浏览器取本机 Google Chrome(`PEACH_E2E_CHROME` 可指定),短片由 ffmpeg 编码;缺 npm、
`playwright-core`、ffmpeg 或 Chrome 时本机显式跳过,CI 里判失败。声明根是 Windows 形态,目前只在 Windows 上执行,
-CI 由 `web-e2e` job 在 `windows-latest` 上执行 `web` 域,矩阵扩成全量时改由 Windows 全量行覆盖(`docs/TESTING.md`)。界面验收里发现的同类问题,
+CI 由 `web-e2e` job 在 `windows-latest` 上执行 `web` 域,矩阵扩成全量时改由 Windows 全量行覆盖([docs/TESTING.md](TESTING.md))。界面验收里发现的同类问题,
先在这里补一条用例再修。
设计决定另有 `frontend/e2e/design.test.ts`,读 `getComputedStyle` 断言用户定过的外观:React 输入框不带旧焦点环、
diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md
index abd6405ec..a0e6b9798 100644
--- a/docs/HANDOFF.md
+++ b/docs/HANDOFF.md
@@ -6,7 +6,7 @@
界面门槛见 `.claude/skills/peach-web-ui/SKILL.md`,这里只留代码外的判据。
-- NFO 见 `docs/REUSE.md`;[Banner](https://vercel.com/geist/banner) 取证见 `vercel-geist-library-banner.md`。
+- NFO 见 [docs/REUSE.md](REUSE.md);[Banner](https://vercel.com/geist/banner) 取证见 `vercel-geist-library-banner.md`。
- 凭据焦点外扩 3px,正文左右留 4px;输入框可收缩,验收所有裁切祖先。
- 截图与视觉验收的画面保护:SFW 模式(设置面板「安全」组,`#censorSetting`,localStorage `peach-censor`)默认关闭、不在导航栏。只在截图要交给会审查内容的模型(自动视觉审查或外发工具)时开启,用完关掉;普通个人浏览一律不遮挡。
- 卡片实体链接必须由同一个 `{kind,name}` 结构生成,不许先独立选显示名、再按别的字段推断类型;账本 `size` 为空或 0 时显示「大小未知」,不伪装成 `0 MB`。
@@ -22,8 +22,8 @@
- 命中推广词不算广告,剥完还剩不剩内容才算:判据在 `web_contract.promo_residue`,`tests/test_ad_judgement.py` 守这条线。`disposal` 同时承载「这是广告」和「这个来源我不喜欢」,不能当纯广告标注集来标定判据。
- 目录多余层的判据是名字冗余而不是「父目录只有一个子目录」,广告标记只剥头尾(`scripts/flatten_release_dirs.py`);账本只记文件不记目录,任何目录计划落地前都要用真实文件系统复核父目录里有没有旁挂的封面、字幕和空目录。
- 抽帧的 bt709 覆盖只在 stderr 命中坏色彩元数据时重试,无条件重试会让网盘超时的文件每帧白跑第二次,所以不能丢弃 `capture_output` 的错误流。
-- Logo 与头像都渲染成方框,候选按实测像素判定,只有 URL 没有实测尺寸不算候选;取源方向、门槛值与站点判据见 `docs/SOURCING.md`。
-- 小圆标与厂牌大 logo 是两个位置、两种资产:圆标取站点自己声明的那一份并过内容外接框闸门,宽扁字标不参加圆标竞选,`/logo` 的 `variant` 只在真有两份时才分岔(细节见 `docs/SOURCING.md`)。
+- Logo 与头像都渲染成方框,候选按实测像素判定,只有 URL 没有实测尺寸不算候选;取源方向、门槛值与站点判据见 [docs/SOURCING.md](SOURCING.md)。
+- 小圆标与厂牌大 logo 是两个位置、两种资产:圆标取站点自己声明的那一份并过内容外接框闸门,宽扁字标不参加圆标竞选,`/logo` 的 `variant` 只在真有两份时才分岔(细节见 [docs/SOURCING.md](SOURCING.md))。
- 改了圆标的取图规则或合成方式必须同时加 `link_marks.RENDER_VERSION`:缓存保鲜期 30 天,不换键的话代码换了用户看到的仍是旧那张。
- 图集就是目录:账本没有图集实体,`/api/photos` 按 `path` 去掉文件名分组、ID 取该目录里最小的资产 ID,同名目录在两个来源下算两个图集。图片墙只读 `/photo-thumb`(Pillow 缩到 640 宽、每张回源一次),原图只在灯箱读;灯箱复用 Swiper,必须等其 CSS 与 JS 都就绪再构造,否则首次打开多图会重叠。
- 人工复核入口固定为 `/review`,候选来自 writer 本机 `generated` 下的 CSV,状态写 `review_decision`;封面抓取的成功、尺寸和缺失,以及九宫格未抽出,都是机械状态,不进人工复核。
@@ -38,7 +38,7 @@
- Codex 读取 `AGENTS.md`,Claude 通过 `CLAUDE.md` 导入;项目技能共用 `.claude/skills/`,Codex 按入口索引读取。
- 测试入口为 Windows `& .\scripts\test.ps1`、macOS/Linux `./scripts/test.sh`。选测与 CI 见 `TESTING.md`;证据、集成互斥和锁定见 `peach-worktree`。
- 指令维护:按任务读取,缩小技能触发,保留事故边界,用文档、行为与数据任务复核,静态检查不证明效率改善。方法见 [OpenAI](https://developers.openai.com/blog/rethinking-skills-and-prompts-for-gpt-6-astra)。
-- 改变运行事实的任务同时更新 `docs/STATUS.md`;长期规则更新本文件、`docs/REUSE.md` 或 ADR;可执行流程写成 `.claude/skills/<name>/SKILL.md`。分层判据见 ADR-0015,步骤见 `peach-context-rules`。
+- 改变运行事实的任务同时更新 [docs/STATUS.md](STATUS.md);长期规则更新本文件、[docs/REUSE.md](REUSE.md) 或 ADR;可执行流程写成 `.claude/skills/<name>/SKILL.md`。分层判据见 ADR-0015,步骤见 `peach-context-rules`。
- 触发是概率性的:必须每次成立的规则要由脚本、测试或 hook 强制,不能只写成技能。
- 结论、进度、待办和证据写进共享文档或机器可读产物,不靠人转述。
@@ -53,17 +53,16 @@
- 复核结论写入带证据和来源的 CSV 或其他持久产物;真实 ledger 写入须另满足授权与备份门槛,执行后对账。
- 结论被修正时所有派生产物必须重建,只改说明文字不够:过期的删除清单比没有清单更危险。
- 直接证据:视觉逐条任务在聊天里说「已保存」但 `asset_tag` 的 `source='vision'` 为 0,根本没有写入步骤;`disposal-candidates.csv` 在 `BNST033` 修正后未重建,把真实 3.2 GB 正片列为待删。
-- 解析用的固定件必须是抓回来的那份 HTML,不能照记忆重画:那样只能证明代码和记忆一致,会出现测试全绿而线上一个字段都没采到(实例见 `docs/SOURCING.md`)。
+- 解析用的固定件必须是抓回来的那份 HTML,不能照记忆重画:那样只能证明代码和记忆一致,会出现测试全绿而线上一个字段都没采到(实例见 [docs/SOURCING.md](SOURCING.md))。
- Claude 的 `.claude/settings.json` 配了 Stop、StopFailure、SessionEnd hook,用 `${CLAUDE_PROJECT_DIR}/.venv/Scripts/python.exe` 调 `scripts/job_status.py --write --hook-event`:只记脱敏生命周期摘要,从 ledger 与产物重算数字后原子写入 `peach-data/state/job-status.md`,不复制 prompt、response 或凭据。
-- 那份产物不进 Git,`docs/STATUS.md` 只留一行指针;只有主检出的会话写这份状态,隔离工作树里的不写。强制杀进程或断电时 hook 不运行,下次调用会补上。
+- 那份产物不进 Git,[docs/STATUS.md](STATUS.md) 只留一行指针;只有主检出的会话写这份状态,隔离工作树里的不写。强制杀进程或断电时 hook 不运行,下次调用会补上。
## 中文文档写作规范
- 全部中文内容(README、`docs/`、ADR、技能正文、界面文案)按用户级技能 tech-doc-style-chinese 写作:
事实优先、可扫读、不新增原文没有的数字与结论;规则只作用于可见正文,代码、路径、字段和命令原样保留。
- 来源 https://github.com/Fenng/Tech-Doc-Style-Chinese (MIT),每台机器用 `npx skills add Fenng/Tech-Doc-Style-Chinese -g` 装一份,Claude 与 Codex 共用,`npx skills update -g` 升级。
-- 检查器只有一层:`scripts/check_copy_final_state.py` 是门槛,判据与放行标记见 `peach-context-rules`;
- 技能正文的风格要求靠人工复读,没有自动检查器。
+- 分类与界面表达见 [文档与界面文案](WRITING.md)。正式入口执行 seiso 稳定规则与 `scripts/check_copy_final_state.py`;实验规则与风格由人工复核。
- Peach 覆盖上游默认三处:智能体入口文件保留称呼「你」(术语表已定义其含义);`DOM/CSS/JS` 是证据 <!-- copy-lint-disable-line -->
三元组的固定写法,不展开成 JavaScript;`对齐`、`复盘` 是已注册的项目术语与技能触发词,不替换。
其余上游黑话词(兜底、落盘、闭环、链路)一律改写成具体机制。
@@ -79,7 +78,7 @@
- 渐变参数模型、`in oklab` 插值与噪点叠层:`feralui-gradients-measured`;工作台与配色圆钮:`feralui-studio-boardui-accent-measured`。
- 相关推荐算法:`openaver-related-ranking`,固定 revision,只参考 Tag IDF 与结构化共同点,MMR 和稳定破同分是 Peach 自加,不复制上游界面或源码。
-- 网格、控件半径、语义 token 与中间省略:`vercel-geist-grid`、`vercel-geist-controls-measured`、`vercel-geist-middle-truncate`;中间省略的适用范围见 `docs/REUSE.md`。
+- 网格、控件半径、语义 token 与中间省略:`vercel-geist-grid`、`vercel-geist-controls-measured`、`vercel-geist-middle-truncate`;中间省略的适用范围见 [docs/REUSE.md](REUSE.md)。
- 统计与口味层级,Note/Progress/Gauge/Context Card 等控件:`vercel-geist-semantics-measured`、`vercel-geist-note-progress-switch-analytics`、`vercel-geist-fieldset-scroller-empty-state`。
- 分类切换条属于 Tabs 的 secondary 变体而不是分段器:`vercel-geist-tabs-secondary-measured`。
- 表格、排行与面包屑:`vercel-geist-table-ranking`、`vercel-geist-breadcrumbs`;同形可比较数据才用语义 `table` 并用 tabular numerals,内容标签是固定 Top 排行和直接筛选,不伪装成可排序数据表。
@@ -103,7 +102,7 @@
## 身份、来源与标识采集
-判据细节、实测反例、判词含义和不能走的路见 `docs/SOURCING.md`,这里只留边界。
+判据细节、实测反例、判词含义和不能走的路见 [docs/SOURCING.md](SOURCING.md),这里只留边界。
- 采集脚本一律只产出复核 CSV;写 `entity.canonical_name`、`asset.studio`、`entity_link` 或头像字节都是另一次授权。
- 规范名优先用有出处的简体中文通行名,旧艺名、罗马字、假名和繁体名降为别名;`no_avatar` 只表示没取得合格图片,不阻止已核实姓名落库。
@@ -120,16 +119,16 @@
## 数据安全
-- 真实 ledger 是写入者本机 `peach-data/database/ledger.db`(WAL),正常浏览会合法写入播放与行为字段;平台绝对路径以 `docs/STATUS.md` 为准。
+- 真实 ledger 是写入者本机 `peach-data/database/ledger.db`(WAL),正常浏览会合法写入播放与行为字段;平台绝对路径以 [docs/STATUS.md](STATUS.md) 为准。
- 测试必须使用临时 SQLite、媒体和全部缓存根,不得写真实 ledger 或 `generated`;FastAPI 测试须显式传入 snapshots、posters、photo-thumbs、transcodes、stream-segments、按 asset 生成的头像与 covers。
- 可重建缓存的删除边界由当前数据库路径拥有,生产库只可清理同一 `peach-data` 下的缓存,边界外一律跳过:一次漏配曾在清空回收站的测试里删掉真实 JAV 封面。
-- 已应用的迁移文件不得修改,任何后续变更必须新增版本;真实迁移与缓存删除的操作序列见 `docs/OPERATIONS.md`。
+- 已应用的迁移文件不得修改,任何后续变更必须新增版本;真实迁移与缓存删除的操作序列见 [docs/OPERATIONS.md](OPERATIONS.md)。
- 外键 `ON DELETE` 是安全网不是删除路径:运行时连接不开 `PRAGMA foreign_keys`,物理删除仍走 `ASSET_REFERENCE_TABLES` 与 `web_playlists` 的显式 DELETE;重建被别人引用的父表要在迁移首行写 `-- peach:foreign_keys=off`,改名那步开 `PRAGMA legacy_alter_table=ON`,判据见 `0025`。
- 外置盘目标只保存 `media`,代码、运行数据、venv 和 worktree 在两台机器各自的内置盘;`peach-data` 不进入仓库,也不整体交给文件同步,分通道边界见 ADR-0017。
## 运行与部署
-CloudDrive 见 `docs/CLOUDDRIVE.md`,部署见 `docs/OPERATIONS.md`。
+CloudDrive 见 [docs/CLOUDDRIVE.md](CLOUDDRIVE.md),部署见 [docs/OPERATIONS.md](OPERATIONS.md)。
- 源码部署由项目 venv 持有服务,刷新入口 `scripts/restart_windows_tray.py`。独立测试包自带运行环境,数据在用户目录;配置更改由托盘消费标记并重启子服务。
- 「同步开发进度」(GitHub)和「同步 Ledger」(SMB 共享)是两条独立通道,任一方不可达都不该拖住另一方;服务只观察角色不自动复制。
@@ -147,16 +146,16 @@ CloudDrive 见 `docs/CLOUDDRIVE.md`,部署见 `docs/OPERATIONS.md`。
- 规范女优、厂牌、标签、创作者进入 `entity`、`entity_external_ref`、`asset_entity`;扁平 `asset_tag` 和 creator/studio 字段只是兼容投影。
- FastAPI 与前端保持单体部署,在线来源和 AI 只通过显式适配器进入;AI runtime 与推理 API 的协议边界见 ADR-0003。
- 前端按 ADR-0031 走 strangler 迁移:新页面进 `frontend/src/react/`(React + Tailwind + BoardUI 源码),逐页替换,不做整站重写;分发阶段见 ADR-0023。
-- 页面与交互的已定型行为写 `docs/REUSE.md`,由 API 与测试守住;版本号、像素值、批量大小与性能测量是实现快照,留在测试或参考快照,本文件不抄。
+- 页面与交互的已定型行为写 [docs/REUSE.md](REUSE.md),由 API 与测试守住;版本号、像素值、批量大小与性能测量是实现快照,留在测试或参考快照,本文件不抄。
- `/taste` 只读合并 Peach 行为与本机私有浏览历史,明确以浏览器记录为主要画像、Peach 内部为辅助证据,分别排序,不把「不合口味」自动归因或降权到 Tag。
- 查询词里的负号项整体排除,下划线是组合词边界的一部分,不得把 `-ai_generated` 拆成正向 `generated`;模糊时长旧 Tag 只作兼容识别,不进入口味、索引、详情和筛选状态。
- 原始 URL 与标题不进入页面或 ledger;上传原件存 `sources/taste-history/imports`,移除数据源只清理规范化分析库,不删原件。浏览器数据库解析固定复用 `browserexport==0.4.4`,运行中浏览器先由 SQLite backup API 取一致快照。本机发现不等于跨机同步,跨机数据要显式导出、传输并按来源去重合并。
- 追更连接器、凭据、变体和跨站归组以 ADR-0019 为准;关注页顶部标签筛选与卡片只用来源明确标记为 `general` 的内容标签,详情页与在线索引保留全部来源标签并按类型着色,未知类型不猜成 `general`。
-- FANBOX 正文统一经过 `peach.fanbox.normalize_fanbox_post`,边界见 `docs/REUSE.md`「必须复用的成熟实现」。
+- FANBOX 正文统一经过 `peach.fanbox.normalize_fanbox_post`,边界见 [docs/REUSE.md](REUSE.md)「必须复用的成熟实现」。
- FANBOX Cookie 与 Gofile token 都是本机可选凭据,只进各自站点的请求头,不进 URL、证据、ledger 公开投影或浏览器 JSON;只允许公开 JSON,不解机器人质询、不执行网页脚本、不读付费内容。
- Gofile 把 contents API 限给 Premium:`error-notPremium` 按套餐限制报告,不误报成 token 无效;没取得文件列表时保留分享页,不得声称已取得视频。
- 同一篇 FANBOX 可含多个 Gofile 文件夹:作品级仍是一个来源合集,媒体保留文件夹 id 与正文标签并在详情队列内分段,不拆作品也不压平混排。
-- 自动追更用 APScheduler,只在 ledger writer 启动,频率存 `peach-data/state/follow-schedule.json`,默认每小时且启动后等满一个间隔,不要改成启动即抓;单实例、与手动检查互斥见 `docs/REUSE.md`「必须复用的成熟实现」,reader 只显示不可用状态。
+- 自动追更用 APScheduler,只在 ledger writer 启动,频率存 `peach-data/state/follow-schedule.json`,默认每小时且启动后等满一个间隔,不要改成启动即抓;单实例、与手动检查互斥见 [docs/REUSE.md](REUSE.md)「必须复用的成熟实现」,reader 只显示不可用状态。
- 账本路径兼容和抽帧失败处理统一见 `.claude/skills/peach-cross-platform/SKILL.md` 与 `.claude/skills/peach-batch-jobs/SKILL.md`。
## Web 性能边界
@@ -170,4 +169,4 @@ CloudDrive 见 `docs/CLOUDDRIVE.md`,部署见 `docs/OPERATIONS.md`。
重构时从活动目录删除的 deprecated 脚本与按日期文档,Git 历史仍可恢复。旧 `_SHARED_STATE` 与重构前的
根仓库元数据备份在各机 `peach-data` 的 `state`/`archive` 下,只作恢复证据;位置以
-`docs/STATUS.md` 为准,Mac 的 `archive` 是指向外置盘的符号链接,盘不在时读不到不等于备份没了。
+[docs/STATUS.md](STATUS.md) 为准,Mac 的 `archive` 是指向外置盘的符号链接,盘不在时读不到不等于备份没了。
diff --git a/docs/OPERATIONS.md b/docs/OPERATIONS.md
index f662152f9..acc1ab1ba 100644
--- a/docs/OPERATIONS.md
+++ b/docs/OPERATIONS.md
@@ -420,7 +420,7 @@ launchctl kickstart -k gui/$(id -u)/io.github.longmeidao.peach.tray
### 迁移、备份与运维脚本
-- 真实迁移前依次执行:SQLite 备份、asset/tag 计数、`PRAGMA integrity_check`、迁移版本检查、服务冒烟测试。已应用与待应用的迁移以 `docs/STATUS.md` 和实际 `migrate status` 为准。
+- 真实迁移前依次执行:SQLite 备份、asset/tag 计数、`PRAGMA integrity_check`、迁移版本检查、服务冒烟测试。已应用与待应用的迁移以 [docs/STATUS.md](STATUS.md) 和实际 `migrate status` 为准。
- 已应用的迁移文件不能修改,任何后续变更都要新增一个版本。已应用的迁移被改写会造成校验和漂移,只能用迁移前备份重放、逐条比对差异为 0 后再校正 `schema_migration`。
- 数据库备份自动清退:`ledger.pre-*.db` 由 `peach.ledger_backups` 管理,「最近 5 份」「24 小时内」「比 `ledger.db` 新」三类全部保留,其余连同 `-wal`/`-shm` 删除。Windows 托盘每次启动自动执行;`scripts/prune_ledger_backups.py` 手动运行时默认只列计划,`--apply` 才删除;数据库 `integrity_check` 不是 ok 时拒绝清退,退出码 2。每份备份一百多 MB,5 天不清就是 7 GB。
- `<数据根>/logs` 里的 `*.log` 统一保留半年,不限大小(`peach.log_retention.sweep`,托盘在启动任何子进程之前运行):半年没写过的文件整份删除;还在写的文件按自然月分段,上次写入在更早月份的改名成 `<名字>.until-<最后写入日期>.log`,再过半年删除。子进程直接追加 stdout,不经过 `logging`,所以按文件处理,不按行处理。
diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.md
index 2211cbf6d..3bdf331e2 100644
--- a/docs/PRODUCT_BACKLOG.md
+++ b/docs/PRODUCT_BACKLOG.md
@@ -57,10 +57,10 @@ shuffle_key 会改变随机浏览的顺序语义,先测关系筛选的收益
12. 健康检查生产验收:`db` 区分 missing、empty、available、unavailable,`?ready=1` 检查 schema 校验和;待部署后用项目 CA 验证 HTTPS 与损坏/未初始化状态。
13. 界面国际化:界面目前只有中文,先补英文。
14. 制品与更新渠道:剩余 macOS 独立包、代码签名、独立测试包的自动更新、局域网配对和更完整的配置管理。已有的部分是 Windows 独立测试包(免安装 zip 与当前用户安装包两种)、首次引导与本机配置表单、按构建身份自行重建的打包托盘、由 `release_tag.py` 在发布点独家发出的版本号与标签(每个版本号对应一份制品并在 `CHANGELOG.md` 有一节),以及退出程序后完整解压新版、数据目录保持独立的测试包更新。关闭判据见 ADR-0012「1.0 门槛」第 8 项。
-15. 「第一个小时」教程与故障排查文档:init → 声明来源根 → scan → 打开页面 → 手机信任 CA → 托盘/菜单栏自启动,每一步写清失败表现与对应的排查动作;截图用一套小的 SFW 演示数据集生成,不取自真实馆藏。演示数据集由 `scripts/demo_dataset.py` 生成,用法见 `docs/README_MAINTENANCE.md`「演示数据集」;教程正文与截图仍待做。
+15. 「第一个小时」教程与故障排查文档:init → 声明来源根 → scan → 打开页面 → 手机信任 CA → 托盘/菜单栏自启动,每一步写清失败表现与对应的排查动作;截图用一套小的 SFW 演示数据集生成,不取自真实馆藏。演示数据集由 `scripts/demo_dataset.py` 生成,用法见 [docs/README_MAINTENANCE.md](README_MAINTENANCE.md)「演示数据集」;教程正文与截图仍待做。
16. 项目网站:一页说明是什么、截图、安装入口与文档链接。
17. 口味导入引导:`/taste` 上传(Takeout ZIP、browserexport 兼容文件)与 `scripts/taste_history.py` 直读本机浏览器库两条路都能用,首次设置和口味页也有简短指南,但没有面向陌生人的完整文档。需要一页「各浏览器怎么导出、多台设备怎么各自刷新」教程,把脚本折进 `peach` CLI(见「把常跑批处理折进 `peach` CLI」一条),并写明定时刷新的安装方式。
-18. README 瘦身:把「依赖维护」「开发」两节移到 `CONTRIBUTING.md`,「目录」并入 `docs/ARCHITECTURE.md`,「主要页面」「关注与候选」压成一张表;README 只留是什么、边界、前置条件、安装、下载、文档入口与许可证。中英两份同步。
+18. README 瘦身:把「依赖维护」「开发」两节移到 `CONTRIBUTING.md`,「目录」并入 [docs/ARCHITECTURE.md](ARCHITECTURE.md),「主要页面」「关注与候选」压成一张表;README 只留是什么、边界、前置条件、安装、下载、文档入口与许可证。中英两份同步。
19. 局域网访问:HTTP 导航与 HTTPS 单一业务入口的候选代码已就绪,待生产部署验证。配对仍需一次性配对码或 HTTPS 地址二维码,减少设备首次访问时手输口令;现有口令生成、取用与非回环无口令拒绝启动不重复实现。
20. 全新安装的自动门槛:现有 `Test` 装的是 `-e ".[build,vision,maintenance-115,naming]"` 全套可选依赖、开着 pip 缓存、只跑单元测试,证明不了「陌生用户按 README 装完能用」。补三条互相独立的冒烟:① minimal source:全新 venv、`--no-cache-dir` 只装默认依赖、`peach init`(连跑两次验幂等)、`migrate status`、**离开仓库根目录**再 `peach serve`,请求 `/healthz`、`/`、`/api/items`,覆盖 3.12/3.14 × Windows/macOS 以及无 FFmpeg/OpenSSL/Node 的机器;② wheel:`python -m build` 后在不 checkout 源码的 job 里装 `dist/*.whl` 走同一套流程,它通过才能去掉 README 的 `-e` 硬要求(依赖「非 editable 安装的跨平台验收」);③ artifact-only:只下载刚构建的制品、不 checkout 源码地跑起来(依赖「制品与更新渠道」)。消费方一律不许 checkout:工作目录会替制品补上漏掉的文件,那是假通过。失败场景也要覆盖:数据根不可写、端口被占、账本损坏、未配置媒体目录、无 FFmpeg、非回环监听但无口令、两个 writer 同时起。
21. `peach doctor` 与分级 `/healthz`:`doctor`(另带 `--json`)逐项报版本、数据根可写性、配置文件合法性、数据库能否打开、schema 版本与待执行迁移、FFmpeg/ffprobe/OpenSSL 路径、挂载点可达性、端口占用、是否处在「局域网暴露但无口令」状态、后台任务最近一次失败;输出脱敏,不带口令、cookie、站点凭据和完整媒体路径。`/healthz` 相应从布尔改成分项状态(`database`/`schema`/`configured`/`ffmpeg`/`media_mounts`/`security`),与「健康检查生产验收」一起做。
@@ -89,7 +89,7 @@ shuffle_key 会改变随机浏览的顺序语义,先测关系筛选的收益
## 待执行的操作(44 项)
-需要另行授权、外部条件或人工判断才能做的具体操作与复核批次,比上面的需求细一层;做完就删,不在这里留痕。待办只放这一处:`docs/STATUS.md` 每次会话开头都要读,队列不该常驻在那种入口文件里。
+需要另行授权、外部条件或人工判断才能做的具体操作与复核批次,比上面的需求细一层;做完就删,不在这里留痕。待办只放这一处:[docs/STATUS.md](STATUS.md) 每次会话开头都要读,队列不该常驻在那种入口文件里。
1. 查清 2026-09-02 那 191 行 `javinizer:%:tag` 的去向(javbus −172、r18dev −19,无可归因的写入者)。先重跑「读计数 → sqlite_backup → 再读计数」看是否可复现。
2. 在 `/review` 处理 5 个被跳过的标题偏移值:`MY-101`~`MY-104`、`SAR-103`。
@@ -120,22 +120,22 @@ shuffle_key 会改变随机浏览的顺序语义,先测关系筛选的收益
25. 其他厂牌官网的厂标与演员资料广度扫描(SOD、FALENO、Attackers、S1、Moodyz 等),排在第 22 条 javdatabase idol 页接入之后。
26. 用 javtiful 的 `/ja/actress/<slug>` 补演员的罗马字↔日文配对:315 页约 7560 位,切语言前缀就出日文名。厂牌名不随语言切换,这条只服务演员别名。
27. 37 位演员在 javdb 上只有日文名(`同形`),另有 5 位未取得,中文名要换来源:javtiful 的 `/ja/actress/<slug>`(第 26 条)或 javdatabase 的 idol 页。复核产物 `peach-data/review/javdb-cn-names-20260904.csv` 逐行带 verdict 和证据,可直接筛。
-28. macOS 标识 `io.github.longmeidao.peach.*` 在 Mac 上生效:代码已在 master(`src/peach/appid.py` 是唯一来源,`install_macos_agent.py` 与 `setup_macos_port80.sh` 会自己清掉遗留标签),命令与四项核对见 `docs/OPERATIONS.md`「桌面入口与发布」。放进第 30 条的维护窗口一起做;两台机器都跑过之后删掉 `peach.appid` 里的遗留标签表和用到它的分支。这是换生产入口,执行前须当场授权。
+28. macOS 标识 `io.github.longmeidao.peach.*` 在 Mac 上生效:代码已在 master(`src/peach/appid.py` 是唯一来源,`install_macos_agent.py` 与 `setup_macos_port80.sh` 会自己清掉遗留标签),命令与四项核对见 [docs/OPERATIONS.md](OPERATIONS.md)「桌面入口与发布」。放进第 30 条的维护窗口一起做;两台机器都跑过之后删掉 `peach.appid` 里的遗留标签表和用到它的分支。这是换生产入口,执行前须当场授权。
29. `peach-data/review/composite-names-20260904.csv` 里还剩 28 条 creator 规范名带括号,括号里是读音或罗马音(`Egami(えがみ)`、`永地(eichi)`、`猫屋(NEKOYA)`),决定不拆,因为它们不像艺名那样各自独立,是同一个名字的注音。同一份 CSV 里 575 条 tag 是角色的作品出处消歧,10 条 series 括号里是厂牌或载体消歧(拆了会把三个 `AV DEBUT` 撞成一个),都不要动。剩下真正待判的只有 performer 规范名 `Mana(23)` 一条:数字是去重后缀还是名字的一部分要看源站。
30. Mac 追上 master 的一组操作,按顺序做完再重启菜单栏。做完之前不要重启:master 上的 `peach serve --host 0.0.0.0` 没有口令会拒绝启动,reader 会直接消失。① `git pull` 到 master;② `pip uninstall -y peach-app && pip install -e ".[macos]"`;③ 先把 Windows 的 `peach-data/secrets/auth-token` 复制到 Mac 数据根的同一路径,因为 reader 取 writer 复核结果发的是自己的口令,两边必须是同一份,而 `--from-existing` 找不到文件会自己生成一份不同的;④ `peach init --from-existing --mount local=<落点>`;⑤ 重启菜单栏,核对 `/healthz`、`/review` 能读到 writer,手机与 Mac 浏览器各登录一次。第 28 条的标签改名可以放进同一个维护窗口。
31. 事务所改名复核:Wish/GIRFY、LiStarPRO/GRANZPRO 缺可核验官网;LIGHT 与 ELTRA/EST 存在分流,不能整体合并;Prime Agency/GG 有歧义,Cruse Group 官网证书链未取得。原始请求与逐条结论位于顶层 `attic/reviews/20260906-portrait-agency/agency-review.csv`。只对取得证据且获用户批准的记录执行合并。
2026-09-06 核对 wish-promotion.jp 已是其他内容站,不能作为现官网。15 条现官网链接使用共用 Chrome UA 重查,13 条返回 200;Cruse Group 证书链与 Prime Agency TLS 连接仍未取得。
32. `install_entity_links.py` 的可达性门槛按「非 200 就跳过」执行,而同文件的 `is_gone()` 明确写着 403/5xx/连接错误不能当「页面没了」。首批 703 条里 137 条因此没装,其中 31 条 twitter.com、23 条 t-powers.co.jp。把跳过分成「确证没了」和「这次没取到」两档:后者留进待复查队列,配合 `rediscover_entity_links.py` 对 t-powers/nax-pro/mines-pro 这些已经搬家的域名上溯找新锚,再装一次。
33. 托盘自重建会被测试记录门槛卡住。机制已确认:托盘在主检出跑全量,`integrate` 的 `integration.lock` 与全量的 `full-suite.lock` 互不排斥,任何一次集成都会改掉正在验证的树,`scripts/test_runner.py` 随即因验证前后内容或依赖快照不一致判记录无效、退出码 1,托盘把它当测试失败处理:不打包、不换 EXE、同一 HEAD 不再重试。要做三件事:集成前等主检出里正在跑的全量结束(或让两把锁互斥);把「记录无效」和「用例失败」在退出码或输出上分开,让托盘对前者重试而不是放弃;托盘日志只写 stderr、不写文件,给托盘补一份 `logs/tray.log`,否则托盘连同子服务一起消失时查不到原因。
-34. 封面来源头像逐条复核:37 张仍来自 `cover-fallback`,其中 3 人在图库里本来就有人像,资料页上一点就能换掉;完整初始清单位于 `attic/reviews/20260906-portrait-agency/remaining-cover-avatars.csv`。41 张被封面覆盖的 Gfriends 人像已从备份恢复,包括日向真凛,恢复记录见同目录 `cover-restore-result.json`。采集器将封面保留为未验证候选,安装函数拒绝把整张封面写成人物头像;补头像后继在这批人的作品换上新封面时截封面上的脸替换它们(`cover-face`),还没轮到的仍待逐条换。DMM 女优一览页已排除为换源候选:头像只有 125×125,且同批图 Gfriends 已收在最后一档(2026-09-11 实测,结论与取证位置见 `docs/SOURCING.md`)。
+34. 封面来源头像逐条复核:37 张仍来自 `cover-fallback`,其中 3 人在图库里本来就有人像,资料页上一点就能换掉;完整初始清单位于 `attic/reviews/20260906-portrait-agency/remaining-cover-avatars.csv`。41 张被封面覆盖的 Gfriends 人像已从备份恢复,包括日向真凛,恢复记录见同目录 `cover-restore-result.json`。采集器将封面保留为未验证候选,安装函数拒绝把整张封面写成人物头像;补头像后继在这批人的作品换上新封面时截封面上的脸替换它们(`cover-face`),还没轮到的仍待逐条换。DMM 女优一览页已排除为换源候选:头像只有 125×125,且同批图 Gfriends 已收在最后一档(2026-09-11 实测,结论与取证位置见 [docs/SOURCING.md](SOURCING.md))。
35. 2026-09-07 首要原则审查(覆盖整个 `peach-app`)的剩余清理项,完整报告与判断依据在顶层 `attic/reviews/20260907-first-principles/review.md`。下面每条独立,可单独派工作树:
- follow:`connector_headers` 形参、`blocked_reason` 基类钩子、`FollowCandidate.version` 输入字段只有测试在用;`KemonoConnector.HOSTS`/`SubscribeStarConnector.HOSTS` 与登记表 `url_hosts` 是同一份主机表的第二份;Rule34Video 自带的探测循环可并入 `enrich()`;425/429 进 `_send` 的可重试集后两段手写重试可删。
- follow 弱假设:六处「读时修旧行」兼容层(`archive_file_url`、`_legacy_history_end`、`_f95_has_resource`、`split_posts`、`author_display_text` 修正、`f95_attachment_media_items`)换成一次带备份的迁移,需 ledger 写授权。ETag/304 机制保留:2026-09-08 只读核查,45 条来源 `etag` 全空、从未回过 304,但 f95zone 有 7 条存下 `last_modified`,条件头有站点在回。
- - Web:`serve --no-ledger-sync`/`--ledger-sync-seconds` 处理代码已删、参数还在,托盘五处与 `docs/OPERATIONS.md` 仍在传。这一项必须和托盘重建同批做,旧 EXE 拉起新代码的窗口期会被 argparse 拒收;四个域 Protocol(`LinkContract`、`PlaylistContract`、`ResourceSyncContract`、`ReviewContract`)换成直接用 `WebContract`,`ContractConformanceTests` 随之删;来源在线判定、回环判定各有三份,各留一份;`_read_answers`/`_validate` 里「只发 media_dirs」的旧表单分支生产不可达,只靠测试活着;access `legacy` 模式的 `tok` cookie 只被接受不被升级,定截止日删接受分支。
- - 桌面:换 EXE 两条路径(`replace_windows_tray.py` + `windows_update` 内联备份,与 `windows_restart.swap_tray_binary`)留校验更强的后者;`test_runner.py` 把「记录无效」与「用例失败」分成不同退出码(第 33 条的根因);`sync.py` 的 `PUSH_INTERVAL_SECONDS`/`push_if_needed`/`interval` 生产只传 0;`scripts/manage_tray_startup.ps1` 已由 `desktop_startup.py` 接管(同时改 ADR-0011 与 `docs/OPERATIONS.md`);三张「哪些路径算运行时」清单合成一处。
+ - Web:`serve --no-ledger-sync`/`--ledger-sync-seconds` 处理代码已删、参数还在,托盘五处与 [docs/OPERATIONS.md](OPERATIONS.md) 仍在传。这一项必须和托盘重建同批做,旧 EXE 拉起新代码的窗口期会被 argparse 拒收;四个域 Protocol(`LinkContract`、`PlaylistContract`、`ResourceSyncContract`、`ReviewContract`)换成直接用 `WebContract`,`ContractConformanceTests` 随之删;来源在线判定、回环判定各有三份,各留一份;`_read_answers`/`_validate` 里「只发 media_dirs」的旧表单分支生产不可达,只靠测试活着;access `legacy` 模式的 `tok` cookie 只被接受不被升级,定截止日删接受分支。
+ - 桌面:换 EXE 两条路径(`replace_windows_tray.py` + `windows_update` 内联备份,与 `windows_restart.swap_tray_binary`)留校验更强的后者;`test_runner.py` 把「记录无效」与「用例失败」分成不同退出码(第 33 条的根因);`sync.py` 的 `PUSH_INTERVAL_SECONDS`/`push_if_needed`/`interval` 生产只传 0;`scripts/manage_tray_startup.ps1` 已由 `desktop_startup.py` 接管(同时改 ADR-0011 与 [docs/OPERATIONS.md](OPERATIONS.md));三张「哪些路径算运行时」清单合成一处。
- 领域层:`catalog_rules` 里站名交替串、TLD 列表各写两份;`transcodes.requires_conversion`/`browser_path` 是同一段缓存逻辑;`code_variants` 在 `jav_cover_fetch` 与 `catalog_rules` 各一份;`library_processing` 是第三条 r18 请求路径且跨模块拿私有 `_fetch`。
- - scripts:`audit_creator_attributions.py`(查的 `legacy:asset` 已无写入者)、`apply_metadata_tags.py`(绕过 `/review`)、`creator_tags.py --apply-review`(与 `web_review` 判据不同的第二条写路,`--export-review` 要留)建议删;7 处绕开 `scripting.open_for_write`、5 处自拼只读 URI、5 处手写线性重试要接上共享实现;`audit_video_endcards.py`、`audit_fc2_similarity.py`、`localize_series_names.py`、`find_ads.py` 还会用但文档没登记,归到 `peach-batch-jobs` 或 `docs/SOURCING.md`。
- - tests:约 5 200 条源码文本断言,4 593 条在 `test_web_ui.py`(近 90 天 20% 的提交都在改它),`test_follow_web.py` 的关注管理页部分已换成 vitest 与 e2e,全文件剩 354 条;棘轮 `test_source_assertion_ratchet.py` 只许减少,换法见 `docs/TESTING.md`「写什么测试」;页面断言设施两处各写一份;`test_fastapi_api.BASE_SCHEMA` 手写 22 张表,与 `migrations/*.sql` 的漂移未取得;31 个文件手写 `CREATE TABLE`,`tests/support/ledger.py` 有 22 个在用。方向是触碰时迁到 `test_web_js.py` 与 `fresh_ledger()`,不整体重写;`check_copy_final_state.py` 的词表不拦「过去/此前」。
+ - scripts:`audit_creator_attributions.py`(查的 `legacy:asset` 已无写入者)、`apply_metadata_tags.py`(绕过 `/review`)、`creator_tags.py --apply-review`(与 `web_review` 判据不同的第二条写路,`--export-review` 要留)建议删;7 处绕开 `scripting.open_for_write`、5 处自拼只读 URI、5 处手写线性重试要接上共享实现;`audit_video_endcards.py`、`audit_fc2_similarity.py`、`localize_series_names.py`、`find_ads.py` 还会用但文档没登记,归到 `peach-batch-jobs` 或 [docs/SOURCING.md](SOURCING.md)。
+ - tests:约 5 200 条源码文本断言,4 593 条在 `test_web_ui.py`(近 90 天 20% 的提交都在改它),`test_follow_web.py` 的关注管理页部分已换成 vitest 与 e2e,全文件剩 354 条;棘轮 `test_source_assertion_ratchet.py` 只许减少,换法见 [docs/TESTING.md](TESTING.md)「写什么测试」;页面断言设施两处各写一份;`test_fastapi_api.BASE_SCHEMA` 手写 22 张表,与 `migrations/*.sql` 的漂移未取得;31 个文件手写 `CREATE TABLE`,`tests/support/ledger.py` 有 22 个在用。方向是触碰时迁到 `test_web_js.py` 与 `fresh_ledger()`,不整体重写;`check_copy_final_state.py` 的词表不拦「过去/此前」。
- 前端:11 处 `await import('/dist/peach-ui.js')` 与文件顶部静态 import 并存(`test_frontend_build.py` 与 `test_web_ui.py` 钉住了这种写法,要同改);`wireNavigationDrag` 与 `ui-components.wireDragReorder` 双实现;`.fnote` 在 21 与 22 号 CSS 互相覆盖。
- 文档:同一条规则最多写在 19 个文件里(测试入口);`CLAUDE.md` 正文与 AGENTS、worktree 技能重复;本文件的操作 28 与 30 同题,另有一节评审记录。
36. 归一后要用户判的 10 张厂牌标识:AttractiveLLC ×3、C-more_Entertainment ×3、Bambi_Promotion ×2、Deep_s、Tameike_Goro。补到内容外接圆这条规则在「设计上就出血到边」的标识上会把内容推离边缘,逐张判词在 `peach-data/review/refit-review-20260908.csv`,原图在 `peach-data/archive/logos-pre-refit-20260908/`,对比页 `build/logo_compare.html` 的第一节。占宽和圆外损失都分不开 C-more(0.98/0.97)与 MARRION(0.95/0.94),所以没加窄化条件,先由用户定还原哪几张,再按定下来的形状写判据和测试。
diff --git a/docs/README_MAINTENANCE.md b/docs/README_MAINTENANCE.md
index d6647debb..23640c4ef 100644
--- a/docs/README_MAINTENANCE.md
+++ b/docs/README_MAINTENANCE.md
@@ -1,5 +1,9 @@
# README 维护
+1. 按下表核对本次涉及的能力、安装方式与限制。
+2. 同批修改中英文 README,保留使用入口和安全说明。
+3. 按 [文档与界面文案](WRITING.md#检查与复核) 检查,再运行 [正式测试入口](TESTING.md#正式入口)。
+
README 面向初次访问项目的人,依次讲它是什么、介绍视频与截图、能做什么、怎么装、常见问题、
问题反馈和文档入口。用使用者的话写:说能做什么、会不会动文件,不写账本、候选、实体这类内部
概念,内部机制与开发流程只留链接。中英文同批维护,平台支持、安装方式和能力限制保持一致。主线能力、已安装运行态和发行制品分别
@@ -8,10 +12,10 @@ README 面向初次访问项目的人,依次讲它是什么、介绍视频与
| 内容 | 核验入口 |
| --- | --- |
| Python 与桌面命令 | `pyproject.toml`、`src/peach/cli.py`、`src/peach/tray.py` |
-| 前端工具与产物 | `frontend/package.json`、`docs/FRONTEND.md` |
-| 桌面包与平台范围 | `docs/TESTING_DESKTOP.md`、`.github/workflows/release.yml` |
-| 当前行为与已部署范围 | 实现与测试、`docs/STATUS.md`、`docs/PRODUCT_BACKLOG.md` |
-| 来源、配置与数据边界 | `docs/SOURCING.md`、`docs/OPERATIONS.md`、`docs/CLOUDDRIVE.md` |
+| 前端工具与产物 | `frontend/package.json`、[docs/FRONTEND.md](FRONTEND.md) |
+| 桌面包与平台范围 | [docs/TESTING_DESKTOP.md](TESTING_DESKTOP.md)、`.github/workflows/release.yml` |
+| 当前行为与已部署范围 | 实现与测试、[docs/STATUS.md](STATUS.md)、[docs/PRODUCT_BACKLOG.md](PRODUCT_BACKLOG.md) |
+| 来源、配置与数据边界 | [docs/SOURCING.md](SOURCING.md)、[docs/OPERATIONS.md](OPERATIONS.md)、[docs/CLOUDDRIVE.md](CLOUDDRIVE.md) |
README 迭代绑定 Codex 与 Claude 共用的工作树交付流程。每次提交前核对暂存差异,
涉及用户可见能力、安装、平台或构建要求时,同批更新中英文。只改变内部实现时保留 README,
@@ -76,7 +80,7 @@ SHA-256 对不上是硬错误,不降级放行。
**清单只能人工逐张看过后更新,不许按图库顺序自动取。** 图库把目录前缀当来源优先级排序,
排第一的答的是「先试哪一张」,不是「哪一张能放进公开文档」:实测排在前面的大图多是片商
宣传素材,内衣、泳装乃至露点都在里面,`8-GRAPHIS` 这种看着像写真机构的档位同样混着
-半裸。自动取必然翻车。当前清单 42 位复核于 2026-09-16,尺度是不露点。
+半裸。清单须人工复核,公开图片不得露点。2026-09-16 的复核覆盖 42 位;实际名单见 [人像清单](../scripts/demo-portraits.json)。
换图或加人时:取回候选、拼联系表一次看完、剔掉出界的,再按名字对应的**文件名**(不是
索引里的键名,那可能是别名或简称)与字节哈希写进清单,最后按内容哈希去重,因为一个人在
diff --git a/docs/REUSE.md b/docs/REUSE.md
index 1622f027d..c6960f00b 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -2,13 +2,15 @@
这是实现查找表:每项能力由哪个现成实现承担、Peach 自己只负责哪一段。新增、恢复或重写代码前,按 `.claude/skills/peach-reuse-first/SKILL.md` 先查本文件、当前树、Git 历史和成熟外部实现;旧文件名不存在不等于能力缺失,继任关系见「已删除旧实现与当前继任者」。
+安装依赖的精确版本由 [Python 清单](../pyproject.toml)、[Python 锁文件](../uv.lock)、[前端清单](../frontend/package.json) 和 [静态依赖清单](../package.json) 维护。本页记录用途、许可证与取舍;取证版本和提交号只代表对应证据。
+
## Board 界面与数值设置
-页面控件与交互由哪些共用件承担;Board 的上游证据登记在 `BOARD_UI.md`。
+页面控件与交互由哪些共用件承担;Board 的上游证据登记在 [BoardUI 适配](BOARD_UI.md)。
- 作者别名管理复用逐字复制进 `frontend/src/react/boardui/` 的 BoardUI `Table`、关注列表共用的 `DataTableFrame`、`AuthorAvatar` 和既有别名 API;公开结构与固定资源见 `BOARD_UI.md`。待合并与已保存两张表都只有几行,排序、分页用不上,不接 `@tanstack/react-table`;合并范围是这一屏自己的勾选状态,所以表里的勾写 `slot={null}`,不走 React Aria Table 自己的行选择。扫描与采集那三种方式收在一颗主键加一个下拉里:触发键用 BoardUI `Button`,面板用已在用的 React Aria `Popover`,行的外观取注册表 `select` 条目带来的 `menu-styles.ts`,无新增依赖(见 `frontend/src/react/boardui/ORIGIN.md`)。
-- 关注列表分页复用 `pagination.ts` 的页码范围与边界裁剪(React 与遗留层共用这一份纯函数);默认视图按创作者组,表格按来源。表格视图新引入 `@tanstack/react-table` 8.21.3(MIT,https://github.com/TanStack/table ):列定义、排序状态、行选择与分页交给它,行的身份是来源 ID(`getRowId`),排序与分页跑在全集上、页是最后一刀。归属与时机按 ADR-0031「前端基础库」,是这条待办点名要引入的那一个库,不是顺手加的。两种视图共用同一个来源 ID 集合,批量操作发的是整个集合而不是屏幕上这一页。官方分页与 Table 源码的固定哈希见 `BOARD_UI.md`。`frontend/test/react/follow-manage.test.tsx` 验了 25 位创作者、跨页跨视图勾选与批量写。
+- 关注列表分页复用 `pagination.ts` 的页码范围与边界裁剪(React 与遗留层共用这一份纯函数);默认视图按创作者组,表格按来源。表格视图新引入 `@tanstack/react-table`(MIT,https://github.com/TanStack/table ):列定义、排序状态、行选择与分页交给它,行的身份是来源 ID(`getRowId`),排序与分页跑在全集上、页是最后一刀。归属与时机按 ADR-0031「前端基础库」,是这条待办点名要引入的那一个库,不是顺手加的。两种视图共用同一个来源 ID 集合,批量操作发的是整个集合而不是屏幕上这一页。官方分页与 Table 源码的固定哈希见 `BOARD_UI.md`。`frontend/test/react/follow-manage.test.tsx` 验了 25 位创作者、跨页跨视图勾选与批量写。
- 窄屏筛选框共用 `filterScrollState()`、现有滚动帧调度和原生 sticky;同一方向累计 8px 再切换吸顶,保留文档占位与键盘可达性,无新增依赖。
@@ -28,7 +30,7 @@
- 后台任务复用 `watchJob`、`followJobProgress` 默认面板及 `jobActivityHtml` 的真实计数/未知总量显示;关注、来源扫描、链接检查和扫描采集共用渲染。业务保留启动、终态回执和结果面板,不新增轮询循环。
- 图标按钮统一清除浏览器内边距并居中 SVG,不覆盖业务显隐。Remix Icon 由 `vendor_web_dependencies.mjs` 生成设置导航 symbol;随机按钮保留原有双路径动画。
- 统计页与口味页的柱状、径向、雷达图复用 EvilCharts Recharts 分支(MIT,源码逐字复制进 `frontend/src/react/evilcharts/`,依赖 `recharts`、`motion`、`clsx`),单系列柱状图统一走 `frontend/src/react/charts/bar-card.tsx` 的 `BarCard`,悬停浮层统一走 `charts/chart-tip.tsx` 的 `ChartTip`。星期 × 小时与每日热力图是 `charts/heat-card.tsx` 的 `ActivityHeat`,统计页播放时间与口味页浏览活跃共用;EvilCharts 没有这类图(ADR-0076)。
-- `frontend/src/react/taste/taste.ts` 使用 d3-sankey 0.12.3(BSD-3-Clause;类型包 0.12.5)计算来源网站到创作者线索的流向。布局依赖不读取浏览历史;Peach 提供去重聚合值并负责隐私边界。分发许可随 `web/vendor/d3-LICENSE.txt` 保留。
+- `frontend/src/react/taste/taste.ts` 使用 d3-sankey(BSD-3-Clause)及其类型包计算来源网站到创作者线索的流向。布局依赖不读取浏览历史;Peach 提供去重聚合值并负责隐私边界。分发许可随 `web/vendor/d3-LICENSE.txt` 保留。
复核复用 Checkbox、Button、Badge、Select 与 `/api/review/decision`,默认勾选并沿用馆藏页 Shift 连选语义;支持跨组通过/拒绝与无歧义的共同来源选择。按候选数量、来源组合或字段分组,每项仅出现一次,切组保留选择;成功移出、失败保留,页面离开后停止后续提交。整页在 `frontend/src/react/review/`,一条队列一个 `queryKey`,判定后改缓存不重取;完成结果复用成功 Note。身份候选复用创作者页、作品详情与 revealSource 核对样本;来源图片和缺图占位共用 220px 预览区,加载失败保留占位。样本读取支持无缩略图作品,回收站不参与。
@@ -39,13 +41,13 @@
- 独立包卸载复用正常托盘退出和 Windows PowerShell 助手;计划限制程序标记、数据直属目录、媒体不重叠,助手拒绝目录链接。助手会退出仍从程序目录运行的进程并重试删除;完全卸载只把 `config.toml.<说明>-<日期>-<时刻>` 视为 Peach 写的设置备份,手工复制的 `config.toml.bak` 保留。临时程序、被占用文件、历史设置备份、数据、媒体与无关文件组成的真实输入验证只删除计划内容和整个解压程序目录。源码树仅提供手动卸载说明。
- 扫描与采集统一挂在数据管理;首页进度 Banner 跳转同一入口。默认排序与方向使用浏览偏好,显式 URL 优先。
-目录页进度横幅与数据管理卡片共用 `frontend/src/react/library-processing/` 那一份读取,读同一个 `LIBRARY_PROCESSING_KEY`,轮询由 TanStack Query 合成一份;启动只提交一次,状态查询接续托盘首次处理。首页在完成后收起,失败跳转数据管理;数据管理持续读取阶段与真实计数。Geist Banner 取证与 Peach 差异见 `docs/reference-snapshots/vercel-geist-library-banner.md`。
+目录页进度横幅与数据管理卡片共用 `frontend/src/react/library-processing/` 那一份读取,读同一个 `LIBRARY_PROCESSING_KEY`,轮询由 TanStack Query 合成一份;启动只提交一次,状态查询接续托盘首次处理。首页在完成后收起,失败跳转数据管理;数据管理持续读取阶段与真实计数。Geist Banner 取证与 Peach 差异见 [docs/reference-snapshots/vercel-geist-library-banner.md](reference-snapshots/vercel-geist-library-banner.md)。
## 独立测试包在线更新
-- 自动更新设置复用 APScheduler 3.11.3(MIT,项目已有依赖,Python 3.12+ 与 Windows/macOS)、共享 HTTPX 发行查询、filelock 与原子 JSON 写入,安装继续走 `standalone_update`。按 [interval trigger](https://apscheduler.readthedocs.io/en/3.x/modules/triggers/interval.html) 每分钟检查是否到期;本机持久时间与文件锁协调多个服务,关闭、6/24/168 小时间隔与源码下载限制由 Peach 管理。默认关闭,下载仅准备安装,重启仍需确认;没有新增依赖或安装框架。设置保存在 state 目录的 `automatic-updates.json`。
+- 自动更新设置复用 APScheduler(MIT,项目已有依赖,Python 3.12+ 与 Windows/macOS)、共享 HTTPX 发行查询、filelock 与原子 JSON 写入,安装继续走 `standalone_update`。按 [interval trigger](https://apscheduler.readthedocs.io/en/3.x/modules/triggers/interval.html) 每分钟检查是否到期;本机持久时间与文件锁协调多个服务,关闭、6/24/168 小时间隔与源码下载限制由 Peach 管理。默认关闭,下载仅准备安装,重启仍需确认;没有新增依赖或安装框架。设置保存在 state 目录的 `automatic-updates.json`。
-- 版本与资产信息复用 GitHub Releases REST API,测试通道包含预发布版本;查询复用项目 HTTPX 0.28.1,下载用其流式读取,ZIP 解压使用 Python 3.12+ 标准库,互斥复用 FileLock。没有新增依赖。只读查询已对真实 Release 验过:只有发布记录里已上传的完整独立包才进入更新,查询不下载也不安装。
+- 版本与资产信息复用 GitHub Releases REST API,测试通道包含预发布版本;查询复用项目 HTTPX,下载用其流式读取,ZIP 解压使用 Python 3.12+ 标准库,互斥复用 FileLock。没有新增依赖。只读查询已对真实 Release 验过:只有发布记录里已上传的完整独立包才进入更新,查询不下载也不安装。
- Peach 维护安装策略与进度:下载校验后在程序同卷暂存,用户确认重启,复制出来的包内助手等待原托盘退出,再切换完整目录;失败保留或恢复旧目录。配置、数据库与媒体不作为更新包内容写入。
- 已核对 [Velopack Windows 文档](https://docs.velopack.io/packaging/operating-systems/windows) 和 [WinSparkle 文档](https://winsparkle.org/):前者要求其安装目录与包格式,后者要求 appcast 并使用原生更新界面;现有 GitHub 产物为 PyInstaller ZIP,进度在 Web 显示,因此复用现有托盘进程与目录替换协议,未引入额外安装框架。
- Web 复用 Fieldset、Progress、confirmModal;状态由 `standalone-update.json` 保存。下载按字节计量,解压按文件数计量,替换使用阶段进度;服务重启期间保留等待状态,恢复连接后核对版本。
@@ -63,14 +65,14 @@ JAV 默认封面(官方封面/预览图)与默认大小(大图/小图
- 外部项目不适合作为运行时依赖,但其公开数据模型或算法明显更成熟时,固定 revision 后作为参考
实现;许可证不允许派生或来源不稳定时只作行为证据,不复制代码。
-- Python 安装与构建复用 [uv](https://github.com/astral-sh/uv)(`pyproject.toml` 只设下限 `>=0.12.13`,工具版本不进依赖图)和官方 setup-uv 10.0.1,Astral 持续维护,许可证分别为 MIT/Apache-2.0 与 MIT。
+- Python 安装与构建复用 [uv](https://github.com/astral-sh/uv)(`pyproject.toml` 只设下限 `>=0.12.13`,工具版本不进依赖图)和官方 setup-uv(版本见 [测试工作流](../.github/workflows/test.yml)),Astral 持续维护,许可证分别为 MIT/Apache-2.0 与 MIT。
使用 uv 项目接口、`uv.lock` 和 `uv sync --locked`;Dependabot 使用官方 `uv` 生态维护锁文件。
开发与构建在隔离工作树创建环境,生产 venv 不参与精确同步。直接依赖精确固定,传递依赖由锁文件复现;动态项目版本无需修改锁文件。
测试数据库复用当前树与 Git 历史中的 `tests/support/ledger.py`,迁移生成模板后复制独立临时库;真实迁移测试仍执行迁移。重试测试复用已有 sleeper 注入点。
Windows 临时库 POC:五次迁移 1.552 秒,五次模板复制 0.006 秒,完整 schema 一致。
CI 复用 GitHub Actions 独立 runner 分片与现有 unittest 入口;Peach 仅维护影响域策略,不引入并发测试框架。验证记录与最小安装规则见 `TESTING.md`。
-- 访问密码复用 Python 3.14 的 [hashlib.scrypt](https://docs.python.org/3.14/library/hashlib.html) 与 OpenSSL,浏览器会话复用 [ItsDangerous 2.2.0](https://itsdangerous.palletsprojects.com/en/stable/)(Pallets 维护、BSD-3-Clause、Python 3.8+、纯 Python、wheel 16 KB、无传递依赖);本机原子配置写入复用 tempfile/os.replace,并将已有 filelock 3.32.4 纳入运行依赖。当前树和 Git 的认证入口已有内部口令、三种拒绝响应和本机配置守卫,继续复用。Starlette SessionMiddleware 采用统一时长并随响应更新会话,不满足每台设备选择固定截止时间的要求;直接使用同源签名库,由 Peach 维护可选密码、截止时间与撤销策略。临时文件 POC 的密码验证、签名验证和篡改拒绝通过,耗时 0.153 秒;真实凭据未读取。新增依赖不包含账户体系或数据库迁移。
+- 访问密码复用 Python 3.14 的 [hashlib.scrypt](https://docs.python.org/3.14/library/hashlib.html) 与 OpenSSL,浏览器会话复用 [ItsDangerous](https://itsdangerous.palletsprojects.com/en/stable/)(Pallets 维护、BSD-3-Clause、Python 3.8+、纯 Python、wheel 16 KB、无传递依赖);本机原子配置写入复用 tempfile/os.replace,并将已有 filelock 纳入运行依赖。当前树和 Git 的认证入口已有内部口令、三种拒绝响应和本机配置守卫,继续复用。Starlette SessionMiddleware 采用统一时长并随响应更新会话,不满足每台设备选择固定截止时间的要求;直接使用同源签名库,由 Peach 维护可选密码、截止时间与撤销策略。临时文件 POC 的密码验证、签名验证和篡改拒绝通过,耗时 0.153 秒;真实凭据未读取。新增依赖不包含账户体系或数据库迁移。
- Cloudflare Quick Tunnel 复用官方 `cloudflared`(Apache-2.0)而不在 Peach 内实现隧道协议。源码环境只管理 PATH/环境变量中的进程;Windows 独立包旁路文件固定为 `2026.9.0`,资产、下载地址和 SHA-256 记录在 `scripts/cloudflared-windows.json`,由 `fetch_cloudflared.ps1` 与构建脚本双重校验。Quick Tunnel 的 URL 申请和边缘连接是两个阶段,Peach 使用官方 `--pidfile`(首次成功连接后才写入)作为就绪判据;未取得连接不向页面宣称可用。源码 HTTPS origin 使用项目 CA,独立包使用回环 HTTP,并由当前进程持有的随机 URL 参与写请求来源校验。
- README 交付检查复用系统 Git 的 `diff --no-renames -z` 和 `interpret-trailers --parse`,
@@ -94,7 +96,7 @@ JAV 默认封面(官方封面/预览图)与默认大小(大图/小图
查询回退不能承担身份确认;所有响应按原始查询检查,MGStage 官方详情路径可佐证展示编号别名。
外部适配器负责取值,不采用其首条搜索命中作为 ledger 身份断言。
-- Seesaa 作品表复用 HTTPX 0.28.1(BSD-3-Clause)、Beautiful Soup 4.15.0(MIT)及现有
+- Seesaa 作品表复用 HTTPX(BSD-3-Clause)、Beautiful Soup 4.15.0(MIT)及现有
`HostLimiter`、番号规范化、字段候选和快照协议;不新增依赖,沿用 Python 3.12+ 与 Windows/macOS。
2026-09-06 检查 Javinizer-Go `d9724f239d7e127afcb747fa8ce4358685912f50`(MIT)及 MetaTube
`6a5e6128c725187aeaf921d48ed7d9cd9f30671b`(Apache-2.0)的来源目录,均无 Seesaa 适配器;
@@ -120,8 +122,10 @@ JAV 默认封面(官方封面/预览图)与默认大小(大图/小图
女优页头(ADR-0069)只读这张表:`performer_header` 出五项与别名分组,別名栏的渠道注记从 `raw_json`
原文里由 `minnano_av.name_entries` 拆,拆名字复用 `sources.seesaa.split_names`,不另存。
+文档检查复用 seiso(MIT),由开发依赖与锁文件固定;[文案门槛](../tests/test_copy_final_state.py) 调用稳定规则。文件分类和第三方原文边界见 [seiso 配置](../seiso.toml),表达与人工复核见 [文档与界面文案](WRITING.md)。Peach 不自建 Markdown 文档职责解析器。
+
测试与集成复用 `test_runner.py`、`agent_worktree.py`;进程互斥采用开发依赖
-`filelock==3.32.4` 的 `FileLock`([官方用法](https://py-filelock.readthedocs.io/en/stable/tutorials.html))。
+`filelock` 的 `FileLock`([官方用法](https://py-filelock.readthedocs.io/en/stable/tutorials.html))。
跨进程占锁与释放由临时 Git 仓库回归验证;代码、环境和范围记录属于 Peach 的集成约束。
### 播放、身份与控件实证
@@ -154,16 +158,16 @@ CloudDrive 为外部应用,本项目不捆绑其二进制或依赖其管理 AP
- 删除失效链接与资源同步的执行阶段复用 `BackgroundJob.start_result` 保存终态回执;刷新只查状态,写入请求不自动重放,原有确认与检查结果过期门槛保持有效。
- 关注进度复用 Fieldset 与 Progress;完成时保留内容取数,按作者检查复用 `sources` 范围参数,报错作者复用现有身份解析。无新依赖;参考取证见 `reference-snapshots/vercel-geist-note-progress-switch-analytics.md`。
-- 关注检查、来源查找和口味刷新复用 `jobs.BackgroundJob`,浏览器状态跟进放在 `frontend/src/jobs.ts`;不新增队列或调度依赖。HTTP 继续使用固定的 HTTPX 0.28.1(BSD-3-Clause)和 curl_cffi 0.16.2(MIT),支持现有 Python 3.12+ 与 Windows/macOS 打包。[HTTPX 原生重试](https://www.python-httpx.org/advanced/transports/)只覆盖连接失败,无法统一两个 transport 的读超时、临时 HTTP 状态与页面进度,因此由现有连接器负责 GET 重试策略。截图中的 TLS 握手超时作为隔离 transport 输入,验证第 5 次成功、耗尽、403 单次终止和 POST 不重放;不新增依赖体积。任务状态保存在服务进程,浏览器刷新后通过读接口恢复;服务重启不自动重放任务。
+- 关注检查、来源查找和口味刷新复用 `jobs.BackgroundJob`,浏览器状态跟进放在 `frontend/src/jobs.ts`;不新增队列或调度依赖。HTTP 使用 HTTPX(BSD-3-Clause)和 curl_cffi(MIT),版本与 Python 要求见 [依赖声明](../pyproject.toml),解析结果见 [锁文件](../uv.lock);支持 Windows/macOS 打包。[HTTPX 原生重试](https://www.python-httpx.org/advanced/transports/)只覆盖连接失败,无法统一两个 transport 的读超时、临时 HTTP 状态与页面进度,因此由现有连接器负责 GET 重试策略。截图中的 TLS 握手超时作为隔离 transport 输入,验证第 5 次成功、耗尽、403 单次终止和 POST 不重放;不新增依赖体积。任务状态保存在服务进程,浏览器刷新后通过读接口恢复;服务重启不自动重放任务。
-- 标签发布复用系统 Git、GitHub CLI 2.100.0(MIT)和 [Actions runs REST API](https://docs.github.com/en/rest/actions/workflow-runs),不新增 Python 依赖;`release_tag.py` 只实现版本、主线归属、同提交最新 CI 与不可覆盖策略。Windows Python 3.14 使用提交 `45168dd` 的真实成功 Test 记录完成只读 POC;失败/运行中/其它分支与 master 并发推进用隔离测试拒绝。工作流仍复用既有 Release 制品验收,未引入发布服务。
+- 标签发布复用系统 Git、GitHub CLI(MIT)和 [Actions runs REST API](https://docs.github.com/en/rest/actions/workflow-runs),不新增 Python 依赖;[release_tag.py](../scripts/release_tag.py) 负责版本、主线归属、同提交成功 CI 与不可覆盖策略。本机工具版本分别用 `git --version` 与 `gh --version` 查询。提交 `45168dd` 的成功 Test 记录用于只读验证;失败、运行中、其他分支及 master 并发推进由隔离测试验证拒绝。工作流复用 Release 制品验收。
-- 独立 Windows 测试包复用 PyInstaller 6.22.2(GPL-2.0-or-later,带分发 bootloader 例外)的 [onedir 与自启动子进程](https://pyinstaller.org/en/stable/common-issues-and-pitfalls.html);使用已有精确固定的 build 依赖。Python 3.14 / Windows x64 在清除开发工具 PATH、隔离数据目录下实测初始化、页面与 API。保留 Peach 的进程所有权、数据目录、配置和扫描策略;onefile 的托盘入口只用于既有源码部署,独立包采用完整目录以共享资源并避免重复解包。没有新增运行时依赖。
+- 独立 Windows 测试包复用 PyInstaller(GPL-2.0-or-later,带分发 bootloader 例外)的 [onedir 与自启动子进程](https://pyinstaller.org/en/stable/common-issues-and-pitfalls.html);使用已有精确固定的 build 依赖。Python 3.14 / Windows x64 在清除开发工具 PATH、隔离数据目录下实测初始化、页面与 API。保留 Peach 的进程所有权、数据目录、配置和扫描策略;onefile 的托盘入口只用于既有源码部署,独立包采用完整目录以共享资源并避免重复解包。没有新增运行时依赖。
- Windows 安装包复用 Inno Setup 6.7.3(Inno Setup License,允许免费分发)与官方仓库 `Files/Languages/Unofficial/ChineseSimplified.isl` 的简体中文译文,译文随仓库放在 `scripts/installer/`。`.iss` 只管文件、开始菜单项和卸载登记;停托盘、补迁移、撤快捷方式都调 Peach 已有的入口,由 `desktop_installer` 衔接,自更新与应用内卸载继续是唯一实现。Windows 11 本机实测静默安装、托盘运行中覆盖安装、已有账本补跑迁移与卸载。没有新增运行时依赖。
- 运行一致性复评:复用 `LedgerDatabase.write_transaction` 的提交边界和标准库 `OrderedDict`;HTTP 导航复用 FastAPI/Starlette,图片复验复用 `StaticFiles.is_not_modified` 与 `FileResponse` 的 ETag。列表使用 SQLite 的 IN/UNION 保留隐藏标签与多标签组合,不引入查询框架。
- 馆藏侧栏复用 `catalog_filter` 的列表条件,已保存在线卡片复用关注来源的标签与封面投影,详情复用 `openFollowDetail`、Video.js 和媒体队列。导航范围与标签计数位于 `frontend/src/sidebar.ts`;不新增依赖。截图所示 F95 合集的只读核对结果为无封面、无标签、无已解析媒体,详情按现有来源信息展示。
-- wheel 资源复用 setuptools 84.0.0 的 `build_py.copy_tree`,资源位置遵循[官方包内数据建议](https://setuptools.pypa.io/en/stable/userguide/datafiles.html)。自定义钩子仅复制三个既有资源目录,因为源码、桌面构建和前端产物仍共用其维护位置;Windows 基础依赖全新安装及仓库外 API 冒烟已验证。
+- wheel 资源复用 setuptools 的 `build_py.copy_tree`,资源位置遵循[官方包内数据建议](https://setuptools.pypa.io/en/stable/userguide/datafiles.html)。自定义钩子仅复制三个既有资源目录,因为源码、桌面构建和前端产物仍共用其维护位置;Windows 基础依赖全新安装及仓库外 API 冒烟已验证。
## Peach 必须自研的领域逻辑
@@ -195,7 +199,7 @@ CloudDrive 为外部应用,本项目不捆绑其二进制或依赖其管理 AP
## 已定型的产品行为
每条是一次验收留下的判据,一条一句。改这些行为是产品决定,照着再实现一遍是
-重复劳动,动手前先确认这里没有写过。README、`docs/HANDOFF.md`、`docs/OPERATIONS.md`
+重复劳动,动手前先确认这里没有写过。README、[docs/HANDOFF.md](HANDOFF.md)、[docs/OPERATIONS.md](OPERATIONS.md)
和 ADR 已经写下的不在这里重复,出处用 `git log -S` 查。
- 本地浏览器支持 MP4/WebM/Ogg,其余容器由 `TranscodeService` 按六秒片段缓存成 H.264/AAC MP4,永不改写原媒体;ffprobe 判定可直接复制的流不重编码,其余在 Windows 走 CUDA/NVDEC;29999、30005 实片首段及跳播解码通过。
@@ -260,7 +264,7 @@ CloudDrive 为外部应用,本项目不捆绑其二进制或依赖其管理 AP
- reader 的 `/review` 通过严格 Peach CA HTTPS 读取 writer 的归一化 JSON 并原子缓存;决定按钮和所有关注写操作仍锁定。
- macOS Ledger 同步在共享根判为 `offline` 时先经 NetFS 挂载 `peach-sync` 再重判,挂载失败才保留离线结果,不弹阻塞认证框。
- 浏览历史增量采集使用 SQLite backup API 与 `browserexport`,也接受 Google Takeout ZIP;原始 URL 与标题只留本机私有目录,聚合候选不写 ledger。
-- 首次设置的可选历史引导转到 `/taste?onboarding=1`,继续使用现有读取与导入入口。指南链接按 [Google 导出说明](https://support.google.com/accounts/answer/3024190?hl=zh-Hans) 和 [browserexport](https://github.com/purarue/browserexport) 官方说明核验(2026-09-06);沿用 `browserexport==0.4.4`,未新增依赖或解析器。
+- 首次设置的可选历史引导转到 `/taste?onboarding=1`,继续使用现有读取与导入入口。指南链接按 [Google 导出说明](https://support.google.com/accounts/answer/3024190?hl=zh-Hans) 和 [browserexport](https://github.com/purarue/browserexport) 官方说明核验(2026-09-06);沿用 `browserexport`,未新增依赖或解析器。
- 实体的公开事实随仓库分发(ADR-0073、ADR-0075):`scripts/seed_pack.py export` 只读账本生成 `resources/seed/entities.json`(女优、厂牌、事务所的别名、站上编号、官网社媒链接、资料表、所属事务所、label 的片商;不带图像、本机路径、Stash 编号),同一账本同一版本逐字节一致。导入由扫描结算声明的 `seed-import:<版本>` 后继跑(`seed_followup`),命令行 `import` 默认 dry-run;只给本机已有实体填空、不造实体,旧种子写的归属、片商与资料可被新版换掉,与人写的不一致记 `conflicts`、一条对上两位记 `duplicates`,两者写进 `seed-landing.csv`;归属 `auto:seed@<版本>`,`revert_auto_landing.py --source auto:seed` 六张表一起撤。
- 数据管理首屏直接复用实际 `cleanupfieldset` 正文和操作条,只有计数等待取数;资源同步与重复文件网盘操作根据 `/api/sources` 已配置来源显示,离线来源保留入口。资源同步的检查与执行覆盖已配置的 local、115、PikPak,一次检查同时报失效记录、空文件夹与孤儿缓存;按目录清理也支持本地磁盘。
@@ -271,14 +275,14 @@ CloudDrive 为外部应用,本项目不捆绑其二进制或依赖其管理 AP
| 能力 | 复用实现 | Peach 负责 |
|---|---|---|
| 本机文件夹对话框 | Windows 自带 `powershell.exe` 经 `Add-Type` 调 Shell 的 `IFileOpenDialog`(带地址栏的文件夹选择框);macOS `osascript` 的 `choose folder` | `src/peach/folder_picker.py` 只拼命令、区分取消与失败、一次只开一个;不为一个对话框引入 tkinter 或 GUI 框架 |
-| HTTP | 默认复用全项目共用的 `httpx.Client`/transport;FANBOX 公开 `post.info` 按固定证据复用 `curl_cffi==0.16.2` | 来源策略、DTO、脱敏、站点限定、大小上限;不求解机器人质询 |
+| HTTP | 默认复用全项目共用的 `httpx.Client`/transport;FANBOX 公开 `post.info` 按固定证据复用 `curl_cffi` | 来源策略、DTO、脱敏、站点限定、大小上限;不求解机器人质询 |
| RSS/Atom | `feedparser` | 有界抓取、快照、复核、导入 |
| 追更来源接口 | FANBOX 公开帖子 API(详情只使用用户自己的可选 Cookie 与 Firefox 传输特征)、kemono 系公开 JSON API(`Accept: text/css`,站点自述的抓取路径)、rule34.xxx 官方 dapi(需账号 API key)与官方 tag 补全(公开)、Paheal 标签/详情页、Gofile contents API(需 Premium 账号 API token)、f95zone `latest_data.php`、站内搜索(需登录 cookie)、线程页与站内 masked XHR、simpcity 线程页与站内搜索(需登录 cookie;只请求规范地址,不解 DDoS-Guard 质询) | 连接器边界、凭据隔离、多媒体顺序、文件站目标校验、变体与跨站重复判定、候选复核与批准后的 online asset 投影 |
| XenForo 论坛解析 | gallery-dl `v1.32.11` / `2adf2a8e`(GPL-2.0)的 `extractor/xenforo.py` 只作协议证据:登录先查 cookie 再走账号密码、`article[data-content]` 楼层、`.pageNav` 分页、`data-s9e-mediaembed` 嵌入;cyberdrop-dl `5.6.21`(GPL-3.0,2024-09 起按站方要求下线 SimpCity)只作历史参照。两者都是完整下载器,不引入运行时 | f95zone 与 simpcity 共用一份 `_xenforo_posts` / `_xenforo_thread_title` / `_xenforo_search_threads`(站内搜索:先取会话绑定的 `_xfToken`,再 POST `/search/search`,按标题命中并带回版块标签);Peach 自己负责 cookie 只发回来源站、末页由分页导航自算(HTTPX 跟随重定向会丢显式 Cookie)、纯讨论楼层过滤与 release 语义。gallery-dl 把 simpcity 登录 cookie 名写死为 `ogaddgmetaprof_user`,而站点前缀已轮换为 `yMziCv8BrCZz1o7_`,所以 Peach 不认 cookie 名、只透传整条 Cookie 头 |
-| 文件系统事件 | `watchdog==6.0.0`(Apache-2.0),只订阅 `local` 来源的根;网盘挂载不订阅,递归 watcher 在网络挂载上就是轮询。CloudDrive2 的 webhook 请求形态与「云端路径不进 pathlib」取自 `sqzw-x/amane`(GPL,只借设计,见 `docs/reference-snapshots/amane-watcher.md`) | `src/peach/push_discovery.py` 负责去抖、大小稳定的写完判定、前缀表映射、共享密钥与来源校验;登记本身调 `scan.ingest_path`,与全量扫描同一条 upsert(ADR-0041) |
+| 文件系统事件 | `watchdog`(Apache-2.0),只订阅 `local` 来源的根;网盘挂载不订阅,递归 watcher 在网络挂载上就是轮询。CloudDrive2 的 webhook 请求形态与「云端路径不进 pathlib」取自 `sqzw-x/amane`(GPL,只借设计,见 [docs/reference-snapshots/amane-watcher.md](reference-snapshots/amane-watcher.md)) | `src/peach/push_discovery.py` 负责去抖、大小稳定的写完判定、前缀表映射、共享密钥与来源校验;登记本身调 `scan.ingest_path`,与全量扫描同一条 upsert(ADR-0041) |
| HTML 适配器 | Beautiful Soup 或 selectolax | 来源专用选择器和来源记录 |
| 位图 | Pillow | 头像/Logo 质量和来源策略 |
-| SVG 光栅化 | `resvg-py==0.5.0`(resvg,MPL-2.0 绑定) | 只用于把站点自己的矢量图标转成位图再交给 Pillow。2026-09-02 实测 threads 的成品 app 图标只以 SVG 形式提供,不光栅化就只能退回位图 favicon。选它而不是 cairosvg:后者在 Windows 上要另装 cairo 原生库,前者是 abi3 轮子,win_amd64 / macosx_11_0_arm64 / macosx_10_12_x86_64 都有官方预编译,两个平台都不必装系统依赖。候选发现、内容比例判定、缓存与失败回退仍在 Peach。厂牌矢量标识的方形归一只在这里借一张探针:`images.bake_square_vector` 用标准库 ElementTree 包一层外层 SVG,产物仍是矢量,栅格化只用来数像素、判该配白底还是深底。 |
+| SVG 光栅化 | `resvg-py`(resvg,MPL-2.0 绑定) | 只用于把站点自己的矢量图标转成位图再交给 Pillow。2026-09-02 实测 threads 的成品 app 图标只以 SVG 形式提供,不光栅化就只能退回位图 favicon。选它而不是 cairosvg:后者在 Windows 上要另装 cairo 原生库,前者是 abi3 轮子,win_amd64 / macosx_11_0_arm64 / macosx_10_12_x86_64 都有官方预编译,两个平台都不必装系统依赖。候选发现、内容比例判定、缓存与失败回退仍在 Peach。厂牌矢量标识的方形归一只在这里借一张探针:`images.bake_square_vector` 用标准库 ElementTree 包一层外层 SVG,产物仍是矢量,栅格化只用来数像素、判该配白底还是深底。 |
| 搜索 | SQLite FTS5 | 索引字段、排序、profile 感知筛选 |
| 相关推荐 | OpenAver `dca4c0c368ea0c2db9cf15e48977de2fc75e7077` 的 Tag IDF + 系列/片商/出演者规则只作固定算法参考(MIT) | 独立实现规范实体评分、MMR 多样性、稳定 seed、解释原因与负反馈边界;不复制上游 UI/源码 |
| 女优姓名对照 | `li-peifeng/Jav-Actors-Mapping` 的固定 revision,仅作私有输入(仓库未声明许可证,不随 Peach 分发) | 精确匹配、冲突复核、别名、来源与真实 ledger 写入 |
@@ -288,7 +292,7 @@ CloudDrive 为外部应用,本项目不捆绑其二进制或依赖其管理 AP
| 头像写入 | `src/peach/avatar_provider.install_entity_avatar` | 采集脚本、复核页与换头像共用这一份:`.img` 经临时文件原子替换,`.ct`、`.provenance.json` 与人脸 `.face.json` 四件套一起换。检不出脸要删 sidecar 而不是留着,因为上一张图的脸框会被页面拿去给这一张取景,放大到一个空位置上,而这在界面上与「本来就该这么显示」看不出区别 |
| 厂牌 Logo 候选 | 厂牌官网确认的社交 handle → unavatar URL 解析 → 平台 CDN 单图 | handle 归属、内容缓存、方形归一、精确/感知哈希、provenance、健康统计与变化复核 |
| 厂牌字标名录 | 发行商与发行平台自己的厂牌名录,入口登记在 `harvest_maker_directories.DIRECTORIES`:MGStage `/ppv/makers.php` 十一页 351 家、Prestige `/api/maker` 11 家、KMP `/label` 42 家(大半是 SVG);另有 jae.tokyo 展会名录 20 家 | slug↔账本对账(四路判据、空罗马字形当不可比)、按形状分三张指定表(方标原样装大位、字标烤方两位共用、方标只管小位)、改地址后靠 provenance 边车重新收人、复核 CSV 与安装闸门。存入口不存图片地址:KMP 的文件名带时间戳,厂牌换一次标识地址就变。不推导 URL、不猜名字:名录给什么用什么 |
-| JAV 元数据查询 | 每个站只有一个归属(ADR-0048):自写解析器持有 r18.dev、DMM/FANZA、一本道、FC2、fc2cmadb、FC2PPV-DB、JAVten、JavArchive、AVBase、JavBus、javdb,片商官网与转载站经 amane 桥(ADR-0043、ADR-0044);MetaTube SDK `6a5e6128c725187aeaf921d48ed7d9cd9f30671b`(Apache-2.0)只作来源身份与丰富字段模型参考;DMM 的 GraphQL 接口地址、`ppvContent` 与 `legacySearchPPV` 两条查询的取法参照 OpenAver(MIT)`core/scrapers/dmm.py`,cid 匹配与身份核对是 Peach 自己的(ADR-0059) | 只发送规范番号;Peach 管来源链(`metadata_routes`)、`provider_id`/`content_id`、逐字段优先级、原始证据、丰富目录证据、健康统计、候选复核与批准后的 ledger 投影。amane 的 POC 判据、字段缺口与三条路线的前提见 `docs/reference-snapshots/amane-crawlers-poc.md`,采纳结果见下一行 |
+| JAV 元数据查询 | 每个站只有一个归属(ADR-0048):自写解析器持有 r18.dev、DMM/FANZA、一本道、FC2、fc2cmadb、FC2PPV-DB、JAVten、JavArchive、AVBase、JavBus、javdb,片商官网与转载站经 amane 桥(ADR-0043、ADR-0044);MetaTube SDK `6a5e6128c725187aeaf921d48ed7d9cd9f30671b`(Apache-2.0)只作来源身份与丰富字段模型参考;DMM 的 GraphQL 接口地址、`ppvContent` 与 `legacySearchPPV` 两条查询的取法参照 OpenAver(MIT)`core/scrapers/dmm.py`,cid 匹配与身份核对是 Peach 自己的(ADR-0059) | 只发送规范番号;Peach 管来源链(`metadata_routes`)、`provider_id`/`content_id`、逐字段优先级、原始证据、丰富目录证据、健康统计、候选复核与批准后的 ledger 投影。amane 的 POC 判据、字段缺口与三条路线的前提见 [docs/reference-snapshots/amane-crawlers-poc.md](reference-snapshots/amane-crawlers-poc.md),采纳结果见下一行 |
| Javinizer-Go 历史快照 | `sources/metadata/javinizer-go/<番号>/<来源>.json`,由 Javinizer-Go v1.5.x(MIT,`dd56998328d078c9baf68ff4fde2e6fcaa2a691a`)在 2026-09 之前取回;二进制与快照留在磁盘,没有调用路径(ADR-0044) | 只作离线证据:封面层读它的 `cover_url` 与 `content_id`,别名解析读企划名义,账本里 `javinizer:<站>:<字段>` 的 provenance 按 `metadata_policy.HISTORICAL_SOURCES` 认级别。`scrape_codes` 写进同一目录的新快照 `provider` 记解析器名、`provider_version` 记 Peach 版本 |
| amane 刮削站点(官方档 makers、prestige、faleno、dahlia、mgstage;转载站 fc2club、freejavbt、airav、avsox) | amane `79ecfa763cc786318e1964a3d7f4e244a7d5c96d`(v0.16.1,GPL-3.0),经 `tools/amane-bridge/` 薄桥子进程接入(ADR-0043、ADR-0048;`makers` 是 amane 的 `official` 模块):独立 `pyproject.toml`/`uv.lock` 钉 sha,venv 建在 `<数据根>/tools/amane-bridge/.venv`,桥只用 `amane.crawlers.sites.<站>` 与 `amane.net.*`,不碰 `aggregate` | 许可义务:amane 为 GPL-3.0,Peach 为 AGPL-3.0-or-later,两者以进程边界相接;仓库与分发件只含清单、锁与桥脚本(Peach 自己的文件),amane 源码由用户机器上的 uv 按锁下载,不随 Peach 分发;清单、桥脚本与设置页都写明上游地址与许可。升级是人做的:改 sha → `uv lock --project tools/amane-bridge` → 读上游 diff 核字段语义 → 同批改 `peach.metadata_amane.AMANE_REASONS`/`SITE_CONFIGS` 与本行。已知性质:上游 `WebClient` 以 `verify=False` 发请求,只取公开页面、不带凭据;`amane.crawlers` 包 `__init__` 连带 SQLAlchemy,每次子进程约 0.6~1 秒 import。Peach 管来源链位置、身份核对、失败分档与冷却、候选与结算 |
| 已确认厂牌的目录归位 | Javinizer-Go v1.5.2 organizer(MIT)只作冲突预检、模板化目录和回滚边界的协议参考,不调用它,不让它持有 Peach ledger | `rehome_unknown_jav.py` 只消费人工确认映射;先出逐文件 CSV,拒绝扁平化重名与厂牌冲突,SQLite 备份后移动文件并同步 Peach 路径/实体 provenance |
@@ -305,7 +309,7 @@ CloudDrive 为外部应用,本项目不捆绑其二进制或依赖其管理 AP
| 单列拖动排序 | `web/js/ui-components.js` 的 `wireDragReorder()` | 侧栏顺序与播放列表队列共用这一份:`dragstart` 标记被拖行,`dragover` 按指针落在行的上半还是下半给出落点线,`drop` 把整份新顺序交给调用方落库。落点线、抓手和键盘焦点样式都在共用件里,每加一处可拖列表不必各写一份 |
| 图标 | 固定版本的本地 Lucide 子集;Health Icons 24 px outline(CC0)用于领域图标;Phosphor regular 填充字形(MIT)只用在描边说不清的地方(字母表 Aa、播放列表) | 标签、状态和交互设计 |
| 资源文本中间省略 | Vercel Geist `MiddleTruncate` 行为契约 + 浏览器原生 `ResizeObserver`、`Intl.Segmenter`、Canvas 测量 | 文件名、路径、URL、ID 等资源标识用 `data-middle-truncate`;标题、说明、人名、标签等语义文本保留末尾省略;页面源测试登记全部末尾省略选择器,新增截断未先分类会失败 |
-| 定时轮询 | APScheduler 3.11.3(MIT,固定稳定版;3.x `BackgroundScheduler` / interval trigger) | 只在 ledger writer 启动、持久频率、首次延迟、单实例、手动/自动互斥、运行状态与来源错误汇总 |
+| 定时轮询 | APScheduler(MIT,固定稳定版;3.x `BackgroundScheduler` / interval trigger) | 只在 ledger writer 启动、持久频率、首次延迟、单实例、手动/自动互斥、运行状态与来源错误汇总 |
| 本地文件事件 | watchdog + 定期对账 | 媒体身份和漏报修复 |
| 局域网发现 | Python zeroconf | 服务生命周期和真实客户端验收 |
| 生成产物跨机同步 | Syncthing 2.1.x,Windows send-only → Mac receive-only | 目录划分、忽略规则、方向固定与「Mac 不发布正式产物」的边界 |
@@ -320,11 +324,11 @@ CloudDrive 为外部应用,本项目不捆绑其二进制或依赖其管理 AP
| 智能体用量/配额 | Provider 官方配额接口;T3 Code/CodexBar 提供本地历史 | 任务路由、脱敏、过期快照标记 |
| 视频出处/片尾证据 | 现有 FFmpeg 抽帧 + Windows.Media.Ocr WinRT Provider(Windows PowerShell 5.1 固定适配器) | 有界首尾采样、缓存、来源/Full version 分类、健康统计与人工复核 |
| 参考产品行为 | 当前线上交互 + 有版本的公开 DOM/CSS/JS;取不到源码时用精确截图测量 | 证据登记、无障碍、Peach 差异、回归检查 |
-| 浏览器历史解析 | `browserexport==0.4.4`(Chrome/Firefox/Zen/Safari 的 SQLite 解析,`taste_history.py` 不自写解析) | Python 3.14 依赖解析通过;POC 在本机 7 个 Chrome/Firefox/Zen profile 上与 Peach 逐库计数完全一致,macOS 的 Safari/Zen/Firefox/Chrome 路径发现有独立测试。首个消费者是 `/taste` 的本机读取与导出导入;Peach 保留 SQLite backup、Takeout、私有原始存储、域名分析和 candidate 生成,并在 Windows 自己关闭只读连接以避开依赖的文件句柄滞留。跨主机同步不由该依赖提供,仍须显式导出、传输和按来源去重合并。 |
+| 浏览器历史解析 | `browserexport`(Chrome/Firefox/Zen/Safari 的 SQLite 解析,`taste_history.py` 不自写解析) | Python 3.14 依赖解析通过;POC 在本机 7 个 Chrome/Firefox/Zen profile 上与 Peach 逐库计数完全一致,macOS 的 Safari/Zen/Firefox/Chrome 路径发现有独立测试。首个消费者是 `/taste` 的本机读取与导出导入;Peach 保留 SQLite backup、Takeout、私有原始存储、域名分析和 candidate 生成,并在 Windows 自己关闭只读连接以避开依赖的文件句柄滞留。跨主机同步不由该依赖提供,仍须显式导出、传输和按来源去重合并。 |
| 批处理进程锁 | 候选 `portalocker==4.3.0` 的 `PidFileLock`;生产仍是 `src/peach/jobs.py::PidFileLock` | Python 3.14 解析通过,现成覆盖 PID 写入、锁持有者、原子替换、陈旧文件与释放清理。替换时 Peach 只保留任务归属和错误文案映射;落地前不算已进入生产的依赖。 |
| Rule34Video 媒体页解析 | `yt-dlp==2026.8.19`(承担格式、标签、缩略图与时间的提取) | 对真实视频 4533145 无写入提取成功,取得 4 个格式、31 个标签、缩略图与时间。Peach 仍负责作者分页、合集/超多 model 排除、来源分组和跨站去重。 |
| Rule34.xxx / Paheal 高清封面 | 固定参考 gallery-dl `86047cf67a12bdb6ff1085774f8ad9fc347e8da9`(GPL-2.0,只作协议行为证据,不引入运行时);运行时复用现有 FFmpeg | booru URL 明确支持 `sample_url`/`preview_url`/`file_url` 回退,Paheal 抽取器只取得原始 `file_url`。真实 POC 中 Rule34.xxx 历史 preview 为 250×141、同哈希 sample 为 1920×1080;Paheal 页面只有低清 poster/og:image,原视频可生成 1280×720 JPEG。视频缩略图工具 ffmpegthumbnailer 默认取 10% 位置,Peach 不引入这个 GPL 运行时;直接复用 FFmpeg `blackframe` 导出的 `lavfi.blackframe.pblack`,在开头 30 秒选第一张黑色像素低于 98% 的帧,并用版本化缓存键淘汰旧黑帧。Peach 继续负责 URL 白名单、同源代理、按需双并发抽帧、缓存与低清失败回退,不新增依赖、不改 ledger。 |
-| FANBOX 正文解析 | PixivUtil2 `v20251112` / `e537e96` 的公开正文模型(BSD-2-Clause,只复用数据模型,不引入整套下载器) | Peach 的独立规范化 DTO 已覆盖 image/text/file/article/video/entry、`fileMap`、`embedMap`、`urlEmbedMap` 和旧 HTML 正文,并保留正文顺序、稳定去重、可播放媒体与文件页边界;许可证依据写在实现头部。PixivUtil2 是完整下载器而非可嵌入解析库,因此不引入整套依赖;传输继续固定 `curl_cffi==0.16.2`。真实公开帖 12228983 只读 POC 得到 article、6 图和 Gofile `OS2Qz9`。 |
+| FANBOX 正文解析 | PixivUtil2 `v20251112` / `e537e96` 的公开正文模型(BSD-2-Clause,只复用数据模型,不引入整套下载器) | Peach 的独立规范化 DTO 已覆盖 image/text/file/article/video/entry、`fileMap`、`embedMap`、`urlEmbedMap` 和旧 HTML 正文,并保留正文顺序、稳定去重、可播放媒体与文件页边界;许可证依据写在实现头部。PixivUtil2 是完整下载器而非可嵌入解析库,因此不引入整套依赖;传输继续固定 `curl_cffi`。真实公开帖 12228983 只读 POC 得到 article、6 图和 Gofile `OS2Qz9`。 |
依赖的第一个消费者及其隔离测试必须在同一改动落地,否则不引入依赖。
Python、npm 与 GitHub Actions 的版本由 `.github/dependabot.yml` 每周检查;固定前端文件由
diff --git a/docs/SOURCING.md b/docs/SOURCING.md
index 5b5b07075..61c011eb0 100644
--- a/docs/SOURCING.md
+++ b/docs/SOURCING.md
@@ -404,7 +404,7 @@ javdb 判的是「这个出口发得太快」,不是「你是不是机器人
而一整轮几百次请求能跑完、打到一定量才被封,是按出口 IP 计配额的形状。
- **未取得**:封期之内两种 transport 的对照。要取得就得先把出口 IP 打进封锁,这一条不做,所以「被封之后换
指纹能不能立刻通」仍然未知。脚本与原始结果在仓库外的 `attic/evidence/20260922-javdb-transport-fingerprint/`;
- 对照起因见 `docs/reference-snapshots/amane-crawlers-poc.md`。
+ 对照起因见 [docs/reference-snapshots/amane-crawlers-poc.md](reference-snapshots/amane-crawlers-poc.md)。
**配额和机器人判定是两件事,处理不同。** Cloudflare 与验证墙判的是「你是不是机器人」,绕过它要伪装成另一种
客户端,一律放弃。javdb 这道判的是出口速率,换节点只是换一条线路重新计配额,没有伪装,所以换出口可以。
@@ -647,7 +647,7 @@ Instagram 的独立用户登录会话未取得,自动适配器不进正式依
- 候选按实测像素判定(`peach.images.classify`):短边 < 128 拒绝;头像另按长边 ≥ 500、短边 ≥ 300 判,竖构图
人像套用方图门槛会拒掉最好的来源。只有 URL、没有实测尺寸的不算候选。
- **「长边 ≥ 500」是源头门槛,不是显示门槛。** 它拦的是缩略图级来源。拿它当显示门槛,会把一张脸宽 208px 的
- 382×382 挡在门外,让在位那张脸只有 55px 的封面裁片继续占着位子。显示侧的尺寸约定见 `docs/FRONTEND.md`。
+ 382×382 挡在门外,让在位那张脸只有 55px 的封面裁片继续占着位子。显示侧的尺寸约定见 [docs/FRONTEND.md](FRONTEND.md)。
- 可用来源:r18.dev、av-wiki.net、Gfriends。javlibrary、missav、xslist 被 Cloudflare 拦,njav 有验证墙,jav321 没有
独立的女优字段。被 Cloudflare 拦的站一律放弃,不绕过机器人检测。javdb.com 抓得到,但按出口 IP 限速,见
「javdb、AVBase 与 JavBus 的限流与封禁」。
@@ -1028,7 +1028,7 @@ AV 厂牌 Logo 的来源是厂牌自己的社交账号头像:社交头像天
写进复核件:`きらきらワイフ` 撞上的 `kira*kira` 是另一家真实厂牌。
- **名录对不上账本,多数是账本里没有那家,不是缺日文别名。** 按子串加编辑距离放宽重算也只翻出假配对。MGStage 是素人/企划
平台,没对上的多是 FANZA 系(MOODYZ、S1 等),要另找入口。补日文别名能抬高同一份名录的覆盖面,待办见
- `docs/PRODUCT_BACKLOG.md`「待执行的操作」第 24 条。
+ [docs/PRODUCT_BACKLOG.md](PRODUCT_BACKLOG.md)「待执行的操作」第 24 条。
**展会名录 jae.tokyo**(人工指定来源,Japan Adult Expo 的参展厂牌名录):三届各带一套片商自己交的 logo,页面结构每届不同。
@@ -1122,7 +1122,7 @@ AV 厂牌 Logo 的来源是厂牌自己的社交账号头像:社交头像天
- 厂牌标识按位置分 icon/logo 两份,但只在真的有两份时才分岔:`<safe>.icon.img`、`<safe>.logo.img` 都回落到 `<safe>.img`。
绝大多数厂牌两个位置拿到的是同一张。
-- 存盘后缀说明不了清晰度:有的厂牌 `icon` 只有几十像素,裸文件却有几百像素。取图位与 `variant` 参数的页面约定见 `docs/FRONTEND.md`。
+- 存盘后缀说明不了清晰度:有的厂牌 `icon` 只有几十像素,裸文件却有几百像素。取图位与 `variant` 参数的页面约定见 [docs/FRONTEND.md](FRONTEND.md)。
### 来源顺序(`studio_icons.icon_row`)
diff --git a/docs/STATUS.md b/docs/STATUS.md
index c4f1a5af5..2bdb5f728 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -1,8 +1,8 @@
-# Peach 当前状态
+# Peach 运行核验记录
最后核验:2026-09-14
-只记运行状态。待办见 `PRODUCT_BACKLOG.md`,判据见 `REUSE.md`,长期约定见 `HANDOFF.md`。
+本页仅代表核验日期的观察;实时版本和健康状态查运行实例的 `/healthz`。另见 [待办](PRODUCT_BACKLOG.md)、[复用清单](REUSE.md)、[长期约定](HANDOFF.md)。
## 运行态
@@ -20,7 +20,7 @@
- 两端各用本机 CA,私钥与凭据不跨机同步;代码走 Git、账本单写者复制、图片走 Syncthing;本机坐标在 `<数据根>/config.toml`。
- Windows 真实 ledger `peach-data/database/ledger.db`,2026-09-13 已应用到 `0031`;`asset_subtitle` 195 行(孤立 19),175 部带字幕轨,`asset` 80,761 行。
- Mac ledger 已授权从共享副本显式拉取并恢复 `in-sync`;`sources` 已迁内置盘,`archive`、`tools` 仍可指向外置盘。
-- 前端按 ADR-0031 逐页迁往 `frontend/` 的 React + Tailwind + BoardUI 源码;产物进 Git,经 `/dist/{name}` 提供;改前端需 Node 24+(`docs/FRONTEND.md`)。
+- 前端按 ADR-0031 逐页迁往 `frontend/` 的 React + Tailwind + BoardUI 源码;产物进 Git,经 `/dist/{name}` 提供;改前端需 Node 24+([docs/FRONTEND.md](FRONTEND.md))。
- 本机运行 Python 3.14;`requires-python` 下限 3.12,CI 同时测 3.12 与 3.14;Windows FFmpeg/ffprobe 位于 `peach-data/tools/ffmpeg`,macOS 走 PATH。
- amane 桥(ADR-0048)装在 `peach-data/tools/amane-bridge/`,四类番号链都经它问。
- 发行名 `peach`,目录名 `peach-app`。macOS 落后 master 一组有顺序的操作(待办「待执行的操作」第 30 条),做完前别重启菜单栏:无口令的 `peach serve --host 0.0.0.0` 会拒绝启动。
diff --git a/docs/TESTING.md b/docs/TESTING.md
index 2dad4f3e3..bf47927cf 100644
--- a/docs/TESTING.md
+++ b/docs/TESTING.md
@@ -46,6 +46,8 @@ Dependabot 的 PR 一律在本地接管,不在网页上合:
## 验证频率
+文档与文案检查包含 seiso 稳定规则和最终状态检查,随正式入口执行。分类、范围、独立检查与预览规则用法见 [文档与界面文案](WRITING.md#检查与复核)。seiso 由开发依赖与锁文件固定,运行 Peach 不需要它。
+
不是每次都跑全量:本机按改动涉及的域选测,CI 按提交类型决定覆盖多宽。
| 场景 | 验证 |
diff --git a/docs/WRITING.md b/docs/WRITING.md
new file mode 100644
index 000000000..3883f35d2
--- /dev/null
+++ b/docs/WRITING.md
@@ -0,0 +1,59 @@
+# 文档与界面文案
+
+Peach 使用 [seiso](https://github.com/scarletkc/seiso) 检查 Markdown 的职责、链接和规则例外。中文表达遵循 tech-doc-style-chinese;界面文字还需对照实际操作、错误状态和可用的恢复方式复核。
+
+## 文档职责
+
+文件分类由 [seiso.toml](../seiso.toml) 维护。新增文档须选择一种职责;已有路径映射不符合内容时,在 frontmatter 声明 `kind`。
+
+| 内容 | 归属 | kind |
+| --- | --- | --- |
+| 产品用途、安装入口、文档导航 | [README](../README.md),英文版同步维护 | `readme` |
+| 安装、配置、测试与维护步骤 | [运行与配置](OPERATIONS.md)、[测试与依赖](TESTING.md) 等操作文档 | `howto` |
+| 架构、术语、接口约束、复用依据 | [总体架构](ARCHITECTURE.md)、[长期约定](HANDOFF.md)、[复用清单](REUSE.md) | `reference` |
+| 决策背景、选择与代价 | `adr/` 下按编号命名的决策文件 | `adr` |
+| 尚未完成的工作 | [待办](PRODUCT_BACKLOG.md) | `plan` |
+| 发布记录、有核验日期的运行与审计记录 | [变更日志](../CHANGELOG.md)、[状态记录](STATUS.md)、[采集审计](SCRAPING_AUDIT.md) | `changelog` |
+
+同一事实只维护一处,其他页面链接到文件或章节。版本、文件数量、部署状态优先指向清单、代码或查询入口;保留观察值时写明核验日期。代码版本不能用来推断服务已更新。
+
+README 保留开始使用所需的信息。字段定义放参考文档,操作步骤放 howto,设计理由放 ADR。保留现有章节锚点;移动内容时同步修复引用。
+
+## 界面文字
+
+- 按钮写动作和对象,如「保存配置」「删除播放列表」。导航、按钮与提示中的同一概念使用同一名称。
+- 空状态区分尚未创建、筛选无结果、没有权限与读取失败。说明下一步时,只写页面实际提供的操作。
+- 错误标题指出对象;正文保留原因,并说明可行的恢复方式。请求超时不能说明后台任务已经停止,先查看任务状态再决定是否重试。
+- 删除、清空、卸载等确认文字说明对象、保留内容和可撤销范围;保留现有安全条件。
+- 界面面向使用者说明行为。数据库列、内部状态码、实现细节放开发文档;配置所需的路径、域名和字段保持准确。
+- 中文使用中文标点,数字与单位、中文与英文间按语义留空格。代码标识、API 字段、URL、站点原名、引用及第三方许可原文不作文字替换。
+
+共享请求错误由 [requestErrorMessage](../web/js/core.js) 提供,React 的 [API 封装](../frontend/src/api.ts) 复用它;页面在错误标题中补充操作对象。文案编辑不改变字段值、路由、任务状态或数据写入条件。
+
+配置页外部入口说明由 [configuration-copy.ts](../frontend/src/configuration-copy.ts) 维护,首屏骨架和正式表单共用。修改说明时,两处的换行和高度也须一致,由浏览器几何用例验证。
+
+## 检查与复核
+
+先按 [测试与依赖](TESTING.md#环境与锁文件) 安装锁定的开发环境。以下命令在仓库根目录执行,检查全部项目 Markdown:
+
+```text
+uv run --locked --extra dev seiso check
+```
+
+查看实验规则提示,逐条核对事实和上下文:
+
+```text
+uv run --locked --extra dev seiso check --preview --output-format concise
+```
+
+查看实际分类、排除范围及启用的规则:
+
+```text
+uv run --locked --extra dev seiso policy
+```
+
+正式测试入口的文案检查执行 seiso 稳定规则,并保留 [最终状态检查器](../scripts/check_copy_final_state.py)。预览规则仅供人工复核,不作为 CI 门槛;语言风格、内容真伪和界面适配也不能由 seiso 的通过结果证明。
+
+提交模板不是成稿;`docs/reference-snapshots/upstream/` 保存第三方原文,相对链接属于上游仓库。这两类在配置中排除。Peach 自己撰写的取证摘要、ADR、技能和依赖来源说明仍接受检查;构建目录、依赖安装目录不属于项目文档。
+
+必要例外按 [seiso 的例外语法](https://github.com/scarletkc/seiso/blob/main/docs/guides/checking.md#explain-an-exception) 写明完整规则编号和原因。规则提示需先判断是否成立,不能通过扩大排除范围掩盖项目问题。
diff --git a/docs/adr/0010-reuse-before-reimplementation.md b/docs/adr/0010-reuse-before-reimplementation.md
index 7463f1943..0b0b643bd 100644
--- a/docs/adr/0010-reuse-before-reimplementation.md
+++ b/docs/adr/0010-reuse-before-reimplementation.md
@@ -14,14 +14,14 @@
## 决策
-- 新增、恢复或重写实现前,按能力、输入输出和数据副作用搜索当前树,检查 `docs/REUSE.md` 和 Git
+- 新增、恢复或重写实现前,按能力、输入输出和数据副作用搜索当前树,检查 [docs/REUSE.md](../REUSE.md) 和 Git
历史,再检索官方 SDK、成熟依赖、维护中的开源实现和系统原生能力。
- 候选必须用当前任务的真实输入做无写入 POC,并核对许可证、维护状态、固定版本、平台/Python
兼容、依赖体积、打包和已知失败。仅凭项目主页或名称相似不得决定采用。
- Peach 只自研领域差异:实体身份、行为、跨来源绑定、成本/隐私、review/provenance 和任务语义。
- 协议、解析、媒体编解码、搜索基础设施、播放器、图标和调度优先使用成熟依赖;首个真实消费者、固定版本和隔离测试必须同批落地。
- 没有可直接安装的成熟依赖时,可以固定 revision 复用成熟实现的数据模型或算法边界;只有外部方案
- 不满足已验证约束时才保留自研,并把拒绝理由与实证写进 `docs/REUSE.md`。
+ 不满足已验证约束时才保留自研,并把拒绝理由与实证写进 [docs/REUSE.md](../REUSE.md)。
- 运行时只保留一个正式 abstraction。迁移 facade 若未接入生产,不得算作能力完成。
- 用户不承担代理间信息同步;事实、规则和决策分别写入 STATUS、HANDOFF/REUSE 和 ADR。
@@ -35,4 +35,4 @@
## 后果
-每项能力多一道短审计,但能避免迁移回归、重复维护和不必要的协议实现。`docs/REUSE.md` 成为可更新的实现索引,不替代具体 ADR 和测试证据。
+每项能力多一道短审计,但能避免迁移回归、重复维护和不必要的协议实现。[docs/REUSE.md](../REUSE.md) 成为可更新的实现索引,不替代具体 ADR 和测试证据。
diff --git a/docs/adr/0015-agent-context-layering.md b/docs/adr/0015-agent-context-layering.md
index df0030aa2..9a2f29857 100644
--- a/docs/adr/0015-agent-context-layering.md
+++ b/docs/adr/0015-agent-context-layering.md
@@ -5,9 +5,9 @@
## 背景
-`AGENTS.md` 与 `docs/HANDOFF.md` 是持续追加的文件。追加成本不对称:`AGENTS.md` 每轮对话都被
+`AGENTS.md` 与 [docs/HANDOFF.md](../HANDOFF.md) 是持续追加的文件。追加成本不对称:`AGENTS.md` 每轮对话都被
完整载入并消耗预算,而其中大量条目(迁移流程、限流标定、取证协议)只在特定任务里才成立。
-条目越多,真正的硬门槛越容易被稀释。`docs/HANDOFF.md` 已达 215 行,同时混装长期规则、
+条目越多,真正的硬门槛越容易被稀释。[docs/HANDOFF.md](../HANDOFF.md) 已达 215 行,同时混装长期规则、
一次性事故证据和按日期记录的批次说明,读者无法只取自己需要的一段。
参考视频 `https://www.youtube.com/watch?v=e1snsuY4lTI`
@@ -33,7 +33,7 @@
- push 与 pull 两种上下文模式的区分(常驻文件 vs 按 description 触发载入的 skill),见
<https://blog.logrocket.com/context-engineering-for-ides-agents-md-agent-skills/> 与
<https://chrisreddington.com/blog/building-your-agent-toolbox/>。
-- 本项目 `docs/HANDOFF.md`「重复错误复盘(2026-08-16)」的结论:反复犯的错根因是
+- 本项目 [docs/HANDOFF.md](../HANDOFF.md)「重复错误复盘(2026-08-16)」的结论:反复犯的错根因是
「文字提醒没有变成执行门槛」。因此分层规范本身也必须带可执行检查,否则它会成为下一条
被忽略的散文。
@@ -45,7 +45,7 @@
| --- | --- | --- | --- |
| L0 全局配置 | `~/.claude/CLAUDE.md`、`~/.codex/AGENTS.md` | 与仓库无关、每个任务都成立的身份与语言偏好 | ≤ 20 行 |
| L1 项目入口 | `AGENTS.md` | 进入 Peach 必须先成立的边界、硬门槛、术语表与技能索引 | ≤ 90 行 |
-| L2 仓库文档 | `README.md`、`docs/**` | 事实、数字、历史证据与架构决策,被指向时才读 | 按主题分节;每轮必读的 `docs/HANDOFF.md`、`docs/STATUS.md` 另有预算 |
+| L2 仓库文档 | `README.md`、`docs/**` | 事实、数字、历史证据与架构决策,被指向时才读 | 按主题分节;每轮必读的 [docs/HANDOFF.md](../HANDOFF.md)、[docs/STATUS.md](../STATUS.md) 另有预算 |
| L3 技能 | `.claude/skills/<name>/SKILL.md`、`~/.claude/skills/<name>/SKILL.md` | 某类任务开始时才需要的可执行流程 | 每个 ≤ 120 行 |
### 预算只能降不能升
@@ -63,9 +63,9 @@
- 内部预算(`AGENTS.md` 90、`SKILL.md` 120、`description` 200)一律严于天花板,且只能降不能升。
天花板管「绝不越过」,内部预算管「当前写作纪律」,两者不是一回事。
-2026-09-03 补充:行数不是可信的度量。`docs/STATUS.md` 当时只有 226 行却重 155 KB,最长一行
+2026-09-03 补充:行数不是可信的度量。[docs/STATUS.md](../STATUS.md) 当时只有 226 行却重 155 KB,最长一行
一万三千多字符,行数预算完全没被触发。所以入口文件改按三条判:行数、字节数、单行字符数。
-当前值为 `AGENTS.md` 12 KB、`docs/HANDOFF.md` 24 KB、`docs/STATUS.md` 12 KB,单行上限 400 字符,
+当前值为 `AGENTS.md` 12 KB、[docs/HANDOFF.md](../HANDOFF.md) 24 KB、[docs/STATUS.md](../STATUS.md) 12 KB,单行上限 400 字符,
天花板分别是 16 KB、32 KB、16 KB。字节预算的变更记录放在 `BYTE_BUDGET_CHANGES`,语义与行数预算
完全一致:只能降不能升,上调要写明为什么下沉不了。字节按文件实际大小算,单行按字符算。
@@ -148,6 +148,6 @@
不是假结论;唯一例外是多行内容的转义损坏(静默),它的核心判据留在入口。文件从 12.2 KB
降到 10.0 KB,字节预算同步降为 11 KB、行数降为 88。
-2026-08-27 复核已清退 `docs/HANDOFF.md` 中会变化的外部测量、旧测试数字、模型能力说明,以及
-已由技能、测试或 `docs/STATUS.md` 承担的重复事实;长期文档从 259 行降到 157 行,预算同步降为
-180 行。运行态仍以 `docs/STATUS.md` 为单一真相位置。
+2026-08-27 复核已清退 [docs/HANDOFF.md](../HANDOFF.md) 中会变化的外部测量、旧测试数字、模型能力说明,以及
+已由技能、测试或 [docs/STATUS.md](../STATUS.md) 承担的重复事实;长期文档从 259 行降到 157 行,预算同步降为
+180 行。运行态仍以 [docs/STATUS.md](../STATUS.md) 为单一真相位置。
diff --git a/docs/adr/0019-site-follow-connectors-and-variant-grouping.md b/docs/adr/0019-site-follow-connectors-and-variant-grouping.md
index df50e9001..0ea599a23 100644
--- a/docs/adr/0019-site-follow-connectors-and-variant-grouping.md
+++ b/docs/adr/0019-site-follow-connectors-and-variant-grouping.md
@@ -131,7 +131,7 @@ f95zone 线程 50685,`creator` 字段写作 `LazyProcrastinator/LazyProcrast`
### 站点表补记(2026-08-29)
-上表为 2026-08-25 的初始实测;其后接入的内容按当前 `docs/REUSE.md`「已定型的产品行为」补齐,
+上表为 2026-08-25 的初始实测;其后接入的内容按当前 [docs/REUSE.md](../REUSE.md)「已定型的产品行为」补齐,
连接器细节以 `follow_sources.py`/`follow_providers.py` 登记为准:
| 来源 | 入口 | 凭据 | 结论 |
diff --git a/docs/adr/0021-close-stash-adapter.md b/docs/adr/0021-close-stash-adapter.md
index 1577f7186..322e5e2e6 100644
--- a/docs/adr/0021-close-stash-adapter.md
+++ b/docs/adr/0021-close-stash-adapter.md
@@ -2,11 +2,11 @@
- 状态:Accepted
- 日期:2026-09-01
-- 关系:收束 ADR-0002 的 Stash 部分;`docs/STASH.md` 的第 5 步;修订完成第 6 步
+- 关系:收束 ADR-0002 的 Stash 部分;[docs/STASH.md](../STASH.md) 的第 5 步;修订完成第 6 步
## 背景
-ADR-0002 把 Stash 定为「可关闭的 adapter」,路线图(`docs/STASH.md`)的第 5 步是
+ADR-0002 把 Stash 定为「可关闭的 adapter」,路线图([docs/STASH.md](../STASH.md))的第 5 步是
「同批资产影子对比并关闭 adapter」。这一步一直没做,于是 `StashAdapter` 留在
`MediaEngine` 的 backend 列表里,看上去仍是一条在用的备选来源。
@@ -52,11 +52,11 @@ ADR-0002 把 Stash 定为「可关闭的 adapter」,路线图(`docs/STASH.md
`scripts/ledger.py stash`(场景/标签/Studio/Performer 回灌)和
`scripts/import_stash_entities.py`(身份导入)仍在。它们已经跑完并把结果写进账本,
现在只在需要重新导入时才有用,而重新导入需要 Stash 进程还活着。真正卸载 Stash 时
-一并退役,对应 `docs/STASH.md` 的第 6 步。
+一并退役,对应 [docs/STASH.md](../STASH.md) 的第 6 步。
## 修订:两个离线导入脚本已退役(2026-09-08)
-不再保留 Stash 作备胎,`docs/STASH.md` 的第 6 步随之完成:`scripts/ledger.py`、
+不再保留 Stash 作备胎,[docs/STASH.md](../STASH.md) 的第 6 步随之完成:`scripts/ledger.py`、
`scripts/import_stash_entities.py` 与只为它们存在的 `src/peach/stash.py` 一并删除,
仓库任何一处都不再连 Stash。「不动数据」那条不变:`media_binding`、`asset.stash_scene_id`
与 `source='stash:*'` 的断言仍是溯源,不清理。想重新导入只能从 Git 历史取回脚本。
diff --git a/docs/adr/0022-frontend-vite-preact-strangler.md b/docs/adr/0022-frontend-vite-preact-strangler.md
index aff2cde8c..341a56c88 100644
--- a/docs/adr/0022-frontend-vite-preact-strangler.md
+++ b/docs/adr/0022-frontend-vite-preact-strangler.md
@@ -26,7 +26,7 @@
- **单一测试入口不变**:`scripts/test.ps1` / `scripts/test.sh` 新增 `web` 域,Node 存在时跑 vitest,缺失时显式跳过并说明;`full` 包含它。
- 服务端新增 `/dist/{path}` 静态路由,与 `/js/{name}` 同一套路径遍历、扩展名和缓存头检查;不引入 CDN。
- 现有手工 vendored 的 video.js / swiper / lucide 暂不改;等对应页面迁移时再决定是否改为 npm 依赖经 Vite 打包。
-- 直接依赖数量要最小,每个依赖在 `docs/FRONTEND.md` 登记一句用途;版本精确锁定并提交 lockfile。
+- 直接依赖数量要最小,每个依赖在 [docs/FRONTEND.md](../FRONTEND.md) 登记一句用途;版本精确锁定并提交 lockfile。
- 测试契约从「源码字符串」转向「用户可见文案、`data-*`、`aria-*`、路由与 API 路径」;纯函数(路由匹配、时长格式、标签显示名、回退链解析)先抽成 `web/js/*.js` 模块,供 vitest 直接测试。
## 后果
diff --git a/docs/adr/0023-generic-distribution-roadmap.md b/docs/adr/0023-generic-distribution-roadmap.md
index 2aa3a4149..15235efc9 100644
--- a/docs/adr/0023-generic-distribution-roadmap.md
+++ b/docs/adr/0023-generic-distribution-roadmap.md
@@ -11,7 +11,7 @@ Peach 要发布到 GitHub 供所有人维护与使用。使用形态不变:每
- `src/peach/config.py` 用 `Path.home()/Desktop/peach`、`Desktop/<用户目录>/peach`、写者主机的 mDNS 名、SMB 账号名等字面量给默认值;代理与局域网 IP 散在 HANDOFF、STATUS 与技能文件里。
- ledger 路径固定写成 Windows 盘符形状(`R:\Media\...`、`A:\`、`B:\`),由 `peach.platform` 在读取时翻译成本机挂载点;盘符含义只在文档里说明。
- Windows 写者 / macOS 读者的单写者复制(SMB 共享、mDNS 名、钥匙串账号)默认开启、无法绕开,而多数用户只有一台机器。
-- `docs/STATUS.md`、`docs/HANDOFF.md` 与多份技能文件记录了个人运行态、真实 IP、备份文件名与磁盘布局。
+- [docs/STATUS.md](../STATUS.md)、[docs/HANDOFF.md](../HANDOFF.md) 与多份技能文件记录了个人运行态、真实 IP、备份文件名与磁盘布局。
不属于本 ADR 的事:多用户与账号系统、云托管、第三方登录。它们改变产品形态,另立 ADR。
@@ -83,7 +83,7 @@ Peach 要发布到 GitHub 供所有人维护与使用。使用形态不变:每
## 第 4 阶段实施记录(2026-09-04)
-本节是交接面:任何智能体接手开源发布,只读本节加 `docs/PRODUCT_BACKLOG.md` 即可,不需要对话记录。
+本节是交接面:任何智能体接手开源发布,只读本节加 [docs/PRODUCT_BACKLOG.md](../PRODUCT_BACKLOG.md) 即可,不需要对话记录。
### 用户已定的决定
@@ -130,12 +130,12 @@ Peach 要发布到 GitHub 供所有人维护与使用。使用形态不变:每
- 分支规则集 `protect-master`(id 22263433):默认分支禁删除、禁强推。Secret scanning、Push protection、Private vulnerability reporting、Dependabot alerts 已开启;Dependabot security updates 未开,是否让它自动开 PR 另行决定。
- 公开后的补漏(同日):`MachineCoordinateTests` 改成只写形状不点名的门槛(家目录路径、私网 IP、`.local` 主机名、本机账号与主机名运行时派生);发行名定为 `peach`,目录名 `peach-app` 不变;macOS bundle ID 改中性 ID 由用户定为待办第 28 条。
- 开箱引导的顺序由用户定:先 CLI 问答(`peach init` 无参数进入问答并可首扫,逻辑在 `peach.onboarding`,已在 master),再 GUI 引导(托盘首启打开首次运行页升级成的表单,调同一组函数),两者都已在 master。
-- GUI 引导已落地:未配置的机器上 `peach-tray` 起一条只绑回环的 `peach serve --setup` 引导服务并打开浏览器,首次运行页是表单,`POST /setup` 调与 CLI 同一个 `onboarding.apply()`;`tray.SetupGate` 在健康轮询里新鲜读设置文件,完成后不重启托盘进程就切到正常服务,并消费 `<数据根>/state/first-scan.request` 用子进程跑首扫。需要设置的判据是「没有 config.toml 且没有账本」,端口与失败形态见 `docs/OPERATIONS.md`「首次运行与设置文件」。
-- 剩余工作只在 `docs/PRODUCT_BACKLOG.md`:独立发行版、口味导入引导、README 瘦身到 `CONTRIBUTING.md` 与 `docs/`,以及「待执行的操作」里 Mac 侧的第 28 与 30 条。
+- GUI 引导已落地:未配置的机器上 `peach-tray` 起一条只绑回环的 `peach serve --setup` 引导服务并打开浏览器,首次运行页是表单,`POST /setup` 调与 CLI 同一个 `onboarding.apply()`;`tray.SetupGate` 在健康轮询里新鲜读设置文件,完成后不重启托盘进程就切到正常服务,并消费 `<数据根>/state/first-scan.request` 用子进程跑首扫。需要设置的判据是「没有 config.toml 且没有账本」,端口与失败形态见 [docs/OPERATIONS.md](../OPERATIONS.md)「首次运行与设置文件」。
+- 剩余工作只在 [docs/PRODUCT_BACKLOG.md](../PRODUCT_BACKLOG.md):独立发行版、口味导入引导、README 瘦身到 `CONTRIBUTING.md` 与 `docs/`,以及「待执行的操作」里 Mac 侧的第 28 与 30 条。
### 外部评审的取舍(2026-09-05)
-用户带来一份外部模型对本仓库的评审。逐条对过代码后,采纳的四条已进 `docs/PRODUCT_BACKLOG.md`
+用户带来一份外部模型对本仓库的评审。逐条对过代码后,采纳的四条已进 [docs/PRODUCT_BACKLOG.md](../PRODUCT_BACKLOG.md)
第 20 至 23 条(局域网默认鉴权、全新安装冒烟、`peach doctor`、性能基准),其中第 20 条是发布口径下
唯一真正的缺陷;它的口令层已经落地(`src/peach/auth.py` 与 `cli._serve_token`),条目里只剩
局域网明文口与手机端配对码。以下三类不采纳,记在这里是为了不被反复重提:
diff --git a/docs/adr/0031-frontend-react-boardui-tailwind.md b/docs/adr/0031-frontend-react-boardui-tailwind.md
index 57fd09f39..201639a52 100644
--- a/docs/adr/0031-frontend-react-boardui-tailwind.md
+++ b/docs/adr/0031-frontend-react-boardui-tailwind.md
@@ -64,7 +64,7 @@ BoardUI 通过 shadcn 注册表发布 React + Tailwind v4 源码,表单与弹
### 测试与门槛
-- **沿用 ADR-0022**:`npm run build` 的产物提交进 `web/dist/`,运行时不需要 Node;`/dist/{path}` 路由不变;测试入口仍是 `scripts/test.ps1` / `scripts/test.sh` 的 `web` 域;依赖精确锁定,在 `docs/FRONTEND.md` 登记用途。
+- **沿用 ADR-0022**:`npm run build` 的产物提交进 `web/dist/`,运行时不需要 Node;`/dist/{path}` 路由不变;测试入口仍是 `scripts/test.ps1` / `scripts/test.sh` 的 `web` 域;依赖精确锁定,在 [docs/FRONTEND.md](../FRONTEND.md) 登记用途。
- **旧断言先分类再删**。页面迁走时,它在 `tests/test_web_ui.py` 等处的源码字符串断言逐条归入三类,去向写进提交说明:
- 设计决定(用户定过的颜色、状态色块、焦点样式)写成 `frontend/e2e/design.test.ts` 里读 `getComputedStyle` 的断言,或由 lint 规则覆盖;
- 行为(提交什么、错误写回哪个字段、控件何时可用)写成 vitest;
@@ -79,7 +79,7 @@ BoardUI 通过 shadcn 注册表发布 React + Tailwind v4 源码,表单与弹
## 后果
- 迁移期同一页会有两种外观:未迁移的分区仍是旧写法。
-- 每个页面多加载一份 `peach-react.css`,体积随迁移的页面增长,当前值记在 `docs/FRONTEND.md`。
+- 每个页面多加载一份 `peach-react.css`,体积随迁移的页面增长,当前值记在 [docs/FRONTEND.md](../FRONTEND.md)。
- Oxlint 的 JS 插件 API 仍是 alpha,`@shadcn/lint` 只有 0.1.0:两者精确钉版本,升级前先跑 `web` 域。`eslint` 作为 `@shadcn/lint` 的 peer 会装进 `node_modules`,不调用。
- 冒烟与设计决定断言依赖 npm、ffmpeg 与 Chrome。本机缺任一项时整组显式跳过,这只适用于非验收运行。CI 的 `web-bundle` 任务跑 typecheck、lint、vitest 与 build,不跑 e2e;CI 接入带浏览器的 e2e 任务、并在 CI 里把缺依赖判为失败之前,迁移分支须在本机 `web` 域输出里确认 e2e 实际执行。
- `ReactBundleTests` 与 `BoardTokenTests` 里只在新旧并存期成立的断言,随「新旧样式并存」一节的做法一起删除。
diff --git a/docs/adr/0040-tasks-declare-followups-at-the-end.md b/docs/adr/0040-tasks-declare-followups-at-the-end.md
index 99ddefd93..c594035c3 100644
--- a/docs/adr/0040-tasks-declare-followups-at-the-end.md
+++ b/docs/adr/0040-tasks-declare-followups-at-the-end.md
@@ -17,7 +17,7 @@
重试判据彼此不同,那不是一个函数该承担的形状。
参考实现 amane 把这件事拆成「任务结果声明后继、调度端统一派发」(证据与判据见
-`docs/reference-snapshots/amane-task-followups.md`)。这个形状正好答上面那个问题:补头像是
+[docs/reference-snapshots/amane-task-followups.md](../reference-snapshots/amane-task-followups.md))。这个形状正好答上面那个问题:补头像是
一件与刮削无关的事,它只是恰好由刮削触发。
## 决策
diff --git a/docs/adr/0041-new-files-are-pushed-in-scanning-is-the-backstop.md b/docs/adr/0041-new-files-are-pushed-in-scanning-is-the-backstop.md
index 04c15376f..4233b18b3 100644
--- a/docs/adr/0041-new-files-are-pushed-in-scanning-is-the-backstop.md
+++ b/docs/adr/0041-new-files-are-pushed-in-scanning-is-the-backstop.md
@@ -14,7 +14,7 @@ CloudDrive 挂载,虽然在资源管理器里长得和本地盘一样,但每
真正在意的恰恰是刚存进网盘的那一部。
参考实现 `sqzw-x/amane` 的 Watcher 把这件事拆成两条通道:本地目录订阅文件系统事件,网盘
-目录等 CloudDrive2 主动推 webhook 过来。取证见 `docs/reference-snapshots/amane-watcher.md`。
+目录等 CloudDrive2 主动推 webhook 过来。取证见 [docs/reference-snapshots/amane-watcher.md](../reference-snapshots/amane-watcher.md)。
## 决策
@@ -78,6 +78,6 @@ CloudDrive2 会在 Peach 没起来的那段时间推空,前缀表配错会整
- 新依赖 `watchdog==6.0.0`,进依赖清单与 Dependabot。
- 多一个 POST 端点、一份设置(`push-discovery.json`)、一份密钥文件。
-- CloudDrive2 那一侧要用户自己配一次 `webhook.toml`,步骤写在 `docs/CLOUDDRIVE.md`;这需要
+- CloudDrive2 那一侧要用户自己配一次 `webhook.toml`,步骤写在 [docs/CLOUDDRIVE.md](../CLOUDDRIVE.md);这需要
CloudDrive2 的会员功能。配不了也不影响本地通道和全量扫描。
- README 的运行方式多一句:新文件默认等扫描,打开推送发现后是秒级。
diff --git a/docs/adr/0042-feeds-discover-codes-not-files.md b/docs/adr/0042-feeds-discover-codes-not-files.md
index a7911902a..258bbea03 100644
--- a/docs/adr/0042-feeds-discover-codes-not-files.md
+++ b/docs/adr/0042-feeds-discover-codes-not-files.md
@@ -11,9 +11,9 @@
参考实现 amane 把这件事做成了 Feed:订阅若干 RSS/Atom,按源的间隔拉取,只从条目里解出番号,
产出一条 by-number 的刮削任务,**不下载 enclosure、不写入媒体库**(设计判据见
-`docs/reference-snapshots/amane-feed.md`)。这个形状正合适:Peach 要的也只是番号。
+[docs/reference-snapshots/amane-feed.md](../reference-snapshots/amane-feed.md))。这个形状正合适:Peach 要的也只是番号。
-来源这一侧先做了取证(`docs/SOURCING.md`「番号发现源(Feed)」)。结论是原生 RSS 在这个领域
+来源这一侧先做了取证([docs/SOURCING.md](../SOURCING.md)「番号发现源(Feed)」)。结论是原生 RSS 在这个领域
基本绝迹:FANZA、MGStage、一本道、カリビアンコム、Tokyo-Hot、AVBase、javtrailers 全部没有,
javlibrary 与 RSSHub 公共实例挡在 Cloudflare 后面,JavBus 有人机验证。**能用的只有两类**:
sukebei.nyaa.si 的原生 RSS(75 条里 50 条带番号),和 JavDB 演员页当伪 Feed 抓(40 条里 39 条)。
@@ -111,7 +111,7 @@ Peach 不要:这里的目标是「看见新作」,不是「读订阅」。
「新作 · 未入库」区块用与目录卡同一套形状,但点开去的是外站作品页,不是播放器。
- 馆藏统计、整理、抽帧、资源同步、回收站的口径全部不变,因为它们看的表没变。
- 用户能订阅的来源受现实限制:能用的只有 sukebei 的原生 RSS 与 JavDB 演员页伪 Feed 两类。
- 这个清单会随站点变化,判据(「条目里那串东西是不是真的番号」)写在 `docs/SOURCING.md`。
+ 这个清单会随站点变化,判据(「条目里那串东西是不是真的番号」)写在 [docs/SOURCING.md](../SOURCING.md)。
- 一个源接进来之前必须先看它的番号样本。DUGA 那种「RSS 很正规、番号是假的」的来源
只有人看一眼才能判出来,没有自动判据。
diff --git a/docs/adr/0043-amane-sites-via-thin-bridge-subprocess.md b/docs/adr/0043-amane-sites-via-thin-bridge-subprocess.md
index 96b60c34e..826ba8ce3 100644
--- a/docs/adr/0043-amane-sites-via-thin-bridge-subprocess.md
+++ b/docs/adr/0043-amane-sites-via-thin-bridge-subprocess.md
@@ -6,7 +6,7 @@
## 背景
`sqzw-x/amane`(GPL-3.0)接了二十多个 JAV 影片站的解析器,其中 fc2club、freejavbt、airav、
-avsox 是 Peach 自己没有且站点可达的。2026-09-22 的 POC(`docs/reference-snapshots/amane-crawlers-poc.md`)
+avsox 是 Peach 自己没有且站点可达的。2026-09-22 的 POC([docs/reference-snapshots/amane-crawlers-poc.md](../reference-snapshots/amane-crawlers-poc.md))
证实它的爬虫层能脱离 FastAPI 与 AppRuntime 手工构造并跑通真实番号,但也量出了三道墙:它要求
Python 3.14、依赖全用 `>=` 下限,并进 Peach 主 venv 会撞上「精确固定版本」的门槛并把 Peach 的
下限从 3.12 抬上去;它的聚合层会连带 SQLAlchemy 与配置层;它的 `observability.invoke_source`
@@ -35,7 +35,7 @@ Peach 一侧 `peach.metadata_amane.AmaneBridge` 起它、读那一行、按站
**四、升级是人做的事。** 设置页只显示钉住的 sha 与上游最新 release 的 tag(只读 GitHub API,
取不到写「未取得」),不自动跟上游:改 sha 前要读上游 diff 确认站点解析器的字段语义没变,再
-同批更新锁、`docs/REUSE.md` 与映射表。Dependabot 推不动 git sha 钉,所以桥不进 Dependabot。
+同批更新锁、[docs/REUSE.md](../REUSE.md) 与映射表。Dependabot 推不动 git sha 钉,所以桥不进 Dependabot。
**五、聚合留在 Peach。** 一站一份 payload 按 Javinizer-Go 快照的键名交出去(`maker`、`label`、
`actresses[].japanese_name`、`genres`),身份由 `identifies_code` 核,分歧由 `metadata_policy` /
@@ -65,7 +65,7 @@ fc2club;无码链末尾接 avsox;有码与素人链不变,freejavbt 与 ai
多一个 `detail`;`scraping_access` 多三个冷却读写入口;来源链多一档 `amane`。
- 设置页多一张卡、三条端点(`/api/scraping/amane-bridge` 与它的 `check`、`rebuild`)、一个后台任务。
- amane 为 GPL-3.0,Peach 为 AGPL-3.0-or-later,两者以进程边界相接;随 Peach 分发的只有清单、锁
- 与桥脚本,不含 amane 源码,amane 由用户机器上的 uv 按锁下载。登记在 `docs/REUSE.md`。
+ 与桥脚本,不含 amane 源码,amane 由用户机器上的 uv 按锁下载。登记在 [docs/REUSE.md](../REUSE.md)。
- 每次子进程有约 0.6~1 秒的 import 开销(`amane.crawlers` 的包 `__init__` 连带 SQLAlchemy),
接受它换来不改上游一行。
- amane 的 `WebClient` 以 `verify=False` 发请求;这一路取回的是公开页面的文字与图片地址,不带
@@ -74,4 +74,4 @@ fc2club;无码链末尾接 avsox;有码与素人链不变,freejavbt 与 ai
## 修订:移除 fc2ppvdb(2026-09-22)
fc2ppvdb 从开放站表、FC2 链与桥的站表中移除:当日实测三个商品号都回 HTTP 526(站方 Cloudflare 源站证书故障),用户判定该站已不可访问。 <!-- copy-lint-disable-line -->
-经桥的站只剩 fc2club、freejavbt、airav、avsox 四站;站点恢复后要接回来,按本 ADR「四」的升级流程同批改站表、链与 `docs/REUSE.md`。
+经桥的站只剩 fc2club、freejavbt、airav、avsox 四站;站点恢复后要接回来,按本 ADR「四」的升级流程同批改站表、链与 [docs/REUSE.md](../REUSE.md)。
diff --git a/docs/adr/0044-scraping-stack-converges-to-two.md b/docs/adr/0044-scraping-stack-converges-to-two.md
index e84901109..b017cac24 100644
--- a/docs/adr/0044-scraping-stack-converges-to-two.md
+++ b/docs/adr/0044-scraping-stack-converges-to-two.md
@@ -34,7 +34,7 @@ Javinizer-Go 那一路还要求本机装一份特定大版本的二进制并单
amane 桥前必须在同一批番号上取到三条证据:桥给出的字段集合覆盖自写解析器当前给出的字段;命中率
不低于自写(按 `metadata-source-health-*.csv` 的 `succeeded`/`attempted`);被限流或封禁时的
表现不差于自写(冷却写回同一份 `scraping_access` 记录、鉴权墙仍分到 `auth` 一档)。三条齐了写进
- `docs/SOURCING.md` 再删代码;缺一条写「未取得」,解析器留着。
+ [docs/SOURCING.md](../SOURCING.md) 再删代码;缺一条写「未取得」,解析器留着。
- **封面层独立于资料来源**:`jav_cover_fetch`、`best_cover`、`verified_cover` 与它们的图源汇总不随
资料链变化;`sources/metadata/javinizer-go/**` 下的旧快照只作离线证据继续被读取(`cover_url`、
`content_id`、厂牌),不再有任何一条路往里写 Javinizer 形状的新快照——`scrape_codes` 写进同一目录
@@ -54,7 +54,7 @@ Javinizer-Go 那一路还要求本机装一份特定大版本的二进制并单
## 后果
- 影响面:`src/peach/metadata.py`、`metadata_policy.py`、`metadata_routes.py`、`metadata_seesaa.py`、
- `scripts/scrape_codes.py`、对应测试与 `docs/REUSE.md`、`docs/SOURCING.md`。设置页没有 Javinizer-Go
+ `scripts/scrape_codes.py`、对应测试与 [docs/REUSE.md](../REUSE.md)、[docs/SOURCING.md](../SOURCING.md)。设置页没有 Javinizer-Go
的卡片或 API,前端无改动。
- ADR-0006 把 Javinizer-Go 定为默认查询适配器、把 `REGISTERED_SOURCES` 定为登记位,ADR-0024 的复用表
把它列为番号元数据的正式基础;两处由本 ADR 取代,登记位改为 `SOURCE_SPECS`,链的成员由
@@ -112,6 +112,6 @@ JavArchive 把搜索命中的每一条转存各交一份;`Session.get` 可以
没找到是可重试的 `incomplete_search`,按 `not_found` 冻成定论就违背「未取得不冻结」。provenance 仍是 `sougouwiki`,
`SOURCE_LABELS`、`PROVIDER_NAMES` 补上这一行。payload 的差别只有契约统一带的 `maker`、`label`、`series`、`director` 空串键、
`runtime` 空值与 `cover_urls`,没给标题或日期列的表按空串交出;冲突判定比较标题、出演与日期时,表上没有那一列与那一格为空同样按空串比。
-迁移状态表在 `docs/SOURCING.md`「站点解析器契约」。
+迁移状态表在 [docs/SOURCING.md](../SOURCING.md)「站点解析器契约」。
归属判据由 ADR-0048 修订。 <!-- copy-lint-disable-line -->
diff --git a/docs/adr/0047-feed-subscriptions-enter-from-the-performer-page.md b/docs/adr/0047-feed-subscriptions-enter-from-the-performer-page.md
index 5f09589c1..ce8c78fa4 100644
--- a/docs/adr/0047-feed-subscriptions-enter-from-the-performer-page.md
+++ b/docs/adr/0047-feed-subscriptions-enter-from-the-performer-page.md
@@ -41,6 +41,6 @@ ADR-0042 落地时有两个入口:设置页「订阅源」下面一张表单
- 设置页「订阅源」只剩列表、开关、移除和「立即拉取」。
- 想盯 sukebei 这类不按人组织的源,需要重新设计「这条源的新作挂在哪」,再新增 ADR。
- 源的取证记录留在 `docs/SOURCING.md`「番号发现源(Feed)」。
+ 源的取证记录留在 [docs/SOURCING.md](../SOURCING.md)「番号发现源(Feed)」。
- 账本里若有 `rss` 类型的旧行,它会在下一轮拉取时报解析失败,在设置页那一行下面看得到,
可以直接移除。
diff --git a/docs/adr/0048-each-site-has-one-owner-amane-makers-in-official-stage.md b/docs/adr/0048-each-site-has-one-owner-amane-makers-in-official-stage.md
index 1b0ec629f..0b54b3ca3 100644
--- a/docs/adr/0048-each-site-has-one-owner-amane-makers-in-official-stage.md
+++ b/docs/adr/0048-each-site-has-one-owner-amane-makers-in-official-stage.md
@@ -92,7 +92,7 @@ giga 与 kin8 留在桥的站表里(`tools/amane-bridge/bridge.py` 的 `SITES`
## 后果
- 影响面:`tools/amane-bridge/bridge.py`、`src/peach/metadata_amane.py`、`metadata_routes.py`、`metadata_policy.py`、
- `library_processing.py`、`sources/base.py`、`scripts/scrape_codes.py`,对应测试与 `docs/SOURCING.md`、`docs/REUSE.md`。
+ `library_processing.py`、`sources/base.py`、`scripts/scrape_codes.py`,对应测试与 [docs/SOURCING.md](../SOURCING.md)、[docs/REUSE.md](../REUSE.md)。
采集设置页从 `metadata_amane.describe` 读站名,前端无改动。
- `POLICY_VERSION` 升为 `metadata-source-policy-v5`;`SOURCE_SPECS` 多了四个来源名,`sources_fingerprint` 随之变化,
此前记下的「没有」按新指纹作废,下一轮重问一次。
diff --git a/docs/adr/0065-cloudflare-sources-load-in-the-local-browser.md b/docs/adr/0065-cloudflare-sources-load-in-the-local-browser.md
index 491043c98..b2eac377b 100644
--- a/docs/adr/0065-cloudflare-sources-load-in-the-local-browser.md
+++ b/docs/adr/0065-cloudflare-sources-load-in-the-local-browser.md
@@ -2,7 +2,7 @@
- 状态:Accepted
- 日期:2026-09-25
-- 修订:ADR-0060 第五条(UA 走整站、Cookie 由用户贴)与「后果」第二条(自动过验证不做);`docs/HANDOFF.md` 「被 Cloudflare 拦的站一律放弃」那一条
+- 修订:ADR-0060 第五条(UA 走整站、Cookie 由用户贴)与「后果」第二条(自动过验证不做);[docs/HANDOFF.md](../HANDOFF.md) 「被 Cloudflare 拦的站一律放弃」那一条
- 依据:ADR-0060 的实测(两站只认浏览器过完验证发下的 `cf_clearance`)、`peach-reuse-first`(OpenAver 的做法作参照)
## 背景
diff --git a/frontend/e2e/immerse.test.ts b/frontend/e2e/immerse.test.ts
index 4d1732af4..7c5ca631b 100644
--- a/frontend/e2e/immerse.test.ts
+++ b/frontend/e2e/immerse.test.ts
@@ -1,7 +1,7 @@
/* 沉浸模式的取流与舞台形状。
*
* 队列固定成演示库里的一条横屏加一条竖屏:`/api/items` 的随机抽样换成这两条,谁先谁后由
- * 起播 id 定。两条的 `/stream` 都故意晚回,首条加载与切片预加载的窗口拉到能采样的长度。 */
+ * 起播 id 定。两条的 `/stream` 由用例在采样结束后放行,确保采到等待状态。 */
import assert from 'node:assert/strict';
import { after, before, describe, it } from 'node:test';
@@ -49,6 +49,7 @@ describe('沉浸模式', () => {
it('片源先问 stream-plan;首条出画前不露舞台,切片预加载时保持旧形状,出画那一刻才换', async () => {
const opened = await visit(browser, '/', DESKTOP);
const { page } = opened;
+ const releases: (() => void)[] = [];
try {
const items: Item[] = await page.evaluate(async () =>
(await (await fetch('/api/items?limit=60&offset=0&thumb=')).json()).items);
@@ -62,8 +63,15 @@ describe('沉浸模式', () => {
const url = new URL(request.url());
if (url.pathname === '/api/stream-plan') planned.push(Number(url.searchParams.get('id')));
});
+ const holds = new Map<number, { wait: Promise<void>; release: () => void }>();
+ for (const item of [wide, tall]) {
+ let release = () => {};
+ const wait = new Promise<void>((resolve) => { release = resolve; });
+ holds.set(item.id, { wait, release });
+ releases.push(release);
+ }
await page.route(new RegExp(`/stream\\?id=(${wide.id}|${tall.id})&`), async (route) => {
- await new Promise((resolve) => setTimeout(resolve, HOLD_MS));
+ await holds.get(Number(new URL(route.request().url()).searchParams.get('id')))!.wait;
await route.continue().catch(() => {});
});
// 这台机器旁边有人:新插进来的每条 video 一律静音。
@@ -71,13 +79,15 @@ describe('沉浸模式', () => {
new MutationObserver(() => document.querySelectorAll('video').forEach((video) => { video.muted = true; }))
.observe(document, { childList: true, subtree: true });
});
- await page.goto(new URL(`/immerse?id=${wide.id}`, page.url()).href, { waitUntil: 'load' });
+ await page.goto(new URL(`/immerse?id=${wide.id}`, page.url()).href, { waitUntil: 'domcontentloaded' });
+ await page.locator('#tokTrack .tokslide video').waitFor({ state: 'attached' });
// 首条出画前:框、动作列、作者标题一样都不露,出画时一次摆成横屏。
const loaderHidden = () => page.evaluate(() => document.querySelector<HTMLElement>('#tokLoader')!.hidden);
- const loading = await watch(page, loaderHidden, 20_000);
+ const loading = await watch(page, loaderHidden, HOLD_MS);
assert.ok(loading.length > 3, `首条加载窗口里只采到 ${loading.length} 次`);
for (const moment of loading) assert.equal(moment.shown, false, JSON.stringify(moment));
+ holds.get(wide.id)!.release();
await settled(page);
assert.deepEqual(await sample(page), { wide: true, shown: true, slides: [''] });
assert.deepEqual(planned, [wide.id]);
@@ -89,11 +99,13 @@ describe('沉浸模式', () => {
for (const moment of preloading) {
assert.deepEqual(moment, { wide: true, shown: true, slides: ['', 'translateY(100%)'] });
}
+ holds.get(tall.id)!.release();
await settled(page);
assert.deepEqual(await sample(page), { wide: false, shown: true, slides: [''] });
assert.deepEqual(planned, [wide.id, tall.id]);
assert.deepEqual(opened.problems, [], JSON.stringify(opened.problems));
} finally {
+ releases.forEach((release) => release());
await opened.close();
}
});
diff --git a/frontend/src/configuration-copy.ts b/frontend/src/configuration-copy.ts
new file mode 100644
index 000000000..d40e9ea3a
--- /dev/null
+++ b/frontend/src/configuration-copy.ts
@@ -0,0 +1,6 @@
+/** 配置首屏与正式表单共用文案,保持文字和换行高度一致。 */
+export const ENTRY_LINKS_HELP = 'JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 '
+ + '资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 '
+ + '缺少这些记录的 FC2 创作者不会显示这两个入口。';
+
+export const ENTRY_LINKS_HINT = '仅填域名;留空使用默认地址';
diff --git a/frontend/src/configuration-skeleton.ts b/frontend/src/configuration-skeleton.ts
index d771cdb7b..a20ad6d9b 100644
--- a/frontend/src/configuration-skeleton.ts
+++ b/frontend/src/configuration-skeleton.ts
@@ -1,13 +1,14 @@
import { islandButton } from './island-skeleton';
+import { ENTRY_LINKS_HELP, ENTRY_LINKS_HINT } from './configuration-copy';
// 首屏在 React 包到达前绘制,几何与 settings/section.tsx、BoardUI SettingsRow 共用类名。
const section = (title: string, content: string) => `<section aria-label="${title}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${title}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${content}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${islandButton({ label: '保存配置', attrs: 'disabled data-skeleton-action' })}</div></div></section>`;
const row = (label: string, description = '') => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${label}</p>${description ? `<p class="text-body-2-regular text-text-secondary">${description}</p>` : ''}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`;
-const field = (label: string) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${label} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">只写域名本身,留空就是默认</p></div>`;
+const field = (label: string) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${label} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">${ENTRY_LINKS_HINT}</p></div>`;
export function configurationSkeleton(): string {
const nav = `<div class="board-local-nav">${['通用', '媒体', '网络与访问', '更新与维护'].map((title, i) => `<button type="button" tabindex="-1" aria-selected="${i === 0}">${title}</button>`).join('')}</div>`;
const startup = section('开机自启', `<div class="flex flex-col">${row('开机后启动 Peach')}${row('静默启动', '开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。')}${row('在桌面创建快捷方式', '双击图标打开 Peach 网页;卸载时一并移除。')}</div>`);
- const links = section('外部入口', `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。</p>${field('JavDB')}${field('MISSAV')}</div>`);
+ const links = section('外部入口', `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${ENTRY_LINKS_HELP}</p>${field('JavDB')}${field('MISSAV')}</div>`);
return `<div class="peach-react"><div class="configpage">${nav}<div class="flex flex-col gap-6">${startup}${links}</div></div></div>`;
}
diff --git a/frontend/src/react/data-cleanup/link-manager.tsx b/frontend/src/react/data-cleanup/link-manager.tsx
index 9b28085bb..84752863d 100644
--- a/frontend/src/react/data-cleanup/link-manager.tsx
+++ b/frontend/src/react/data-cleanup/link-manager.tsx
@@ -195,7 +195,7 @@ export function LinkManager() {
const startError = check.start.error ?? prune.start.error;
let result: ReactNode = null;
if (pruned?.status === 'failed') {
- result = <Note tone="error" title="任务失败">{pruned.error || '任务失败'}</Note>;
+ result = <Note tone="error" title="链接清理未完成">{pruned.error || '请查看任务记录,核对已处理的链接。'}</Note>;
} else if (pruned) {
result = <Note tone="success" title="完成">{pruneText(pruned)}</Note>;
} else if (startError) {
@@ -253,7 +253,7 @@ export function LinkManager() {
}>
<FieldsetTitle id="link-manager-box" gap="small">站外链接</FieldsetTitle>
{stats.isError
- ? <Note tone="error" title="读取失败">{errorMessage(stats.error)}</Note>
+ ? <Note tone="error" title="链接统计读取失败">{errorMessage(stats.error)}</Note>
: info
? <>
<div className="link-stat-grid mt-4 gap-x-8 gap-y-3">
diff --git a/frontend/src/react/data-cleanup/organize-card.tsx b/frontend/src/react/data-cleanup/organize-card.tsx
index f78723a5c..11d00736e 100644
--- a/frontend/src/react/data-cleanup/organize-card.tsx
+++ b/frontend/src/react/data-cleanup/organize-card.tsx
@@ -132,7 +132,7 @@ export function OrganizeCard(
<p className="text-caption-1-regular text-text-secondary">{line}</p></div>
: <LoadingDots label={line} />;
} else if (outcome?.status === 'failed') {
- state = <Note tone="error" title="任务失败">{outcome.error || '任务失败'}</Note>;
+ state = <Note tone="error" title="文件整理未完成">{outcome.error || '请查看任务记录,核对已处理的文件。'}</Note>;
} else if (outcome) {
const { text, failed } = organizeOutcome(outcome);
state = <Note tone={failed ? 'warning' : 'success'} title={failed ? '部分完成' : '整理结果'}>{text}</Note>;
@@ -165,7 +165,7 @@ export function OrganizeCard(
按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。
</p>
{organize.isError
- ? <div className="mt-3"><Note tone="error" title="读取失败">{errorMessage(organize.error)}</Note></div>
+ ? <div className="mt-3"><Note tone="error" title="整理配置读取失败">{errorMessage(organize.error)}</Note></div>
: null}
<div className="mt-3 flex flex-col gap-3">
{locations.length
diff --git a/frontend/src/react/data-cleanup/resource-sync-card.tsx b/frontend/src/react/data-cleanup/resource-sync-card.tsx
index 5c1a0bb7e..b3db577f6 100644
--- a/frontend/src/react/data-cleanup/resource-sync-card.tsx
+++ b/frontend/src/react/data-cleanup/resource-sync-card.tsx
@@ -125,7 +125,7 @@ export function ResourceSyncCard(
};
let result = null;
if (done?.status === 'failed') {
- result = <Note tone="error" title="任务失败">{done.error || '任务失败'}</Note>;
+ result = <Note tone="error" title="资源清理未完成">{done.error || '请查看任务记录,核对已处理的文件。'}</Note>;
} else if (done) {
result = receipt(done);
} else if (apply.running) {
diff --git a/frontend/src/react/duplicates/duplicates-page.tsx b/frontend/src/react/duplicates/duplicates-page.tsx
index ac505308d..389275004 100644
--- a/frontend/src/react/duplicates/duplicates-page.tsx
+++ b/frontend/src/react/duplicates/duplicates-page.tsx
@@ -118,7 +118,7 @@ export function DuplicatesPage({ openItem, toast, failure }: DuplicatesProps) {
if (!data) {
return (
<div className="mx-auto w-full max-w-board">
- <Note tone="error" title="读取失败">{duplicates.error ? errorMessage(duplicates.error) : '读取重复文件失败'}</Note>
+ <Note tone="error" title="重复文件读取失败">{duplicates.error ? errorMessage(duplicates.error) : '未取得重复文件列表,请刷新页面重试。'}</Note>
</div>
);
}
diff --git a/frontend/src/react/playlists/playlists-page.tsx b/frontend/src/react/playlists/playlists-page.tsx
index 4dff609fc..847fc3252 100644
--- a/frontend/src/react/playlists/playlists-page.tsx
+++ b/frontend/src/react/playlists/playlists-page.tsx
@@ -176,7 +176,7 @@ export function PlaylistsPage({ openPlaylist, openEntity, faceAvatar, canFlip, t
if (!data) {
return (
<div className="mx-auto w-full max-w-board">
- <Note tone="error" title="读取失败">{playlists.error ? errorMessage(playlists.error) : '读取播放列表失败'}</Note>
+ <Note tone="error" title="播放列表读取失败">{playlists.error ? errorMessage(playlists.error) : '未取得播放列表,请刷新页面重试。'}</Note>
</div>
);
}
diff --git a/frontend/src/react/quality-goals/quality-goals-page.tsx b/frontend/src/react/quality-goals/quality-goals-page.tsx
index b174f7cba..198da838e 100644
--- a/frontend/src/react/quality-goals/quality-goals-page.tsx
+++ b/frontend/src/react/quality-goals/quality-goals-page.tsx
@@ -76,7 +76,7 @@ export function QualityGoalsPage(props: QualityGoalsProps) {
if (!data) {
return (
<Page>
- <Note tone="error" title="读取失败">{goals.error ? errorMessage(goals.error) : '读取高清版目标失败'}</Note>
+ <Note tone="error" title="高清版目标读取失败">{goals.error ? errorMessage(goals.error) : '未取得高清版目标,请刷新页面重试。'}</Note>
</Page>
);
}
diff --git a/frontend/src/react/review/review-page.tsx b/frontend/src/react/review/review-page.tsx
index 48ac2dcfe..5c4226aba 100644
--- a/frontend/src/react/review/review-page.tsx
+++ b/frontend/src/react/review/review-page.tsx
@@ -319,8 +319,8 @@ export function ReviewPage(props: ReviewProps) {
</div>
</section>
)) : (
- <EmptyState icon={RiCheckboxCircleLine} title="暂无候选">
- 该分类当前没有待人工复核的项目。
+ <EmptyState icon={RiCheckboxCircleLine} title="此分类没有待复核项目">
+ 可切换分类查看其他候选。
</EmptyState>
)}
diff --git a/frontend/src/react/scraping/scraping-page.tsx b/frontend/src/react/scraping/scraping-page.tsx
index 94586f26a..83013eb35 100644
--- a/frontend/src/react/scraping/scraping-page.tsx
+++ b/frontend/src/react/scraping/scraping-page.tsx
@@ -333,7 +333,7 @@ export function ScrapingPage({ toast }: ScrapingProps) {
if (!data) {
return (
<Page>
- <Note tone="error" title="读取失败">
+ <Note tone="error" title="采集来源读取失败">
{sources.error ? errorMessage(sources.error) : '读取采集来源失败'}
</Note>
</Page>
diff --git a/frontend/src/react/settings/clouddrive-guide.tsx b/frontend/src/react/settings/clouddrive-guide.tsx
index 27df040d9..7edf4f56e 100644
--- a/frontend/src/react/settings/clouddrive-guide.tsx
+++ b/frontend/src/react/settings/clouddrive-guide.tsx
@@ -20,7 +20,7 @@ export function CloudDriveGuide() {
<ExternalLink href="https://www.clouddrive2.com/help.html">挂载帮助</ExternalLink>
</Help>
<Disclosure summary="CloudDrive 缓存建议">
- <Help>看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。</Help>
+ <Help>按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。</Help>
{/* 三档同形、跨档比较:窄处每档一块纵排,宽处三项读数排成三列对齐。 */}
<ul aria-label="按缓存所在硬盘分档" className="flex flex-col gap-2">
{CLOUDDRIVE_PROFILES.map((profile) => (
diff --git a/frontend/src/react/settings/configuration-page.tsx b/frontend/src/react/settings/configuration-page.tsx
index 6bacb84f4..c965bce4e 100644
--- a/frontend/src/react/settings/configuration-page.tsx
+++ b/frontend/src/react/settings/configuration-page.tsx
@@ -24,8 +24,8 @@ export function ConfigurationPage({ receipt, reopenTutorial }: ConfigurationProp
if (!data) {
return (
<div className="configpage">
- <Note tone="error" title="打不开配置">
- {config.error ? errorMessage(config.error) : '没有读到配置'}
+ <Note tone="error" title="配置读取失败">
+ {config.error ? errorMessage(config.error) : '未取得配置,请刷新页面重试。'}
</Note>
</div>
);
diff --git a/frontend/src/react/settings/configuration-summary.tsx b/frontend/src/react/settings/configuration-summary.tsx
index dba271650..14b33f14e 100644
--- a/frontend/src/react/settings/configuration-summary.tsx
+++ b/frontend/src/react/settings/configuration-summary.tsx
@@ -33,8 +33,8 @@ export function ConfigurationSummary({ openConfiguration }: ConfigurationSummary
<Fact term="更新">{updateLine(data)}</Fact>
</FactList>
: <Stack>
- <Note tone="error" title="打不开配置">
- {config.error ? errorMessage(config.error) : '没有读到配置'}
+ <Note tone="error" title="配置读取失败">
+ {config.error ? errorMessage(config.error) : '未取得配置,请刷新页面重试。'}
</Note>
</Stack>}
<Footer status="媒体文件夹、端口、代理与更新在配置页上改。">
diff --git a/frontend/src/react/settings/entry-links-settings.tsx b/frontend/src/react/settings/entry-links-settings.tsx
index 1d09fd4e9..9155794b6 100644
--- a/frontend/src/react/settings/entry-links-settings.tsx
+++ b/frontend/src/react/settings/entry-links-settings.tsx
@@ -12,6 +12,7 @@ import { Button } from '@/components/base/buttons/button';
import { Input } from '@/components/base/input/input';
import { apiSend } from '../../api';
+import { ENTRY_LINKS_HELP, ENTRY_LINKS_HINT } from '../../configuration-copy';
import type { EntryLinkSite, EntryLinksState } from '../bundle';
import { ErrorText, Footer, Help, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
@@ -40,16 +41,13 @@ export function EntryLinksForm({ initial, receipt }: {
return (
<Section title="外部入口" onSubmit={submit}>
<Stack>
- <Help>账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。
- JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现;
- FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。
- 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。</Help>
+ <Help>{ENTRY_LINKS_HELP}</Help>
{sites.map((site) => (
<Input key={site.key} id={`entry-link-${site.key}`} label={`${site.label} 地址`}
autoComplete="off" maxLength={100} value={site.host}
placeholder={site.default_host}
onChange={(host) => change(site.key, host)}
- validationBehavior="aria" hint="只写域名本身,留空就是默认" />
+ validationBehavior="aria" hint={ENTRY_LINKS_HINT} />
))}
{action.error ? <ErrorText>{action.error}</ErrorText> : null}
</Stack>
diff --git a/frontend/src/react/settings/maintenance-settings.tsx b/frontend/src/react/settings/maintenance-settings.tsx
index 14617a34d..4a4db0ad8 100644
--- a/frontend/src/react/settings/maintenance-settings.tsx
+++ b/frontend/src/react/settings/maintenance-settings.tsx
@@ -41,7 +41,7 @@ export function TutorialSettings({ receipt, reopenTutorial }: ConfigurationProps
return (
<Section title="安装教程">
<Stack>
- <Help>关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。</Help>
+ <Help>重新显示已关闭或跳过的安装步骤,保留已完成的记录。</Help>
{action.error ? <ErrorText>{action.error}</ErrorText> : null}
</Stack>
<Footer>
diff --git a/frontend/src/react/settings/push-discovery-settings.tsx b/frontend/src/react/settings/push-discovery-settings.tsx
index d18d6f5bc..c504d0544 100644
--- a/frontend/src/react/settings/push-discovery-settings.tsx
+++ b/frontend/src/react/settings/push-discovery-settings.tsx
@@ -114,11 +114,10 @@ export function PushDiscoveryForm({ initial, receipt }: {
<Stack divided>
<div className="flex flex-col gap-3">
<FieldLabel>CloudDrive2 配置内容</FieldLabel>
- <Help>在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。
- 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。
- Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。
- Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml
- 文件,放进 %LOCALAPPDATA%\CloudDrive.WinUI\webhooks\ 目录。</Help>
+ <Help>Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。
+ 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。
+ Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml
+ 文件,放入 %LOCALAPPDATA%\CloudDrive.WinUI\webhooks\ 目录。</Help>
{live.config_toml ? (
<>
<div>
@@ -142,8 +141,8 @@ export function PushDiscoveryForm({ initial, receipt }: {
</>
) : (
<Help>{live.origin
- ? '还没有生成共享密钥,保存一次配置就会有。'
- : '这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。'}</Help>
+ ? '尚未生成共享密钥,请保存配置后复制。'
+ : '请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。'}</Help>
)}
</div>
</Stack>
@@ -152,8 +151,8 @@ export function PushDiscoveryForm({ initial, receipt }: {
<Stack divided>
<div className="flex flex-col gap-3">
<FieldLabel>云端路径前缀</FieldLabel>
- <Help>左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。
- CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。</Help>
+ <Help>左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。
+ Peach 按此对应关系定位通知中的文件。</Help>
<div role="group" aria-label="云端路径前缀" className="flex flex-col gap-3">
{rows.map((row, index) => (
<div key={index} className="flex items-start gap-2">
diff --git a/frontend/src/react/stats/stats-page.tsx b/frontend/src/react/stats/stats-page.tsx
index 7e4aa2932..43c0bb98f 100644
--- a/frontend/src/react/stats/stats-page.tsx
+++ b/frontend/src/react/stats/stats-page.tsx
@@ -308,7 +308,7 @@ export function StatsPage(props: StatsProps) {
if (!data) {
return (
<Page>
- <Note tone="error" title="读取失败">{stats.error ? errorMessage(stats.error) : '读取统计失败'}</Note>
+ <Note tone="error" title="馆藏统计读取失败">{stats.error ? errorMessage(stats.error) : '未取得统计数据,请刷新页面重试。'}</Note>
</Page>
);
}
diff --git a/frontend/src/react/taste/taste-page.tsx b/frontend/src/react/taste/taste-page.tsx
index 90d780417..b19709216 100644
--- a/frontend/src/react/taste/taste-page.tsx
+++ b/frontend/src/react/taste/taste-page.tsx
@@ -439,7 +439,7 @@ export function TastePage(props: TasteProps) {
if (!data) {
return (
<Page>
- <Note tone="error" title="读取失败">
+ <Note tone="error" title="口味分析读取失败">
{taste.error ? errorMessage(taste.error) : '读取口味分析失败'}
</Note>
</Page>
diff --git a/frontend/test/react/configuration-summary.test.tsx b/frontend/test/react/configuration-summary.test.tsx
index 7c7a154bf..f3349386d 100644
--- a/frontend/test/react/configuration-summary.test.tsx
+++ b/frontend/test/react/configuration-summary.test.tsx
@@ -65,6 +65,6 @@ it('读不到配置时说打不开,按钮照样能去配置页', async () => {
const host = await mount(
<QueryClientProvider client={queryClient}><ConfigurationSummary openConfiguration={vi.fn()} /></QueryClientProvider>,
);
- expect(host.textContent).toContain('打不开配置');
+ expect(host.textContent).toContain('配置读取失败');
expect(buttonNamed('打开配置页', host)).not.toBeNull();
});
diff --git a/frontend/test/react/configuration.test.tsx b/frontend/test/react/configuration.test.tsx
index cdabe231d..df680f33a 100644
--- a/frontend/test/react/configuration.test.tsx
+++ b/frontend/test/react/configuration.test.tsx
@@ -85,7 +85,7 @@ it('取不到配置就说打不开,连同服务端给的那句原因', async (
);
await settle();
const note = host.querySelector('[role="alert"]');
- expect(note?.textContent).toContain('打不开配置');
+ expect(note?.textContent).toContain('配置读取失败');
expect(note?.textContent).toContain('账本正在迁移');
expect(host.querySelector('.configgroup')).toBeNull();
});
diff --git a/frontend/test/react/entry-links.test.tsx b/frontend/test/react/entry-links.test.tsx
index 5ae560fd7..04195d11f 100644
--- a/frontend/test/react/entry-links.test.tsx
+++ b/frontend/test/react/entry-links.test.tsx
@@ -44,7 +44,7 @@ it('外部入口:能换镜像的两站各一个地址框,默认留空,保
it('外部入口:说明就是卡里的头一块,它上面不画线', async () => {
const host = await mount(<GeneralSettings data={data({ entry_links: state })} receipt={vi.fn()} />);
const help = [...host.querySelectorAll('p')]
- .find((node) => node.textContent?.startsWith('账本里没有这个站点 id'));
+ .find((node) => node.textContent?.startsWith('JavDB 或 MISSAV 无法访问时'));
const block = help?.parentElement;
// 那道线是给排在设置行后面的块用的,分隔的是它和上面那组行。这张卡里它自己就是头一块,
// 线画出来上面什么也没有,读成分区标题自带一条下边线。
diff --git a/frontend/test/react/maintenance-settings.test.tsx b/frontend/test/react/maintenance-settings.test.tsx
index 5474010e8..00fc65283 100644
--- a/frontend/test/react/maintenance-settings.test.tsx
+++ b/frontend/test/react/maintenance-settings.test.tsx
@@ -151,7 +151,7 @@ describe('安装教程', () => {
const reopenTutorial = vi.fn(async () => {});
const receipt = vi.fn();
const host = await mount(<TutorialSettings receipt={receipt} reopenTutorial={reopenTutorial} />);
- expect(host.textContent).toContain('跳过的项目会重新出现');
+ expect(host.textContent).toContain('重新显示已关闭或跳过的安装步骤');
// 主动作:BoardUI Button 的默认 variant 就是 primary,这里不该被降成 secondary。
expect(buttonNamed('重新打开教程', host)?.className).toContain('bg-button-primary');
await click(buttonNamed('重新打开教程', host));
diff --git a/frontend/test/react/push-discovery.test.tsx b/frontend/test/react/push-discovery.test.tsx
index 44c62c00d..a7dfc32bd 100644
--- a/frontend/test/react/push-discovery.test.tsx
+++ b/frontend/test/react/push-discovery.test.tsx
@@ -56,7 +56,7 @@ it('这台机器没有对外的 HTTPS 地址时说出原因,不发一段填了
<PushDiscoveryForm initial={state({ origin: '', config_toml: '' })} receipt={vi.fn()} />);
expect(host.querySelector('pre')).toBeNull();
expect(buttonNamed('复制配置', host)).toBeNull();
- expect(host.textContent).toContain('还没有对外的 HTTPS 地址');
+ expect(host.textContent).toContain('请先配置 CloudDrive2 能访问的 HTTPS 地址');
});
it('配置块跟着已保存的开关走,拨一下不算数', async () => {
diff --git a/pyproject.toml b/pyproject.toml
index da19d1b9a..ff77b6f08 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -58,7 +58,11 @@ peach-tray = "peach.tray:main"
[project.optional-dependencies]
# psutil 给 `scripts/agent_worktree.py` 查工作树里的残留进程:当前目录、父进程、CPU 与内存。
-dev = ["filelock==4.0.1", "psutil==7.2.2"]
+dev = [
+ "filelock==4.0.1",
+ "psutil==7.2.2",
+ "seiso==0.2.0",
+]
build = ["pyinstaller==6.22.3"]
macos = ["pyobjc-framework-Cocoa==12.2.2; sys_platform == 'darwin'"]
# numpy 本来就是 opencv 的传递依赖,这里显式钉住:`face_detect.decode` 直接 import 它
diff --git a/seiso.toml b/seiso.toml
new file mode 100644
index 000000000..ebb9c1322
--- /dev/null
+++ b/seiso.toml
@@ -0,0 +1,71 @@
+include = ["**/*.md", "**/*.markdown"]
+# 提交模板不是成稿;上游快照保持取证原文,相对链接属于原仓库。
+exclude = [
+ ".github/ISSUE_TEMPLATE/**",
+ ".github/PULL_REQUEST_TEMPLATE.md",
+ "docs/reference-snapshots/upstream/**",
+ "build/**",
+ "node_modules/**",
+ "frontend/node_modules/**",
+ ".venv/**",
+]
+preview = false
+
+# 文档职责见 docs/WRITING.md。更具体的映射放在后面。
+
+[[kinds]]
+path = "README*.md"
+kind = "readme"
+
+[[kinds]]
+path = "**/CHANGELOG.md"
+kind = "changelog"
+
+[[kinds]]
+path = "docs/adr/**"
+kind = "adr"
+
+[[kinds]]
+path = "CONTRIBUTING.md"
+kind = "howto"
+
+[[kinds]]
+path = "AGENTS.md"
+kind = "reference"
+
+[[kinds]]
+path = "CLAUDE.md"
+kind = "reference"
+
+[[kinds]]
+path = ".claude/skills/**/SKILL.md"
+kind = "howto"
+
+[[kinds]]
+path = "docs/*.md"
+kind = "reference"
+
+[[kinds]]
+path = "docs/{OPERATIONS,CLOUDDRIVE,FRONTEND,TESTING,TESTING_DESKTOP,README_MAINTENANCE}.md"
+kind = "howto"
+
+[[kinds]]
+path = "docs/PRODUCT_BACKLOG.md"
+kind = "plan"
+
+# 状态与采集审计记录有日期的观察,不代表实时部署状态。
+[[kinds]]
+path = "docs/{STATUS,SCRAPING_AUDIT}.md"
+kind = "changelog"
+
+[[kinds]]
+path = "docs/reference-snapshots/*.md"
+kind = "reference"
+
+[[kinds]]
+path = "**/*ORIGIN.md"
+kind = "reference"
+
+[[kinds]]
+path = "SECURITY.md"
+kind = "howto"
diff --git a/tests/test_copy_final_state.py b/tests/test_copy_final_state.py
index ad17f3236..38568177e 100644
--- a/tests/test_copy_final_state.py
+++ b/tests/test_copy_final_state.py
@@ -8,6 +8,8 @@
from __future__ import annotations
import sys
+import shutil
+import subprocess
import unittest
from pathlib import Path
@@ -17,6 +19,14 @@ import check_copy_final_state as checker # noqa: E402
class CopyFinalStateTests(unittest.TestCase):
+ def test_project_markdown_passes_seiso_stable_rules(self):
+ executable = shutil.which("seiso", path=str(Path(sys.executable).parent))
+ self.assertIsNotNone(executable, "缺少文档检查器,请按 docs/TESTING.md 安装开发依赖。")
+ result = subprocess.run(
+ [executable, "check", "--output-format", "concise"], cwd=ROOT,
+ capture_output=True, text=True, encoding="utf-8", timeout=60)
+ self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
+
def test_no_copy_narrates_a_rejected_or_superseded_state(self):
findings = checker.scan_repo(ROOT)
self.assertEqual(
diff --git a/uv.lock b/uv.lock
index 1a0fb07cd..4673afafc 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1139,6 +1139,7 @@ build = [
dev = [
{ name = "filelock" },
{ name = "psutil" },
+ { name = "seiso" },
]
macos = [
{ name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },
@@ -1176,6 +1177,7 @@ requires-dist = [
{ name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin' and extra == 'macos'", specifier = "==12.2.2" },
{ name = "pystray", specifier = "==0.19.5" },
{ name = "resvg-py", specifier = "==0.5.0" },
+ { name = "seiso", marker = "extra == 'dev'", specifier = "==0.2.0" },
{ name = "socksio", specifier = "==1.0.0" },
{ name = "starlette", specifier = "==1.6.0" },
{ name = "tldextract", specifier = "==5.3.2" },
@@ -2055,6 +2057,19 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/62/e6/25b6616cebbce1412bb5fe8b037545f382b4da875bc614a97ff1ecd7aa28/resvg_py-0.5.0-cp315-abi3.abi3t-win_arm64.whl", hash = "sha256:66e5a7699f2b00024ed7e95ec53df05bb3da277ee5bc86f867d487e310e4d392", size = 1152399, upload-time = "2026-08-24T19:43:12.618Z" },
]
+[[package]]
+name = "seiso"
+version = "0.2.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/3a/87/a1531177ed3047f2e63facb0977b47d4033eada15bac66e7018d71532cd6/seiso-0.2.0.tar.gz", hash = "sha256:94891476a0034db74dacdbd0f7d2924771dd2a19810f1a6a4a3c16d4c13b5ba5", size = 106337, upload-time = "2026-09-28T09:27:36.29Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/4e/be/90efbd4c08f960f7fc4b9a70d63b6e8d764faaec92867edfdb053cdcf14d/seiso-0.2.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:69a644d2230a0658f42ed034d74c92c3e3ca9168d948c2fed6e1ba6aadb42b90", size = 2280076, upload-time = "2026-09-28T09:27:27.996Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/53/bc0d9f5d2f762a2a517c4fbc386542e9127826f180931e8b1ddf2087d163/seiso-0.2.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:b48cd4bb3cd92d462fa6c6a904f900e9f23bafb6982d543f76c39fdbe060ed00", size = 2164153, upload-time = "2026-09-28T09:27:30.264Z" },
+ { url = "https://files.pythonhosted.org/packages/9a/68/359c830ae02d4b8abf8059d34380592bf6ab6c56c43f06e5e8634c33cfd0/seiso-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:44aa7757892f4b937429249dcf733ec01398ebab355b3ea690171f15163e3a34", size = 2252930, upload-time = "2026-09-28T09:27:31.893Z" },
+ { url = "https://files.pythonhosted.org/packages/e4/b1/35b23ea87468d4bbdd1e7e6110839e3660eea911396d104543f84938ab02/seiso-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:08c8c3dd3a3f495c1617e021ac4560df5803897222897c813c73fa452d244b1d", size = 2390934, upload-time = "2026-09-28T09:27:33.25Z" },
+ { url = "https://files.pythonhosted.org/packages/fa/58/03f3a67b7385e5c39feaaa01b91902b91d7d84a3702ca071c0e754e1f449/seiso-0.2.0-py3-none-win_amd64.whl", hash = "sha256:972b734ce9ac6f728af71d68ee264718df66fe7b22274521d4f204ab49ad1e31", size = 2282094, upload-time = "2026-09-28T09:27:34.859Z" },
+]
+
[[package]]
name = "setuptools"
version = "84.0.0"
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 327a5453a..4f6f7c65d 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -27427,14 +27427,14 @@ function Vw(e) {
}
//#endregion
//#region src/react/components/use-stack-flip.ts
-var Ore = 1100, kre = 340, Hw = 5e3;
-function Uw(e, t, n) {
+var Ore = 1100, Hw = 340, Uw = 5e3;
+function Ww(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, Hw);
+ }, s = () => o(!1), c = setTimeout(s, Uw);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -27444,7 +27444,7 @@ function Uw(e, t, n) {
}, i.src = e;
});
}
-function Ww({ load: e, canFlip: t, referrerPolicy: n }) {
+function Gw({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, I.useState)([]), [a, o] = (0, I.useState)(0), [s, c] = (0, I.useState)(null), l = (0, I.useRef)({
live: !1,
generation: 0,
@@ -27486,7 +27486,7 @@ function Ww({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Uw(t, e, n)));
+ let s = await Promise.all(a.map((t) => Ww(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
@@ -27499,7 +27499,7 @@ function Ww({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(kre, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Hw, () => {
e.armed = null, m();
});
},
@@ -27510,8 +27510,8 @@ function Ww({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var Gw = Vw("play");
-function Kw({ src: e }) {
+var Kw = Vw("play");
+function qw({ src: e }) {
let [t, n] = (0, I.useState)(!1);
return t ? null : /* @__PURE__ */ (0, L.jsx)("img", {
"data-mix-poster": "",
@@ -27522,8 +27522,8 @@ function Kw({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var qw = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function Jw({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
+var Jw = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function Yw({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, L.jsx)("button", {
@@ -27531,18 +27531,18 @@ function Jw({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => r(e.kind, e.name),
- className: `${qw} cursor-pointer outline-none`,
+ className: `${Jw} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: n(e) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, L.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${qw} mt-0.5`,
+ className: `${Jw} mt-0.5`,
children: t
});
}
-function Yw({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {
- let x = Ww({
+function Xw({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {
+ let x = Gw({
load: i,
canFlip: a
}), S = (0, I.useRef)(x.onPointerLeave);
@@ -27573,7 +27573,7 @@ function Yw({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
artwork: p,
identity: m,
relayout: h
- }) : r ? /* @__PURE__ */ (0, L.jsx)(Kw, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, L.jsx)(qw, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -27603,7 +27603,7 @@ function Yw({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
"aria-hidden": !0,
className: "size-3.75"
}), _ ?? `${n} 个视频`]
@@ -27616,8 +27616,8 @@ function Yw({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
v ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, L.jsx)(Gw, {})
- }) : /* @__PURE__ */ (0, L.jsx)(Jw, {
+ children: /* @__PURE__ */ (0, L.jsx)(Kw, {})
+ }) : /* @__PURE__ */ (0, L.jsx)(Yw, {
faces: o,
fallback: e.slice(0, 1),
faceAvatar: s,
@@ -27642,20 +27642,20 @@ function Yw({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-var Xw = "";
-function Zw(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)($w, { ...e });
+var Zw = "";
+function Qw(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)(eT, { ...e });
let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${Dw(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, L.jsx)(eT, { ...e }, t);
+ return /* @__PURE__ */ (0, L.jsx)(tT, { ...e }, t);
}
-function Qw({ name: e }) {
+function $w({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function $w(e) {
+function eT(e) {
let { actions: t } = e, n = (0, I.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, L.jsx)(zw, {
item: i,
variant: r,
@@ -27676,7 +27676,7 @@ function $w(e) {
children: i
});
}
-function eT(e) {
+function tT(e) {
let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? sre(e) : Ow(e), s = i && e.initial ? {
pages: [{
...e.initial,
@@ -27707,14 +27707,14 @@ function eT(e) {
e.mix,
a,
r.javImage
- ]), p = u.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(c.data?.pages[0]?.total || 0), h = Aw(c.isPending, e.skeletonHtml), g = (0, I.useRef)(null), _ = nT(e, c.data, u, f, g);
+ ]), p = u.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(c.data?.pages[0]?.total || 0), h = Aw(c.isPending, e.skeletonHtml), g = (0, I.useRef)(null), _ = rT(e, c.data, u, f, g);
(0, I.useLayoutEffect)(() => {
if (!c.data) return;
e.onCount?.(m, p);
let t = a ? null : e.countRow?.querySelector("[data-count-readout]");
if (!t) return;
let n = `${m.toLocaleString()} 个符合 · 显示 ${p}`;
- Xw && (t.dataset.popCount = Xw), Xw = n, T(t, n);
+ Zw && (t.dataset.popCount = Zw), Zw = n, T(t, n);
}, [
c.data,
m,
@@ -27723,7 +27723,7 @@ function eT(e) {
let v = (0, I.useCallback)((e, t) => n.open(e, t), [n]), y = (0, I.useCallback)((e, t) => n.openResource(e, t), [n]), b = (0, I.useCallback)((e) => n.openShort(e), [n]), x = (0, I.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(aT, {
+ }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(oT, {
seed: i.seed,
layout: r,
helpers: t,
@@ -27765,12 +27765,12 @@ function eT(e) {
children: hre(u, _).map((t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(S)
- }), t.strip ? /* @__PURE__ */ (0, L.jsx)(rT, {
+ }), t.strip ? /* @__PURE__ */ (0, L.jsx)(iT, {
cut: t.strip,
props: e,
onOpen: b
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(tT, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(nT, {
entity: i,
load: x,
enabled: () => e.canLoadMore?.() !== !1
@@ -27778,7 +27778,7 @@ function eT(e) {
})()]
});
}
-function tT({ entity: e, load: t, enabled: n, children: r }) {
+function nT({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(!1), o = (0, I.useRef)(!1), [s, c] = (0, I.useState)({
busy: !1,
error: ""
@@ -27844,7 +27844,7 @@ function tT({ entity: e, load: t, enabled: n, children: r }) {
onRetry: () => void u(!0)
}) : null] });
}
-function nT(e, t, n, r, i) {
+function rT(e, t, n, r, i) {
let [a, o] = (0, I.useState)([]), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(0), u = (0, I.useRef)(0), d = (0, I.useRef)([]);
return (0, I.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, I.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -27879,7 +27879,7 @@ function nT(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function rT({ cut: e, props: t, onOpen: n }) {
+function iT({ cut: e, props: t, onOpen: n }) {
let r = (0, I.useRef)(null), { wireDrag: i } = t;
return (0, I.useEffect)(() => {
r.current && i(r.current);
@@ -27895,7 +27895,7 @@ function rT({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, L.jsx)(Qw, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, L.jsx)($w, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, L.jsx)("div", {
ref: r,
@@ -27914,7 +27914,7 @@ function rT({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function iT(e, t, n, r) {
+function aT(e, t, n, r) {
let i = t.active && !!e.is_jav;
return e.is_jav ? Nw(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
kind: "",
@@ -27924,18 +27924,18 @@ function iT(e, t, n, r) {
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function aT({ seed: e, layout: t, helpers: n, actions: r }) {
+function oT({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, I.useRef)(/* @__PURE__ */ new Map()), a = (0, I.useRef)(t);
a.current = t;
let o = ure(e, n.tagLabel), s = (0, I.useCallback)(async () => {
let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => kw(e, t.javImage)).slice(0, 9);
- return i.current = new Map(o.map((e) => [String(e.id), iT(e, t, !0, n).html])), o.map((e) => String(e.id));
+ return i.current = new Map(o.map((e) => [String(e.id), aT(e, t, !0, n).html])), o.map((e) => String(e.id));
}, [
e,
r,
n
- ]), c = t.active && !!e.is_jav, l = c ? t.size : "small", u = iT(e, t, !1, n);
- return /* @__PURE__ */ (0, L.jsx)(Yw, {
+ ]), c = t.active && !!e.is_jav, l = c ? t.size : "small", u = aT(e, t, !1, n);
+ return /* @__PURE__ */ (0, L.jsx)(Xw, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -27945,7 +27945,7 @@ function aT({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: u,
- artworkIdentity: l === "small" ? u.html : iT(e, {
+ artworkIdentity: l === "small" ? u.html : aT(e, {
...t,
size: "small"
}, !1, n).html,
@@ -27963,32 +27963,32 @@ function aT({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-var oT = "/api/sources", sT = ["media-sources"], cT = (e) => iw(oT, e);
-async function lT(e) {
+var sT = "/api/sources", cT = ["media-sources"], lT = (e) => iw(sT, e);
+async function uT(e) {
await X.fetchQuery({
- queryKey: sT,
- queryFn: () => cT(e)
+ queryKey: cT,
+ queryFn: () => lT(e)
});
}
-var uT = [
+var dT = [
"local",
"115",
"pikpak"
-], dT = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), fT = "/api/duplicates?limit=120", pT = ["duplicates"], mT = "/api/batch", hT = (e) => iw(fT, e);
-async function gT(e) {
+], fT = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), pT = "/api/duplicates?limit=120", mT = ["duplicates"], hT = "/api/batch", gT = (e) => iw(pT, e);
+async function _T(e) {
await Promise.all([X.fetchQuery({
- queryKey: pT,
- queryFn: () => hT(e)
- }), lT(e)]);
+ queryKey: mT,
+ queryFn: () => gT(e)
+ }), uT(e)]);
}
-var _T = {
+var vT = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, vT = (e, t) => t.filter((t) => e.some((e) => e.location === t)), yT = (e, t) => vT(e, t).filter((t) => e.some((e) => e.location !== t)), bT = (e, t) => t.filter((t) => e.some((e) => yT(e.files, [t]).length));
-function xT(e, t) {
+}, yT = (e, t) => t.filter((t) => e.some((e) => e.location === t)), bT = (e, t) => yT(e, t).filter((t) => e.some((e) => e.location !== t)), xT = (e, t) => t.filter((t) => e.some((e) => bT(e.files, [t]).length));
+function ST(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -28007,47 +28007,47 @@ function xT(e, t) {
}
return n;
}
-function ST(e, t) {
+function CT(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function CT(e, t) {
- for (let n = 0; n < e.length; n += 200) await q(mT, {
+async function wT(e, t) {
+ for (let n = 0; n < e.length; n += 200) await q(hT, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var wT = "/api/library-processing", TT = ["library-processing"], ET = (e) => iw(wT, e);
-async function DT(e) {
+var TT = "/api/library-processing", ET = ["library-processing"], DT = (e) => iw(TT, e);
+async function OT(e) {
await X.fetchQuery({
- queryKey: TT,
- queryFn: () => ET(e)
+ queryKey: ET,
+ queryFn: () => DT(e)
});
}
-var OT = 2e3, kT = 1e4, AT = "连接中断,正在重新读取处理进度";
-function jT(e, t) {
- return e?.status === "running" ? OT : t ? kT : !1;
+var kT = 2e3, AT = 1e4, jT = "连接中断,正在重新读取处理进度";
+function MT(e, t) {
+ return e?.status === "running" ? kT : t ? AT : !1;
}
-var MT = {
+var NT = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, NT = {
+}, PT = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function PT(e) {
- let t = Object.entries(e).filter(([e, t]) => NT[e] && t > 0).map(([e, t]) => `${NT[e]} ${t} 部`);
+function FT(e) {
+ let t = Object.entries(e).filter(([e, t]) => PT[e] && t > 0).map(([e, t]) => `${PT[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function FT(e) {
- let t = MT[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function IT(e) {
+ let t = NT[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function IT(e) {
+function LT(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -28061,21 +28061,21 @@ function IT(e) {
log: e.issues_log || ""
} : null;
}
-var LT = "peach.library-processing.announced", RT = 120;
-function zT(e, t, n) {
+var RT = "peach.library-processing.announced", zT = 120;
+function BT(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < RT;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < zT;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(LT) === e.job_id) return;
- e.job_id && localStorage.setItem(LT, e.job_id);
+ if (e.job_id && localStorage.getItem(RT) === e.job_id) return;
+ e.job_id && localStorage.setItem(RT, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var BT = "/api/media-repair", VT = ["media-repair"], HT = ["media-repair", "libraries"], UT = {
+var VT = "/api/media-repair", HT = ["media-repair"], UT = ["media-repair", "libraries"], WT = {
status: "idle",
library: "",
stage: "",
@@ -28087,33 +28087,33 @@ var BT = "/api/media-repair", VT = ["media-repair"], HT = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, WT = (e) => iw(BT, e), GT = async (e) => (await iw("/api/libraries", e)).libraries || [];
-async function KT(e) {
+}, GT = (e) => iw(VT, e), KT = async (e) => (await iw("/api/libraries", e)).libraries || [];
+async function qT(e) {
await Promise.all([X.fetchQuery({
- queryKey: VT,
- queryFn: () => WT(e)
- }), X.fetchQuery({
queryKey: HT,
queryFn: () => GT(e)
+ }), X.fetchQuery({
+ queryKey: UT,
+ queryFn: () => KT(e)
})]);
}
-var qT = (e) => Number(e).toLocaleString();
-function JT(e) {
+var JT = (e) => Number(e).toLocaleString();
+function YT(e) {
if (e.status === "running") {
- let t = e.total ? `${qT(e.checked)} / ${qT(e.total)}` : "准备中";
+ let t = e.total ? `${JT(e.checked)} / ${JT(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${qT(e.repaired)} 部,${qT(e.failed)} 部修不了` : `修好 ${qT(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${JT(e.repaired)} 部,${JT(e.failed)} 部修不了` : `修好 ${JT(e.repaired)} 部` : "";
}
-var YT = (e) => `${qT(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, XT = "/api/quality-goals?limit=200", ZT = ["quality-goals"], QT = (e) => iw(XT, e);
-async function $T(e) {
+var XT = (e) => `${JT(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, ZT = "/api/quality-goals?limit=200", QT = ["quality-goals"], $T = (e) => iw(ZT, e);
+async function eE(e) {
await X.fetchQuery({
- queryKey: ZT,
- queryFn: () => QT(e)
+ queryKey: QT,
+ queryFn: () => $T(e)
});
}
-var eE = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function tE(e, t, n = 1) {
+var tE = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+function nE(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -28133,21 +28133,21 @@ function tE(e, t, n = 1) {
t
];
}
-function nE(e, t) {
+function rE(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function rE(e, t) {
+function iE(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function iE(e, t, n, r, i, a = i || !e.has(r)) {
+function aE(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
//#endregion
//#region src/react/time.ts
-function aE(e) {
+function oE(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -28156,7 +28156,7 @@ function aE(e) {
}
//#endregion
//#region src/react/review/review.ts
-var oE = "/api/review", sE = "/api/review/decision", cE = "/api/review/genre", lE = ["review"], uE = {
+var sE = "/api/review", cE = "/api/review/decision", lE = "/api/review/genre", uE = ["review"], dE = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -28166,15 +28166,15 @@ var oE = "/api/review", sE = "/api/review/decision", cE = "/api/review/genre", l
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, dE = Object.keys(uE), fE = "metadata_fields", pE = (e) => typeof e == "string" && Object.hasOwn(uE, e), mE = {
+}, fE = Object.keys(dE), pE = "metadata_fields", mE = (e) => typeof e == "string" && Object.hasOwn(dE, e), hE = {
creator_tags: "creator",
western_identity: "creator"
};
-function hE(e, t) {
+function gE(e, t) {
let n = [["candidates", t ? "按候选数量" : "全部待复核"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function gE(e, t) {
+function _E(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -28191,43 +28191,43 @@ function gE(e, t) {
}
return [...n.values()];
}
-function _E(e, t, n) {
- return n && gE(e, t).find((e) => e.key === n)?.rows || e;
+function vE(e, t, n) {
+ return n && _E(e, t).find((e) => e.key === n)?.rows || e;
}
-function vE(e, t) {
- let n = nE(e.length, 20), r = rE(t, n);
+function yE(e, t) {
+ let n = rE(e.length, 20), r = iE(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function yE(e) {
+function bE(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function bE(e, t, n, r, i, a) {
- return iE(e, t, n, r, i, a);
+function xE(e, t, n, r, i, a) {
+ return aE(e, t, n, r, i, a);
}
-function xE(e, t) {
+function SE(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function SE(e, t) {
+function CE(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var CE = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function wE(e, t) {
- let n = SE(e, t), r = CE(e, t);
+var wE = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function TE(e, t) {
+ let n = CE(e, t), r = wE(e, t);
return r ? `${n} · ${r}` : n;
}
-var TE = (e) => e.reason || e.evidence || e.note || e.decision_note || "", EE = (e) => String(e.tags || "").split("|").filter(Boolean), DE = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function OE(e) {
+var EE = (e) => e.reason || e.evidence || e.note || e.decision_note || "", DE = (e) => String(e.tags || "").split("|").filter(Boolean), OE = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function kE(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function kE(e, t, n, r) {
+function AE(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -28243,19 +28243,19 @@ function kE(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var AE = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", jE = (e) => iw(oE, e), ME = (e) => q(sE, e), NE = (e, t) => q(cE, {
+var jE = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", ME = (e) => iw(sE, e), NE = (e) => q(cE, e), PE = (e, t) => q(lE, {
genre: e,
tag: t
});
-async function PE(e) {
+async function FE(e) {
await X.fetchQuery({
- queryKey: lE,
- queryFn: () => jE(e)
+ queryKey: uE,
+ queryFn: () => ME(e)
});
}
-function FE(e, t) {
+function IE(e, t) {
let n = new Set(t);
- n.size && X.setQueryData(lE, (t) => {
+ n.size && X.setQueryData(uE, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -28271,161 +28271,161 @@ function FE(e, t) {
};
});
}
-var IE = () => X.invalidateQueries({
- queryKey: lE,
+var LE = () => X.invalidateQueries({
+ queryKey: uE,
exact: !0
});
-function LE(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${aE(e.fetched_at)} 的缓存` : e?.error || t;
+function RE(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${oE(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var RE = "/api/links", zE = "/api/links/check", BE = "/api/links/prune", VE = ["links"], HE = ["links", "check"], UE = ["links", "prune"], WE = {
+var zE = "/api/links", BE = "/api/links/check", VE = "/api/links/prune", HE = ["links"], UE = ["links", "check"], WE = ["links", "prune"], GE = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function GE(e) {
+async function KE(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var KE = (e) => iw(RE, e), qE = (e) => q(zE, { status_only: !0 }, "POST", e), Are = ({ retry: e, checkId: t }) => GE(q(zE, e ? {
+var qE = (e) => iw(zE, e), JE = (e) => q(BE, { status_only: !0 }, "POST", e), kre = ({ retry: e, checkId: t }) => KE(q(BE, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), JE = (e) => iw(BE, e), jre = (e) => GE(q(BE, {
+} : { restart: !0 })), YE = (e) => iw(VE, e), Are = (e) => KE(q(VE, {
confirm: !0,
check_id: e,
background: !0
-})), YE = (e) => Number(e || 0).toLocaleString(), Mre = (e) => `已删除 ${YE(e.removed)} 条;${e.marked ? `已隐退女优的 ${YE(e.marked)} 条留作不可点的记录;` : ""}保留 ${YE(e.recovered)} 条未确认失效的链接。`;
-function Nre(e) {
+})), XE = (e) => Number(e || 0).toLocaleString(), jre = (e) => `已删除 ${XE(e.removed)} 条;${e.marked ? `已隐退女优的 ${XE(e.marked)} 条留作不可点的记录;` : ""}保留 ${XE(e.recovered)} 条未确认失效的链接。`;
+function Mre(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${YE(e.checked)} / ${YE(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${XE(e.checked)} / ${XE(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Pre = "/api/organize", Fre = "/api/organize/preview", Ire = "/api/organize/apply", Lre = "/api/organize/rollback", Rre = "/api/settings", XE = ["organize"], ZE = (e) => iw(Pre, e);
-async function zre(e) {
+var Nre = "/api/organize", Pre = "/api/organize/preview", Fre = "/api/organize/apply", Ire = "/api/organize/rollback", Lre = "/api/settings", ZE = ["organize"], QE = (e) => iw(Nre, e);
+async function Rre(e) {
await X.fetchQuery({
- queryKey: XE,
- queryFn: () => ZE(e)
+ queryKey: ZE,
+ queryFn: () => QE(e)
});
}
-var Bre = (e) => q(Fre, e), Vre = (e) => e.kind === "apply" ? q(Ire, {
+var zre = (e) => q(Pre, e), Bre = (e) => e.kind === "apply" ? q(Fre, {
...e.request,
confirm: !0
-}) : q(Lre, { confirm: !0 });
-async function Hre(e) {
- X.setQueryData(XE, (t) => t && {
+}) : q(Ire, { confirm: !0 });
+async function Vre(e) {
+ X.setQueryData(ZE, (t) => t && {
...t,
templates: e
});
try {
- await q(Rre, { organizeTemplates: e });
+ await q(Lre, { organizeTemplates: e });
} catch {}
}
-var Ure = (e, t) => e && {
+var Hre = (e, t) => e && {
...e,
...t
-}, Wre = /目录模板|分隔符|盘符|`\.`/;
-function QE(e) {
+}, Ure = /目录模板|分隔符|盘符|`\.`/;
+function $E(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var $E = (e) => Number(e || 0).toLocaleString();
-function Gre(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${$E(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${$E(e.counts.change)} 个文件会改名或移动,${$E(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var eD = (e) => Number(e || 0).toLocaleString();
+function Wre(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${eD(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${eD(e.counts.change)} 个文件会改名或移动,${eD(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function eD(e) {
+function tD(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${$E(r)} 个文件${n ? `,${$E(n)} 行未能退回` : ""}。` : `已整理 ${$E(r)} 个文件${n ? `,${$E(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${eD(r)} 个文件${n ? `,${eD(n)} 行未能退回` : ""}。` : `已整理 ${eD(r)} 个文件${n ? `,${eD(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var tD = "/api/resource-sync/scan", nD = "/api/resource-sync/apply", rD = ["resource-sync", "scan"], iD = ["resource-sync", "apply"], aD = (e) => q(tD, {
+var nD = "/api/resource-sync/scan", rD = "/api/resource-sync/apply", iD = ["resource-sync", "scan"], aD = ["resource-sync", "apply"], oD = (e) => q(nD, {
background: !0,
status_only: !0
-}, "POST", e), Kre = () => q(tD, {
+}, "POST", e), Gre = () => q(nD, {
background: !0,
restart: !0
-}), oD = (e) => iw(nD, e), qre = (e) => q(nD, {
+}), sD = (e) => iw(rD, e), Kre = (e) => q(rD, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), sD = (e) => (e?.sources ?? []).some((e) => uT.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Jre(e) {
- sD(X.getQueryData(sT)) && await Promise.all([X.fetchQuery({
- queryKey: rD,
- queryFn: () => aD(e)
- }), X.fetchQuery({
+}), cD = (e) => (e?.sources ?? []).some((e) => dT.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function qre(e) {
+ cD(X.getQueryData(cT)) && await Promise.all([X.fetchQuery({
queryKey: iD,
queryFn: () => oD(e)
+ }), X.fetchQuery({
+ queryKey: aD,
+ queryFn: () => sD(e)
})]);
}
-var Yre = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Xre = {
+var Jre = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Yre = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, cD = (e) => Number(e || 0).toLocaleString(), Zre = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Qre = (e) => `将永久删除文件已不在盘上的 ${cD(e.missing)} 条记录和 ${cD(e.empty)} 个空文件夹,并清理 ${cD(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, $re = (e) => `将永久删除文件已不在盘上的 ${cD(e.missing)} 条记录(含回收站里的)、${cD(e.empty)} 个空文件夹,并清理 ${cD(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, eie = (e) => e.online ? [
- `找不到文件 · 共 ${cD(e.total)} 项`,
- e.empty ? `空文件夹 ${cD(e.empty)} 个` : "",
- e.unreadable ? `${cD(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${cD(e.total)} 项`;
-function lD(e) {
+}, lD = (e) => Number(e || 0).toLocaleString(), Xre = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Zre = (e) => `将永久删除文件已不在盘上的 ${lD(e.missing)} 条记录和 ${lD(e.empty)} 个空文件夹,并清理 ${lD(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, Qre = (e) => `将永久删除文件已不在盘上的 ${lD(e.missing)} 条记录(含回收站里的)、${lD(e.empty)} 个空文件夹,并清理 ${lD(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, $re = (e) => e.online ? [
+ `找不到文件 · 共 ${lD(e.total)} 项`,
+ e.empty ? `空文件夹 ${lD(e.empty)} 个` : "",
+ e.unreadable ? `${lD(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${lD(e.total)} 项`;
+function uD(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${cD(t.length)} 条记录没有删除(${o})` : "",
- n ? `${cD(n)} 个文件夹没有删除` : "",
- r.length ? `${cD(r.length)} 个缓存没有清理` : ""
+ t.length ? `${lD(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${lD(n)} 个文件夹没有删除` : "",
+ r.length ? `${lD(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var tie = (e, t) => {
- let { rest: n } = lD(e), r = `已永久删除 ${cD(e.purged)} 条失效记录和 ${cD(e.dirs_removed)} 个空文件夹,清理 ${cD(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
+var eie = (e, t) => {
+ let { rest: n } = uD(e), r = `已永久删除 ${lD(e.purged)} 条失效记录和 ${lD(e.dirs_removed)} 个空文件夹,清理 ${lD(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
return n ? `${r}${n},重新检查后可再试。` : r;
-}, nie = "/api/review?counts=1", uD = ["review", "counts"], rie = "/api/ads?limit=1", dD = ["junk-summary"], fD = "/api/items?state=trash&limit=1", pD = ["trash-summary"], iie = [
+}, tie = "/api/review?counts=1", dD = ["review", "counts"], nie = "/api/ads?limit=1", fD = ["junk-summary"], pD = "/api/items?state=trash&limit=1", mD = ["trash-summary"], rie = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], mD = (e) => iw(nie, e), hD = (e) => iw(rie, e), gD = (e) => {
+], hD = (e) => iw(tie, e), gD = (e) => iw(nie, e), _D = (e) => {
let t = sessionStorage.getItem("peach.library");
- return iw(t ? `${fD}&library=${encodeURIComponent(t)}` : fD, e);
-}, _D = (e) => Number(e || 0).toLocaleString();
-function aie(e) {
- let t = uE, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
+ return iw(t ? `${pD}&library=${encodeURIComponent(t)}` : pD, e);
+}, vD = (e) => Number(e || 0).toLocaleString();
+function iie(e) {
+ let t = dE, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function oie(e) {
+function aie(e) {
if (!e) return "";
- let t = iie.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${_D(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${_D(e.dismissed_total)}`), t.join(" · ");
-}
-var sie = [
- [uD, ({ signal: e }) => mD(e)],
- [ZT, ({ signal: e }) => QT(e)],
- [pD, ({ signal: e }) => gD(e)],
- [VE, ({ signal: e }) => KE(e)],
+ let t = rie.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${vD(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${vD(e.dismissed_total)}`), t.join(" · ");
+}
+var oie = [
+ [dD, ({ signal: e }) => hD(e)],
+ [QT, ({ signal: e }) => $T(e)],
+ [mD, ({ signal: e }) => _D(e)],
[HE, ({ signal: e }) => qE(e)],
- [UE, ({ signal: e }) => JE(e)]
+ [UE, ({ signal: e }) => JE(e)],
+ [WE, ({ signal: e }) => YE(e)]
];
-async function cie(e) {
- let t = location.hash === "#resource-sync", n = sie.map(([n, r]) => {
+async function sie(e) {
+ let t = location.hash === "#resource-sync", n = oie.map(([n, r]) => {
if (t) return X.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -28438,40 +28438,40 @@ async function cie(e) {
await Promise.all([
...n,
X.fetchQuery({
- queryKey: dD,
- queryFn: () => hD(e)
+ queryKey: fD,
+ queryFn: () => gD(e)
}),
X.fetchQuery({
- queryKey: pT,
- queryFn: () => hT(e)
+ queryKey: mT,
+ queryFn: () => gT(e)
}),
- lT(e).then(() => Jre(e)),
- DT(e),
- KT(e),
- zre(e)
+ uT(e).then(() => qre(e)),
+ OT(e),
+ qT(e),
+ Rre(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var lie = [
+var cie = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], uie = [
+], lie = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function vD(e = {}) {
+function yD(e = {}) {
return `${aw({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var yD = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", die = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function bD({ interactive: e = !1 } = {}) {
+var bD = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", uie = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function xD({ interactive: e = !1 } = {}) {
return aw({
padding: "none",
radius: "plain",
@@ -28479,8 +28479,8 @@ function bD({ interactive: e = !1 } = {}) {
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var fie = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function xD({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var die = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function SD({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -28513,13 +28513,13 @@ function xD({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function SD({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function CD({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, L.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${lie[n % 4]} ${uie[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${cie[n % 4]} ${lie[n % 4]}`,
children: /* @__PURE__ */ (0, L.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -28541,12 +28541,12 @@ function SD({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var CD = Symbol("default");
-function wD({ values: e, children: t }) {
+var wD = Symbol("default");
+function TD({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ I.createElement(n.Provider, { value: r }, t);
return t;
}
-function TD(e) {
+function ED(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, I.useMemo)(() => {
let e, l, u;
@@ -28580,11 +28580,11 @@ function TD(e) {
c
]);
}
-function ED(e, t) {
+function DD(e, t) {
let n = (0, I.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || CD;
+ let e = t || wD;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -28593,8 +28593,8 @@ function ED(e, t) {
}
return n;
}
-function DD(e, t, n) {
- let { ref: r, ...i } = ED(n, e.slot) || {}, a = fh((0, I.useMemo)(() => qm(t, r), [t, r])), o = H(i, e);
+function OD(e, t, n) {
+ let { ref: r, ...i } = DD(n, e.slot) || {}, a = fh((0, I.useMemo)(() => qm(t, r), [t, r])), o = H(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -28612,7 +28612,7 @@ function DD(e, t, n) {
...e.style
}), [o, a];
}
-function OD(e = !0) {
+function kD(e = !0) {
let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -28620,12 +28620,12 @@ function OD(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function kD(e) {
+function AD(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function pie(e, t, n) {
+function fie(e, t, n) {
let { render: r, ...i } = t, a = (0, I.useRef)(null), o = (0, I.useMemo)(() => qm(n, a), [n, a]);
Sp(() => {}, [e, r]);
let s = {
@@ -28634,19 +28634,19 @@ function pie(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ I.createElement(e, s);
}
-var AD = {}, jD = new Proxy({}, { get(e, t) {
+var jD = {}, MD = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = AD[t];
- return n || (n = /*#__PURE__*/ (0, I.forwardRef)(pie.bind(null, t)), AD[t] = n), n;
-} }), MD = /*#__PURE__*/ (0, I.createContext)(null), ND = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.createContext)(null), FD = {
+ let n = jD[t];
+ return n || (n = /*#__PURE__*/ (0, I.forwardRef)(fie.bind(null, t)), jD[t] = n), n;
+} }), ND = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.createContext)(null), FD = /*#__PURE__*/ (0, I.createContext)(null), ID = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return ID(e, null, t);
+ return LD(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return ID(e, t, n);
+ return LD(e, t, n);
}
};
-function ID(e, t, n) {
+function LD(e, t, n) {
return Gf({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -28657,11 +28657,11 @@ function ID(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, mie(e, t, n));
+ }), r, pie(e, t, n));
}
});
}
-function mie(e, t, n) {
+function pie(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -28680,24 +28680,24 @@ function mie(e, t, n) {
}
return s;
}
-var LD = /*#__PURE__*/ (0, I.createContext)(FD);
-function RD(e) {
+var RD = /*#__PURE__*/ (0, I.createContext)(ID);
+function zD(e) {
return (0, I.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var zD = /*#__PURE__*/ (0, I.createContext)({}), hie = /*#__PURE__*/ yh(function(e, t) {
- [e, t] = DD(e, t, zD);
- let { elementType: n = "label", ...r } = e, i = jD[n];
+var BD = /*#__PURE__*/ (0, I.createContext)({}), mie = /*#__PURE__*/ yh(function(e, t) {
+ [e, t] = OD(e, t, BD);
+ let { elementType: n = "label", ...r } = e, i = MD[n];
return /*#__PURE__*/ I.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), gie = /*#__PURE__*/ (0, I.createContext)(null), BD = /*#__PURE__*/ (0, I.createContext)({}), VD = /*#__PURE__*/ yh(function(e, t) {
- [e, t] = DD(e, t, BD);
+}), hie = /*#__PURE__*/ (0, I.createContext)(null), VD = /*#__PURE__*/ (0, I.createContext)({}), HD = /*#__PURE__*/ yh(function(e, t) {
+ [e, t] = OD(e, t, VD);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Ug(e, t);
- i = vie(i, r);
+ i = _ie(i, r);
let { focusProps: o, isFocused: s, isFocusVisible: c } = py(e), { hoverProps: l, isHovered: u } = _y({
...e,
isDisabled: e.isDisabled || r
@@ -28708,7 +28708,7 @@ var zD = /*#__PURE__*/ (0, I.createContext)({}), hie = /*#__PURE__*/ yh(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = TD({
+ }, f = ED({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -28725,7 +28725,7 @@ var zD = /*#__PURE__*/ (0, I.createContext)({}), hie = /*#__PURE__*/ yh(function
p
]);
let _ = Sg(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ I.createElement(jD.button, {
+ return delete _.onClick, /*#__PURE__*/ I.createElement(MD.button, {
...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -28739,62 +28739,62 @@ var zD = /*#__PURE__*/ (0, I.createContext)({}), hie = /*#__PURE__*/ yh(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ I.createElement(gie.Provider, { value: { id: m } }, f.children));
-}), _ie = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function vie(e, t) {
+ }, /*#__PURE__*/ I.createElement(hie.Provider, { value: { id: m } }, f.children));
+}), gie = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function _ie(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !_ie.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !gie.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
-var HD = /*#__PURE__*/ (0, I.createContext)({}), UD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = DD(e, t, HD);
- let { children: n, level: r = 3, className: i, ...a } = e, o = jD[`h${r}`];
+var UD = /*#__PURE__*/ (0, I.createContext)({}), WD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = OD(e, t, UD);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = MD[`h${r}`];
return /*#__PURE__*/ I.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), WD = /*#__PURE__*/ (0, I.createContext)({}), yie = /*#__PURE__*/ yh(function(e, t) {
- [e, t] = DD(e, t, WD);
- let { elementType: n = "span", ...r } = e, i = jD[n];
+}), GD = /*#__PURE__*/ (0, I.createContext)({}), vie = /*#__PURE__*/ yh(function(e, t) {
+ [e, t] = OD(e, t, GD);
+ let { elementType: n = "span", ...r } = e, i = MD[n];
return /*#__PURE__*/ I.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), GD = /*#__PURE__*/ (0, I.createContext)(null), KD = /*#__PURE__*/ (0, I.createContext)(null), qD = /*#__PURE__*/ (0, I.createContext)(null), JD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ (0, I.createContext)(null), YD = /*#__PURE__*/ (0, I.createContext)(null);
-function xie(e, t) {
- let { validationBehavior: n } = ED(KD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(bie), a = fh((0, I.useMemo)(() => qm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...kD(e),
+}), KD = /*#__PURE__*/ (0, I.createContext)(null), qD = /*#__PURE__*/ (0, I.createContext)(null), JD = /*#__PURE__*/ (0, I.createContext)(null), YD = /*#__PURE__*/ (0, I.createContext)(null), yie = /*#__PURE__*/ (0, I.createContext)(null), XD = /*#__PURE__*/ (0, I.createContext)(null);
+function bie(e, t) {
+ let { validationBehavior: n } = DD(qD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(yie), a = fh((0, I.useMemo)(() => qm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...AD(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
return [i ? H_(o, i, a) : F_(o, V_(e), a), a];
}
-var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+var xie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = DD(r, t, qD);
- let [i, a] = xie(e, n);
- return /*#__PURE__*/ I.createElement(YD.Provider, { value: {
+ [e, t] = OD(r, t, JD);
+ let [i, a] = bie(e, n);
+ return /*#__PURE__*/ I.createElement(XD.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ I.createElement(Cie, {
+ } }, /*#__PURE__*/ I.createElement(Sie, {
...e,
ref: t
}));
-}), Cie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, I.useContext)(YD), { isFocused: p, isFocusVisible: m, focusProps: h } = py(), g = a || o, { hoverProps: _, isHovered: v } = _y({
+}), Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, I.useContext)(XD), { isFocused: p, isFocusVisible: m, focusProps: h } = py(), g = a || o, { hoverProps: _, isHovered: v } = _y({
...e,
isDisabled: g
- }), y = TD({
+ }), y = ED({
...e,
defaultClassName: u,
values: {
@@ -28810,7 +28810,7 @@ var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = Sg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(jD.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(MD.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -28828,8 +28828,8 @@ var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
...H(r, h),
ref: l
})), y.children);
-}), XD = /*#__PURE__*/ (0, I.createContext)({}), wie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = DD(e, t, XD);
+}), ZD = /*#__PURE__*/ (0, I.createContext)({}), Cie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = OD(e, t, ZD);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
let { hoverProps: l, isHovered: u } = _y({
@@ -28837,7 +28837,7 @@ var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = py({ within: !0 }), m = TD({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = py({ within: !0 }), m = ED({
...e,
values: {
isHovered: u,
@@ -28848,7 +28848,7 @@ var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ I.createElement(jD.div, {
+ return /*#__PURE__*/ I.createElement(MD.div, {
...H(c, p, l),
...m,
ref: t,
@@ -28861,18 +28861,18 @@ var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), ZD = /*#__PURE__*/ (0, I.createContext)({}), Tie = (e) => {
+}), QD = /*#__PURE__*/ (0, I.createContext)({}), wie = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Eie = /*#__PURE__*/ yh(function(e, t) {
- [e, t] = DD(e, t, ZD);
+}, Tie = /*#__PURE__*/ yh(function(e, t) {
+ [e, t] = OD(e, t, QD);
let { hoverProps: n, isHovered: r } = _y({
...e,
isDisabled: e.disabled
}), { isFocused: i, isFocusVisible: a, focusProps: o } = py({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = TD({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ED({
...e,
values: {
isHovered: r,
@@ -28883,8 +28883,8 @@ var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ I.createElement(jD.input, {
- ...H(Tie(e), o, n),
+ return /*#__PURE__*/ I.createElement(MD.input, {
+ ...H(wie(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -28893,8 +28893,8 @@ var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), QD = {};
-QD = {
+}), $D = {};
+$D = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -28902,8 +28902,8 @@ QD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var $D = {};
-$D = {
+var eO = {};
+eO = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -28911,8 +28911,8 @@ $D = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var eO = {};
-eO = {
+var tO = {};
+tO = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -28920,8 +28920,8 @@ eO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var tO = {};
-tO = {
+var nO = {};
+nO = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -28929,8 +28929,8 @@ tO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var nO = {};
-nO = {
+var rO = {};
+rO = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -28938,8 +28938,8 @@ nO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var rO = {};
-rO = {
+var iO = {};
+iO = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -28947,8 +28947,8 @@ rO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var iO = {};
-iO = {
+var aO = {};
+aO = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -28956,8 +28956,8 @@ iO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var aO = {};
-aO = {
+var oO = {};
+oO = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -28965,8 +28965,8 @@ aO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var oO = {};
-oO = {
+var sO = {};
+sO = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -28974,8 +28974,8 @@ oO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var sO = {};
-sO = {
+var cO = {};
+cO = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -28983,8 +28983,8 @@ sO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var cO = {};
-cO = {
+var lO = {};
+lO = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -28992,8 +28992,8 @@ cO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var lO = {};
-lO = {
+var uO = {};
+uO = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -29001,8 +29001,8 @@ lO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var uO = {};
-uO = {
+var dO = {};
+dO = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -29010,8 +29010,8 @@ uO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var dO = {};
-dO = {
+var fO = {};
+fO = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -29019,8 +29019,8 @@ dO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var fO = {};
-fO = {
+var pO = {};
+pO = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -29028,8 +29028,8 @@ fO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var pO = {};
-pO = {
+var mO = {};
+mO = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -29037,8 +29037,8 @@ pO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var mO = {};
-mO = {
+var hO = {};
+hO = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -29046,8 +29046,8 @@ mO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var hO = {};
-hO = {
+var gO = {};
+gO = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -29055,8 +29055,8 @@ hO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var gO = {};
-gO = {
+var _O = {};
+_O = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -29064,8 +29064,8 @@ gO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var _O = {};
-_O = {
+var vO = {};
+vO = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -29073,8 +29073,8 @@ _O = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var vO = {};
-vO = {
+var yO = {};
+yO = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -29082,8 +29082,8 @@ vO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var yO = {};
-yO = {
+var bO = {};
+bO = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -29091,8 +29091,8 @@ yO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var bO = {};
-bO = {
+var xO = {};
+xO = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -29100,8 +29100,8 @@ bO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var xO = {};
-xO = {
+var SO = {};
+SO = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -29109,8 +29109,8 @@ xO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var SO = {};
-SO = {
+var CO = {};
+CO = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -29118,8 +29118,8 @@ SO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var CO = {};
-CO = {
+var wO = {};
+wO = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -29127,8 +29127,8 @@ CO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var wO = {};
-wO = {
+var TO = {};
+TO = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -29136,8 +29136,8 @@ wO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var TO = {};
-TO = {
+var EO = {};
+EO = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -29145,8 +29145,8 @@ TO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var EO = {};
-EO = {
+var DO = {};
+DO = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -29154,8 +29154,8 @@ EO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var DO = {};
-DO = {
+var OO = {};
+OO = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -29163,8 +29163,8 @@ DO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var OO = {};
-OO = {
+var kO = {};
+kO = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -29172,8 +29172,8 @@ OO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var kO = {};
-kO = {
+var AO = {};
+AO = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -29181,8 +29181,8 @@ kO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var AO = {};
-AO = {
+var jO = {};
+jO = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -29190,8 +29190,8 @@ AO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var jO = {};
-jO = {
+var MO = {};
+MO = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -29199,52 +29199,52 @@ jO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var MO = {};
-MO = {
- "ar-AE": QD,
- "bg-BG": $D,
- "cs-CZ": eO,
- "da-DK": tO,
- "de-DE": nO,
- "el-GR": rO,
- "en-US": iO,
- "es-ES": aO,
- "et-EE": oO,
- "fi-FI": sO,
- "fr-FR": cO,
- "he-IL": lO,
- "hr-HR": uO,
- "hu-HU": dO,
- "it-IT": fO,
- "ja-JP": pO,
- "ko-KR": mO,
- "lt-LT": hO,
- "lv-LV": gO,
- "nb-NO": _O,
- "nl-NL": vO,
- "pl-PL": yO,
- "pt-BR": bO,
- "pt-PT": xO,
- "ro-RO": SO,
- "ru-RU": CO,
- "sk-SK": wO,
- "sl-SI": TO,
- "sr-SP": EO,
- "sv-SE": DO,
- "tr-TR": OO,
- "uk-UA": kO,
- "zh-CN": AO,
- "zh-TW": jO
+var NO = {};
+NO = {
+ "ar-AE": $D,
+ "bg-BG": eO,
+ "cs-CZ": tO,
+ "da-DK": nO,
+ "de-DE": rO,
+ "el-GR": iO,
+ "en-US": aO,
+ "es-ES": oO,
+ "et-EE": sO,
+ "fi-FI": cO,
+ "fr-FR": lO,
+ "he-IL": uO,
+ "hr-HR": dO,
+ "hu-HU": fO,
+ "it-IT": pO,
+ "ja-JP": mO,
+ "ko-KR": hO,
+ "lt-LT": gO,
+ "lv-LV": _O,
+ "nb-NO": vO,
+ "nl-NL": yO,
+ "pl-PL": bO,
+ "pt-BR": xO,
+ "pt-PT": SO,
+ "ro-RO": CO,
+ "ru-RU": wO,
+ "sk-SK": TO,
+ "sl-SI": EO,
+ "sr-SP": DO,
+ "sv-SE": OO,
+ "tr-TR": kO,
+ "uk-UA": AO,
+ "zh-CN": jO,
+ "zh-TW": MO
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var NO = /*#__PURE__*/ (0, I.createContext)({}), PO = /*#__PURE__*/ (0, I.createContext)(null), Die = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { render: n } = (0, I.useContext)(PO);
+var PO = /*#__PURE__*/ (0, I.createContext)({}), FO = /*#__PURE__*/ (0, I.createContext)(null), Eie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { render: n } = (0, I.useContext)(FO);
return /*#__PURE__*/ I.createElement(I.Fragment, null, n(e, t));
});
-function FO(e, t) {
+function IO(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, I.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(Die, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(Eie, { target: e });
}, [
t?.target,
r,
@@ -29252,7 +29252,7 @@ function FO(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function IO(e, t, n) {
+function LO(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -29275,14 +29275,14 @@ function IO(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var LO = /*#__PURE__*/ (0, I.createContext)({}), Oie = /*#__PURE__*/ (0, I.createContext)(null);
-function RO(e) {
+var RO = /*#__PURE__*/ (0, I.createContext)({}), Die = /*#__PURE__*/ (0, I.createContext)(null);
+function zO(e) {
let t = (0, I.useRef)({});
- return /*#__PURE__*/ I.createElement(Oie.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ I.createElement(Die.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var zO = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), BO = /*#__PURE__*/ (0, I.createContext)({}), kie = /*#__PURE__*/ Lh(class extends Ff {
+var BO = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), VO = /*#__PURE__*/ (0, I.createContext)({}), Oie = /*#__PURE__*/ Lh(class extends Ff {
static {
this.type = "separator";
}
@@ -29295,10 +29295,10 @@ var zO = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), BO = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = DD(e, t, BO);
+ [e, t] = OD(e, t, VO);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = jD[c], { separatorProps: u } = bte({
+ let l = MD[c], { separatorProps: u } = bte({
...s,
elementType: n,
orientation: r
@@ -29314,13 +29314,13 @@ var zO = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), BO = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function VO(e) {
+function HO(e) {
let t = I.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var HO = class {
+var UO = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -29364,20 +29364,20 @@ var HO = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, UO = class e extends Set {
+}, WO = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function Aie(e, t) {
+function kie(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function WO(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, I.useRef)(!1), [, s] = (0, I.useState)(!1), c = (0, I.useRef)(null), l = (0, I.useRef)(null), [, u] = (0, I.useState)(null), [d, f] = B_((0, I.useMemo)(() => GO(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => GO(e.defaultSelectedKeys, new UO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, I.useState)(i);
+function GO(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, I.useRef)(!1), [, s] = (0, I.useState)(!1), c = (0, I.useRef)(null), l = (0, I.useRef)(null), [, u] = (0, I.useState)(null), [d, f] = B_((0, I.useMemo)(() => KO(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => KO(e.defaultSelectedKeys, new WO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, I.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, I.useRef)(i);
return (0, I.useEffect)(() => {
@@ -29404,18 +29404,18 @@ function WO(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Aie(e, d)) && f(e);
+ (r || !kie(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function GO(e, t) {
- return e ? e === "all" ? "all" : new UO(e) : t;
+function KO(e, t) {
+ return e ? e === "all" ? "all" : new WO(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var KO = class e {
+var qO = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -29498,10 +29498,10 @@ var KO = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new UO([t], t, t);
+ if (this.state.selectedKeys === "all") n = new WO([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new UO(e, r, t);
+ n = new WO(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -29535,19 +29535,19 @@ var KO = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new UO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new WO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new UO([t], t, t) : new UO();
+ let n = this.canSelectItem(t) ? new WO([t], t, t) : new WO();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new UO();
+ let t = new WO();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -29570,7 +29570,7 @@ var KO = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new UO());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new WO());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -29611,9 +29611,9 @@ var KO = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, jie = class {
+}, Aie = class {
build(e, t) {
- return this.context = t, qO(() => this.iterateCollection(e));
+ return this.context = t, JO(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -29695,10 +29695,10 @@ var KO = class e {
...a,
key: l,
index: s,
- wrapper: Mie(e.wrapper, a.wrapper)
+ wrapper: jie(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${JO(t.type)}> in <${JO(r?.type ?? "unknown parent type")}>. Only <${JO(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${YO(t.type)}> in <${YO(r?.type ?? "unknown parent type")}>. Only <${YO(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -29720,7 +29720,7 @@ var KO = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: qO(function* () {
+ childNodes: JO(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -29739,7 +29739,7 @@ var KO = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function qO(e) {
+function JO(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -29747,18 +29747,18 @@ function qO(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Mie(e, t) {
+function jie(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function JO(e) {
+function YO(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function YO(e, t, n) {
- let r = (0, I.useMemo)(() => new jie(), []), { children: i, items: a, collection: o } = e;
+function XO(e, t, n) {
+ let r = (0, I.useMemo)(() => new Aie(), []), { children: i, items: a, collection: o } = e;
return (0, I.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -29773,27 +29773,27 @@ function YO(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function XO(e) {
- let { filter: t, layoutDelegate: n } = e, r = WO(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = YO(e, (0, I.useCallback)((e) => t ? new HO(t(e)) : new HO(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new KO(a, r, { layoutDelegate: n }), [
+function ZO(e) {
+ let { filter: t, layoutDelegate: n } = e, r = GO(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = XO(e, (0, I.useCallback)((e) => t ? new UO(t(e)) : new UO(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new qO(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return ZO(a, o), {
+ return QO(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Nie(e, t) {
+function Mie(e, t) {
let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return ZO(n, r), {
+ return QO(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function ZO(e, t) {
+function QO(e, t) {
let n = (0, I.useRef)(null);
(0, I.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -29821,7 +29821,7 @@ function ZO(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function QO(e, t) {
+function $O(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, I.useRef)(null), s = $h((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -29845,42 +29845,42 @@ function QO(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var $O = /*#__PURE__*/ (0, I.createContext)(null), ek = /*#__PURE__*/ (0, I.createContext)(null), Pie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = DD(e, t, $O);
- let n = (0, I.useContext)(ek);
- return n ? /*#__PURE__*/ I.createElement(tk, {
+var ek = /*#__PURE__*/ (0, I.createContext)(null), tk = /*#__PURE__*/ (0, I.createContext)(null), Nie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = OD(e, t, ek);
+ let n = (0, I.useContext)(tk);
+ return n ? /*#__PURE__*/ I.createElement(nk, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ I.createElement(kh, { content: /*#__PURE__*/ I.createElement(Vh, e) }, (n) => /*#__PURE__*/ I.createElement(Fie, {
+ }) : /*#__PURE__*/ I.createElement(kh, { content: /*#__PURE__*/ I.createElement(Vh, e) }, (n) => /*#__PURE__*/ I.createElement(Pie, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Fie({ props: e, listBoxRef: t, collection: n }) {
+function Pie({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, I.useContext)(LD), i = XO({
+ let { layoutDelegate: r } = (0, I.useContext)(RD), i = ZO({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ I.createElement(tk, {
+ return /*#__PURE__*/ I.createElement(nk, {
state: i,
props: e,
listBoxRef: t
});
}
-function tk({ state: e, props: t, listBoxRef: n }) {
- [t, n] = DD(t, n, MD);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Nie(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = ug(), { disabledBehavior: p, disabledKeys: m } = l, h = oy({
+function nk({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = OD(t, n, ND);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Mie(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = ug(), { disabledBehavior: p, disabledKeys: m } = l, h = oy({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(LD), b = (0, I.useMemo)(() => t.keyboardDelegate || new iv({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(RD), b = (0, I.useMemo)(() => t.keyboardDelegate || new iv({
collection: c,
collator: h,
ref: n,
@@ -29941,7 +29941,7 @@ function tk({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = TD({
+ }, N = ED({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -29952,7 +29952,7 @@ function tk({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let te = Sg(t, { global: !0 });
- return /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(jD.div, {
+ return /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(MD.div, {
...H(te, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -29963,52 +29963,52 @@ function tk({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ I.createElement(wD, { values: [
- [$O, t],
- [ek, s],
- [NO, {
+ }, /*#__PURE__*/ I.createElement(TD, { values: [
+ [ek, t],
+ [tk, s],
+ [PO, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [BO, { elementType: "div" }],
- [PO, { render: Rie }],
- [PD, {
+ [VO, { elementType: "div" }],
+ [FO, { render: Lie }],
+ [FD, {
name: "ListBoxSection",
- render: Iie
+ render: Fie
}]
- ] }, /*#__PURE__*/ I.createElement(RO, null, /*#__PURE__*/ I.createElement(y, {
+ ] }, /*#__PURE__*/ I.createElement(zO, null, /*#__PURE__*/ I.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: IO(l, r, C),
- renderDropIndicator: FO(r, C)
+ persistedKeys: LO(l, r, C),
+ renderDropIndicator: IO(r, C)
}))), ee, E));
}
-function Iie(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, I.useContext)(ek), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(NO), { CollectionBranch: s } = (0, I.useContext)(LD), [c, l] = OD(), { headingProps: u, groupProps: d } = $ee({
+function Fie(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, I.useContext)(tk), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(PO), { CollectionBranch: s } = (0, I.useContext)(RD), [c, l] = kD(), { headingProps: u, groupProps: d } = $ee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = TD({
+ }), f = ED({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = Sg(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ I.createElement(jD.section, {
+ return delete p.id, /*#__PURE__*/ I.createElement(MD.section, {
...H(p, f, d),
ref: t
- }, /*#__PURE__*/ I.createElement(LO.Provider, { value: {
+ }, /*#__PURE__*/ I.createElement(RO.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ I.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: FO(a, o)
+ renderDropIndicator: IO(a, o)
})));
}
-var Lie = /*#__PURE__*/ Lh(Rf, function(e, t, n) {
- let r = fh(t), i = (0, I.useContext)(ek), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(NO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = ete({
+var Iie = /*#__PURE__*/ Lh(Rf, function(e, t, n) {
+ let r = fh(t), i = (0, I.useContext)(tk), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(PO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = ete({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = _y({
@@ -30027,7 +30027,7 @@ var Lie = /*#__PURE__*/ Lh(Rf, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = TD({
+ let y = o && o.isDragging(n.key), b = ED({
...e,
id: void 0,
children: e.children,
@@ -30045,7 +30045,7 @@ var Lie = /*#__PURE__*/ Lh(Rf, function(e, t, n) {
(0, I.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? jD.a : jD.div, S = Sg(e, { global: !0 });
+ let x = e.href ? MD.a : MD.div, S = Sg(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ I.createElement(x, {
...H(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -30059,29 +30059,29 @@ var Lie = /*#__PURE__*/ Lh(Rf, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ I.createElement(wD, { values: [[WD, { slots: {
- [CD]: u,
+ }, /*#__PURE__*/ I.createElement(TD, { values: [[GD, { slots: {
+ [wD]: u,
label: u,
description: d
- } }], [zO, { isSelected: f.isSelected }]] }, b.children));
+ } }], [BO, { isSelected: f.isSelected }]] }, b.children));
});
-function Rie(e, t) {
+function Lie(e, t) {
t = fh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(NO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ I.createElement(Bie, {
+ let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(PO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ I.createElement(zie, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function zie(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = TD({
+function Rie(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = ED({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(jD.div, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(MD.div, {
...n,
...a,
role: "option",
@@ -30089,10 +30089,10 @@ function zie(e, t) {
"data-drop-target": r || void 0
}));
}
-var Bie = /*#__PURE__*/ (0, I.forwardRef)(zie);
+var zie = /*#__PURE__*/ (0, I.forwardRef)(Rie);
Lh(Lf, function(e, t, n) {
- let r = (0, I.useContext)(ek), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
- QO((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(tk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
+ $O((0, I.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -30102,7 +30102,7 @@ Lh(Lf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = TD({
+ let l = ED({
...s,
id: void 0,
children: n.rendered,
@@ -30115,7 +30115,7 @@ Lh(Lf, function(e, t, n) {
width: 0,
height: 0
},
- inert: VO(!0)
+ inert: HO(!0)
}, /*#__PURE__*/ I.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -30124,7 +30124,7 @@ Lh(Lf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(jD.div, {
+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(MD.div, {
...H(Sg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -30133,10 +30133,10 @@ Lh(Lf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Vie = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });
+var Bie = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function nk(e) {
+function rk(e) {
let [t, n] = B_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);
return {
isOpen: t,
@@ -30156,13 +30156,13 @@ function nk(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function rk(e, t = !0) {
+function ik(e, t = !0) {
let [n, r] = (0, I.useState)(!0), i = n && t;
return Sp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), ak(e, i, (0, I.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), ok(e, i, (0, I.useCallback)(() => r(!1), [])), i;
}
-function ik(e, t) {
+function ak(e, t) {
let [n, r] = (0, I.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -30172,11 +30172,11 @@ function ik(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return ak(e, i, (0, I.useCallback)(() => {
+ return ok(e, i, (0, I.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function ak(e, t, n) {
+function ok(e, t, n) {
Sp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -30205,9 +30205,9 @@ function ak(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var ok = /*#__PURE__*/ (0, I.createContext)(null), sk = /*#__PURE__*/ (0, I.createContext)(null), ck = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = DD(e, t, ok);
- let n = (0, I.useContext)(vk), r = nk(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ik(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = bh(), { direction: c } = ug();
+var sk = /*#__PURE__*/ (0, I.createContext)(null), ck = /*#__PURE__*/ (0, I.createContext)(null), lk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = OD(e, t, sk);
+ let n = (0, I.useContext)(yk), r = rk(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ak(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = bh(), { direction: c } = ug();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -30218,7 +30218,7 @@ var ok = /*#__PURE__*/ (0, I.createContext)(null), sk = /*#__PURE__*/ (0, I.crea
defaultChildren: null
})), /*#__PURE__*/ I.createElement(I.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Hie, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Vie, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -30227,13 +30227,13 @@ var ok = /*#__PURE__*/ (0, I.createContext)(null), sk = /*#__PURE__*/ (0, I.crea
dir: c
});
});
-function Hie({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useContext)(sk), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = mte({
+function Vie({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useContext)(ck), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = mte({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = rk(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = TD({
+ }, e), m = i.popoverRef, h = ik(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = ED({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -30268,7 +30268,7 @@ function Hie({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ I.createElement(jD.div, {
+ }, E = /*#__PURE__*/ I.createElement(MD.div, {
...H(Sg(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
@@ -30284,7 +30284,7 @@ function Hie({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ I.createElement(Wb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Vie.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ I.createElement(Wb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Bie.Provider, { value: {
...d,
placement: f,
ref: a
@@ -30309,15 +30309,15 @@ function Hie({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ I.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ I.createElement(sk.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ I.createElement(ck.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Uie = /*#__PURE__*/ (0, I.createContext)({});
+var Hie = /*#__PURE__*/ (0, I.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function lk(e) {
- let t = nk(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {
+function uk(e) {
+ let t = rk(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -30343,7 +30343,7 @@ function lk(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Wie = class {
+var Uie = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -30387,8 +30387,8 @@ var Wie = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Gie(e) {
- let { onExpandedChange: t } = e, [n, r] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = WO(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YO(e, (0, I.useCallback)((e) => new Wie(e, { expandedKeys: n }), [n]), null);
+function Wie(e) {
+ let { onExpandedChange: t } = e, [n, r] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = GO(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = XO(e, (0, I.useCallback)((e) => new Uie(e, { expandedKeys: n }), [n]), null);
return (0, I.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -30396,32 +30396,32 @@ function Gie(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Kie(n, e));
+ r(Gie(n, e));
},
setExpandedKeys: r,
- selectionManager: new KO(o, i)
+ selectionManager: new qO(o, i)
};
}
-function Kie(e, t) {
+function Gie(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var uk = /*#__PURE__*/ (0, I.createContext)(null), dk = /*#__PURE__*/ (0, I.createContext)(null), fk = /*#__PURE__*/ (0, I.createContext)(null), pk = /*#__PURE__*/ (0, I.createContext)(null);
-function qie(e) {
- let t = lk(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = Kv({
+var dk = /*#__PURE__*/ (0, I.createContext)(null), fk = /*#__PURE__*/ (0, I.createContext)(null), pk = /*#__PURE__*/ (0, I.createContext)(null), mk = /*#__PURE__*/ (0, I.createContext)(null);
+function Kie(e) {
+ let t = uk(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = Kv({
...e,
type: "menu"
}, t, n), a = (0, I.useRef)(null);
- return bh() ? null : /*#__PURE__*/ I.createElement(wD, { values: [
- [uk, {
+ return bh() ? null : /*#__PURE__*/ I.createElement(TD, { values: [
+ [dk, {
...i,
ref: a
}],
- [vk, t],
- [fk, t],
- [ok, {
+ [yk, t],
+ [pk, t],
+ [sk, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -30435,7 +30435,7 @@ function qie(e) {
isPressed: t.isOpen
}, e.children));
}
-var Jie = /*#__PURE__*/ (0, I.createContext)(null);
+var qie = /*#__PURE__*/ (0, I.createContext)(null);
(class extends Ff {
static {
this.type = "submenutrigger";
@@ -30449,24 +30449,24 @@ var Jie = /*#__PURE__*/ (0, I.createContext)(null);
return null;
}
});
-var Yie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- return [e, t] = DD(e, t, uk), /*#__PURE__*/ I.createElement(kh, { content: /*#__PURE__*/ I.createElement(Vh, e) }, (n) => /*#__PURE__*/ I.createElement(Xie, {
+var Jie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ return [e, t] = OD(e, t, dk), /*#__PURE__*/ I.createElement(kh, { content: /*#__PURE__*/ I.createElement(Vh, e) }, (n) => /*#__PURE__*/ I.createElement(Yie, {
props: e,
collection: n,
menuRef: t
}));
});
-function Xie({ props: e, collection: t, menuRef: n }) {
- [e, n] = DD(e, n, MD);
- let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Gie({
+function Yie({ props: e, collection: t, menuRef: n }) {
+ [e, n] = OD(e, n, ND);
+ let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Wie({
...e,
collection: a,
children: void 0
- }), s = (0, I.useContext)(fk), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(LD), { menuProps: u } = tte({
+ }), s = (0, I.useContext)(pk), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(RD), { menuProps: u } = tte({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = TD({
+ }, o, n), d = ED({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -30477,35 +30477,35 @@ function Xie({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = Sg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(jD.div, {
+ return /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(MD.div, {
...H(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ I.createElement(wD, { values: [
- [dk, o],
- [BO, { elementType: "div" }],
- [PD, {
+ }, /*#__PURE__*/ I.createElement(TD, { values: [
+ [fk, o],
+ [VO, { elementType: "div" }],
+ [FD, {
name: "MenuSection",
- render: mk
+ render: hk
}],
- [Jie, {
+ [qie, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [gk, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [MD, null],
+ [_k, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
[ND, null],
- [pk, o.selectionManager],
- [fk, s ?? lk({})]
- ] }, /*#__PURE__*/ I.createElement(RO, null, /*#__PURE__*/ I.createElement(l, {
+ [PD, null],
+ [mk, o.selectionManager],
+ [pk, s ?? uk({})]
+ ] }, /*#__PURE__*/ I.createElement(zO, null, /*#__PURE__*/ I.createElement(l, {
collection: o.collection,
- persistedKeys: RD(o.selectionManager.focusedKey),
+ persistedKeys: zD(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Zie = class extends KO {
+var Xie = class extends qO {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -30525,11 +30525,11 @@ var Zie = class extends KO {
return this.parent.childFocusStrategy;
}
};
-function mk(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, I.useContext)(dk), { CollectionBranch: a } = (0, I.useContext)(LD), [o, s] = OD(), { headingProps: c, groupProps: l } = rte({
+function hk(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, I.useContext)(fk), { CollectionBranch: a } = (0, I.useContext)(RD), [o, s] = kD(), { headingProps: c, groupProps: l } = rte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = TD({
+ }), u = ED({
...e,
id: void 0,
children: void 0,
@@ -30537,31 +30537,31 @@ function mk(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, I.useContext)(pk), f = WO(e), p = e.selectionMode == null ? d : new Zie(d, f), m = ED(gk)?.shouldCloseOnSelect, h = Sg(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ I.createElement(jD.section, {
+ }), d = (0, I.useContext)(mk), f = GO(e), p = e.selectionMode == null ? d : new Xie(d, f), m = DD(_k)?.shouldCloseOnSelect, h = Sg(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ I.createElement(MD.section, {
...H(h, u, l),
ref: t
- }, /*#__PURE__*/ I.createElement(wD, { values: [
- [LO, {
+ }, /*#__PURE__*/ I.createElement(TD, { values: [
+ [RO, {
...c,
ref: o
}],
- [pk, p],
- [gk, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [mk, p],
+ [_k, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ I.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var hk = /*#__PURE__*/ Rh(zf, mk), gk = /*#__PURE__*/ (0, I.createContext)(null), _k = /*#__PURE__*/ Lh(Rf, function(e, t, n) {
- [e, t] = DD(e, t, gk);
- let r = ED(gk)?.id, i = (0, I.useContext)(dk), a = fh(t), o = (0, I.useContext)(pk), { isVirtualized: s } = (0, I.useContext)(LD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = nte({
+var gk = /*#__PURE__*/ Rh(zf, hk), _k = /*#__PURE__*/ (0, I.createContext)(null), vk = /*#__PURE__*/ Lh(Rf, function(e, t, n) {
+ [e, t] = OD(e, t, _k);
+ let r = DD(_k)?.id, i = (0, I.useContext)(fk), a = fh(t), o = (0, I.useContext)(mk), { isVirtualized: s } = (0, I.useContext)(RD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = nte({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = _y({ isDisabled: f.isDisabled }), h = TD({
+ }, i, a), { hoverProps: p, isHovered: m } = _y({ isDisabled: f.isDisabled }), h = ED({
...e,
id: void 0,
children: n.rendered,
@@ -30575,7 +30575,7 @@ var hk = /*#__PURE__*/ Rh(zf, mk), gk = /*#__PURE__*/ (0, I.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? jD.a : jD.div, _ = Sg(e, { global: !0 });
+ }), g = e.href ? MD.a : MD.div, _ = Sg(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(g, {
...H(_, h, c, p),
ref: a,
@@ -30588,19 +30588,19 @@ var hk = /*#__PURE__*/ Rh(zf, mk), gk = /*#__PURE__*/ (0, I.createContext)(null)
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ I.createElement(wD, { values: [
- [WD, { slots: {
- [CD]: l,
+ }, /*#__PURE__*/ I.createElement(TD, { values: [
+ [GD, { slots: {
+ [wD]: l,
label: l,
description: u
} }],
- [Uie, d],
- [zO, { isSelected: f.isSelected }]
+ [Hie, d],
+ [BO, { isSelected: f.isSelected }]
] }, h.children));
});
Lh(Lf, function(e, t, n) {
- let r = (0, I.useContext)(dk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
- QO((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(fk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
+ $O((0, I.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -30610,7 +30610,7 @@ Lh(Lf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = TD({
+ let l = ED({
...s,
id: void 0,
children: n.rendered,
@@ -30623,7 +30623,7 @@ Lh(Lf, function(e, t, n) {
width: 0,
height: 0
},
- inert: VO(!0)
+ inert: HO(!0)
}, /*#__PURE__*/ I.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -30632,7 +30632,7 @@ Lh(Lf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(jD.div, {
+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(MD.div, {
...H(Sg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
@@ -30641,56 +30641,56 @@ Lh(Lf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Qie = /*#__PURE__*/ (0, I.createContext)(null), vk = /*#__PURE__*/ (0, I.createContext)(null), yk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+var Zie = /*#__PURE__*/ (0, I.createContext)(null), yk = /*#__PURE__*/ (0, I.createContext)(null), bk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = DD(e, t, Qie);
+ [e, t] = OD(e, t, Zie);
let { dialogProps: r, titleProps: i, contentProps: a } = Vee({
...e,
"aria-labelledby": n
- }, t), o = (0, I.useContext)(vk);
+ }, t), o = (0, I.useContext)(yk);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = TD({
+ let s = ED({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = Sg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(jD.section, {
+ return /*#__PURE__*/ I.createElement(MD.section, {
...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ I.createElement(wD, { values: [
- [HD, { slots: {
- [CD]: {},
+ }, /*#__PURE__*/ I.createElement(TD, { values: [
+ [UD, { slots: {
+ [wD]: {},
title: {
...i,
level: 2
}
} }],
- [WD, { slots: {
- [CD]: {},
+ [GD, { slots: {
+ [wD]: {},
description: a
} }],
- [BD, { slots: {
- [CD]: {},
+ [VD, { slots: {
+ [wD]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), bk = typeof document < "u" && window.visualViewport;
-function $ie() {
+}), xk = typeof document < "u" && window.visualViewport;
+function Qie() {
let e = cm(), [t, n] = (0, I.useState)(() => e ? {
width: 0,
height: 0
- } : xk());
+ } : Sk());
return (0, I.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- bk && bk.scale > 1 || e(xk());
+ xk && xk.scale > 1 || e(Sk());
}, r, i = (t) => {
- bk && bk.scale > 1 || Zh(V(t)) && (r = requestAnimationFrame(() => {
+ xk && xk.scale > 1 || Zh(V(t)) && (r = requestAnimationFrame(() => {
let t = lp();
(!t || !Zh(t)) && e({
width: document.documentElement.clientWidth,
@@ -30698,26 +30698,26 @@ function $ie() {
});
}));
};
- return e(xk()), Pp() && Ip() && window.addEventListener("blur", i, !0), bk ? bk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Pp() && Ip() && window.removeEventListener("blur", i, !0), bk ? bk.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(Sk()), Pp() && Ip() && window.addEventListener("blur", i, !0), xk ? xk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), Pp() && Ip() && window.removeEventListener("blur", i, !0), xk ? xk.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function xk() {
+function Sk() {
return {
- width: bk ? Math.min(bk.width * bk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: bk ? bk.height * bk.scale : document.documentElement.clientHeight
+ width: xk ? Math.min(xk.width * xk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: xk ? xk.height * xk.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var eae = /*#__PURE__*/ (0, I.createContext)(null), Sk = /*#__PURE__*/ (0, I.createContext)(null), tae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- if ((0, I.useContext)(Sk)) return /*#__PURE__*/ I.createElement(wk, {
+var $ie = /*#__PURE__*/ (0, I.createContext)(null), Ck = /*#__PURE__*/ (0, I.createContext)(null), eae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ if ((0, I.useContext)(Ck)) return /*#__PURE__*/ I.createElement(Tk, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ I.createElement(Ck, {
+ return /*#__PURE__*/ I.createElement(wk, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -30727,15 +30727,15 @@ var eae = /*#__PURE__*/ (0, I.createContext)(null), Sk = /*#__PURE__*/ (0, I.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ I.createElement(wk, {
+ }, /*#__PURE__*/ I.createElement(Tk, {
...f,
modalRef: t
}, s));
});
-function nae(e, t) {
- [e, t] = DD(e, t, eae);
- let n = (0, I.useContext)(vk), r = nk(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fh(t), o = (0, I.useRef)(null), s = ik(a, i.isOpen), c = ik(o, i.isOpen), l = s || c || e.isExiting || !1, u = cm();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(rae, {
+function tae(e, t) {
+ [e, t] = OD(e, t, $ie);
+ let n = (0, I.useContext)(yk), r = rk(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fh(t), o = (0, I.useRef)(null), s = ak(a, i.isOpen), c = ak(o, i.isOpen), l = s || c || e.isExiting || !1, u = cm();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(nae, {
...e,
state: i,
isExiting: l,
@@ -30743,9 +30743,9 @@ function nae(e, t) {
modalRef: o
});
}
-var Ck = /*#__PURE__*/ (0, I.forwardRef)(nae);
-function rae({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = tx(t, r, n), o = rk(t.overlayRef) || t.isEntering || !1, s = TD({
+var wk = /*#__PURE__*/ (0, I.forwardRef)(tae);
+function nae({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = tx(t, r, n), o = ik(t.overlayRef) || t.isEntering || !1, s = ED({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -30753,7 +30753,7 @@ function rae({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = $ie(), l, u;
+ }), c = Qie(), l, u;
if (typeof document < "u") {
let e = g_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
@@ -30768,22 +30768,22 @@ function rae({ UNSTABLE_portalContainer: e, ...t }) {
return /*#__PURE__*/ I.createElement(dy, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ I.createElement(jD.div, {
+ }, /*#__PURE__*/ I.createElement(MD.div, {
...H(Sg(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ I.createElement(wD, { values: [[Sk, {
+ }, /*#__PURE__*/ I.createElement(TD, { values: [[Ck, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [vk, r]] }, s.children)));
+ }], [yk, r]] }, s.children)));
}
-function wk(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(Sk), a = (0, I.useContext)(vk), o = fh((0, I.useMemo)(() => qm(e.modalRef, n), [e.modalRef, n])), s = rk(o), c = TD({
+function Tk(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(Ck), a = (0, I.useContext)(yk), o = fh((0, I.useMemo)(() => qm(e.modalRef, n), [e.modalRef, n])), s = ik(o), c = ED({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -30792,7 +30792,7 @@ function wk(e) {
state: a
}
});
- return /*#__PURE__*/ I.createElement(jD.div, {
+ return /*#__PURE__*/ I.createElement(MD.div, {
...H(Sg(e, { global: !0 }), t),
...c,
ref: o,
@@ -30802,9 +30802,9 @@ function wk(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var iae = Math.round(Math.random() * 1e10), aae = 0;
-function oae(e) {
- let t = (0, I.useMemo)(() => e.name || `radio-group-${iae}-${++aae}`, [e.name]), [n, r] = B_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = A_({
+var rae = Math.round(Math.random() * 1e10), iae = 0;
+function aae(e) {
+ let t = (0, I.useMemo)(() => e.name || `radio-group-${rae}-${++iae}`, [e.name]), [n, r] = B_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = A_({
...e,
value: n
}), c = (t) => {
@@ -30827,16 +30827,16 @@ function oae(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var sae = /*#__PURE__*/ (0, I.createContext)(null), cae = /*#__PURE__*/ (0, I.createContext)(null), Tk = /*#__PURE__*/ (0, I.createContext)(null), Ek = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = DD(e, t, sae);
- let { validationBehavior: n } = ED(KD) || {}, r = e.validationBehavior ?? n ?? "native", i = oae({
+var oae = /*#__PURE__*/ (0, I.createContext)(null), sae = /*#__PURE__*/ (0, I.createContext)(null), Ek = /*#__PURE__*/ (0, I.createContext)(null), Dk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = OD(e, t, oae);
+ let { validationBehavior: n } = DD(qD) || {}, r = e.validationBehavior ?? n ?? "native", i = aae({
...e,
validationBehavior: r
- }), [a, o] = OD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = gte({
+ }), [a, o] = kD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = gte({
...e,
label: o,
validationBehavior: r
- }, i), f = TD({
+ }, i), f = ED({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -30848,7 +30848,7 @@ var sae = /*#__PURE__*/ (0, I.createContext)(null), cae = /*#__PURE__*/ (0, I.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = Sg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(jD.div, {
+ return /*#__PURE__*/ I.createElement(MD.div, {
...H(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -30857,39 +30857,39 @@ var sae = /*#__PURE__*/ (0, I.createContext)(null), cae = /*#__PURE__*/ (0, I.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ I.createElement(wD, { values: [
- [Tk, i],
- [zD, {
+ }, /*#__PURE__*/ I.createElement(TD, { values: [
+ [Ek, i],
+ [BD, {
...c,
ref: a,
elementType: "span"
}],
- [WD, { slots: {
+ [GD, { slots: {
description: l,
errorMessage: u
} }],
- [GD, d]
- ] }, /*#__PURE__*/ I.createElement(RO, null, f.children)));
-}), Dk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [KD, d]
+ ] }, /*#__PURE__*/ I.createElement(zO, null, f.children)));
+}), Ok = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = DD(r, t, cae);
- let i = I.useContext(Tk), a = fh((0, I.useMemo)(() => qm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = hte({
- ...kD(e),
+ [e, t] = OD(r, t, sae);
+ let i = I.useContext(Ek), a = fh((0, I.useMemo)(() => qm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = hte({
+ ...AD(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ I.createElement(Ok.Provider, { value: {
+ return /*#__PURE__*/ I.createElement(kk.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ I.createElement(lae, {
+ } }, /*#__PURE__*/ I.createElement(cae, {
...e,
ref: t
}));
-}), Ok = /*#__PURE__*/ (0, I.createContext)(null), lae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, I.useContext)(Ok), l = I.useContext(Tk), { isFocused: u, isFocusVisible: d, focusProps: f } = py(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = _y({
+}), kk = /*#__PURE__*/ (0, I.createContext)(null), cae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, I.useContext)(kk), l = I.useContext(Ek), { isFocused: u, isFocusVisible: d, focusProps: f } = py(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = _y({
...e,
isDisabled: p
- }), g = TD({
+ }), g = ED({
...e,
defaultClassName: s,
values: {
@@ -30904,7 +30904,7 @@ var sae = /*#__PURE__*/ (0, I.createContext)(null), cae = /*#__PURE__*/ (0, I.cr
isRequired: l.isRequired
}
}), _ = Sg(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(jD.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(MD.label, {
...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -30923,8 +30923,8 @@ var sae = /*#__PURE__*/ (0, I.createContext)(null), cae = /*#__PURE__*/ (0, I.cr
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function uae(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = nk(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function lae(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = rk(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -30940,12 +30940,12 @@ function uae(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = XO({
+ }, d = ZO({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, I.useMemo)(() => dae(l), [l]),
+ selectedKeys: (0, I.useMemo)(() => uae(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -30982,16 +30982,16 @@ function uae(e) {
setFocused: g
};
}
-function dae(e) {
+function uae(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function fae(e) {
+function dae(e) {
return e && e.__esModule ? e.default : e;
}
-var kk = /*#__PURE__*/ (0, I.createContext)(null), Ak = /*#__PURE__*/ (0, I.createContext)(null), pae = /*#__PURE__*/ yh(function(e, t) {
- [e, t] = DD(e, t, kk);
+var Ak = /*#__PURE__*/ (0, I.createContext)(null), jk = /*#__PURE__*/ (0, I.createContext)(null), fae = /*#__PURE__*/ yh(function(e, t) {
+ [e, t] = OD(e, t, Ak);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, I.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -31006,24 +31006,24 @@ var kk = /*#__PURE__*/ (0, I.createContext)(null), Ak = /*#__PURE__*/ (0, I.crea
i,
a
]);
- return /*#__PURE__*/ I.createElement(kh, { content: o }, (n) => /*#__PURE__*/ I.createElement(hae, {
+ return /*#__PURE__*/ I.createElement(kh, { content: o }, (n) => /*#__PURE__*/ I.createElement(mae, {
props: e,
collection: n,
selectRef: t
}));
-}), mae = [
- zD,
+}), pae = [
BD,
- WD
+ VD,
+ GD
];
-function hae({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = ED(KD) || {}, i = e.validationBehavior ?? r ?? "native", a = uae({
+function mae({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = DD(qD) || {}, i = e.validationBehavior ?? r ?? "native", a = lae({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = py({ within: !0 }), c = (0, I.useRef)(null), [l, u] = OD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = _te({
- ...kD(e),
+ }), { isFocusVisible: o, focusProps: s } = py({ within: !0 }), c = (0, I.useRef)(null), [l, u] = kD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = _te({
+ ...AD(e),
label: u,
validationBehavior: i
}, a, c), y = (0, I.useMemo)(() => ({
@@ -31040,48 +31040,48 @@ function hae({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = TD({
+ ]), b = ED({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), x = Sg(e, { global: !0 });
delete x.id;
let S = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(wD, { values: [
- [kk, e],
- [Ak, a],
- [jk, p],
- [zD, {
+ return /*#__PURE__*/ I.createElement(TD, { values: [
+ [Ak, e],
+ [jk, a],
+ [Mk, p],
+ [BD, {
...d,
ref: l,
elementType: "span"
}],
- [BD, {
+ [VD, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [vk, a],
- [ok, {
+ [yk, a],
+ [sk, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: mae
+ clearContexts: pae
}],
- [$O, {
+ [ek, {
...m,
ref: S
}],
- [ek, a],
- [WD, { slots: {
+ [tk, a],
+ [GD, { slots: {
description: h,
errorMessage: g
} }],
- [GD, v]
- ] }, /*#__PURE__*/ I.createElement(jD.div, {
+ [KD, v]
+ ] }, /*#__PURE__*/ I.createElement(MD.div, {
...H(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -31096,9 +31096,9 @@ function hae({ props: e, selectRef: t, collection: n }) {
autoComplete: e.autoComplete
})));
}
-for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(function(e, t) {
- [e, t] = DD(e, t, jk);
- let n = (0, I.useContext)(Ak), { placeholder: r } = ED(kk), i = n.selectedItems.map((e) => {
+for (var Mk = /*#__PURE__*/ (0, I.createContext)(null), hae = /*#__PURE__*/ yh(function(e, t) {
+ [e, t] = OD(e, t, Mk);
+ let n = (0, I.useContext)(jk), { placeholder: r } = DD(Ak), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -31125,7 +31125,7 @@ for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(f
a,
o,
i
- ]), u = bg(fae(MO), "react-aria-components"), d = TD({
+ ]), u = bg(dae(NO), "react-aria-components"), d = ED({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -31137,32 +31137,32 @@ for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(f
state: n
}
}), f = Sg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(jD.span, {
+ return /*#__PURE__*/ I.createElement(MD.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ I.createElement(WD.Provider, { value: void 0 }, d.children));
-}), _ae = /*#__PURE__*/ (0, I.createContext)(null), Mk = /*#__PURE__*/ (0, I.createContext)(null), vae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ I.createElement(GD.Provider, { value: void 0 }, d.children));
+}), gae = /*#__PURE__*/ (0, I.createContext)(null), Nk = /*#__PURE__*/ (0, I.createContext)(null), _ae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = DD(r, t, _ae);
+ [e, t] = OD(r, t, gae);
let i = fh((0, I.useMemo)(() => qm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = V_(e), o = xte({
- ...kD(e),
+ ...AD(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ I.createElement(wD, { values: [[Mk, a], [Nk, {
+ return /*#__PURE__*/ I.createElement(TD, { values: [[Nk, a], [Pk, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ I.createElement(yae, {
+ }]] }, /*#__PURE__*/ I.createElement(vae, {
...e,
ref: t
}));
-}), Nk = /*#__PURE__*/ (0, I.createContext)(null), yae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, I.useContext)(Nk), { isFocused: f, isFocusVisible: p, focusProps: m } = py(), h = a || o, g = (0, I.useContext)(Mk), { hoverProps: _, isHovered: v } = _y({
+}), Pk = /*#__PURE__*/ (0, I.createContext)(null), vae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, I.useContext)(Pk), { isFocused: f, isFocusVisible: p, focusProps: m } = py(), h = a || o, g = (0, I.useContext)(Nk), { hoverProps: _, isHovered: v } = _y({
...e,
isDisabled: h
- }), y = TD({
+ }), y = ED({
...e,
defaultClassName: u,
values: {
@@ -31178,7 +31178,7 @@ for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(f
state: g
}
}), b = Sg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(jD.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(MD.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -31195,7 +31195,7 @@ for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(f
...H(r, m),
ref: l
})), y.children);
-}), Pk = 10, Fk = 5, bae = class {
+}), Fk = 10, Ik = 5, yae = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -31205,7 +31205,7 @@ for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > Fk && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Pk && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Ik && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Fk && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -31284,11 +31284,11 @@ for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Fk && i) {
+ if (Math.abs(r - c.lastSwitchY) > Ik && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > Pk && a) {
+ if (l > Fk && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -31303,7 +31303,7 @@ for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(f
boundaryContext: null
};
}
-}, xae = class {
+}, bae = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -31373,8 +31373,8 @@ for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Ik = "row-header-column-" + Math.random().toString(36).slice(2), Lk = "row-header-column-" + Math.random().toString(36).slice(2); Ik === Lk;) Lk = "row-header-column-" + Math.random().toString(36).slice(2);
-function Rk(e, t) {
+}, Lk = "row-header-column-" + Math.random().toString(36).slice(2), Rk = "row-header-column-" + Math.random().toString(36).slice(2); Lk === Rk;) Rk = "row-header-column-" + Math.random().toString(36).slice(2);
+function zk(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -31458,13 +31458,13 @@ function Rk(e, t) {
textValue: ""
}));
}
-var Sae = class extends xae {
+var xae = class extends bae {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Ik,
+ key: Lk,
value: null,
textValue: "",
level: 0,
@@ -31479,7 +31479,7 @@ var Sae = class extends xae {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Lk,
+ key: Rk,
value: null,
textValue: "",
level: 0,
@@ -31506,7 +31506,7 @@ var Sae = class extends xae {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Rk(s, a);
+ let l = zk(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -31567,8 +31567,8 @@ var Sae = class extends xae {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Cae(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || WO(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Sae(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || GO(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
@@ -31579,7 +31579,7 @@ function Cae(e) {
}
a(e, r);
};
- let o = (0, I.useMemo)(() => new KO(t, r), [t, r]), s = (0, I.useRef)(null);
+ let o = (0, I.useMemo)(() => new qO(t, r), [t, r]), s = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -31618,11 +31618,11 @@ function Cae(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var wae = {
+var Cae = {
ascending: "descending",
descending: "ascending"
};
-function Tae(e) {
+function wae(e) {
let [t, n] = (0, I.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, I.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -31633,7 +31633,7 @@ function Tae(e) {
i,
r,
a
- ]), c = YO(e, (0, I.useCallback)((e) => new Sae(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Cae({
+ ]), c = XO(e, (0, I.useCallback)((e) => new xae(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Sae({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -31649,7 +31649,7 @@ function Tae(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? wae[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Cae[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -31662,7 +31662,7 @@ function Tae(e) {
treeColumn: o
};
}
-function Eae(e, t) {
+function Tae(e, t) {
let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -31672,7 +31672,7 @@ function Eae(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Dae = class extends Bf {
+var Eae = class extends Bf {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -31687,7 +31687,7 @@ var Dae = class extends Bf {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new Gk(-2);
+ return new Kk(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -31713,7 +31713,7 @@ var Dae = class extends Bf {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Rk(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = zk(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -31794,11 +31794,11 @@ var Dae = class extends Bf {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Hk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Uk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Oae = /*#__PURE__*/ (0, I.createContext)(null), kae = /*#__PURE__*/ (0, I.createContext)(null), zk = /*#__PURE__*/ (0, I.createContext)(null), Bk = /*#__PURE__*/ (0, I.createContext)(null), Aae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = DD(e, t, kae);
- let n = WO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({
+}, Dae = /*#__PURE__*/ (0, I.createContext)(null), Oae = /*#__PURE__*/ (0, I.createContext)(null), Bk = /*#__PURE__*/ (0, I.createContext)(null), Vk = /*#__PURE__*/ (0, I.createContext)(null), kae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = OD(e, t, Oae);
+ let n = GO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -31808,26 +31808,26 @@ var Dae = class extends Bf {
i,
a,
o
- ]), c = /*#__PURE__*/ I.createElement(Nae.Provider, { value: s }, /*#__PURE__*/ I.createElement(Vh, e));
+ ]), c = /*#__PURE__*/ I.createElement(Mae.Provider, { value: s }, /*#__PURE__*/ I.createElement(Vh, e));
return /*#__PURE__*/ I.createElement(kh, {
content: c,
- createCollection: () => new Dae()
- }, (r) => /*#__PURE__*/ I.createElement(Mae, {
+ createCollection: () => new Eae()
+ }, (r) => /*#__PURE__*/ I.createElement(jae, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), jae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
- return n ? /*#__PURE__*/ I.createElement(jD.div, {
+}), Aae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
+ return n ? /*#__PURE__*/ I.createElement(MD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(jD.table, {
+ }) : /*#__PURE__*/ I.createElement(MD.table, {
...e,
ref: t
});
-}), Vk = {
+}), Hk = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -31837,26 +31837,26 @@ var Dae = class extends Bf {
rtl: "ArrowRight"
}
};
-function Mae({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = DD(e, t, MD);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(Oae);
+function jae({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = OD(e, t, ND);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(Dae);
t = fh((0, I.useMemo)(() => qm(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, I.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Tae({
+ let d = wae({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Eae(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(LD), { dragAndDropHooks: _ } = e, { gridProps: v } = Dte({
+ }), f = Tae(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(RD), { dragAndDropHooks: _ } = e, { gridProps: v } = Dte({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, I.useRef)(b), (0, I.useRef)(x), (0, I.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = ug(), [k] = (0, I.useState)(() => new bae());
+ let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = ug(), [k] = (0, I.useState)(() => new yae());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -31891,12 +31891,12 @@ function Mae({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === Vk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Vk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Hk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Hk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = py(), N = TD({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = py(), N = ED({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -31913,18 +31913,18 @@ function Mae({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let ne = Sg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(wD, { values: [
- [zk, f],
- [Bk, P],
- [NO, {
+ return /*#__PURE__*/ I.createElement(TD, { values: [
+ [Bk, f],
+ [Vk, P],
+ [PO, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [PO, { render: Uae }],
- [MD, null],
- [ND, null]
- ] }, /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(jae, {
+ [FO, { render: Hae }],
+ [ND, null],
+ [PD, null]
+ ] }, /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(Aae, {
...H(ne, N, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -31934,31 +31934,31 @@ function Mae({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ I.createElement(RO, null, /*#__PURE__*/ I.createElement(g, {
+ }, /*#__PURE__*/ I.createElement(zO, null, /*#__PURE__*/ I.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: IO(y, _, C)
+ persistedKeys: LO(y, _, C)
})))), E);
}
-var Nae = /*#__PURE__*/ (0, I.createContext)(null), Hk = class extends Ff {
+var Mae = /*#__PURE__*/ (0, I.createContext)(null), Uk = class extends Ff {
static {
this.type = "tableheader";
}
-}, Pae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
- return n ? /*#__PURE__*/ I.createElement(jD.div, {
+}, Nae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
+ return n ? /*#__PURE__*/ I.createElement(MD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(jD.thead, {
+ }) : /*#__PURE__*/ I.createElement(MD.thead, {
...e,
ref: t
});
-}), Uk = /*#__PURE__*/ Rh(Hk, (e, t) => {
- let n = (0, I.useContext)(zk).collection, r = Gf({
+}), Wk = /*#__PURE__*/ Rh(Uk, (e, t) => {
+ let n = (0, I.useContext)(Bk).collection, r = Gf({
items: n.headerRows,
children: (0, I.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ I.createElement(Iae, { item: e });
+ case "headerrow": return /*#__PURE__*/ I.createElement(Fae, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
@@ -31966,13 +31966,13 @@ var Nae = /*#__PURE__*/ (0, I.createContext)(null), Hk = class extends Ff {
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = TD({
+ }), s = ED({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ I.createElement(Pae, {
+ return /*#__PURE__*/ I.createElement(Nae, {
...H(Sg(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -31981,8 +31981,8 @@ var Nae = /*#__PURE__*/ (0, I.createContext)(null), Hk = class extends Ff {
}, (e) => /*#__PURE__*/ I.createElement(Vh, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Fae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
+}, e.children)), Pae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
return n ? /*#__PURE__*/ I.createElement("div", {
...e,
ref: t
@@ -31991,41 +31991,41 @@ var Nae = /*#__PURE__*/ (0, I.createContext)(null), Hk = class extends Ff {
ref: t
});
});
-function Iae({ item: e }) {
- let t = (0, I.useRef)(null), n = (0, I.useContext)(zk), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(LD), { rowProps: a } = jte({
+function Fae({ item: e }) {
+ let t = (0, I.useRef)(null), n = (0, I.useContext)(Bk), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(RD), { rowProps: a } = jte({
node: e,
isVirtualized: r
}, n, t), { checkboxProps: o } = Rte(n);
- return /*#__PURE__*/ I.createElement(Fae, {
+ return /*#__PURE__*/ I.createElement(Pae, {
...a,
ref: t
- }, /*#__PURE__*/ I.createElement(wD, { values: [[qD, { slots: { selection: o } }], [JD, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {
+ }, /*#__PURE__*/ I.createElement(TD, { values: [[JD, { slots: { selection: o } }], [YD, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Lae = class extends Ff {
+var Iae = class extends Ff {
static {
this.type = "column";
}
-}, Rae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
- return n ? /*#__PURE__*/ I.createElement(jD.div, {
+}, Lae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
+ return n ? /*#__PURE__*/ I.createElement(MD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(jD.th, {
+ }) : /*#__PURE__*/ I.createElement(MD.th, {
...e,
ref: t
});
-}), Wk = /*#__PURE__*/ Lh(Lae, (e, t, n) => {
- let r = fh(t), i = (0, I.useContext)(zk), { isVirtualized: a } = (0, I.useContext)(LD), { columnHeaderProps: o, isPressed: s } = Ate({
+}), Gk = /*#__PURE__*/ Lh(Iae, (e, t, n) => {
+ let r = fh(t), i = (0, I.useContext)(Bk), { isVirtualized: a } = (0, I.useContext)(RD), { columnHeaderProps: o, isPressed: s } = Ate({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = py(), d = (0, I.useContext)(Bk), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = py(), d = (0, I.useContext)(Vk), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = _y({ isDisabled: !e.allowsSorting }), h = TD({
+ let { hoverProps: p, isHovered: m } = _y({ isDisabled: !e.allowsSorting }), h = ED({
...e,
id: void 0,
children: n.rendered,
@@ -32052,7 +32052,7 @@ var Lae = class extends Ff {
width: d.getColumnWidth(n.key)
});
let _ = Sg(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ I.createElement(Rae, {
+ return delete _.id, /*#__PURE__*/ I.createElement(Lae, {
...H(_, o, u, p),
...h,
style: g,
@@ -32064,28 +32064,28 @@ var Lae = class extends Ff {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ I.createElement(wD, { values: [[zae, {
+ }, /*#__PURE__*/ I.createElement(TD, { values: [[Rae, {
column: n,
triggerRef: r
- }], [LD, FD]] }, h.children));
-}), zae = /*#__PURE__*/ (0, I.createContext)(null), Gk = class extends If {
+ }], [RD, ID]] }, h.children));
+}), Rae = /*#__PURE__*/ (0, I.createContext)(null), Kk = class extends If {
static {
this.type = "tablebody";
}
-}, Bae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
- return n ? /*#__PURE__*/ I.createElement(jD.div, {
+}, zae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
+ return n ? /*#__PURE__*/ I.createElement(MD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(jD.tbody, {
+ }) : /*#__PURE__*/ I.createElement(MD.tbody, {
...e,
ref: t
});
-}), Kk = /*#__PURE__*/ Rh(Gk, (e, t, n) => {
- let r = (0, I.useContext)(zk), { isVirtualized: i } = (0, I.useContext)(LD), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(LD), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(NO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), qk = /*#__PURE__*/ Rh(Kk, (e, t, n) => {
+ let r = (0, I.useContext)(Bk), { isVirtualized: i } = (0, I.useContext)(RD), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(RD), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(PO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = TD({
+ }, p = ED({
...e,
id: void 0,
children: void 0,
@@ -32094,25 +32094,25 @@ var Lae = class extends Ff {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ I.createElement(Jk, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ I.createElement(Yk, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ I.createElement(Xk, {
+ }, /*#__PURE__*/ I.createElement(Zk, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
let { rowGroupProps: g } = fS(), _ = Sg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(Bae, {
+ return /*#__PURE__*/ I.createElement(zae, {
...H(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ I.createElement(Jae, null), /*#__PURE__*/ I.createElement(o, {
+ }, l && /*#__PURE__*/ I.createElement(qae, null), /*#__PURE__*/ I.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: FO(s, c)
+ renderDropIndicator: IO(s, c)
}), m);
});
(class extends If {
@@ -32120,7 +32120,7 @@ var Lae = class extends Ff {
this.type = "tablefooter";
}
});
-var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Vae = class extends Ff {
+var Jk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Bae = class extends Ff {
static {
this.type = "item";
}
@@ -32132,17 +32132,17 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
}
return null;
}
-}, Jk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
- return n ? /*#__PURE__*/ I.createElement(jD.div, {
+}, Yk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
+ return n ? /*#__PURE__*/ I.createElement(MD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(jD.tr, {
+ }) : /*#__PURE__*/ I.createElement(MD.tr, {
...e,
ref: t
});
-}), Yk = /*#__PURE__*/ Rh(Vae, (e, t, n) => {
- let r = fh(t), i = (0, I.useContext)(zk), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(NO), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(LD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Pte({
+}), Xk = /*#__PURE__*/ Rh(Bae, (e, t, n) => {
+ let r = fh(t), i = (0, I.useContext)(Bk), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(PO), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(RD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Pte({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -32166,7 +32166,7 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
(0, I.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = TD({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = ED({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -32188,10 +32188,10 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
level: n.level + 1
}
}), N = Sg(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(Jk, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(Yk, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ I.createElement(Xk, {
+ }, /*#__PURE__*/ I.createElement(Zk, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -32200,7 +32200,7 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ I.createElement(Jk, {
+ }))), /*#__PURE__*/ I.createElement(Yk, {
...H(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -32216,17 +32216,17 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ I.createElement(wD, { values: [
- [qD, { slots: {
- [CD]: {},
+ }, /*#__PURE__*/ I.createElement(TD, { values: [
+ [JD, { slots: {
+ [wD]: {},
selection: x
} }],
- [JD, { slots: {
- [CD]: {},
+ [YD, { slots: {
+ [wD]: {},
selection: x
} }],
- [BD, { slots: {
- [CD]: {},
+ [VD, { slots: {
+ [wD]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -32234,8 +32234,8 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
style: { pointerEvents: "none" }
}
} }],
- [zO, { isSelected: p.isSelected }],
- [qk, { isFocusVisibleWithinRow: _ }]
+ [BO, { isSelected: p.isSelected }],
+ [Jk, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ I.createElement(l, {
collection: i.collection,
parent: n
@@ -32248,21 +32248,21 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
items: e.columns,
idScope: e.id
}, e.children);
-}), Hae = class extends Ff {
+}), Vae = class extends Ff {
static {
this.type = "cell";
}
-}, Xk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
- return n ? /*#__PURE__*/ I.createElement(jD.div, {
+}, Zk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
+ return n ? /*#__PURE__*/ I.createElement(MD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(jD.td, {
+ }) : /*#__PURE__*/ I.createElement(MD.td, {
...e,
ref: t
});
-}), Zk = /*#__PURE__*/ Lh(Hae, (e, t, n) => {
- let r = fh(t), i = (0, I.useContext)(zk), { dragState: a } = (0, I.useContext)(NO), { isVirtualized: o } = (0, I.useContext)(LD);
+}), Qk = /*#__PURE__*/ Lh(Vae, (e, t, n) => {
+ let r = fh(t), i = (0, I.useContext)(Bk), { dragState: a } = (0, I.useContext)(PO), { isVirtualized: o } = (0, I.useContext)(RD);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = Ote({
node: n,
@@ -32270,7 +32270,7 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = py(), { hoverProps: f, isHovered: p } = _y({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(qk), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = TD({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = py(), { hoverProps: f, isHovered: p } = _y({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(Jk), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = ED({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -32290,7 +32290,7 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
isTreeColumn: n.column.key === i.treeColumn
}
}), S = Sg(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ I.createElement(Xk, {
+ return delete S.id, /*#__PURE__*/ I.createElement(Zk, {
...H(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -32304,14 +32304,14 @@ var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Va
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ I.createElement(LD.Provider, { value: FD }, x.children));
+ }, /*#__PURE__*/ I.createElement(RD.Provider, { value: ID }, x.children));
});
-function Uae(e, t) {
+function Hae(e, t) {
t = fh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(NO), i = (0, I.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(PO), i = (0, I.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ I.createElement(qae, {
+ return /*#__PURE__*/ I.createElement(Kae, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -32320,40 +32320,40 @@ function Uae(e, t) {
ref: t
});
}
-var Wae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
- return n ? /*#__PURE__*/ I.createElement(jD.div, {
+var Uae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
+ return n ? /*#__PURE__*/ I.createElement(MD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(jD.tr, {
+ }) : /*#__PURE__*/ I.createElement(MD.tr, {
...e,
ref: t
});
-}), Gae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(LD);
- return n ? /*#__PURE__*/ I.createElement(jD.div, {
+}), Wae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(RD);
+ return n ? /*#__PURE__*/ I.createElement(MD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(jD.td, {
+ }) : /*#__PURE__*/ I.createElement(MD.td, {
...e,
ref: t
});
});
-function Kae(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(zk), { visuallyHiddenProps: c } = G_(), l = TD({
+function Gae(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(Bk), { visuallyHiddenProps: c } = G_(), l = ED({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ I.createElement(Wae, {
+ return /*#__PURE__*/ I.createElement(Uae, {
...Sg(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ I.createElement(Gae, {
+ }, /*#__PURE__*/ I.createElement(Wae, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -32364,14 +32364,14 @@ function Kae(e, t) {
ref: i
}), l.children));
}
-var qae = /*#__PURE__*/ (0, I.forwardRef)(Kae);
-function Jae() {
- let e = (0, I.useContext)(zk), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(NO), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = G_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(Jk, {
+var Kae = /*#__PURE__*/ (0, I.forwardRef)(Gae);
+function qae() {
+ let e = (0, I.useContext)(Bk), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(PO), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = G_();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(Yk, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ I.createElement(Xk, {
+ }, /*#__PURE__*/ I.createElement(Zk, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -32383,8 +32383,8 @@ function Jae() {
})));
}
Lh(Lf, function(e, t, n) {
- let r = (0, I.useContext)(zk), { isVirtualized: i } = (0, I.useContext)(LD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);
- QO((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(Bk), { isVirtualized: i } = (0, I.useContext)(RD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);
+ $O((0, I.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -32394,7 +32394,7 @@ Lh(Lf, function(e, t, n) {
s,
r?.collection
]), u);
- let d = TD({
+ let d = ED({
...c,
id: void 0,
children: n.rendered,
@@ -32402,10 +32402,10 @@ Lh(Lf, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Jk, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Yk, {
style: { height: 0 },
- inert: VO(!0)
- }, /*#__PURE__*/ I.createElement(Xk, { style: {
+ inert: HO(!0)
+ }, /*#__PURE__*/ I.createElement(Zk, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ I.createElement("div", {
@@ -32416,14 +32416,14 @@ Lh(Lf, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ I.createElement(Jk, {
+ }))), a && d.children && /*#__PURE__*/ I.createElement(Yk, {
...H(Sg(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ I.createElement(Xk, {
+ }, /*#__PURE__*/ I.createElement(Zk, {
role: "rowheader",
...p,
style: m
@@ -32431,8 +32431,8 @@ Lh(Lf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Yae(e) {
- let [t, n] = B_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = XO({
+function Jae(e) {
+ let [t, n] = B_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = ZO({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -32455,24 +32455,24 @@ function Yae(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Xae(e) {
- let t = Yae({
+function Yae(e) {
+ let t = Jae({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? Qk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? $k(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, I.useRef)(i);
return (0, I.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Qk(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = $k(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function Qk(e, t) {
+function $k(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -32482,20 +32482,20 @@ function Qk(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var $k = /*#__PURE__*/ (0, I.createContext)(null), eA = /*#__PURE__*/ (0, I.createContext)(null), tA = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = DD(e, t, $k);
+var eA = /*#__PURE__*/ (0, I.createContext)(null), tA = /*#__PURE__*/ (0, I.createContext)(null), nA = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = OD(e, t, eA);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, I.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ I.createElement(kh, { content: n }, (n) => /*#__PURE__*/ I.createElement(Zae, {
+ }) : n, [n, r]), /*#__PURE__*/ I.createElement(kh, { content: n }, (n) => /*#__PURE__*/ I.createElement(Xae, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Zae({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Xae({
+function Xae({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Yae({
...e,
collection: n,
children: void 0
@@ -32507,12 +32507,12 @@ function Zae({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = TD({
+ ]), l = ED({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = Sg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(jD.div, {
+ return /*#__PURE__*/ I.createElement(MD.div, {
...H(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -32520,20 +32520,20 @@ function Zae({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ I.createElement(wD, { values: [[$k, e], [eA, i]] }, l.children));
+ }, /*#__PURE__*/ I.createElement(TD, { values: [[eA, e], [tA, i]] }, l.children));
}
-var nA = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- return (0, I.useContext)(eA) ? /*#__PURE__*/ I.createElement(Qae, {
+var rA = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ return (0, I.useContext)(tA) ? /*#__PURE__*/ I.createElement(Zae, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ I.createElement(Vh, e);
});
-function Qae({ props: e, forwardedRef: t }) {
- let n = (0, I.useContext)(eA), { CollectionRoot: r } = (0, I.useContext)(LD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = ED($k), o = fh(t), { tabListProps: s } = _S({
+function Zae({ props: e, forwardedRef: t }) {
+ let n = (0, I.useContext)(tA), { CollectionRoot: r } = (0, I.useContext)(RD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = DD(eA), o = fh(t), { tabListProps: s } = _S({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = TD({
+ }, n, o), c = ED({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -32542,21 +32542,21 @@ function Qae({ props: e, forwardedRef: t }) {
state: n
}
}), l = Sg(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ I.createElement(jD.div, {
+ return delete l.id, /*#__PURE__*/ I.createElement(MD.div, {
...H(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ I.createElement(RO, null, /*#__PURE__*/ I.createElement(r, {
+ }, /*#__PURE__*/ I.createElement(zO, null, /*#__PURE__*/ I.createElement(r, {
collection: n.collection,
- persistedKeys: RD(n.selectionManager.focusedKey)
+ persistedKeys: zD(n.selectionManager.focusedKey)
})));
}
-var rA = /*#__PURE__*/ Lh(class extends Ff {
+var iA = /*#__PURE__*/ Lh(class extends Ff {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, I.useContext)(eA), i = fh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = hS({
+ let r = (0, I.useContext)(tA), i = fh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = hS({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = py(), { hoverProps: f, isHovered: p } = _y({
@@ -32564,7 +32564,7 @@ var rA = /*#__PURE__*/ Lh(class extends Ff {
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = TD({
+ }), m = ED({
...e,
id: void 0,
children: n.rendered,
@@ -32577,7 +32577,7 @@ var rA = /*#__PURE__*/ Lh(class extends Ff {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? jD.a : jD.div, g = Sg(e, { global: !0 });
+ }), h = n.props.href ? MD.a : MD.div, g = Sg(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ I.createElement(h, {
...H(g, m, a, l, f),
ref: i,
@@ -32587,26 +32587,26 @@ var rA = /*#__PURE__*/ Lh(class extends Ff {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ I.createElement(zO.Provider, { value: { isSelected: o } }, m.children));
-}), iA = /*#__PURE__*/ yh(function(e, t) {
- let n = (0, I.useContext)(eA), r = fh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ I.createElement(BO.Provider, { value: { isSelected: o } }, m.children));
+}), aA = /*#__PURE__*/ yh(function(e, t) {
+ let n = (0, I.useContext)(tA), r = fh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = ik(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement($ae, {
+ let s = ak(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement(Qae, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function $ae(e) {
- let t = (0, I.useContext)(eA), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = vS(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = py(), d = t.selectedKey === e.id, f = rk(r) && !i, p = TD({
+function Qae(e) {
+ let t = (0, I.useContext)(tA), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = vS(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = py(), d = t.selectedKey === e.id, f = ik(r) && !i, p = ED({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: VO(!d),
+ isInert: HO(!d),
isEntering: f,
isExiting: a,
state: t
@@ -32614,31 +32614,31 @@ function $ae(e) {
}), m = Sg(o, { global: !0 });
delete m.id;
let h = d ? H(m, s, c, p) : H(m, p);
- return /*#__PURE__*/ I.createElement(jD.div, {
+ return /*#__PURE__*/ I.createElement(MD.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: VO(!d || e.inert),
+ inert: HO(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ I.createElement(wD, { values: [[$k, null], [eA, null]] }, /*#__PURE__*/ I.createElement(LD.Provider, { value: FD }, p.children)));
+ }, /*#__PURE__*/ I.createElement(TD, { values: [[eA, null], [tA, null]] }, /*#__PURE__*/ I.createElement(RD.Provider, { value: ID }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var eoe = /*#__PURE__*/ (0, I.createContext)({}), toe = /*#__PURE__*/ (0, I.createContext)(null), noe = /*#__PURE__*/ yh(function(e, t) {
- [e, t] = DD(e, t, toe);
- let { validationBehavior: n } = ED(KD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);
- [e, i] = DD(e, i, ND);
- let [a, o] = OD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = q_({
- ...kD(e),
+var $ae = /*#__PURE__*/ (0, I.createContext)({}), eoe = /*#__PURE__*/ (0, I.createContext)(null), toe = /*#__PURE__*/ yh(function(e, t) {
+ [e, t] = OD(e, t, eoe);
+ let { validationBehavior: n } = DD(qD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);
+ [e, i] = OD(e, i, PD);
+ let [a, o] = kD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = q_({
+ ...AD(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, I.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = TD({
+ }, [i]), h = ED({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -32648,7 +32648,7 @@ var eoe = /*#__PURE__*/ (0, I.createContext)({}), toe = /*#__PURE__*/ (0, I.crea
},
defaultClassName: "react-aria-TextField"
}), g = Sg(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ I.createElement(jD.div, {
+ return delete g.id, /*#__PURE__*/ I.createElement(MD.div, {
...g,
...h,
ref: t,
@@ -32657,31 +32657,31 @@ var eoe = /*#__PURE__*/ (0, I.createContext)({}), toe = /*#__PURE__*/ (0, I.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ I.createElement(wD, { values: [
- [zD, {
+ }, /*#__PURE__*/ I.createElement(TD, { values: [
+ [BD, {
...l,
ref: a
}],
- [ZD, {
+ [QD, {
...u,
ref: m
}],
- [eoe, {
+ [$ae, {
...u,
ref: m
}],
- [XD, {
+ [ZD, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [WD, { slots: {
+ [GD, { slots: {
description: d,
errorMessage: f
} }],
- [GD, p]
+ [KD, p]
] }, h.children));
-}), aA = ZC({
+}), oA = ZC({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -32705,15 +32705,15 @@ var eoe = /*#__PURE__*/ (0, I.createContext)({}), toe = /*#__PURE__*/ (0, I.crea
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function oA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = XC(aA.base, aA.size[t], aA.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+function sA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = XC(oA.base, oA.size[t], oA.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
n ? /* @__PURE__ */ (0, L.jsx)(n, {
- className: aA.icon[t],
+ className: oA.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, L.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: aA.icon[t],
+ className: oA.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -32740,7 +32740,7 @@ function oA({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var sA = [
+var cA = [
"max-w-[calc(100vw-32px)] overflow-y-auto",
"rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",
"transition duration-150 ease-out",
@@ -32748,74 +32748,74 @@ var sA = [
"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
"data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
"data-[placement=left]:origin-right data-[placement=right]:origin-left"
-].join(" "), roe = "w-[266px]", ioe = "flex w-full flex-col gap-1 outline-none", cA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), lA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), noe = "w-[266px]", roe = "flex w-full flex-col gap-1 outline-none", lA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), uA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
({
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
}).medium;
//#endregion
//#region src/management.ts
-var aoe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", ooe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", soe = aw({
+var ioe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", aoe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", ooe = aw({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), coe = {
+}), soe = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, loe = {
+}, coe = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
-}, uoe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", doe = {
+}, loe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", uoe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, foe = aw({
+}, doe = aw({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), uA = "border-t border-border-button-default p-4 first:border-t-0";
-function dA({ tone: e = "neutral", status: t, children: n }) {
+}), dA = "border-t border-border-button-default p-4 first:border-t-0";
+function fA({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: `${uoe} ${doe[e]}`,
+ className: `${loe} ${uoe[e]}`,
children: [t ? /* @__PURE__ */ (0, L.jsx)("p", {
className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
children: t
}) : null, n]
});
}
-function fA({ id: e, children: t }) {
+function pA({ id: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function pA({ id: e, gap: t = "none", children: n }) {
+function mA({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, L.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function mA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function hA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, L.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${soe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${ooe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
- className: coe[e],
+ className: soe[e],
children: a
}), i ? /* @__PURE__ */ (0, L.jsx)("footer", {
- className: loe[e],
+ className: coe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function hA() {
+function gA() {
let e = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
h(e.current);
@@ -32823,7 +32823,7 @@ function hA() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var gA = ZC({
+var _A = ZC({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -32844,21 +32844,21 @@ var gA = ZC({
small: "size-4 shrink-0"
}
});
-function _A({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function vA({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
ref: i,
type: r,
- className: XC(gA.base, gA.size[t], n),
+ className: XC(_A.base, _A.size[t], n),
...a,
children: /* @__PURE__ */ (0, L.jsx)(e, {
- className: gA.icon[t],
+ className: _A.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function poe({ className: e }) {
+function foe({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32871,8 +32871,8 @@ function poe({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-open" })
});
}
-var moe = "打开文件管理器失败,请重试";
-function vA({ path: e, prefix: t, className: n, onRevealed: r }) {
+var poe = "打开文件管理器失败,请重试";
+function yA({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, I.useState)(!1), [o, s] = (0, I.useState)(""), c = (0, I.useRef)(!0);
(0, I.useEffect)(() => () => {
c.current = !1;
@@ -32883,7 +32883,7 @@ function vA({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await q("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof nw ? e.message : moe);
+ c.current && s(e instanceof nw ? e.message : poe);
} finally {
c.current && a(!1);
}
@@ -32896,8 +32896,8 @@ function vA({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, L.jsxs)("p", {
className: XC("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, L.jsx)(_A, {
- icon: poe,
+ }), /* @__PURE__ */ (0, L.jsx)(vA, {
+ icon: foe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -32912,19 +32912,19 @@ function vA({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function yA({ className: e, children: t }) {
+function bA({ className: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: XC("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function bA({ className: e, children: t }) {
+function xA({ className: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
className: XC("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function xA({ label: e, description: t, children: n }) {
+function SA({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: XC("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -32941,14 +32941,14 @@ function xA({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function SA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function CA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(bA, { children: e })
+ children: /* @__PURE__ */ (0, L.jsx)(xA, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, L.jsx)(bA, { children: e }), /* @__PURE__ */ (0, L.jsx)(yA, { children: i })] });
+ }) : /* @__PURE__ */ (0, L.jsx)(xA, { children: e }), /* @__PURE__ */ (0, L.jsx)(bA, { children: i })] });
return r ? /* @__PURE__ */ (0, L.jsx)("form", {
id: t,
"aria-label": e,
@@ -32963,13 +32963,13 @@ function SA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function CA({ children: e }) {
+function wA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function wA({ divided: e = !1, children: t }) {
+function TA({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -32978,7 +32978,7 @@ function wA({ divided: e = !1, children: t }) {
children: t
});
}
-function TA({ status: e, children: t }) {
+function EA({ status: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
children: [e ? /* @__PURE__ */ (0, L.jsx)("div", {
@@ -32987,28 +32987,28 @@ function TA({ status: e, children: t }) {
}) : null, t]
});
}
-function EA({ role: e, children: t }) {
+function DA({ role: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function DA({ children: e }) {
+function OA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function OA({ children: e }) {
+function kA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function kA({ href: e, children: t }) {
- return /* @__PURE__ */ (0, L.jsx)(oA, {
+function AA({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, L.jsx)(sA, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
@@ -33017,13 +33017,13 @@ function kA({ href: e, children: t }) {
children: t
});
}
-function AA({ children: e }) {
+function jA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function jA({ term: e, children: t }) {
+function MA({ term: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, L.jsx)("dt", {
@@ -33035,7 +33035,7 @@ function jA({ term: e, children: t }) {
})]
});
}
-function MA({ summary: e, defaultOpen: t = !1, children: n }) {
+function NA({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, I.useId)(), i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(!1), [s, c] = (0, I.useState)(t);
return /* @__PURE__ */ (0, L.jsxs)("details", {
ref: (e) => {
@@ -33063,7 +33063,7 @@ function MA({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function NA({ name: e }) {
+function PA({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33072,29 +33072,29 @@ function NA({ name: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function PA({ mark: e }) {
+function FA({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, L.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, L.jsx)(NA, { name: e });
+ }) : /* @__PURE__ */ (0, L.jsx)(PA, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function FA({ toast: e, mode: t, monitor: n }) {
+function IA({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ft({
- queryKey: TT,
- queryFn: ({ signal: e }) => ET(e),
- refetchInterval: (e) => jT(e.state.data, r)
+ queryKey: ET,
+ queryFn: ({ signal: e }) => DT(e),
+ refetchInterval: (e) => MT(e.state.data, r)
}), [a, o] = (0, I.useState)(null), s = (0, I.useRef)(void 0), c = i.data;
return (0, I.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && zT(c, e, r);
+ r && o(c), (r || t === "notice") && BT(c, e, r);
}, [
c,
t,
@@ -33107,7 +33107,7 @@ function FA({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var IA = [
+var LA = [
{
label: "扫描并补全资料",
icon: PS,
@@ -33123,13 +33123,13 @@ var IA = [
icon: BS,
command: { stage: "collect" }
}
-], LA = XC(cA, lA, "text-body-2-medium"), RA = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", zA = (e) => {
+], RA = XC(lA, uA, "text-body-2-medium"), zA = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", BA = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, BA = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + zA(e);
-function VA({ busy: e, onRun: t }) {
+}, VA = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + BA(e);
+function HA({ busy: e, onRun: t }) {
let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -33154,19 +33154,19 @@ function VA({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, L.jsx)(ck, {
+ }), /* @__PURE__ */ (0, L.jsx)(lk, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: sA,
- children: /* @__PURE__ */ (0, L.jsx)(yk, {
+ className: cA,
+ children: /* @__PURE__ */ (0, L.jsx)(bk, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: IA.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {
+ children: LA.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: LA,
+ className: RA,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, L.jsx)(t, {
"aria-hidden": !0,
@@ -33176,8 +33176,8 @@ function VA({ busy: e, onRun: t }) {
})
})] });
}
-function HA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = IT(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = PT(e.notes || {}), c = hA();
+function UA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = LT(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = FT(e.notes || {}), c = gA();
return /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -33185,7 +33185,7 @@ function HA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "处理较慢",
- children: RA
+ children: zA
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -33197,7 +33197,7 @@ function HA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, L.jsxs)(MA, {
+ children: /* @__PURE__ */ (0, L.jsxs)(NA, {
summary: a.label,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "relative",
@@ -33228,7 +33228,7 @@ function HA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, L.jsx)(vA, {
+ children: /* @__PURE__ */ (0, L.jsx)(yA, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33242,13 +33242,13 @@ function HA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "success",
title: "处理完成",
- children: BA(n)
+ children: VA(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, L.jsx)(vA, {
+ children: /* @__PURE__ */ (0, L.jsx)(yA, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33260,38 +33260,38 @@ function HA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function UA(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = FA(e), o = It({
- mutationFn: (e) => q(wT, e),
+function WA(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = IA(e), o = It({
+ mutationFn: (e) => q(TT, e),
onSuccess: (e) => {
- a(), X.setQueryData(TT, e), X.invalidateQueries({ queryKey: TT });
+ a(), X.setQueryData(ET, e), X.invalidateQueries({ queryKey: ET });
}
});
(0, I.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? AT : K(r.error) : "", l = o.isPending || s.status === "running", u = FT(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? jT : K(r.error) : "", l = o.isPending || s.status === "running", u = IT(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, L.jsx)(mA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(hA, {
layout: "split",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(oA, {
+ /* @__PURE__ */ (0, L.jsx)(sA, {
href: "/scraping",
size: "small",
trailingIcon: ES,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, L.jsx)(oA, {
+ s.candidates ? /* @__PURE__ */ (0, L.jsx)(sA, {
href: "/review",
size: "small",
trailingIcon: ES,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, L.jsx)(VA, {
+ /* @__PURE__ */ (0, L.jsx)(HA, {
busy: l,
onRun: d
})
@@ -33299,10 +33299,10 @@ function UA(e) {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(pA, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, L.jsx)(mA, { children: "扫描与采集" }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: aoe
+ children: ioe
}),
s.status === "running" ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-1.5",
@@ -33324,7 +33324,7 @@ function UA(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, L.jsx)(HA, {
+ }), /* @__PURE__ */ (0, L.jsx)(UA, {
state: s,
problem: c,
settled: i,
@@ -33340,7 +33340,7 @@ function UA(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function WA(e) {
+function GA(e) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -33354,7 +33354,7 @@ function WA(e) {
})
});
}
-function GA(e) {
+function KA(e) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -33368,7 +33368,7 @@ function GA(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function KA(e, t, n) {
+function qA(e, t, n) {
(0, I.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -33382,7 +33382,7 @@ function KA(e, t, n) {
n
]);
}
-function qA(e, t) {
+function JA(e, t) {
let n = (0, I.useRef)(!1);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -33396,33 +33396,33 @@ function qA(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var JA = (0, I.createContext)("md");
-function YA({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var YA = (0, I.createContext)("md");
+function XA({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, I.useRef)(null), u = (0, I.useRef)(null), [d, f] = (0, I.useState)(!1);
- KA(d, () => f(!1), [l, u]);
- let p = qA(d, l);
- return /* @__PURE__ */ (0, L.jsx)(pae, {
+ qA(d, () => f(!1), [l, u]);
+ let p = JA(d, l);
+ return /* @__PURE__ */ (0, L.jsx)(fae, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: XC("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)(VD, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)(HD, {
ref: l,
className: XC("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, L.jsx)(gae, {
+ children: [/* @__PURE__ */ (0, L.jsx)(hae, {
className: XC("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, L.jsx)(WA, { className: XC("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, L.jsx)(ck, {
+ }), /* @__PURE__ */ (0, L.jsx)(GA, { className: XC("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, L.jsx)(lk, {
ref: u,
isNonModal: !0,
offset: 4,
- className: XC(roe, sA, "p-2", n),
- children: /* @__PURE__ */ (0, L.jsx)(Pie, {
+ className: XC(noe, cA, "p-2", n),
+ children: /* @__PURE__ */ (0, L.jsx)(Nie, {
items: a,
- className: XC(ioe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, L.jsx)(JA.Provider, {
+ className: XC(roe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, L.jsx)(YA.Provider, {
value: r,
children: i
})
@@ -33430,19 +33430,19 @@ function YA({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function XA({ className: e, children: t, ...n }) {
- let r = (0, I.useContext)(JA);
- return /* @__PURE__ */ (0, L.jsx)(Lie, {
+function ZA({ className: e, children: t, ...n }) {
+ let r = (0, I.useContext)(YA);
+ return /* @__PURE__ */ (0, L.jsx)(Iie, {
...n,
- className: (t) => XC(cA, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => XC(lA, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/background-job.ts
-var ZA = 2e3, QA = (e) => e, $A = (e, t) => t;
-function ej(e) {
- let { queryKey: t, jobOf: n = QA, withJob: r = $A, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);
+var QA = 2e3, $A = (e) => e, ej = (e, t) => t;
+function tj(e) {
+ let { queryKey: t, jobOf: n = $A, withJob: r = ej, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);
(0, I.useEffect)(() => {
l.current = e;
});
@@ -33451,7 +33451,7 @@ function ej(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? ZA : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? QA : i ?? !1;
}
}), d = It({
mutationFn: (e) => l.current.start(e),
@@ -33482,32 +33482,32 @@ function ej(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var tj = (e) => m[e] || e, nj = (e) => X.setQueryData(VT, e);
-function rj() {
+var nj = (e) => m[e] || e, rj = (e) => X.setQueryData(HT, e);
+function ij() {
let e = Ft({
- queryKey: VT,
- queryFn: ({ signal: e }) => WT(e),
- refetchInterval: (e) => e.state.data?.status === "running" && ZA
- }), t = Ft({
queryKey: HT,
- queryFn: ({ signal: e }) => GT(e)
- }), [n, r] = (0, I.useState)(""), i = dw(), a = e.data ?? UT, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+ queryFn: ({ signal: e }) => GT(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && QA
+ }), t = Ft({
+ queryKey: UT,
+ queryFn: ({ signal: e }) => KT(e)
+ }), [n, r] = (0, I.useState)(""), i = dw(), a = e.data ?? WT, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && g({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => nj(await q(BT, {
+ onConfirm: async () => rj(await q(VT, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => q(BT, { stop: !0 }, "POST", e), nj), d = JT(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => q(VT, { stop: !0 }, "POST", e), rj), d = YT(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, L.jsx)(mA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(hA, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(YA, {
+ footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -33515,10 +33515,10 @@ function rj() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(XA, {
+ children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(ZA, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: tj(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, L.jsx)(FA, { mark: nj(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: u,
@@ -33532,10 +33532,10 @@ function rj() {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(pA, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, L.jsx)(mA, { children: "媒体修复" }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ooe
+ children: aoe
}),
s && a.total ? /* @__PURE__ */ (0, L.jsx)(uw, {
label: "修复进度",
@@ -33561,7 +33561,7 @@ function rj() {
f && a.missing_tool ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "缺少 untrunc",
- children: YT(a)
+ children: XT(a)
}) : null,
p ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -33573,7 +33573,7 @@ function rj() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var ij = {
+var aj = {
md: {
box: "size-4",
glyph: "size-4",
@@ -33587,8 +33587,8 @@ var ij = {
gap: "gap-1.5"
}
};
-function aj({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = ij[t], c = n || r, l = o && !a;
+function oj({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = aj[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: XC("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? XC("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : XC("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -33615,13 +33615,13 @@ function aj({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function oj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = ij[n];
- return /* @__PURE__ */ (0, L.jsx)(Sie, {
+function sj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = aj[n];
+ return /* @__PURE__ */ (0, L.jsx)(xie, {
ref: r,
...i,
className: (t) => XC("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(aj, {
+ children: (e) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(oj, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, L.jsx)("span", {
@@ -33632,10 +33632,10 @@ function oj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function sj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function cj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: XC("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, L.jsx)(Aae, {
+ children: /* @__PURE__ */ (0, L.jsx)(kae, {
ref: r,
...i,
className: XC("bui-table", e === "sm" && "bui-table-sm", t)
@@ -33644,7 +33644,7 @@ function sj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/row-click.ts
-var cj = [
+var lj = [
"a",
"button",
"input",
@@ -33657,15 +33657,15 @@ var cj = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function lj(e, t) {
+function uj(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(cj);
+ let r = n.closest(lj);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function uj({ children: e, follow: t = !1, onRowClick: n }) {
+function dj({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -33673,15 +33673,15 @@ function uj({ children: e, follow: t = !1, onRowClick: n }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && lj(e, r) && n(r.dataset.key);
+ r && uj(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var dj = Vw("unlink"), fj = Vw("rotate-cw"), pj = "站点返回 404 或 410,确认这个地址不存在。", mj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", hj = "删除前会逐条重验一次;此操作不可撤销。", gj = "暂时无法读取进度,正在重新连接…", _j = (e) => Number(e || 0).toLocaleString();
-function vj({ label: e, value: t, note: n }) {
+var fj = Vw("unlink"), pj = Vw("rotate-cw"), mj = "站点返回 404 或 410,确认这个地址不存在。", hj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", gj = "删除前会逐条重验一次;此操作不可撤销。", _j = "暂时无法读取进度,正在重新连接…", vj = (e) => Number(e || 0).toLocaleString();
+function yj({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -33700,11 +33700,11 @@ function vj({ label: e, value: t, note: n }) {
]
});
}
-function yj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function bj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: uA,
+ className: dA,
children: [
/* @__PURE__ */ (0, L.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -33717,13 +33717,13 @@ function yj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, L.jsx)(uj, { children: /* @__PURE__ */ (0, L.jsxs)(sj, {
+ /* @__PURE__ */ (0, L.jsx)(dj, { children: /* @__PURE__ */ (0, L.jsxs)(cj, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(Uk, { children: [
- i ? /* @__PURE__ */ (0, L.jsx)(Wk, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(Wk, { children: [
+ i ? /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "pick",
- children: /* @__PURE__ */ (0, L.jsx)(oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(sj, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -33731,44 +33731,44 @@ function yj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, L.jsx)(Kk, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(Yk, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(qk, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(Xk, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(oj, {
+ i ? /* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsx)(sj, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: e.entity }),
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: WE[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: e.label || "" }),
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: e.entity }),
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: GE[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: e.label || "" }),
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsxs)("a", {
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -33790,9 +33790,9 @@ function yj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function bj({ line: e, value: t, total: n }) {
+function xj({ line: e, value: t, total: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: `${uA} flex flex-col gap-1.5`,
+ className: `${dA} flex flex-col gap-1.5`,
children: n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(uw, {
label: e,
value: t || 0,
@@ -33803,27 +33803,27 @@ function bj({ line: e, value: t, total: n }) {
})] }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: e })
});
}
-function xj() {
+function Sj() {
let e = Ft({
- queryKey: VE,
- queryFn: ({ signal: e }) => KE(e)
- }), [t, n] = (0, I.useState)([]), r = ej({
- queryKey: UE,
- queryFn: ({ signal: e }) => JE(e),
- start: jre,
+ queryKey: HE,
+ queryFn: ({ signal: e }) => qE(e)
+ }), [t, n] = (0, I.useState)([]), r = tj({
+ queryKey: WE,
+ queryFn: ({ signal: e }) => YE(e),
+ start: Are,
onFinish: () => {
X.invalidateQueries({
- queryKey: VE,
+ queryKey: HE,
exact: !0
}), X.invalidateQueries({
- queryKey: HE,
+ queryKey: UE,
exact: !0
});
}
- }), i = ej({
- queryKey: HE,
- queryFn: ({ signal: e }) => qE(e),
- start: Are,
+ }), i = tj({
+ queryKey: UE,
+ queryFn: ({ signal: e }) => JE(e),
+ start: kre,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -33847,13 +33847,13 @@ function xj() {
}, v = r.outcome, y = i.start.error ?? r.start.error, b = null;
if (v?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "任务失败",
- children: v.error || "任务失败"
+ title: "链接清理未完成",
+ children: v.error || "请查看任务记录,核对已处理的链接。"
});
else if (v) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "success",
title: "完成",
- children: Mre(v)
+ children: jre(v)
});
else if (y) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -33863,7 +33863,7 @@ function xj() {
else if (i.query.isError && a) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: gj
+ children: _j
});
else if (a?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -33873,48 +33873,48 @@ function xj() {
else if (a && a.status !== "idle") {
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
b = /* @__PURE__ */ (0, L.jsxs)("div", {
- className: foe,
+ className: doe,
children: [
- a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(bj, {
- line: Nre(a),
+ a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(xj, {
+ line: Mre(a),
value: a.checked,
total: a.total
}) : null,
- c ? /* @__PURE__ */ (0, L.jsx)(bj, {
+ c ? /* @__PURE__ */ (0, L.jsx)(xj, {
line: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
total: r.job?.total
}) : null,
- /* @__PURE__ */ (0, L.jsx)(yj, {
+ /* @__PURE__ */ (0, L.jsx)(bj, {
title: "地址已失效",
items: u,
- hint: pj
+ hint: mj
}),
- /* @__PURE__ */ (0, L.jsx)(yj, {
+ /* @__PURE__ */ (0, L.jsx)(bj, {
title: "本次未访问成功",
items: d,
- hint: mj,
+ hint: hj,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, L.jsxs)(dA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: fj,
+ children: /* @__PURE__ */ (0, L.jsxs)(fA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
+ leadingIcon: pj,
disabled: !t.length,
...Y(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: fj,
+ leadingIcon: pj,
...Y(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, L.jsx)(dA, {
+ l && u.length ? /* @__PURE__ */ (0, L.jsx)(fA, {
tone: "error",
- status: hj,
+ status: gj,
children: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "danger",
...Y(c),
@@ -33923,7 +33923,7 @@ function xj() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, L.jsx)("p", {
- className: `${uA} text-body-regular text-notification-success-foreground`,
+ className: `${dA} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -33934,36 +33934,36 @@ function xj() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsx)(fA, {
+ /* @__PURE__ */ (0, L.jsx)(pA, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, L.jsxs)(mA, {
+ /* @__PURE__ */ (0, L.jsxs)(hA, {
layout: "split",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: dj,
+ leadingIcon: fj,
...Y(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
- children: [/* @__PURE__ */ (0, L.jsx)(pA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(mA, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
}), e.isError ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "读取失败",
+ title: "链接统计读取失败",
children: K(e.error)
}) : p ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, L.jsx)(vj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(yj, {
label: "链接总数",
- value: _j(p.total),
- note: `分布在 ${_j(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(vj, {
- label: WE[e] || e,
- value: _j(t)
+ value: vj(p.total),
+ note: `分布在 ${vj(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(yj, {
+ label: GE[e] || e,
+ value: vj(t)
}, e))]
}), m ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -33986,8 +33986,8 @@ function xj() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Sj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsxs)(hie, {
+function Cj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsxs)(mie, {
"data-label": "true",
...a,
className: XC("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -34007,8 +34007,8 @@ function Sj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Cj({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, L.jsx)(yie, {
+function wj({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, L.jsx)(vie, {
slot: e ? "errorMessage" : "description",
...n,
className: XC("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
@@ -34016,15 +34016,15 @@ function Cj({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var wj = (0, I.createContext)({});
-function Tj({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsx)(wj.Provider, {
+var Tj = (0, I.createContext)({});
+function Ej({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsx)(Tj.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, L.jsx)(noe, {
+ children: /* @__PURE__ */ (0, L.jsx)(toe, {
...a,
"data-input-size": e,
className: XC("group flex h-max w-full flex-col items-start gap-1", r),
@@ -34032,8 +34032,8 @@ function Tj({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-Tj.displayName = "TextField";
-var Ej = ZC({
+Ej.displayName = "TextField";
+var Dj = ZC({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -34062,44 +34062,44 @@ var Ej = ZC({
].join(" "),
icon: "size-5 shrink-0"
});
-function Dj({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, I.useContext)(wj), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, L.jsx)(wie, {
+function Oj({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, I.useContext)(Tj), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, L.jsx)(Cie, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => XC(Ej.field, d ? Ej.fieldWithAddonSize[u] : Ej.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => XC(Dj.field, d ? Dj.fieldWithAddonSize[u] : Dj.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Ej.content,
+ className: Dj.content,
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
- className: Ej.leftSection,
+ className: Dj.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, L.jsx)(t, {
- className: Ej.icon,
+ className: Dj.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, L.jsx)(Eie, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(Tie, {
ref: o,
...c,
- className: XC(Ej.input, l.inputClassName, a)
+ className: XC(Dj.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, L.jsx)(n, {
- className: Ej.icon,
+ className: Dj.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Dj.displayName = "InputBase";
-function Oj({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, L.jsx)(Tj, {
+Oj.displayName = "InputBase";
+function kj({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, L.jsx)(Ej, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- e && /* @__PURE__ */ (0, L.jsx)(Sj, {
+ e && /* @__PURE__ */ (0, L.jsx)(Cj, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, L.jsx)(Dj, {
+ /* @__PURE__ */ (0, L.jsx)(Oj, {
ref: c,
groupRef: l,
placeholder: r,
@@ -34108,28 +34108,28 @@ function Oj({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, L.jsx)(Cj, {
+ t && /* @__PURE__ */ (0, L.jsx)(wj, {
isInvalid: d,
children: t
})
] })
});
}
-Oj.displayName = "Input";
+kj.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var kj = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Aj = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", jj = 8;
-function Mj({ plan: e }) {
+var Aj = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, jj = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Mj = 8;
+function Nj({ plan: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, jj).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
+ children: e.rows.slice(0, Mj).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, L.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: QE(e.current_path)
+ children: $E(e.current_path)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
@@ -34139,7 +34139,7 @@ function Mj({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: QE(e.target_path)
+ children: $E(e.target_path)
})
]
}, e.current_path))
@@ -34148,10 +34148,10 @@ function Mj({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Nj({ toast: t, failure: n }) {
+function Pj({ toast: t, failure: n }) {
let r = Ft({
- queryKey: XE,
- queryFn: ({ signal: e }) => ZE(e)
+ queryKey: ZE,
+ queryFn: ({ signal: e }) => QE(e)
}), i = r.data, a = i?.locations ?? [], [o, s] = (0, I.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, I.useState)(null), f = u?.location === c ? u : {
location: c,
file: l?.file ?? "",
@@ -34164,8 +34164,8 @@ function Nj({ toast: t, failure: n }) {
file_template: f.file.trim(),
dir_template: f.dir.trim()
}), x = It({
- mutationFn: Bre,
- onSuccess: (e, t) => void Hre({
+ mutationFn: zre,
+ onSuccess: (e, t) => void Vre({
...i?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -34173,29 +34173,29 @@ function Nj({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = Wre.test(K(e)) ? "dir" : "file";
+ let t = Ure.test(K(e)) ? "dir" : "file";
_(t), (t === "dir" ? y : v).current?.focus();
}
- }), S = ej({
- queryKey: XE,
- queryFn: ({ signal: e }) => ZE(e),
- start: Vre,
+ }), S = tj({
+ queryKey: ZE,
+ queryFn: ({ signal: e }) => QE(e),
+ start: Bre,
jobOf: (e) => e,
- withJob: Ure,
+ withJob: Hre,
onStarted: () => x.reset(),
onFinish: (e) => {
if (X.invalidateQueries({
- queryKey: XE,
+ queryKey: ZE,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = eD(e);
+ let { text: r, failed: i } = tD(e);
i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));
}
}), C = S.running || S.start.isPending, w = x.data, T = Number(w?.counts?.change || 0), E = e[c] || c, D = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), O = () => {
x.isPending || !c || (_(null), x.mutate(b()));
}, k = () => void g({
title: "按模板整理文件",
- body: kj(E),
+ body: Aj(E),
confirmLabel: "整理文件",
onConfirm: () => S.start.mutateAsync({
kind: "apply",
@@ -34203,7 +34203,7 @@ function Nj({ toast: t, failure: n }) {
})
}), A = () => void g({
title: "回滚上一批整理",
- body: Aj,
+ body: jj,
confirmLabel: "回滚整理",
onConfirm: () => S.start.mutateAsync({ kind: "rollback" })
}), j = null, M = S.job, N = S.outcome;
@@ -34222,11 +34222,11 @@ function Nj({ toast: t, failure: n }) {
}) : /* @__PURE__ */ (0, L.jsx)(sw, { label: e });
} else if (N?.status === "failed") j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "任务失败",
- children: N.error || "任务失败"
+ title: "文件整理未完成",
+ children: N.error || "请查看任务记录,核对已处理的文件。"
});
else if (N) {
- let { text: e, failed: t } = eD(N);
+ let { text: e, failed: t } = tD(N);
j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -34243,9 +34243,9 @@ function Nj({ toast: t, failure: n }) {
}) : w && (j = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "预览结果",
- children: Gre(w)
- }), T ? /* @__PURE__ */ (0, L.jsx)(Mj, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, L.jsxs)(mA, {
+ children: Wre(w)
+ }), T ? /* @__PURE__ */ (0, L.jsx)(Nj, { plan: w }) : null] }));
+ return /* @__PURE__ */ (0, L.jsxs)(hA, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -34269,7 +34269,7 @@ function Nj({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, L.jsx)(pA, {
+ /* @__PURE__ */ (0, L.jsx)(mA, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -34282,27 +34282,27 @@ function Nj({ toast: t, failure: n }) {
className: "mt-3",
children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "读取失败",
+ title: "整理配置读取失败",
children: K(r.error)
})
}) : null,
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, L.jsx)(YA, {
+ a.length ? /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: c || null,
onSelectionChange: (e) => {
e !== null && (s(String(e)), _(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(XA, {
+ children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(ZA, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: m[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, L.jsx)(FA, { mark: m[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Oj, {
+ /* @__PURE__ */ (0, L.jsx)(kj, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -34313,7 +34313,7 @@ function Nj({ toast: t, failure: n }) {
p({ file: e }), _(null);
}
}),
- /* @__PURE__ */ (0, L.jsx)(Oj, {
+ /* @__PURE__ */ (0, L.jsx)(kj, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -34353,97 +34353,97 @@ function Nj({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var Pj = Vw("git-compare"), Fj = Vw("rotate-cw"), Ij = "暂时无法读取进度,正在重新连接…", Lj = "清理失效条目", Rj = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", zj = (e) => Number(e || 0).toLocaleString();
-function Bj({ scan: e }) {
+var Fj = Vw("git-compare"), Ij = Vw("rotate-cw"), Lj = "暂时无法读取进度,正在重新连接…", Rj = "清理失效条目", zj = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", Bj = (e) => Number(e || 0).toLocaleString();
+function Vj({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
- className: Rj,
+ className: zj,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, L.jsx)("article", {
- className: bD(),
- children: /* @__PURE__ */ (0, L.jsx)(xD, {
- label: Xre[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, L.jsx)(PA, { mark: m[e.location] ?? "database" }),
+ className: xD(),
+ children: /* @__PURE__ */ (0, L.jsx)(SD, {
+ label: Yre[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, L.jsx)(FA, { mark: m[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, L.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${zj(e.missing)} 项` : "—",
- meta: eie(e),
+ figure: e.online ? `${Bj(e.missing)} 项` : "—",
+ meta: $re(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rj,
+ className: zj,
children: [
/* @__PURE__ */ (0, L.jsx)("article", {
- className: bD(),
- children: /* @__PURE__ */ (0, L.jsx)(xD, {
+ className: xD(),
+ children: /* @__PURE__ */ (0, L.jsx)(SD, {
label: "待永久删除",
- figure: `${zj(e.missing)} 项`,
+ figure: `${Bj(e.missing)} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, L.jsx)("article", {
- className: bD(),
- children: /* @__PURE__ */ (0, L.jsx)(xD, {
+ className: xD(),
+ children: /* @__PURE__ */ (0, L.jsx)(SD, {
label: "空文件夹",
- figure: `${zj(e.empty)} 个`,
+ figure: `${Bj(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, L.jsx)("article", {
- className: bD(),
- children: /* @__PURE__ */ (0, L.jsx)(xD, {
+ className: xD(),
+ children: /* @__PURE__ */ (0, L.jsx)(SD, {
label: "可清理的缓存",
- figure: `${zj(t.files)} 个`,
+ figure: `${Bj(t.files)} 个`,
meta: t.files ? a(t.bytes) : ""
})
})
]
})] });
}
-function Vj({ toast: e }) {
- let t = ej({
- queryKey: iD,
- queryFn: ({ signal: e }) => oD(e),
- start: qre,
+function Hj({ toast: e }) {
+ let t = tj({
+ queryKey: aD,
+ queryFn: ({ signal: e }) => sD(e),
+ start: Kre,
onFinish: (t) => {
if (X.invalidateQueries({
- queryKey: pD,
+ queryKey: mD,
exact: !0
}), X.invalidateQueries({
- queryKey: rD,
+ queryKey: iD,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = lD(t);
- r ? e(`已完成 ${zj(n)} 项,${zj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = uD(t);
+ r ? e(`已完成 ${Bj(n)} 项,${Bj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = ej({
- queryKey: rD,
- queryFn: ({ signal: e }) => aD(e),
- start: Kre,
+ }), n = tj({
+ queryKey: iD,
+ queryFn: ({ signal: e }) => oD(e),
+ start: Gre,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, o = t.running || t.start.isPending, s = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : s ? "重新扫描" : "检查文件", l = (e) => void g({
- title: Lj,
- body: $re(e),
- confirmLabel: Lj,
+ title: Rj,
+ body: Qre(e),
+ confirmLabel: Rj,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = lD(e).left > 0;
+ let t = uD(e).left > 0;
return /* @__PURE__ */ (0, L.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: tie(e, a)
+ children: eie(e, a)
});
}, f = null;
if (u?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "任务失败",
- children: u.error || "任务失败"
+ title: "资源清理未完成",
+ children: u.error || "请查看任务记录,核对已处理的文件。"
});
else if (u) f = d(u);
else if (t.running) f = /* @__PURE__ */ (0, L.jsx)(sw, { label: t.job?.message || "正在复核并清理失效条目…" });
@@ -34455,10 +34455,10 @@ function Vj({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: Ij
+ children: Lj
});
else if (r?.status === "running") {
- let e = Zre(r);
+ let e = Xre(r);
f = /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-1.5 rounded-2lg border border-separator-border px-4 py-3.5",
children: r.total_sources ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(uw, {
@@ -34481,13 +34481,13 @@ function Vj({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Yre(r);
+ let e = Jre(r);
f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(Bj, { scan: r }),
+ /* @__PURE__ */ (0, L.jsx)(Vj, { scan: r }),
e ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "清理内容",
- children: Qre(r)
+ children: Zre(r)
}) : null,
/* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -34495,7 +34495,7 @@ function Vj({ toast: e }) {
variant: "danger",
...Y(o),
onClick: () => l(r),
- children: o ? "正在复核并清理…" : Lj
+ children: o ? "正在复核并清理…" : Rj
}) : /* @__PURE__ */ (0, L.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -34512,23 +34512,23 @@ function Vj({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsx)(fA, {
+ /* @__PURE__ */ (0, L.jsx)(pA, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, L.jsxs)(mA, {
+ /* @__PURE__ */ (0, L.jsxs)(hA, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
"data-resource-scan": !0,
- leadingIcon: s && !i ? Fj : Pj,
+ leadingIcon: s && !i ? Ij : Fj,
...Y(i),
onClick: () => {
i || n.start.mutate();
},
children: c
}),
- children: [/* @__PURE__ */ (0, L.jsx)(pA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(mA, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -34547,16 +34547,16 @@ function Vj({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function Hj(e, t) {
+function Uj(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function Uj({ section: e, label: t, icon: n, value: r, open: i }) {
+function Wj({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
- className: bD({ interactive: !0 }),
+ className: xD({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, L.jsx)(xD, {
+ children: /* @__PURE__ */ (0, L.jsx)(SD, {
label: t,
icon: n,
figure: r.figure,
@@ -34564,80 +34564,80 @@ function Uj({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var Wj = Vw("square-check-big"), Gj = Vw("sparkles"), Kj = Vw("file-stack"), qj = Vw("file-archive"), Jj = Vw("trash"), Yj = [
- uD,
- ZT,
- pT
-], Xj = () => {
- for (let e of Yj) X.invalidateQueries({
+var Gj = Vw("square-check-big"), Kj = Vw("sparkles"), qj = Vw("file-stack"), Jj = Vw("file-archive"), Yj = Vw("trash"), Xj = [
+ dD,
+ QT,
+ mT
+], Zj = () => {
+ for (let e of Xj) X.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function Zj({ toast: e, failure: t, open: n }) {
+function Qj({ toast: e, failure: t, open: n }) {
let r = Ft({
- queryKey: uD,
- queryFn: ({ signal: e }) => mD(e)
+ queryKey: dD,
+ queryFn: ({ signal: e }) => hD(e)
}), i = Ft({
- queryKey: ZT,
- queryFn: ({ signal: e }) => QT(e)
+ queryKey: QT,
+ queryFn: ({ signal: e }) => $T(e)
}), o = Ft({
- queryKey: pT,
- queryFn: ({ signal: e }) => hT(e)
+ queryKey: mT,
+ queryFn: ({ signal: e }) => gT(e)
}), s = Ft({
- queryKey: dD,
- queryFn: ({ signal: e }) => hD(e)
- }), c = Ft({
- queryKey: pD,
+ queryKey: fD,
queryFn: ({ signal: e }) => gD(e)
+ }), c = Ft({
+ queryKey: mD,
+ queryFn: ({ signal: e }) => _D(e)
}), l = Ft({
- queryKey: sT,
- queryFn: ({ signal: e }) => cT(e)
+ queryKey: cT,
+ queryFn: ({ signal: e }) => lT(e)
}), u = (t) => e(t);
return /* @__PURE__ */ (0, L.jsxs)(cw, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: fie,
+ className: die,
children: [
- /* @__PURE__ */ (0, L.jsx)(Uj, {
+ /* @__PURE__ */ (0, L.jsx)(Wj, {
section: "review",
label: "人工复核",
- icon: Wj,
+ icon: Gj,
open: n,
- value: Hj(r, aie)
+ value: Uj(r, iie)
}),
- /* @__PURE__ */ (0, L.jsx)(Uj, {
+ /* @__PURE__ */ (0, L.jsx)(Wj, {
section: "quality",
label: "高清版",
- icon: Gj,
+ icon: Kj,
open: n,
- value: Hj(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: Uj(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, L.jsx)(Uj, {
+ /* @__PURE__ */ (0, L.jsx)(Wj, {
section: "duplicates",
label: "重复文件",
- icon: Kj,
+ icon: qj,
open: n,
- value: Hj(o, (e) => Number(e.total || 0) ? {
+ value: Uj(o, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${a(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, L.jsx)(Uj, {
+ /* @__PURE__ */ (0, L.jsx)(Wj, {
section: "ads",
label: "垃圾文件",
- icon: qj,
+ icon: Jj,
open: n,
- value: Hj(s, (e) => ({
+ value: Uj(s, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: oie(e)
+ meta: aie(e)
}))
}),
- /* @__PURE__ */ (0, L.jsx)(Uj, {
+ /* @__PURE__ */ (0, L.jsx)(Wj, {
section: "trash",
label: "回收站",
- icon: Jj,
+ icon: Yj,
open: n,
- value: Hj(c, (e) => ({
+ value: Uj(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${a(e.bytes || 0)}` : ""
}))
@@ -34650,29 +34650,29 @@ function Zj({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, L.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, L.jsx)(UA, {
+ children: /* @__PURE__ */ (0, L.jsx)(WA, {
toast: u,
monitor: !0,
- onComplete: Xj
+ onComplete: Zj
})
}),
/* @__PURE__ */ (0, L.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, L.jsx)(rj, {})
+ children: /* @__PURE__ */ (0, L.jsx)(ij, {})
}),
- /* @__PURE__ */ (0, L.jsx)(Nj, {
+ /* @__PURE__ */ (0, L.jsx)(Pj, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(xj, {}),
- sD(l.data) ? /* @__PURE__ */ (0, L.jsx)(Vj, { toast: e }) : null
+ /* @__PURE__ */ (0, L.jsx)(Sj, {}),
+ cD(l.data) ? /* @__PURE__ */ (0, L.jsx)(Hj, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function Qj({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function $j({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -34699,7 +34699,7 @@ function Qj({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/components/use-stuck.ts
-function $j(e) {
+function eM(e) {
(0, I.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -34717,9 +34717,9 @@ function $j(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function eM({ title: e, children: t }) {
+function tM({ title: e, children: t }) {
let n = (0, I.useRef)(null);
- return $j(n), /* @__PURE__ */ (0, L.jsxs)("div", {
+ return eM(n), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -34732,9 +34732,9 @@ function eM({ title: e, children: t }) {
}), t]
});
}
-function tM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function nM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
let d = (0, I.useRef)(null);
- return $j(d), /* @__PURE__ */ (0, L.jsxs)("div", {
+ return eM(d), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -34761,22 +34761,22 @@ function tM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
]
});
}
-var nM = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function rM({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var rM = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function iM({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: XC(nM, r),
+ className: XC(rM, r),
onClick: n,
children: e
});
}
-var iM = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function aM({ children: e, onPress: t, busy: n = !1 }) {
+var aM = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function oM({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
- className: iM,
+ className: aM,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -34787,29 +34787,29 @@ function aM({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var oM = Vw("play"), sM = Vw("file-stack"), cM = aw({
+var sM = Vw("play"), cM = Vw("file-stack"), lM = aw({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), lM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", uM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", dM = "font-mono text-caption-1-regular leading-5 text-text-secondary", fM = () => {
+}), uM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", dM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", fM = "font-mono text-caption-1-regular leading-5 text-text-secondary", pM = () => {
X.invalidateQueries({
- queryKey: pT,
+ queryKey: mT,
exact: !0
}), X.invalidateQueries({
- queryKey: pD,
+ queryKey: mD,
exact: !0
});
};
-function pM(e) {
+function mM(e) {
return e.identical ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${uM} text-(--keep)`,
+ className: `${dM} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${uM} text-text-secondary`,
+ className: `${dM} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function mM({ file: t, openItem: n }) {
+function hM({ file: t, openItem: n }) {
let r = () => n(t.id);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -34819,7 +34819,7 @@ function mM({ file: t, openItem: n }) {
onClick: r,
"aria-label": `预览 ${t.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, L.jsx)(oM, {
+ children: [/* @__PURE__ */ (0, L.jsx)(sM, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, L.jsx)("img", {
@@ -34843,55 +34843,55 @@ function mM({ file: t, openItem: n }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, L.jsx)("i", {
- className: `${lM} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${uM} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, L.jsx)("i", {
- className: `${lM} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${uM} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
- className: `${dM} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: m[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ className: `${fM} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, L.jsx)(FA, { mark: m[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, L.jsx)("span", {
- className: dM,
+ className: fM,
children: a(t.size || 0)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
- className: dM,
+ className: fM,
children: i(t.duration)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${dM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${fM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
});
}
-function hM({ openItem: t, toast: n, failure: r }) {
+function gM({ openItem: t, toast: n, failure: r }) {
let i = Ft({
- queryKey: pT,
- queryFn: ({ signal: e }) => hT(e)
+ queryKey: mT,
+ queryFn: ({ signal: e }) => gT(e)
}), o = Ft({
- queryKey: sT,
- queryFn: ({ signal: e }) => cT(e)
+ queryKey: cT,
+ queryFn: ({ signal: e }) => lT(e)
}), [s, c] = (0, I.useState)(""), l = It({
- mutationFn: (e) => CT(e, "dispose"),
+ mutationFn: (e) => wT(e, "dispose"),
onSuccess: (e, t) => {
- fM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ pM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await CT(t, "restore");
+ await wT(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
- fM();
+ pM();
}
} });
},
@@ -34901,16 +34901,16 @@ function hM({ openItem: t, toast: n, failure: r }) {
className: "mx-auto w-full max-w-board",
children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "读取失败",
- children: i.error ? K(i.error) : "读取重复文件失败"
+ title: "重复文件读取失败",
+ children: i.error ? K(i.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let d = u.groups ?? [], f = dT(o.data), p = ({ groups: e, keep: t, key: n }) => {
+ let d = u.groups ?? [], f = fT(o.data), p = ({ groups: e, keep: t, key: n }) => {
if (l.isPending) return;
- let r = xT(e, t);
+ let r = ST(e, t);
r.length && g({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${_T[t] ?? _T.largest}。文件共 ${a(ST(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${vT[t] ?? vT.largest}。文件共 ${a(CT(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), l.mutateAsync(r))
});
@@ -34918,15 +34918,15 @@ function hM({ openItem: t, toast: n, failure: r }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(Qj, {
+ /* @__PURE__ */ (0, L.jsx)($j, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${a(u.reclaimable)}`
}),
- d.length ? /* @__PURE__ */ (0, L.jsxs)(eM, {
+ d.length ? /* @__PURE__ */ (0, L.jsxs)(tM, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, L.jsx)(aM, {
+ /* @__PURE__ */ (0, L.jsx)(oM, {
busy: s === "all:largest",
onPress: () => p({
groups: d,
@@ -34935,7 +34935,7 @@ function hM({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, L.jsx)(aM, {
+ /* @__PURE__ */ (0, L.jsx)(oM, {
busy: s === "all:longest",
onPress: () => p({
groups: d,
@@ -34944,7 +34944,7 @@ function hM({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- bT(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(aM, {
+ xT(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(oM, {
busy: s === `all:${t}`,
onPress: () => p({
groups: d,
@@ -34967,7 +34967,7 @@ function hM({ openItem: t, toast: n, failure: r }) {
let i = [n], o = (e) => `${r}:${e}`;
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": n.code,
- className: cM,
+ className: lM,
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -34979,9 +34979,9 @@ function hM({ openItem: t, toast: n, failure: r }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${a(n.reclaimable)}`
}),
- pM(n),
+ mM(n),
n.cross_drive ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${uM} text-text-secondary`,
+ className: `${dM} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, L.jsxs)("span", {
@@ -35009,7 +35009,7 @@ function hM({ openItem: t, toast: n, failure: r }) {
}),
children: "留最长"
}),
- yT(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {
+ bT(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
...m(o(t)),
@@ -35034,13 +35034,13 @@ function hM({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(mM, {
+ }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(hM, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
}) : /* @__PURE__ */ (0, L.jsx)(ow, {
- icon: sM,
+ icon: cM,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -35049,43 +35049,43 @@ function hM({ openItem: t, toast: n, failure: r }) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var gM = "/api/follow/authors", _M = "/api/follow/tags", vM = (e) => [
+var _M = "/api/follow/authors", vM = "/api/follow/tags", yM = (e) => [
"follow",
"authors",
e
-], yM = (e, t) => [
+], bM = (e, t) => [
"follow",
"tags",
e,
t
];
-function bM(e, t, n) {
+function xM(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${gM}?${r}`;
+ return e && r.set("q", e), `${_M}?${r}`;
}
-function xM(e, t, n, r) {
+function SM(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${_M}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${vM}?${i}`;
}
-var SM = (e, t, n, r) => iw(bM(e, t, n), r), CM = (e, t, n, r, i) => iw(xM(e, t, n, r), i), wM = "/api/index", TM = {
+var CM = (e, t, n, r) => iw(xM(e, t, n), r), wM = (e, t, n, r, i) => iw(SM(e, t, n, r), i), TM = "/api/index", EM = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, EM = {
+}, DM = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, DM = [
+}, OM = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -35095,26 +35095,26 @@ var SM = (e, t, n, r) => iw(bM(e, t, n), r), CM = (e, t, n, r, i) => iw(xM(e, t,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], OM = [
+], kM = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], kM = {
+], AM = {
people: 120,
tags: 180
-}, AM = (e) => e !== "tags", jM = (e) => e === "studios" || e === "agencies";
-function MM(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? OM : DM).some(([t]) => t === e.category);
+}, jM = (e) => e !== "tags", MM = (e) => e === "studios" || e === "agencies";
+function NM(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? kM : OM).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function NM(e) {
+function PM(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -35133,50 +35133,50 @@ function NM(e) {
q: n
};
}
-var PM = (e, t, n = "all") => [
+var FM = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function FM(e, t, n, r, i) {
+function IM(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${wM}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${TM}?${a}`;
}
-function IM(e) {
- let t = e.what === "people" || e.what === "online-authors" ? kM.people : kM.tags, n = {
+function LM(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? AM.people : AM.tags, n = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...n,
- queryKey: PM(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => iw(FM(e.kind, e.q, "all", t, n), r)
+ queryKey: FM(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => iw(IM(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: PM("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => iw(FM("tags", e.q, e.category, t, n), r)
+ queryKey: FM("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => iw(IM("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: vM(e.q),
- queryFn: ({ pageParam: n, signal: r }) => SM(e.q, t, n, r)
+ queryKey: yM(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => CM(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: yM(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => CM(e.q, e.category, t, n, r)
+ queryKey: bM(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => wM(e.q, e.category, t, n, r)
};
}
}
-async function LM(e, t) {
- let n = IM(NM(MM(e)));
+async function RM(e, t) {
+ let n = LM(PM(NM(e)));
X.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -35190,13 +35190,13 @@ async function LM(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var RM = (e) => e ? e.pages.flatMap((e) => e.items) : [], zM = (e, t) => `${e}${t ? "+" : ""} 项`, BM = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", VM = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), HM = {
+var zM = (e) => e ? e.pages.flatMap((e) => e.items) : [], BM = (e, t) => `${e}${t ? "+" : ""} 项`, VM = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", HM = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), UM = {
numeric: !0,
sensitivity: "base"
};
-function UM(e, t) {
+function WM(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", HM))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", UM))) {
let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -35204,7 +35204,7 @@ function UM(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function WM({ html: e, face: t, company: n, big: r }) {
+function GM({ html: e, face: t, company: n, big: r }) {
let i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -35216,8 +35216,8 @@ function WM({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var GM = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function KM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var KM = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function qM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
...a,
@@ -35227,7 +35227,7 @@ function KM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
radius: "plain",
padding: "none",
interactive: !0,
- className: `${GM} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${KM} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -35244,8 +35244,8 @@ function KM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function qM({ kind: e, items: t, layout: n, props: r }) {
- let i = EM[e], a = jM(e), o = n === "big";
+function JM({ kind: e, items: t, layout: n, props: r }) {
+ let i = DM[e], a = MM(e), o = n === "big";
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -35253,14 +35253,14 @@ function qM({ kind: e, items: t, layout: n, props: r }) {
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, L.jsx)(KM, {
+ return /* @__PURE__ */ (0, L.jsx)(qM, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: VM(e, t),
+ readout: HM(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, L.jsx)(WM, {
+ children: /* @__PURE__ */ (0, L.jsx)(GM, {
html: n.html,
face: n.face,
company: a,
@@ -35270,21 +35270,21 @@ function qM({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function JM({ items: e, layout: t, props: n }) {
+function YM({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(KM, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(qM, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
readout: `${e.n.toLocaleString()} 项更新`,
big: r,
onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, L.jsx)(WM, {
+ children: /* @__PURE__ */ (0, L.jsx)(GM, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -35294,7 +35294,7 @@ function JM({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function YM(e) {
+function XM(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
let a = e.closest(".dual-range");
@@ -35306,8 +35306,8 @@ function YM(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var XM = "/vendor/swiper/14.2.0/", ZM = null, QM = () => ZM ??= Promise.all([new Promise((e, t) => {
- let n = `${XM}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var ZM = "/vendor/swiper/14.2.0/", QM = null, $M = () => QM ??= Promise.all([new Promise((e, t) => {
+ let n = `${ZM}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -35321,11 +35321,11 @@ var XM = "/vendor/swiper/14.2.0/", ZM = null, QM = () => ZM ??= Promise.all([new
return;
}
let r = document.createElement("script");
- r.src = `${XM}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${ZM}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw ZM = null, e;
+ throw QM = null, e;
});
-function $M(e, t, n) {
+function eN(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -35346,48 +35346,48 @@ function $M(e, t, n) {
}
};
}
-var eN = (e) => {
+var tN = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : a(t)).replace(" ", "\xA0") : "大小未知";
-}, tN = (e) => e.asset?.name || e.name || "未命名图片";
-function nN(t, n) {
+}, nN = (e) => e.asset?.name || e.name || "未命名图片";
+function rN(t, n) {
let r = t.asset;
- if (r) return [e[r.location ?? ""] || r.location || "来源未知", eN(r.size)].join(" · ");
+ if (r) return [e[r.location ?? ""] || r.location || "来源未知", tN(r.size)].join(" · ");
let i = (t.total ?? 0) > 1 ? `第 ${t.position} / ${t.total} 张` : "", a = n?.[0] && n[1] ? `${n[0]} × ${n[1]}` : "";
return [
t.source || "在线图片",
i,
a,
- t.size ? eN(t.size) : ""
+ t.size ? tN(t.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var rN = null, iN = null, aN = 0;
-function oN() {
- return (!iN || !rN?.isConnected) && (iN?.unmount(), rN = document.createElement("div"), rN.className = "peach-react", rN.dataset.photoLightboxHost = "", document.body.append(rN), iN = (0, SS.createRoot)(rN)), iN;
+var iN = null, aN = null, oN = 0;
+function sN() {
+ return (!aN || !iN?.isConnected) && (aN?.unmount(), iN = document.createElement("div"), iN.className = "peach-react", iN.dataset.photoLightboxHost = "", document.body.append(iN), aN = (0, SS.createRoot)(iN)), aN;
}
-async function sN(e, t, n) {
+async function cN(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await QM();
+ r = await $M();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = oN();
- (0, Th.flushSync)(() => i.render(/* @__PURE__ */ (0, L.jsx)(lN, {
+ let i = sN();
+ (0, Th.flushSync)(() => i.render(/* @__PURE__ */ (0, L.jsx)(uN, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++aN)));
+ }, ++oN)));
}
-function cN() {
- iN && (0, Th.flushSync)(() => iN.render(null));
+function lN() {
+ aN && (0, Th.flushSync)(() => aN.render(null));
}
-function lN({ slides: e, index: t, Swiper: n, host: r }) {
+function uN({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, I.useId)(), o = (0, I.useRef)(null), c = (0, I.useRef)(null), l = (0, I.useRef)(null), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = (0, I.useRef)(null), [v, y] = (0, I.useState)(t), [b, x] = (0, I.useState)(100), [S, C] = (0, I.useState)({}), [w, T] = (0, I.useState)(() => /* @__PURE__ */ new Set()), [E, O] = (0, I.useState)(!1), [j, M] = (0, I.useState)({
at: t,
text: ""
@@ -35430,7 +35430,7 @@ function lN({ slides: e, index: t, Swiper: n, host: r }) {
y(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), g.current = $M(e, a, x);
+ i(t, 0), g.current = eN(e, a, x);
let s = A(e, p.current, m.current), h = (e = !1) => {
s.hide(), p.current?.setAttribute("aria-expanded", "false"), e && p.current && document.contains(p.current) && p.current.focus();
};
@@ -35447,13 +35447,13 @@ function lN({ slides: e, index: t, Swiper: n, host: r }) {
});
v.observe(e);
let b = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : cN());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : lN());
};
return document.addEventListener("keydown", b, !0), () => {
document.removeEventListener("keydown", b, !0), h(), v.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), g.current = null, _.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, I.useLayoutEffect)(() => {
- h.current && YM(h.current);
+ h.current && XM(h.current);
}, [b]);
let N = e[v], ee = N.asset ?? null, te = async (e) => {
if (!ee || !r || e.getAttribute("aria-busy") === "true") return;
@@ -35484,18 +35484,18 @@ function lN({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), cN();
+ e.preventDefault(), lN();
},
onClick: (e) => {
let t = e.target;
- _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && cN();
+ _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && lN();
},
children: [
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: cN,
+ onClick: lN,
dangerouslySetInnerHTML: { __html: s("x") }
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -35628,10 +35628,10 @@ function lN({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: tN(N)
+ children: nN(N)
}, v), /* @__PURE__ */ (0, L.jsx)("span", {
"data-photo-detail-meta": "",
- children: nN(N, S[v])
+ children: rN(N, S[v])
})]
}),
/* @__PURE__ */ (0, L.jsx)("button", {
@@ -35670,33 +35670,33 @@ function lN({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function uN(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, L.jsx)(dN, {
+function dN(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, L.jsx)(fN, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, L.jsx)(fN, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, L.jsx)(vN, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, L.jsx)(pN, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, L.jsx)(yN, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function dN({ roster: e, props: t }) {
+function fN({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, I.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, L.jsx)(qM, {
+ return /* @__PURE__ */ (0, L.jsx)(JM, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function fN(e) {
+function pN(e) {
let t = Aw(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, L.jsx)(Zw, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, L.jsx)(Qw, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -35716,16 +35716,16 @@ function fN(e) {
}) : null]
});
}
-var pN = (e) => Array.from({ length: e.n }, (t, n) => ({
+var mN = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), mN = (e) => e.sample === !0, hN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, gN = (e) => mN(e) ? `/sample-thumb?${hN(e)}` : `/photo-thumb?id=${e.id}`, _N = (e) => mN(e) ? {
- src: `/sample-image?${hN(e)}`,
- thumb: gN(e),
+})), hN = (e) => e.sample === !0, gN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, _N = (e) => hN(e) ? `/sample-thumb?${gN(e)}` : `/photo-thumb?id=${e.id}`, vN = (e) => hN(e) ? {
+ src: `/sample-image?${gN(e)}`,
+ thumb: _N(e),
name: e.name,
asset: null,
source: e.source,
@@ -35733,18 +35733,18 @@ var pN = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: gN(e),
+ thumb: _N(e),
name: e.name || "",
asset: e
};
-function vN({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, I.useMemo)(() => [...e.codeSets.flatMap(pN), ...e.items], [e]), [s, c] = (0, I.useState)(() => /* @__PURE__ */ new Set()), l = (0, I.useCallback)((e) => c((t) => {
+function yN({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, I.useMemo)(() => [...e.codeSets.flatMap(mN), ...e.items], [e]), [s, c] = (0, I.useState)(() => /* @__PURE__ */ new Set()), l = (0, I.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, I.useCallback)((e) => {
- sN(e, o.map(_N), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, L.jsx)(bN, {
+ cN(e, o.map(vN), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, L.jsx)(xN, {
item: e,
index: t,
lost: s.has(t),
@@ -35762,7 +35762,7 @@ function vN({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(yN, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(bN, {
label: e.code,
title: e.name,
meta: [
@@ -35774,7 +35774,7 @@ function vN({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, L.jsx)(yN, {
+ m.length && e.total ? /* @__PURE__ */ (0, L.jsx)(bN, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -35783,14 +35783,14 @@ function vN({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, L.jsx)(tT, {
+ e.hasMore ? /* @__PURE__ */ (0, L.jsx)(nT, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function yN({ label: e, title: t, meta: n }) {
+function bN({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -35807,7 +35807,7 @@ function yN({ label: e, title: t, meta: n }) {
]
});
}
-function bN({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function xN({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
@@ -35816,7 +35816,7 @@ function bN({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, L.jsx)("img", {
- src: gN(e),
+ src: _N(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -35827,10 +35827,10 @@ function bN({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
}
//#endregion
//#region src/react/components/segmented.tsx
-var xN = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", SN = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", CN = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", wN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", TN = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
+var SN = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", CN = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", wN = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", TN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", EN = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
//#endregion
//#region src/react/components/use-view-glide.ts
-function EN(e, t) {
+function DN(e, t) {
if (!t.contains(e)) return null;
let n = 0, r = 0;
for (let i = e; i && i !== t; i = i.offsetParent) n += i.offsetLeft, r += i.offsetTop;
@@ -35846,11 +35846,11 @@ function EN(e, t) {
h: e.offsetHeight
};
}
-function DN(e, t, n, r) {
+function ON(e, t, n, r) {
let i = (0, I.useRef)(null), a = (0, I.useCallback)((r, a) => {
let o = e.current, s = t.current, c = o?.parentElement;
if (!o) return;
- let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? EN(l, c) : null;
+ let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? DN(l, c) : null;
if (!u || !u.w) {
o.hidden = !0;
return;
@@ -35888,19 +35888,19 @@ function DN(e, t, n, r) {
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var ON = (e) => e === "videos", kN = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var kN = (e) => e === "videos", AN = () => /* @__PURE__ */ (0, L.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function AN(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = ON(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = DN(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = DN(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function jN(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = kN(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = ON(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = ON(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, I.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(MN, {
+ }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(NN, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, L.jsx)(tM, {
+ }), /* @__PURE__ */ (0, L.jsx)(nM, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -35920,13 +35920,13 @@ function AN(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(jN, {
+ top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(MN, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, L.jsx)(kN, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, L.jsx)(AN, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -35946,11 +35946,11 @@ function AN(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, L.jsx)(kN, {})]
+ }, e.k)), /* @__PURE__ */ (0, L.jsx)(AN, {})]
}), /* @__PURE__ */ (0, L.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(rM, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(iM, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -35962,10 +35962,10 @@ function AN(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, L.jsx)(NN, { ...e })
+ bottom: /* @__PURE__ */ (0, L.jsx)(PN, { ...e })
})] });
}
-function jN({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function MN({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -36007,7 +36007,7 @@ function jN({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function MN({ items: e, hidden: t, actions: n }) {
+function NN({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -36027,7 +36027,7 @@ function MN({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function NN(e) {
+function PN(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: c } = e;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, L.jsxs)("button", {
@@ -36039,22 +36039,22 @@ function NN(e) {
dangerouslySetInnerHTML: { __html: s("chevron-left") }
}), /* @__PURE__ */ (0, L.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(PN, {
+ /* @__PURE__ */ (0, L.jsx)(FN, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(LN, {
+ t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(RN, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(RN, {
+ t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(zN, {
head: a,
actions: o,
helpers: c
}) : null
] });
}
-function PN({ text: e, busy: t }) {
+function FN({ text: e, busy: t }) {
return /* @__PURE__ */ (0, L.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, L.jsx)("span", {
@@ -36064,21 +36064,21 @@ function PN({ text: e, busy: t }) {
}) : e
});
}
-function FN({ label: e, value: t, options: n, onChange: r }) {
- return /* @__PURE__ */ (0, L.jsx)(Ek, {
+function IN({ label: e, value: t, options: n, onChange: r }) {
+ return /* @__PURE__ */ (0, L.jsx)(Dk, {
"aria-label": e,
orientation: "horizontal",
value: t,
onChange: r,
"data-entity-layout": "",
- className: wN,
+ className: TN,
children: n.map(([e, t, n]) => {
let r = Vw(n);
- return /* @__PURE__ */ (0, L.jsx)(Dk, {
+ return /* @__PURE__ */ (0, L.jsx)(Ok, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: TN,
+ className: EN,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -36088,7 +36088,7 @@ function FN({ label: e, value: t, options: n, onChange: r }) {
})
});
}
-function IN({ onPress: e, busy: t = !1 }) {
+function LN({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -36102,12 +36102,12 @@ function IN({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? k("正在换一批") : s("shuffle") }
});
}
-function LN({ head: e, actions: t }) {
+function RN({ head: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(IN, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, L.jsx)(FN, {
+ /* @__PURE__ */ (0, L.jsx)(LN, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, L.jsx)(IN, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
@@ -36128,20 +36128,20 @@ function LN({ head: e, actions: t }) {
]
});
}
-function RN({ head: e, actions: t, helpers: n }) {
+function zN({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, I.useState)(!1), a = (0, I.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, I.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, L.jsx)(IN, {
+ e.shuffle ? /* @__PURE__ */ (0, L.jsx)(LN, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, L.jsx)(FN, {
+ /* @__PURE__ */ (0, L.jsx)(IN, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -36155,7 +36155,7 @@ function RN({ head: e, actions: t, helpers: n }) {
]
});
}
-function zN(e) {
+function BN(e) {
return {
x0: 0,
y0: 0,
@@ -36163,7 +36163,7 @@ function zN(e) {
y1: e.height
};
}
-function BN(e) {
+function VN(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -36171,40 +36171,40 @@ function BN(e) {
y1: Math.round(e.y1)
};
}
-function VN(e) {
+function HN(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function HN(e, t) {
- if (!VN(e)) return {
+function UN(e, t) {
+ if (!HN(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return zN(e);
+ if (t == null || !(t > 0)) return BN(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return BN({
+ return VN({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function UN(e, t) {
- if (!VN(e) || !(t > 0)) return zN(e);
+function WN(e, t) {
+ if (!HN(e) || !(t > 0)) return BN(e);
let n = Math.min(e.width, e.height * t);
- return BN({
+ return VN({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function WN(e, t, n) {
- if (!VN(t) || !(n > 0)) return zN(t);
- let r = GN(e, t), i = HN({
+function GN(e, t, n) {
+ if (!HN(t) || !(n > 0)) return BN(t);
+ let r = KN(e, t), i = UN({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -36215,8 +36215,8 @@ function WN(e, t, n) {
y1: r.y0 + i.y1
};
}
-function GN(e, t, n = null, r = "width") {
- if (!VN(t)) return {
+function KN(e, t, n = null, r = "width") {
+ if (!HN(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -36225,43 +36225,43 @@ function GN(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return BN({
+ return VN({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function KN(e, t, n, r) {
+function qN(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return BN({
+ return VN({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function qN(e, t, n, r = null) {
- if (!VN(n) || !(t > 0)) return e;
+function JN(e, t, n, r = null) {
+ if (!HN(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return GN({
+ return KN({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function JN(e, t, n, r, i = null) {
+function YN(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return GN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return KN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function YN(e, t) {
- return VN(t) ? {
+function XN(e, t) {
+ return HN(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -36273,8 +36273,8 @@ function YN(e, t) {
height: 0
};
}
-function XN(e, t) {
- if (!VN(t)) return {
+function ZN(e, t) {
+ if (!HN(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -36284,7 +36284,7 @@ function XN(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function ZN(e, t) {
+function QN(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -36293,25 +36293,25 @@ function ZN(e, t) {
height: `${t.height / r * 100}%`
};
}
-function QN(e, t, n) {
+function $N(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var $N = {
+var eP = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function eP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- return /* @__PURE__ */ (0, L.jsx)(Ck, {
+function tP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ return /* @__PURE__ */ (0, L.jsx)(wk, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, L.jsx)(tae, {
- className: `flex max-h-full w-full ${$N[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, L.jsx)(yk, {
+ children: /* @__PURE__ */ (0, L.jsx)(eae, {
+ className: `flex max-h-full w-full ${eP[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, L.jsx)(bk, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -36319,7 +36319,7 @@ function eP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function tP({ children: e }) {
+function nP({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -36328,8 +36328,8 @@ function tP({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var nP = .02, rP = 1.08;
-function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var rP = .02, iP = 1.08;
+function aP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, I.useRef)(null), c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
u(!1);
@@ -36340,8 +36340,8 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: QN(e, n.clientWidth, r.width),
- dy: QN(t, n.clientHeight, r.height)
+ dx: $N(e, n.clientWidth, r.width),
+ dy: $N(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -36359,29 +36359,29 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(KN(n.box, o.dx, o.dy, r));
+ i(qN(n.box, o.dx, o.dy, r));
return;
}
- i(JN(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ i(YN(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function m(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function h(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * nP), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * rP), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(KN(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(qN(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(qN(n, e.key === "-" ? 1 / rP : rP, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(JN(n, e.key === "-" ? 1 / iP : iP, r, t)));
}
- let g = n && r ? YN(GN(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? XN(KN(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -36400,7 +36400,7 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- VN({
+ HN({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -36439,7 +36439,7 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(qN(n, e.deltaY > 0 ? rP : 1 / rP, r, t));
+ !n || !r || i(JN(n, e.deltaY > 0 ? iP : 1 / iP, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, L.jsx)("span", {
@@ -36461,29 +36461,29 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var aP = "/api/avatar-choices", oP = "/api/avatar-pick", sP = "/api/avatar-code-cover", cP = "/avatar-choice", lP = (e, t) => [
+var oP = "/api/avatar-choices", sP = "/api/avatar-pick", cP = "/api/avatar-code-cover", lP = "/avatar-choice", uP = (e, t) => [
"avatar-choices",
e,
t
-], uP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, dP = (e, t, n) => `${cP}${uP(e, t)}&ref=${encodeURIComponent(n)}`, fP = (e, t, n) => iw(aP + uP(e, t), n), pP = (e) => q(sP, { code: e });
-function mP(e, t, n) {
+], dP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, fP = (e, t, n) => `${lP}${dP(e, t)}&ref=${encodeURIComponent(n)}`, pP = (e, t, n) => iw(oP + dP(e, t), n), mP = (e) => q(cP, { code: e });
+function hP(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? WN(e.focus, t, n) : HN(t, n);
+ return e.focus && r ? GN(e.focus, t, n) : UN(t, n);
}
-var hP = (e) => e.crop && VN({
+var gP = (e) => e.crop && HN({
width: e.width,
height: e.height
});
-async function gP(e, t, n) {
+async function _P(e, t, n) {
if (!("file" in n)) {
- await q(oP, {
+ await q(sP, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${oP}${uP(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${sP}${dP(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
@@ -36492,30 +36492,30 @@ async function gP(e, t, n) {
let a = await i.json().catch(() => null);
throw new nw(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function _P(e, t) {
+function vP(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var vP = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function yP(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${vP(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var yP = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function bP(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${yP(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var bP = (e) => e.cast > 1, xP = (e) => bP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, SP = {
+var xP = (e) => e.cast > 1, SP = (e) => xP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, CP = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function CP(e) {
+function wP(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var wP = (e) => `${SP[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (bP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), TP = 8, EP = 3 / 4;
-function DP({ kind: e, entityId: t, name: n, onPicked: r }) {
+var TP = (e) => `${CP[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (xP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), EP = 8, DP = 3 / 4;
+function OP({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, I.useState)(!1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -36530,12 +36530,12 @@ function DP({ kind: e, entityId: t, name: n, onPicked: r }) {
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, L.jsx)(eP, {
+ }), /* @__PURE__ */ (0, L.jsx)(tP, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, L.jsx)(OP, {
+ children: /* @__PURE__ */ (0, L.jsx)(kP, {
kind: e,
entityId: t,
name: n,
@@ -36544,39 +36544,39 @@ function DP({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, I.useRef)(null), o = hA(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = lP(e, t), g = (0, I.useRef)(!1), _ = Ft({
+function kP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, I.useRef)(null), o = gA(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = uP(e, t), g = (0, I.useRef)(!1), _ = Ft({
queryKey: h,
- queryFn: ({ signal: n }) => fP(e, t, n),
+ queryFn: ({ signal: n }) => pP(e, t, n),
retryOnMount: !0
});
(0, I.useEffect)(() => () => {
- g.current && X.removeQueries({ queryKey: lP(e, t) });
+ g.current && X.removeQueries({ queryKey: uP(e, t) });
}, [e, t]);
let v = It({
- mutationFn: (n) => gP(e, t, n),
+ mutationFn: (n) => _P(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = It({
- mutationFn: (e) => pP(e),
+ mutationFn: (e) => mP(e),
onSuccess: (e) => m(e)
});
function b(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : yP(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : bP(x);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, L.jsx)(tP, { children: /* @__PURE__ */ (0, L.jsx)(rC, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, L.jsx)(nP, { children: /* @__PURE__ */ (0, L.jsx)(rC, { className: "size-6" }) }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(UD, {
+ children: [/* @__PURE__ */ (0, L.jsx)(WD, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
@@ -36587,7 +36587,7 @@ function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? xP(p) : _P(n, x)
+ children: p ? SP(p) : vP(n, x)
}),
T ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
@@ -36599,14 +36599,14 @@ function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsx)(_A, {
+ /* @__PURE__ */ (0, L.jsx)(vA, {
icon: MS,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, L.jsx)(AP, {
+ }), p ? /* @__PURE__ */ (0, L.jsx)(jP, {
kind: e,
entityId: t,
choice: p,
@@ -36629,7 +36629,7 @@ function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: TP }, (e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: EP }, (e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -36642,15 +36642,15 @@ function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: wP(n),
+ title: TP(n),
...Y(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, L.jsx)(kP, {
- src: dP(e, t, n.ref),
+ /* @__PURE__ */ (0, L.jsx)(AP, {
+ src: fP(e, t, n.ref),
choice: n
}),
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -36665,7 +36665,7 @@ function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- bP(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ xP(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, L.jsxs)($C, {
variant: "caption",
@@ -36686,7 +36686,7 @@ function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(Oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(kj, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -36721,7 +36721,7 @@ function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(Oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(kj, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -36741,7 +36741,7 @@ function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function kP({ src: e, choice: t }) {
+function AP({ src: e, choice: t }) {
let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -36749,7 +36749,7 @@ function kP({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = hP(t) ? ZN(mP(t, a, EP), a) : null, s = r ? !0 : void 0;
+ }, o = gP(t) ? QN(hP(t, a, DP), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, L.jsx)("img", {
@@ -36774,23 +36774,23 @@ function kP({ src: e, choice: t }) {
})]
});
}
-function AP({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = dP(e, t, s), m = hA();
+function jP({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = fP(e, t, s), m = gA();
function h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? XN(d, l) : null;
+ let g = d && l ? ZN(d, l) : null;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, L.jsx)(iP, {
+ children: [/* @__PURE__ */ (0, L.jsx)(aP, {
src: p,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), VN(e) && f(s === n.ref ? mP(n, e, 1) : HN(e, 1));
+ u(e), HN(e) && f(s === n.ref ? hP(n, e, 1) : UN(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
@@ -36804,7 +36804,7 @@ function AP({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
"data-crop-base": !0,
onClick: () => h(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: CP(e)
+ children: wP(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36838,12 +36838,12 @@ function AP({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var jP = {
+var MP = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function MP({ name: e }) {
- let t = jP[e];
+function NP({ name: e }) {
+ let t = MP[e];
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -36853,19 +36853,19 @@ function MP({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function NP(e, t) {
+function PP(e, t) {
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8;
t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;
}
-var PP = (e) => !!e?.isConnected && e.matches(":popover-open");
-function FP(e, t, n, r) {
+var FP = (e) => !!e?.isConnected && e.matches(":popover-open");
+function IP(e, t, n, r) {
let i = (0, I.useRef)(r);
i.current = r, (0, I.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && PP(n.current) ? NP(t.current, n.current) : i.current();
+ t.current && FP(n.current) ? PP(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -36879,17 +36879,17 @@ function FP(e, t, n, r) {
n
]);
}
-function IP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function LP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, I.useRef)(null), s = (0, I.useRef)(null), [c, l] = (0, I.useState)(!1), u = (0, I.useRef)(!1), d = (0, I.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, PP(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, FP(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || PP(s.current)) && (s.current.showPopover(), NP(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || FP(s.current)) && (s.current.showPopover(), PP(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();
}, 150);
};
- return FP(c, o, s, f), (0, I.useEffect)(() => {
+ return IP(c, o, s, f), (0, I.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -36915,7 +36915,7 @@ function IP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && PP(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && FP(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36933,16 +36933,16 @@ function IP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function LP({ following: e, busy: t, onToggle: n, tip: r }) {
+function RP({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(null), [s, c] = (0, I.useState)(!1), l = (0, I.useRef)(!1), u = () => {
- PP(o.current) && o.current.hidePopover(), c(!1);
+ FP(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || PP(o.current) || (o.current.showPopover(), NP(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || FP(o.current) || (o.current.showPopover(), PP(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return FP(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
- i.current && PP(o.current) && NP(i.current, o.current);
+ return IP(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
+ i.current && FP(o.current) && PP(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, L.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -36951,7 +36951,7 @@ function LP({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, L.jsx)(MP, { name: "rss" }),
+ /* @__PURE__ */ (0, L.jsx)(NP, { name: "rss" }),
/* @__PURE__ */ (0, L.jsx)("input", {
ref: a,
type: "checkbox",
@@ -36986,29 +36986,29 @@ function LP({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function RP({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function zP({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, L.jsxs)(qie, {
+ }, []), /* @__PURE__ */ (0, L.jsxs)(Kie, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, L.jsx)(VD, {
+ children: [/* @__PURE__ */ (0, L.jsx)(HD, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, L.jsx)(MP, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, L.jsx)(ck, {
+ children: /* @__PURE__ */ (0, L.jsx)(NP, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, L.jsx)(lk, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: sA,
+ className: cA,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, L.jsxs)(Yie, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Jie, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(hk, {
+ /* @__PURE__ */ (0, L.jsx)(gk, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -37016,28 +37016,28 @@ function RP({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(_k, {
+ children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(vk, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, L.jsx)(NP, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(kie, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, L.jsx)(hk, { children: /* @__PURE__ */ (0, L.jsxs)(_k, {
+ /* @__PURE__ */ (0, L.jsx)(Oie, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, L.jsx)(gk, { children: /* @__PURE__ */ (0, L.jsxs)(vk, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(NP, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var zP = (e) => e === "studio" || e === "agency", BP = (e) => e === "performer" || e === "creator", VP = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function HP(e) {
+var BP = (e) => e === "studio" || e === "agency", VP = (e) => e === "performer" || e === "creator", HP = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function moe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
function UP(e) {
@@ -37177,7 +37177,7 @@ function voe(e) {
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
function yoe({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {
- let c = BP(e), l = zP(e), u = e === "performer" ? goe(n.profile) : [], d = hoe(n, e), f = KP(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
+ let c = VP(e), l = BP(e), u = e === "performer" ? goe(n.profile) : [], d = hoe(n, e), f = KP(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, I.useEffect)(() => {
@@ -37198,7 +37198,7 @@ function yoe({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
company: l
}), c && n.id ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, L.jsx)(DP, {
+ children: /* @__PURE__ */ (0, L.jsx)(OP, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -37211,9 +37211,9 @@ function yoe({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(RP, {
+ children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(zP, {
current: n.canonical_name,
- choices: HP(n),
+ choices: moe(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
@@ -37301,23 +37301,23 @@ function xoe({ kind: e, entity: t, actions: r }) {
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, L.jsx)(NP, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, L.jsx)(NP, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
}) : null,
e ? /* @__PURE__ */ (0, L.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, L.jsx)(MP, { name: "id-card" }),
+ /* @__PURE__ */ (0, L.jsx)(NP, { name: "id-card" }),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, L.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(IP, {
+ e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(LP, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
@@ -37365,7 +37365,7 @@ function Soe({ label: e, names: t }) {
})] });
}
function Coe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(NP, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
@@ -37376,7 +37376,7 @@ function woe({ tags: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, L.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, L.jsx)(IP, {
+ }, e)), n ? /* @__PURE__ */ (0, L.jsx)(LP, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -37394,7 +37394,7 @@ function woe({ tags: e }) {
function qP({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, L.jsx)(MP, { name: e.brand })
+ children: /* @__PURE__ */ (0, L.jsx)(NP, { name: e.brand })
});
let t = s("globe") + ("site" in e ? `<img src="${r(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, L.jsx)("span", {
@@ -37466,20 +37466,20 @@ function Eoe({ entity: e, actions: t, helpers: n }) {
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(MP, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(NP, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(LP, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(RP, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: VP(r)
+ tip: HP(r)
}) : null]
});
}
@@ -37626,7 +37626,7 @@ function qoe(e, t, n, r = []) {
return i;
}
function Joe(e, t, n) {
- let r = nE(e, t), i = rE(n, r), a = (i - 1) * t;
+ let r = rE(e, t), i = iE(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -37744,7 +37744,7 @@ function cse(e) {
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var lse = (e) => (e?.results || []).filter((e) => !e.ok), use = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", PF = (e) => e.last_checked_at ? aE(e.last_checked_at) : "未检查", dse = /* @__PURE__ */ new Set([
+var lse = (e) => (e?.results || []).filter((e) => !e.ok), use = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", PF = (e) => e.last_checked_at ? oE(e.last_checked_at) : "未检查", dse = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -38360,7 +38360,7 @@ function Jse({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
src: S,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: _.length ? () => void sN(Math.max(0, d), _) : void 0,
+ onClick: _.length ? () => void cN(Math.max(0, d), _) : void 0,
onError: () => {
if (x && S !== x) {
C(x), a.thumbFallback();
@@ -38828,7 +38828,7 @@ function nce(e) {
limit: 9
}), T = (0, I.useRef)(w.faces);
T.current = w.faces;
- let E = Ww({
+ let E = Gw({
load: async () => T.current,
canFlip: () => T.current.length > 1 && p.canFlip(),
referrerPolicy: "no-referrer"
@@ -39206,7 +39206,7 @@ function lce(e) {
"data-follow-pagination": "",
children: [l.has_more ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, L.jsxs)(tT, {
+ children: /* @__PURE__ */ (0, L.jsxs)(nT, {
entity: !0,
enabled: () => !_.busyRef.current,
load: async () => {
@@ -39341,12 +39341,12 @@ function fce({ rows: e, pressed: t, props: n, onPick: r }) {
}) : null;
}
function pce({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: c } = i, l = (0, I.useRef)(null), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = DN(l, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = DN(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
+ let { helpers: o, actions: c } = i, l = (0, I.useRef)(null), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = ON(l, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = ON(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
(0, I.useEffect)(() => {
o.wireDrag(p.current), o.wireDrag(m.current), o.wireScroller(m.current);
}, [o]);
let v = [...e.providers], y = v.length + e.tagRows.length > 0, b = t.media === "images";
- return /* @__PURE__ */ (0, L.jsx)(tM, {
+ return /* @__PURE__ */ (0, L.jsx)(nM, {
label: "筛选与排序",
topLabel: h ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -39434,7 +39434,7 @@ function pce({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: o.sourceIcon(t) }
}, t)),
v.length && e.tagRows.length ? /* @__PURE__ */ (0, L.jsx)(pI, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, L.jsxs)(rM, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, L.jsxs)(iM, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Tse(e.groups, n)}`,
@@ -39455,8 +39455,8 @@ function pce({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(IN, { onPress: c.shuffle }),
- b ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(FN, {
+ /* @__PURE__ */ (0, L.jsx)(LN, { onPress: c.shuffle }),
+ b ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(IN, {
label: "图片布局",
value: i.photoLayout,
options: sce,
@@ -39707,11 +39707,11 @@ function vI({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var yI = XC(cA, lA, "text-body-2-medium"), xce = "粘贴来源链接,或输入创作者名、id…", Sce = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Cce = "识别中…", wce = "站内没有查到来源", bI = (e, t) => `${e}:${t.url}`;
+var yI = XC(lA, uA, "text-body-2-medium"), xce = "粘贴来源链接,或输入创作者名、id…", Sce = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Cce = "识别中…", wce = "站内没有查到来源", bI = (e, t) => `${e}:${t.url}`;
function Tce({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, I.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(ck, {
+ }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(lk, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -39723,7 +39723,7 @@ function Tce({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: XC(sA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: XC(cA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "px-2 py-1.5",
children: /* @__PURE__ */ (0, L.jsx)(sw, { label: "正在查找建议" })
@@ -39767,14 +39767,14 @@ function Ece({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, L.jsx)(ck, {
+ }), /* @__PURE__ */ (0, L.jsx)(lk, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: sA,
- children: /* @__PURE__ */ (0, L.jsxs)(yk, {
+ className: cA,
+ children: /* @__PURE__ */ (0, L.jsxs)(bk, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -39790,11 +39790,11 @@ function Ece({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, L.jsx)(EA, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, L.jsx)(DA, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(oj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -39834,7 +39834,7 @@ function Dce({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
}),
a.length ? a.map((e) => {
let n = bI(t, e);
- return /* @__PURE__ */ (0, L.jsx)(oj, {
+ return /* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
@@ -39857,18 +39857,18 @@ function Dce({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, L.jsx)(EA, { children: wce }),
+ }) : /* @__PURE__ */ (0, L.jsx)(DA, { children: wce }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, L.jsx)(kA, {
+ }), /* @__PURE__ */ (0, L.jsx)(AA, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, L.jsx)(EA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, L.jsx)(DA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
@@ -39892,7 +39892,7 @@ function Oce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = ej({
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = tj({
queryKey: Ioe,
queryFn: ({ signal: e }) => Zoe(e),
start: (e) => $oe([e]),
@@ -39983,7 +39983,7 @@ function Oce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, L.jsx)(Oj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(kj, {
"aria-label": "来源链接、名字或 id",
placeholder: xce,
value: a,
@@ -40032,7 +40032,7 @@ function Oce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
re.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(OA, { children: "查找结果" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "查找结果" }),
re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(Dce, {
row: e,
at: t,
@@ -40158,10 +40158,10 @@ function jce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(OA, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, L.jsx)(kA, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Oj, {
+ /* @__PURE__ */ (0, L.jsx)(kj, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -40169,7 +40169,7 @@ function jce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, L.jsx)(Oj, {
+ /* @__PURE__ */ (0, L.jsx)(kj, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -40190,13 +40190,13 @@ function jce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, L.jsx)(DA, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, L.jsx)(OA, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(OA, { children: "待合并" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "待合并" }),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -40218,13 +40218,13 @@ function jce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, L.jsx)(uj, { children: /* @__PURE__ */ (0, L.jsxs)(sj, {
+ }), /* @__PURE__ */ (0, L.jsx)(dj, { children: /* @__PURE__ */ (0, L.jsxs)(cj, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(Uk, { children: [
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(Wk, { children: [
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "select",
- children: /* @__PURE__ */ (0, L.jsx)(oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(sj, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
@@ -40232,30 +40232,30 @@ function jce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onChange: (e) => o(e ? new Set(t.map(xI)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, L.jsx)(Wk, {
+ /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, L.jsx)(Kk, { children: t.map((e) => {
+ ] }), /* @__PURE__ */ (0, L.jsx)(qk, { children: t.map((e) => {
let t = xI(e);
- return /* @__PURE__ */ (0, L.jsxs)(Yk, {
+ return /* @__PURE__ */ (0, L.jsxs)(Xk, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsx)(sj, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -40264,16 +40264,16 @@ function jce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(SI, {
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsx)(SI, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: e.alias }),
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: e.alias }),
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
disabled: r,
@@ -40290,27 +40290,27 @@ function jce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(OA, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(kA, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, L.jsx)(uj, { children: /* @__PURE__ */ (0, L.jsxs)(sj, {
+ }), e.length ? /* @__PURE__ */ (0, L.jsx)(dj, { children: /* @__PURE__ */ (0, L.jsxs)(cj, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(Uk, { children: [/* @__PURE__ */ (0, L.jsx)(Wk, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(Wk, { children: [/* @__PURE__ */ (0, L.jsx)(Gk, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, L.jsx)(Wk, {
+ }), /* @__PURE__ */ (0, L.jsx)(Gk, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, L.jsx)(Kk, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(Yk, {
+ })] }), /* @__PURE__ */ (0, L.jsx)(qk, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(Xk, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(SI, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsx)(SI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, L.jsx)(Qk, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
@@ -40386,14 +40386,14 @@ function Rce({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsxs)(EA, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsxs)(DA, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(AA, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, L.jsx)(EA, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, L.jsx)(DA, { children: e.howto }) : null,
/* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap items-end gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(Oj, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(kj, {
type: "password",
label: n,
placeholder: Ice(e, n),
@@ -40432,9 +40432,9 @@ function Rce({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, L.jsx)(DA, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)(EA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, L.jsx)(vA, {
+ a ? /* @__PURE__ */ (0, L.jsx)(OA, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)(DA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, L.jsx)(yA, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -40469,10 +40469,10 @@ function zce({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsx)(EA, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsx)(DA, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, L.jsx)(MA, {
+ children: [r, /* @__PURE__ */ (0, L.jsx)(NA, {
summary: FF(e) ? "修改凭据" : "填写凭据",
defaultOpen: e.requirement === "required" && !FF(e),
children: /* @__PURE__ */ (0, L.jsx)(Rce, {
@@ -40523,7 +40523,7 @@ function Bce({ data: e, readOnly: t, toast: n }) {
className: "text-body-2-regular text-text-secondary",
children: Nce
}),
- /* @__PURE__ */ (0, L.jsx)(vA, {
+ /* @__PURE__ */ (0, L.jsx)(yA, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -42021,7 +42021,7 @@ function Cle({ state: e, size: t = "md", shape: n = "pill" }) {
});
}
function pL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsx)(vae, {
+ return /* @__PURE__ */ (0, L.jsx)(_ae, {
ref: i,
...a,
className: (t) => XC("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
@@ -42078,7 +42078,7 @@ function Tle(e, t) {
function Ele({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(oj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -42099,7 +42099,7 @@ function Ele({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, L.jsx)(kA, {
+ }), /* @__PURE__ */ (0, L.jsx)(AA, {
href: e.url,
children: e.id
})]
@@ -42134,7 +42134,7 @@ function Dle({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, L.jsx)(Oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(kj, {
"aria-label": "女优名",
placeholder: wle,
value: r,
@@ -42159,7 +42159,7 @@ function Dle({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(OA, { children: "JavDB 上的演员卡" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "JavDB 上的演员卡" }),
a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, L.jsx)(Ele, {
card: e,
picked: s.has(e.id),
@@ -42167,8 +42167,8 @@ function Dle({ readOnly: e, toast: t, onAdded: n }) {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, L.jsx)(EA, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(EA, {
+ }, e.id)) : /* @__PURE__ */ (0, L.jsx)(DA, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(DA, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -42314,7 +42314,7 @@ function Ile({ readOnly: e, toast: t, avatarInner: n }) {
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(oj, {
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(sj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -42376,7 +42376,7 @@ function Ile({ readOnly: e, toast: t, avatarInner: n }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? aE(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? oE(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {
@@ -42443,7 +42443,7 @@ function Ile({ readOnly: e, toast: t, avatarInner: n }) {
tone: "error",
title: "打不开订阅源",
children: K(r.error)
- }) : /* @__PURE__ */ (0, L.jsx)(EA, { children: "正在读订阅源。" });
+ }) : /* @__PURE__ */ (0, L.jsx)(DA, { children: "正在读订阅源。" });
let g = () => void i.run("check", (e) => AF(e), () => void gL()), _ = (e) => c((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -42458,7 +42458,7 @@ function Ile({ readOnly: e, toast: t, avatarInner: n }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, L.jsx)(EA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(DA, {
role: "status",
children: a.unread ? `有 ${a.unread} 条新作还没看` : "新作都看过了"
}), /* @__PURE__ */ (0, L.jsx)(G, {
@@ -42474,7 +42474,7 @@ function Ile({ readOnly: e, toast: t, avatarInner: n }) {
tone: "error",
title: `${_L(e)} 拉取失败`,
children: e.last_error
- }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: i.error }) : null]
+ }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(OA, { children: i.error }) : null]
}) : null,
v.length ? /* @__PURE__ */ (0, L.jsxs)(hL, {
label: "订阅源批量操作",
@@ -42521,22 +42521,22 @@ function Ile({ readOnly: e, toast: t, avatarInner: n }) {
})
]
}) : null,
- o.length ? /* @__PURE__ */ (0, L.jsx)(uj, {
+ o.length ? /* @__PURE__ */ (0, L.jsx)(dj, {
onRowClick: (e) => _(Number(e)),
- children: /* @__PURE__ */ (0, L.jsxs)(sj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(cj, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsx)(Uk, { children: h.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, L.jsx)(Wk, { children: h.getHeaderGroups()[0].headers.map((e) => {
let t = dL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, L.jsx)(Wk, {
+ return /* @__PURE__ */ (0, L.jsx)(Gk, {
id: e.id,
isRowHeader: e.column.id === "name",
children: kle.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(K_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(Kk, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(Yk, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(qk, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(Xk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(Zk, { children: dL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(Qk, { children: dL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
}) : /* @__PURE__ */ (0, L.jsx)(ow, {
@@ -42585,7 +42585,7 @@ function Ble({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: tE(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: nE(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -42613,10 +42613,10 @@ function Vle({ source: e, selected: t, onToggle: n, handlers: r }) {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- lj(e, e.currentTarget) && n(!t);
+ uj(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
@@ -42756,7 +42756,7 @@ function Ule(e) {
n,
r,
y
- ]), { job: k, running: A, outcome: j, start: M } = ej({
+ ]), { job: k, running: A, outcome: j, start: M } = tj({
queryKey: Foe,
queryFn: ({ signal: e }) => Xoe(e),
start: (e) => CF(e),
@@ -42852,7 +42852,7 @@ function Ule(e) {
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(oj, {
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(sj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -43025,7 +43025,7 @@ function Ule(e) {
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, L.jsx)(YA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
@@ -43033,7 +43033,7 @@ function Ule(e) {
let t = String(e);
u(t, YP[t]);
},
- children: JP.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ children: JP.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e,
children: t
}, e))
@@ -43143,10 +43143,10 @@ function Ule(e) {
})
]
}) : null,
- R ? /* @__PURE__ */ (0, L.jsx)(uj, {
+ R ? /* @__PURE__ */ (0, L.jsx)(dj, {
follow: !0,
onRowClick: (e) => ee(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, L.jsxs)(sj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(cj, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: le[0] ? {
@@ -43157,9 +43157,9 @@ function Ule(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, L.jsx)(Uk, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, L.jsx)(Wk, { children: de.getHeaderGroups()[0].headers.map((e) => {
let t = e.column.id in uF, n = dL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, L.jsx)(Wk, {
+ return /* @__PURE__ */ (0, L.jsx)(Gk, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -43168,20 +43168,20 @@ function Ule(e) {
children: [n, /* @__PURE__ */ (0, L.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, L.jsx)(GA, {})
+ children: /* @__PURE__ */ (0, L.jsx)(KA, {})
})]
}) : /* @__PURE__ */ (0, L.jsx)(K_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(Kk, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(qk, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(Yk, {
+ children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(Xk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(Zk, { children: dL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(Qk, { children: dL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(oj, {
+ }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: me.all,
isIndeterminate: me.some,
onChange: (e) => te(pe, e),
@@ -43213,14 +43213,14 @@ function Ule(e) {
className: "text-body-2-regular text-text-secondary",
children: `${z.start + 1}–${z.end} / ${z.total} ${R ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, L.jsx)(YA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: lF.map((e) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ children: lF.map((e) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: String(e),
children: `每页 ${e} ${R ? "条" : "位"}`
}, e))
@@ -43357,7 +43357,7 @@ function Wle(e) {
children: o
}) : null,
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: die,
+ className: uie,
"aria-label": "关注概览",
children: [
/* @__PURE__ */ (0, L.jsx)(SL, {
@@ -43392,7 +43392,7 @@ function Wle(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(tA, {
+ /* @__PURE__ */ (0, L.jsxs)(nA, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
@@ -43400,16 +43400,16 @@ function Wle(e) {
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, L.jsx)(nA, {
+ /* @__PURE__ */ (0, L.jsx)(rA, {
"aria-label": "关注管理区域",
- className: xN,
- children: bL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(rA, {
+ className: SN,
+ children: bL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(iA, {
id: e,
- className: SN,
+ className: CN,
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "list",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, L.jsx)(Ule, {
@@ -43442,7 +43442,7 @@ function Wle(e) {
}
})
}),
- /* @__PURE__ */ (0, L.jsxs)(iA, {
+ /* @__PURE__ */ (0, L.jsxs)(aA, {
id: "add",
className: "flex flex-col gap-8",
children: [/* @__PURE__ */ (0, L.jsx)(Oce, {
@@ -43461,7 +43461,7 @@ function Wle(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "feeds",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, L.jsx)(Ile, {
@@ -43470,7 +43470,7 @@ function Wle(e) {
avatarInner: e.avatarInner
})
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "source",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, L.jsx)(Bce, {
@@ -43726,7 +43726,7 @@ function gue({ code: e, coverUrl: t, box: n, onSaved: r }) {
children: /* @__PURE__ */ (0, L.jsx)(UL, { className: "size-3.75" })
}), /* @__PURE__ */ (0, L.jsx)(cy, {
getContainer: () => pue(o.current),
- children: /* @__PURE__ */ (0, L.jsx)(eP, {
+ children: /* @__PURE__ */ (0, L.jsx)(tP, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
@@ -43742,7 +43742,7 @@ function gue({ code: e, coverUrl: t, box: n, onSaved: r }) {
})] });
}
function _ue({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(null), [l, u] = (0, I.useState)(!0), d = hA(), f = It({
+ let [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(null), [l, u] = (0, I.useState)(!0), d = gA(), f = It({
mutationFn: (t) => hue(e, t),
onSuccess: () => {
i(), r();
@@ -43755,19 +43755,19 @@ function _ue({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : UN(e, HL);
- c(GN(t, e, null));
+ } : WN(e, HL);
+ c(KN(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, L.jsx)(tP, { children: /* @__PURE__ */ (0, L.jsx)(UL, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, L.jsx)(nP, { children: /* @__PURE__ */ (0, L.jsx)(UL, { className: "size-6" }) }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(UD, {
+ /* @__PURE__ */ (0, L.jsx)(WD, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -43782,7 +43782,7 @@ function _ue({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsx)(_A, {
+ /* @__PURE__ */ (0, L.jsx)(vA, {
icon: MS,
size: "small",
"aria-label": "关闭",
@@ -43793,14 +43793,14 @@ function _ue({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, L.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, L.jsx)(iP, {
+ children: /* @__PURE__ */ (0, L.jsx)(aP, {
src: t,
aspect: l ? HL : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- VN(e) && p(e);
+ HN(e) && p(e);
},
onBox: c
})
@@ -43810,7 +43810,7 @@ function _ue({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
children: [/* @__PURE__ */ (0, L.jsx)(pL, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(GN(s, a, HL));
+ u(e), e && s && a && c(KN(s, a, HL));
},
children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -44849,7 +44849,7 @@ function Pue(e) {
ref: s,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, L.jsx)(Zw, {
+ children: a.data ? /* @__PURE__ */ (0, L.jsx)(Qw, {
mode: "items",
variant: "next",
items: a.data,
@@ -45076,7 +45076,7 @@ function Rue({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": BM(t.online, e.cat),
+ "data-tag-cat": VM(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -45126,7 +45126,7 @@ function Vue({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": BM(t.online, e.cat),
+ "data-tag-cat": VM(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -45148,12 +45148,12 @@ var Hue = [[
"text-aa"
]];
function Uue({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, L.jsx)(tM, {
+ return /* @__PURE__ */ (0, L.jsx)(nM, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(rM, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(iM, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : BM(n, e),
+ "data-tag-cat": e === "all" ? "all" : VM(n, e),
pressed: t === e,
onPress: () => o(e),
children: [/* @__PURE__ */ (0, L.jsx)(JL, {}), r]
@@ -45175,19 +45175,19 @@ function Uue({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Ek, {
+ /* @__PURE__ */ (0, L.jsx)(Dk, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${wN}`,
+ className: `ml-auto ${TN}`,
children: Hue.map(([e, t, n]) => {
let r = Vw(n);
- return /* @__PURE__ */ (0, L.jsx)(Dk, {
+ return /* @__PURE__ */ (0, L.jsx)(Ok, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: TN,
+ className: EN,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -45204,7 +45204,7 @@ function Wue({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -45273,19 +45273,19 @@ var Gue = [{
]]
};
function que({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, L.jsx)(Ek, {
- "aria-label": `${TM[e]}索引版式`,
+ return /* @__PURE__ */ (0, L.jsx)(Dk, {
+ "aria-label": `${EM[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${xN}`,
- children: Kue[jM(e) ? "company" : "people"].map(([e, t, n]) => {
+ className: `flex-none max-board-narrow:order-3 ${SN}`,
+ children: Kue[MM(e) ? "company" : "people"].map(([e, t, n]) => {
let r = Vw(n);
- return /* @__PURE__ */ (0, L.jsx)(Dk, {
+ return /* @__PURE__ */ (0, L.jsx)(Ok, {
value: e,
"aria-label": t,
- className: CN,
+ className: wN,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -45311,13 +45311,13 @@ function Yue({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Ej, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, L.jsx)(Dj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Oj, {
type: "search",
leadingIcon: Jue,
spellCheck: !1,
@@ -45330,13 +45330,13 @@ function Yue({ label: e, value: t, onQuery: n }) {
});
}
function Xue(e) {
- let [t, n] = (0, I.useState)(() => MM({
+ let [t, n] = (0, I.useState)(() => NM({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = TM[u], _ = u === "tags" && p === "online", v = u === "performers" && p === "online";
+ })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = EM[u], _ = u === "tags" && p === "online", v = u === "performers" && p === "online";
(0, I.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -45346,7 +45346,7 @@ function Xue(e) {
...r
};
x(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, C = IM(NM(t)), w = Lt({
+ }, C = LM(PM(t)), w = Lt({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -45355,14 +45355,14 @@ function Xue(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: y ? Pe : void 0
- }), T = RM(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = zM(T.length, !!w.hasNextPage);
+ }), T = zM(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = BM(T.length, !!w.hasNextPage);
(0, I.useEffect)(() => {
l.current && e.refitImages(l.current);
}, [r]);
let O = (0, I.useMemo)(() => u === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? UM(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? WM(O, (t) => e.tagLabel(t)) : [], [
O,
m,
u
@@ -45386,7 +45386,7 @@ function Xue(e) {
onChange: (t) => {
t === "online" && e.exitSelectMode(), S({ scope: t });
}
- }) : jM(u) ? /* @__PURE__ */ (0, L.jsx)(qL, {
+ }) : MM(u) ? /* @__PURE__ */ (0, L.jsx)(qL, {
tabs: Gue,
value: u,
label: "公司类型",
@@ -45404,7 +45404,7 @@ function Xue(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (_ ? OM : DM).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (_ ? kM : OM).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, L.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -45419,12 +45419,12 @@ function Xue(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- AM(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ jM(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: w.isPending ? "" : D
}) : null,
- AM(u) ? /* @__PURE__ */ (0, L.jsx)(que, {
+ jM(u) ? /* @__PURE__ */ (0, L.jsx)(que, {
kind: u,
layout: r,
onChange: A
@@ -45484,12 +45484,12 @@ function Xue(e) {
online: _ || v,
configurable: e.configurable
});
- if (v) return /* @__PURE__ */ (0, L.jsx)(JM, {
+ if (v) return /* @__PURE__ */ (0, L.jsx)(YM, {
items: T,
layout: r,
props: e
});
- if (AM(u)) return /* @__PURE__ */ (0, L.jsx)(qM, {
+ if (jM(u)) return /* @__PURE__ */ (0, L.jsx)(JM, {
kind: u,
items: T,
layout: r,
@@ -45827,7 +45827,7 @@ function tR({ scope: e, count: t }) {
})] }) : null;
}
function ude({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = hA(), { kind: a, view: o } = e, s = cde(o), c = (e) => {
+ let i = gA(), { kind: a, view: o } = e, s = cde(o), c = (e) => {
let t = e.target.closest("a");
!t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || $L()));
}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
@@ -45836,7 +45836,7 @@ function ude({ route: e, page: t, failed: n, onNavigate: r }) {
children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, L.jsx)(Qj, {
+ children: /* @__PURE__ */ (0, L.jsx)($j, {
label: lde(o),
figure: l,
pending: !t && !n,
@@ -46025,9 +46025,9 @@ function vde({ value: e, max: t }) {
});
}
function yde(e) {
- let { job: t } = FA(e), n = t.data, r = t.isError ? n ? AT : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ let { job: t } = IA(e), n = t.data, r = t.isError ? n ? jT : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : FT(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? GS : IS;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : IT(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? GS : IS;
return /* @__PURE__ */ (0, L.jsxs)("aside", {
role: a ? "alert" : "status",
className: _de[s],
@@ -46043,7 +46043,7 @@ function yde(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, L.jsx)(oA, {
+ }), /* @__PURE__ */ (0, L.jsx)(sA, {
href: "/data-cleanup#libraryProcessing",
size: "small",
trailingIcon: ES,
@@ -46088,7 +46088,7 @@ function Tde(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var Ede = Vw("ellipsis"), Dde = Vw("pencil"), Ode = Vw("trash"), kde = Vw("playlist"), uR = XC(cA, lA, "text-body-2-medium"), dR = "播放列表名称不能为空", fR = (e) => async () => {
+var Ede = Vw("ellipsis"), Dde = Vw("pencil"), Ode = Vw("trash"), kde = Vw("playlist"), uR = XC(lA, uA, "text-body-2-medium"), dR = "播放列表名称不能为空", fR = (e) => async () => {
try {
await e();
} finally {
@@ -46118,7 +46118,7 @@ function Ade({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, L.jsx)(Oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(kj, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -46154,7 +46154,7 @@ function jde({ target: e, close: t, toast: n }) {
},
onError: (e) => o(K(e))
});
- return /* @__PURE__ */ (0, L.jsx)(eP, {
+ return /* @__PURE__ */ (0, L.jsx)(tP, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -46177,11 +46177,11 @@ function jde({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, L.jsx)(UD, {
+ children: [/* @__PURE__ */ (0, L.jsx)(WD, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, L.jsx)(Oj, {
+ }), /* @__PURE__ */ (0, L.jsx)(kj, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -46227,14 +46227,14 @@ function Mde({ name: e, onRename: t, onDelete: n }) {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, L.jsx)(ck, {
+ }), /* @__PURE__ */ (0, L.jsx)(lk, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: sA,
- children: /* @__PURE__ */ (0, L.jsxs)(yk, {
+ className: cA,
+ children: /* @__PURE__ */ (0, L.jsxs)(bk, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, L.jsxs)("button", {
@@ -46270,8 +46270,8 @@ function Nde({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
className: "mx-auto w-full max-w-board",
children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "读取失败",
- children: o.error ? K(o.error) : "读取播放列表失败"
+ title: "播放列表读取失败",
+ children: o.error ? K(o.error) : "未取得播放列表,请刷新页面重试。"
})
});
let d = u.items ?? [], f = (e) => {
@@ -46304,7 +46304,7 @@ function Nde({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
let a = Sde(i);
- return /* @__PURE__ */ (0, L.jsx)(Yw, {
+ return /* @__PURE__ */ (0, L.jsx)(Xw, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
@@ -46359,7 +46359,7 @@ function Pde({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, L.jsx)("img", {
- src: eE(t),
+ src: tE(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -46409,13 +46409,13 @@ function Pde({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
}
function Fde(e) {
let t = Ft({
- queryKey: ZT,
- queryFn: ({ signal: e }) => QT(e)
+ queryKey: QT,
+ queryFn: ({ signal: e }) => $T(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "读取失败",
- children: t.error ? K(t.error) : "读取高清版目标失败"
+ title: "高清版目标读取失败",
+ children: t.error ? K(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
return r.length ? /* @__PURE__ */ (0, L.jsxs)(cw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -46446,7 +46446,7 @@ function Fde(e) {
//#endregion
//#region src/react/review/bulk-toolbar.tsx
function Ide(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = yE(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = bE(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -46454,29 +46454,29 @@ function Ide(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(YA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(YA, {
+ i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(XA, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, L.jsx)(XA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ZA, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -46499,7 +46499,7 @@ function Ide(e) {
label: "复核所选项目",
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, L.jsxs)(YA, {
+ b ? /* @__PURE__ */ (0, L.jsxs)(XA, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -46507,10 +46507,10 @@ function Ide(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, L.jsx)(XA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ZA, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e,
children: e
}, e))]
@@ -46620,13 +46620,13 @@ function zde({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
children: /* @__PURE__ */ (0, L.jsx)(mR, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, L.jsx)(Ek, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Dk, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(Dk, {
+ children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(Ok, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
children: /* @__PURE__ */ (0, L.jsx)(mR, {
@@ -46638,13 +46638,13 @@ function zde({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}
function Bde({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), c = It({
- mutationFn: (t) => NE(e, t),
+ mutationFn: (t) => PE(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await IE();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await LE();
},
onError: (e) => s(K(e))
}), l = () => {
@@ -46663,14 +46663,14 @@ function Bde({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, L.jsx)(Tj, {
+ /* @__PURE__ */ (0, L.jsx)(Ej, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(Dj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Oj, {
size: "small",
list: t.length ? pR : void 0,
autoComplete: "off",
@@ -46705,7 +46705,7 @@ function Bde({ genre: e, tags: t, locked: n, toast: r }) {
});
}
function Vde({ row: e, tags: t, locked: n, toast: r }) {
- let i = DE(e);
+ let i = OE(e);
return i.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -46921,7 +46921,7 @@ function Gde({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, L.jsx)(aj, {
+ children: /* @__PURE__ */ (0, L.jsx)(oj, {
size: "sm",
state: {
isSelected: n,
@@ -46947,7 +46947,7 @@ var Kde = aw({
className: "flex flex-col gap-4 px-5 pt-4"
}), vR = "flex min-h-6 min-w-0 items-center", qde = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
function Jde(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, I.useRef)(!1), m = hA(), h = hA(), g = t === "metadata_fields", _ = mE[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = wE(t, n), x = CE(t, n), S = SE(t, n), C = TE(n), w = EE(n), T = xE(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, I.useRef)(!1), m = gA(), h = gA(), g = t === "metadata_fields", _ = hE[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = TE(t, n), x = wE(t, n), S = CE(t, n), C = EE(n), w = DE(n), T = SE(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-3",
children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(_R, {
asset: e,
@@ -47034,7 +47034,7 @@ function Jde(e) {
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, L.jsx)(oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -47155,7 +47155,7 @@ function Xde({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: tE(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: nE(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -47179,32 +47179,32 @@ function Xde({ page: e, pages: t, onPage: n }) {
});
}
function Zde(e) {
- let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(pE(e.category) ? e.category : fE), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);
+ let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(mE(e.category) ? e.category : pE), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);
(0, I.useEffect)(() => () => {
j.current = !1;
}, []);
let M = Ft({
- queryKey: lE,
- queryFn: ({ signal: e }) => jE(e)
+ queryKey: uE,
+ queryFn: ({ signal: e }) => ME(e)
}).data || {
sections: {},
counts: {}
- }, N = M.sections[u] || [], ee = u === "metadata_fields", te = s, P = hE(N, ee), ne = P.some(([e]) => e === f) ? f : "candidates", F = gE(N, ne), re = F.some((e) => e.key === m) ? m : "", ie = vE(_E(N, ne, re), g), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = F.map((e) => ({
+ }, N = M.sections[u] || [], ee = u === "metadata_fields", te = s, P = gE(N, ee), ne = P.some(([e]) => e === f) ? f : "candidates", F = _E(N, ne), re = F.some((e) => e.key === m) ? m : "", ie = yE(vE(N, ne, re), g), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = F.map((e) => ({
...e,
rows: e.rows.filter((e) => oe.has(e.item_key))
- })).filter((e) => e.rows.length), ce = (e) => b.get(e.item_key) || OE(e), le = N.filter((e) => v.has(e.item_key)), ue = (e) => {
+ })).filter((e) => e.rows.length), ce = (e) => b.get(e.item_key) || kE(e), le = N.filter((e) => v.has(e.item_key)), ue = (e) => {
let t = new Set(e);
y((e) => new Set([...e].filter((e) => !t.has(e)))), x((e) => new Map([...e].filter(([e]) => !t.has(e)))), C((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, R = (e, t) => C((n) => new Map(n).set(e, t)), z = (e) => {
d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), C(/* @__PURE__ */ new Map()), T(""), E.current = null, t({ category: e === "metadata_fields" ? "" : e });
}, de = It({
- mutationFn: ({ row: e, status: t }) => ME(kE(u, e, t, ce(e))),
+ mutationFn: ({ row: e, status: t }) => NE(AE(u, e, t, ce(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
R(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- FE(u, [t.item_key]), ue([t.item_key]), o(AE(n));
+ IE(u, [t.item_key]), ue([t.item_key]), o(jE(n));
},
onError: (e, { row: t }) => R(t.item_key, K(e))
}), fe = It({
@@ -47214,7 +47214,7 @@ function Zde(e) {
if (!j.current) break;
T(`正在处理 ${i} / ${t.length}`);
try {
- let t = await ME(kE(u, a, e, ce(a)));
+ let t = await NE(AE(u, a, e, ce(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -47228,7 +47228,7 @@ function Zde(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- FE(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ IE(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
T(K(e));
@@ -47258,7 +47258,7 @@ function Zde(e) {
O(e), A("");
let t = await i(e);
j.current && (O(0), A(t));
- }, ge = LE(M.mirror, c), _e = M.genre_tags || [], ve = {
+ }, ge = RE(M.mirror, c), _e = M.genre_tags || [], ve = {
openItem: n,
openEntity: r,
onReveal: he,
@@ -47284,11 +47284,11 @@ function Zde(e) {
children: ge
}) : null,
/* @__PURE__ */ (0, L.jsx)(Rde, { tags: _e }),
- /* @__PURE__ */ (0, L.jsxs)(tA, {
+ /* @__PURE__ */ (0, L.jsxs)(nA, {
selectedKey: u,
onSelectionChange: (e) => {
let t = String(e);
- pE(t) && z(t);
+ mE(t) && z(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -47297,22 +47297,22 @@ function Zde(e) {
id: "reviewcategories",
className: "px-3 pb-3 text-caption-1-regular text-text-secondary",
children: "复核分类"
- }), /* @__PURE__ */ (0, L.jsx)(nA, {
+ }), /* @__PURE__ */ (0, L.jsx)(rA, {
"aria-labelledby": "reviewcategories",
className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",
- children: dE.map((e) => {
+ children: fE.map((e) => {
let t = Number(M.counts[e] || 0);
- return /* @__PURE__ */ (0, L.jsxs)(rA, {
+ return /* @__PURE__ */ (0, L.jsxs)(iA, {
id: e,
className: Yde,
- children: [uE[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [dE[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, L.jsxs)(iA, {
+ }), /* @__PURE__ */ (0, L.jsxs)(aA, {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
@@ -47332,7 +47332,7 @@ function Zde(e) {
onSelected: y,
selectedRows: le,
metadata: ee,
- approvable: le.every((e) => xE(u, e)),
+ approvable: le.every((e) => SE(u, e)),
busy: fe.isPending,
feedback: w,
onUnifySource: me,
@@ -47365,7 +47365,7 @@ function Zde(e) {
selected: v.has(e.item_key),
onSelect: (t, n) => y((r) => {
let i = new Set(r);
- return E.current = bE(i, ae, E.current, e.item_key, t, n), i;
+ return E.current = xE(i, ae, E.current, e.item_key, t, n), i;
}),
locked: te,
busy: de.isPending && de.variables?.row.item_key === e.item_key,
@@ -47382,8 +47382,8 @@ function Zde(e) {
})]
}, e.key)) : /* @__PURE__ */ (0, L.jsx)(ow, {
icon: jS,
- title: "暂无候选",
- children: "该分类当前没有待人工复核的项目。"
+ title: "此分类没有待复核项目",
+ children: "可切换分类查看其他候选。"
}),
/* @__PURE__ */ (0, L.jsx)(Xde, {
page: ie.page,
@@ -47476,37 +47476,37 @@ function cfe({ source: e, toast: t }) {
}
}
let C = f || (g.error ? K(g.error) : "") || (_.error ? K(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, L.jsx)(sfe, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(kA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(sfe, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(AA, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, L.jsx)(CA, { children: /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsx)(wA, { children: /* @__PURE__ */ (0, L.jsx)(SA, {
label: "连接方式",
- children: /* @__PURE__ */ (0, L.jsx)(YA, {
+ children: /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: ofe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ children: ofe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, L.jsxs)(wA, {
+ T ? /* @__PURE__ */ (0, L.jsxs)(TA, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, L.jsx)(oA, {
+ children: /* @__PURE__ */ (0, L.jsx)(sA, {
href: "/configuration#peachProxy",
size: "small",
trailingIcon: ES,
@@ -47522,20 +47522,20 @@ function cfe({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, L.jsx)(Ek, {
+ /* @__PURE__ */ (0, L.jsx)(Dk, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: xN,
- children: ER.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Dk, {
+ className: SN,
+ children: ER.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Ok, {
value: e,
- className: SN,
+ className: CN,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, L.jsx)(Oj, {
+ c === "paste" ? /* @__PURE__ */ (0, L.jsx)(kj, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -47544,7 +47544,7 @@ function cfe({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(OA, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
@@ -47570,14 +47570,14 @@ function cfe({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, L.jsx)(DA, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, L.jsx)(OA, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: t.ok ? "success" : "error",
children: afe(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, L.jsxs)(TA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(EA, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
onClick: b,
@@ -47600,7 +47600,7 @@ function cfe({ source: e, toast: t }) {
});
}
function lfe({ toast: e }) {
- let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = ej({
+ let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = tj({
queryKey: xR,
queryFn: ({ signal: e }) => wR(e),
start: () => q(yR, { code: t }),
@@ -47610,15 +47610,15 @@ function lfe({ toast: e }) {
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? K(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, L.jsx)(SA, {
+ return /* @__PURE__ */ (0, L.jsx)(CA, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, L.jsxs)(wA, { children: [
+ children: /* @__PURE__ */ (0, L.jsxs)(TA, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(Oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(kj, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -47646,7 +47646,7 @@ function lfe({ toast: e }) {
});
}
function ufe({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = ej({
+ let { query: t, running: n, outcome: r, start: i } = tj({
queryKey: SR,
queryFn: ({ signal: e }) => TR(e),
start: () => q(rfe, {}),
@@ -47659,43 +47659,43 @@ function ufe({ toast: e }) {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
}), a = It({ mutationFn: () => q(nfe, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(SA, {
+ if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(CA, {
title: "amane 桥",
- children: /* @__PURE__ */ (0, L.jsx)(wA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ children: /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: K(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? K(i.error) : a.error ? K(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "amane 桥",
- aside: /* @__PURE__ */ (0, L.jsx)(kA, {
+ aside: /* @__PURE__ */ (0, L.jsx)(AA, {
href: o.repository,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, L.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, L.jsxs)(jA, {
+ /* @__PURE__ */ (0, L.jsxs)(jA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(MA, {
term: "钉住的版本",
children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]
}),
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "开放的站",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, L.jsxs)(wA, {
+ /* @__PURE__ */ (0, L.jsxs)(TA, {
divided: !0,
children: [
- /* @__PURE__ */ (0, L.jsxs)(EA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(DA, { children: [
"这几站由 amane(",
o.license,
")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"
@@ -47711,7 +47711,7 @@ function ufe({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(TA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsxs)(EA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -47746,7 +47746,7 @@ function dfe({ toast: e }) {
/* @__PURE__ */ (0, L.jsx)(ufe, { toast: e })
] }) : /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "读取失败",
+ title: "采集来源读取失败",
children: t.error ? K(t.error) : "读取采集来源失败"
}) });
}
@@ -47760,13 +47760,16 @@ async function AR(e) {
});
}
//#endregion
+//#region src/configuration-copy.ts
+var pfe = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", mfe = "仅填域名;留空使用默认地址";
+//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function pfe({ initial: e, receipt: t }) {
+function hfe({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e.sites), i = dw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -47775,9 +47778,9 @@ function pfe({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [
- /* @__PURE__ */ (0, L.jsx)(EA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
- n.map((e) => /* @__PURE__ */ (0, L.jsx)(Oj, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(TA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(DA, { children: pfe }),
+ n.map((e) => /* @__PURE__ */ (0, L.jsx)(kj, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -47786,10 +47789,10 @@ function pfe({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: "只写域名本身,留空就是默认"
+ hint: mfe
}, e.key)),
- i.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ i.error ? /* @__PURE__ */ (0, L.jsx)(OA, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, L.jsx)(EA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
...Y(i.busy === "save"),
children: "保存配置"
@@ -47798,21 +47801,21 @@ function pfe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function mfe({ data: e, receipt: t }) {
+function gfe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, L.jsx)(hfe, {
+ children: [e.startup ? /* @__PURE__ */ (0, L.jsx)(_fe, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, L.jsx)(pfe, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, L.jsx)(hfe, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function hfe({ startup: e, receipt: t }) {
+function _fe({ startup: e, receipt: t }) {
let [n, r] = (0, I.useState)(e.enabled), [i, a] = (0, I.useState)(e.silent), [o, s] = (0, I.useState)(e.desktop), c = dw(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => q("/api/configuration/startup", {
@@ -47822,8 +47825,8 @@ function hfe({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, L.jsxs)(CA, { children: [
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsxs)(wA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "开机后启动 Peach",
children: /* @__PURE__ */ (0, L.jsx)(pL, {
"aria-label": "开机后启动 Peach",
@@ -47832,7 +47835,7 @@ function hfe({ startup: e, receipt: t }) {
onChange: r
})
}),
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
children: /* @__PURE__ */ (0, L.jsx)(pL, {
@@ -47842,7 +47845,7 @@ function hfe({ startup: e, receipt: t }) {
onChange: a
})
}),
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
children: /* @__PURE__ */ (0, L.jsx)(pL, {
@@ -47853,11 +47856,11 @@ function hfe({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)(wA, {
+ e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)(TA, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, L.jsx)(EA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, L.jsx)(DA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(OA, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(EA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(c.busy === "save"),
@@ -47875,12 +47878,12 @@ var jR = /* @__PURE__ */ new Set([
"preparing",
"restarting",
"installing"
-]), gfe = [
+]), vfe = [
65,
67,
90
], MR = 120;
-function _fe({ initial: e, initialJob: t }) {
+function yfe({ initial: e, initialJob: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(t || {
state: "idle",
progress: 0
@@ -47930,40 +47933,40 @@ function _fe({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(K(t));
}), _ = c.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, L.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsxs)(jA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, L.jsxs)(wA, {
+ /* @__PURE__ */ (0, L.jsxs)(TA, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(EA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(DA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !_ ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)(DA, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(EA, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)(OA, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(DA, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(DA, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(OA, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
@@ -47971,16 +47974,16 @@ function _fe({ initial: e, initialJob: t }) {
/* @__PURE__ */ (0, L.jsx)(uw, {
label: "更新准备进度",
value: i.progress,
- stops: gfe
+ stops: vfe
}),
- /* @__PURE__ */ (0, L.jsxs)(EA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, L.jsx)(EA, { children: v })
+ /* @__PURE__ */ (0, L.jsxs)(DA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, L.jsx)(DA, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(TA, {
- status: /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsxs)(EA, {
+ status: /* @__PURE__ */ (0, L.jsx)(AA, {
href: n.release_url,
children: "查看发布页"
}),
@@ -48007,59 +48010,59 @@ function _fe({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var vfe = [
+var bfe = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function yfe({ data: e, receipt: t, reopenTutorial: n }) {
+function xfe({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, L.jsx)(xfe, {
+ e.automatic_updates ? /* @__PURE__ */ (0, L.jsx)(Cfe, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, L.jsx)(_fe, {
+ e.updates ? /* @__PURE__ */ (0, L.jsx)(yfe, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Sfe, { facts: e.facts }),
- /* @__PURE__ */ (0, L.jsx)(bfe, {
+ /* @__PURE__ */ (0, L.jsx)(wfe, { facts: e.facts }),
+ /* @__PURE__ */ (0, L.jsx)(Sfe, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, L.jsx)(Cfe, {
+ e.uninstall ? /* @__PURE__ */ (0, L.jsx)(Tfe, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function bfe({ receipt: e, reopenTutorial: t }) {
+function Sfe({ receipt: e, reopenTutorial: t }) {
let n = dw();
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [/* @__PURE__ */ (0, L.jsx)(EA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(TA, { children: [/* @__PURE__ */ (0, L.jsx)(DA, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, L.jsx)(OA, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(EA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...Y(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function xfe({ initial: e, receipt: t }) {
+function Cfe({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = dw(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => q("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, L.jsxs)(CA, { children: [
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsxs)(wA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "自动检查新版本",
children: /* @__PURE__ */ (0, L.jsx)(pL, {
"aria-label": "自动检查新版本",
@@ -48068,7 +48071,7 @@ function xfe({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "自动下载更新",
children: /* @__PURE__ */ (0, L.jsx)(pL, {
"aria-label": "自动下载更新",
@@ -48077,28 +48080,28 @@ function xfe({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, L.jsx)(YA, {
+ children: /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: vfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ children: bfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, L.jsx)(wA, {
+ o.error ? /* @__PURE__ */ (0, L.jsx)(TA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(DA, { children: o.error })
+ children: /* @__PURE__ */ (0, L.jsx)(OA, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(EA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(o.busy === "save"),
@@ -48107,19 +48110,19 @@ function xfe({ initial: e, receipt: t }) {
]
});
}
-function Sfe({ facts: e }) {
- return /* @__PURE__ */ (0, L.jsx)(SA, {
+function wfe({ facts: e }) {
+ return /* @__PURE__ */ (0, L.jsx)(CA, {
title: "运行信息",
- children: /* @__PURE__ */ (0, L.jsx)(AA, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(jA, {
+ children: /* @__PURE__ */ (0, L.jsx)(jA, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(MA, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(kA, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(AA, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Cfe({ uninstall: e, receipt: t }) {
+function Tfe({ uninstall: e, receipt: t }) {
let [n, r] = (0, I.useState)(!1), [i, a] = (0, I.useState)(""), o = () => void g({
title: "卸载 Peach",
danger: !0,
@@ -48133,26 +48136,26 @@ function Cfe({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [
- e.available ? /* @__PURE__ */ (0, L.jsx)(EA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(TA, { children: [
+ e.available ? /* @__PURE__ */ (0, L.jsx)(DA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, L.jsx)(MA, {
+ /* @__PURE__ */ (0, L.jsx)(NA, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(vA, {
+ children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(yA, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, L.jsx)(TA, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(EA, {
status: s ? /* @__PURE__ */ (0, L.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -48168,7 +48171,7 @@ function Cfe({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var wfe = [
+var Efe = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -48187,32 +48190,32 @@ var wfe = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Tfe = [
+], Dfe = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Efe() {
+function Ofe() {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, L.jsxs)(EA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(kA, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(DA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(AA, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, L.jsxs)(MA, {
+ })] }), /* @__PURE__ */ (0, L.jsxs)(NA, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, L.jsx)(EA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
+ /* @__PURE__ */ (0, L.jsx)(DA, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, L.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: wfe.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
+ children: Efe.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, L.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Tfe.map(([t, n]) => /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: Dfe.map(([t, n]) => /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, L.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -48233,9 +48236,9 @@ function Efe() {
/* @__PURE__ */ (0, L.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, L.jsxs)(EA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(DA, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(AA, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -48291,13 +48294,13 @@ var NR = [
["star", "收藏"],
["tags", "主题"]
];
-function Dfe(e) {
+function kfe(e) {
let t = e === "local" ? "" : m[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
var PR = "auto";
-function Ofe({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(e), [l, u] = Dfe(n);
+function Afe({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(e), [l, u] = kfe(n);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
ref: i,
variant: "secondary",
@@ -48311,34 +48314,34 @@ function Ofe({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, L.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: e || l }), ((e) => e && NR.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, L.jsx)(FA, { mark: e || l }), ((e) => e && NR.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, L.jsx)(ck, {
+ }), /* @__PURE__ */ (0, L.jsx)(lk, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: sA,
- children: /* @__PURE__ */ (0, L.jsxs)(yk, {
+ className: cA,
+ children: /* @__PURE__ */ (0, L.jsxs)(bk, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, L.jsx)(UD, {
+ /* @__PURE__ */ (0, L.jsx)(WD, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, L.jsx)(Ek, {
+ /* @__PURE__ */ (0, L.jsx)(Dk, {
"aria-label": "候选图标",
value: s || PR,
onChange: (e) => c(e === PR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: NR.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Dk, {
+ children: NR.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Ok, {
value: e || PR,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, L.jsx)(PA, { mark: e || l })
+ children: /* @__PURE__ */ (0, L.jsx)(FA, { mark: e || l })
}, e || PR))
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -48361,15 +48364,15 @@ function Ofe({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var kfe = "/api/configuration/push-discovery", Afe = "/api/configuration/push-discovery/secret";
-function jfe({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = dw(), l = hA(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {
+var jfe = "/api/configuration/push-discovery", Mfe = "/api/configuration/push-discovery/secret";
+function Nfe({ initial: e, receipt: t }) {
+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = dw(), l = gA(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -48379,11 +48382,11 @@ function jfe({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => q(kfe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
+ c.run("save", (e) => q(jfe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
},
children: [
- /* @__PURE__ */ (0, L.jsxs)(CA, { children: [
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsxs)(wA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
children: /* @__PURE__ */ (0, L.jsx)(pL, {
@@ -48396,7 +48399,7 @@ function jfe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
children: /* @__PURE__ */ (0, L.jsx)(pL, {
@@ -48409,7 +48412,7 @@ function jfe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsx)(SA, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
children: /* @__PURE__ */ (0, L.jsx)(pL, {
@@ -48423,30 +48426,30 @@ function jfe({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, L.jsx)(wA, {
+ d.enabled ? /* @__PURE__ */ (0, L.jsx)(TA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsxs)(AA, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(jA, {
+ children: /* @__PURE__ */ (0, L.jsxs)(jA, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(MA, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, L.jsx)(jA, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(MA, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(wA, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(TA, {
divided: !0,
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(OA, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, L.jsx)(EA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, L.jsx)(DA, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", { children: /* @__PURE__ */ (0, L.jsx)(G, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, L.jsx)(MA, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(NA, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, L.jsx)("div", {
className: "relative",
@@ -48457,17 +48460,17 @@ function jfe({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, L.jsx)(EA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(DA, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)(wA, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)(TA, {
divided: !0,
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(OA, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, L.jsx)(EA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, L.jsx)(DA, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -48475,7 +48478,7 @@ function jfe({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Oj, {
+ /* @__PURE__ */ (0, L.jsx)(kj, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -48484,18 +48487,18 @@ function jfe({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, L.jsx)(YA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(_A, {
+ /* @__PURE__ */ (0, L.jsx)(vA, {
icon: MS,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
@@ -48514,15 +48517,15 @@ function jfe({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, L.jsx)(wA, {
+ o || c.error ? /* @__PURE__ */ (0, L.jsx)(TA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(DA, { children: o || c.error })
+ children: /* @__PURE__ */ (0, L.jsx)(OA, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, L.jsxs)(TA, {
+ /* @__PURE__ */ (0, L.jsxs)(EA, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => {
- c.run("secret", (e) => q(Afe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
+ c.run("secret", (e) => q(Mfe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
},
disabled: !n.available,
...Y(c.busy === "secret"),
@@ -48539,8 +48542,8 @@ function jfe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Mfe = 8e3;
-function Nfe({ className: e }) {
+var Pfe = 8e3;
+function Ffe({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -48557,14 +48560,14 @@ var FR = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Pfe = (e) => FR.find(([t]) => t === e)?.[1] ?? e, IR = (e) => m[e] || "database", LR = (e = "") => ({
+], Ife = (e) => FR.find(([t]) => t === e)?.[1] ?? e, IR = (e) => m[e] || "database", LR = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Ffe(e) {
+function Lfe(e) {
let t = e.media_sources?.filter((e) => FR.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
@@ -48574,12 +48577,12 @@ function Ffe(e) {
library_icon: e.library_icon || ""
})) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => LR(e));
}
-var Ife = (e) => !(e instanceof nw) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Lfe({ data: e, receipt: t }) {
+var Rfe = (e) => !(e instanceof nw) || e.status !== 400 ? null : e.body?.errors ?? null;
+function zfe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, L.jsx)(Rfe, {
+ e.editable ? /* @__PURE__ */ (0, L.jsx)(Bfe, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, L.jsx)(J, {
@@ -48587,21 +48590,21 @@ function Lfe({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, L.jsx)(Bfe, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, L.jsx)(jfe, {
+ /* @__PURE__ */ (0, L.jsx)(Hfe, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, L.jsx)(Nfe, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function Rfe({ data: e, receipt: t }) {
- let [n, r] = (0, I.useState)(() => Ffe(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = dw();
+function Bfe({ data: e, receipt: t }) {
+ let [n, r] = (0, I.useState)(() => Lfe(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = dw();
(0, I.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, I.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Mfe);
+ let e = setTimeout(() => location.assign(m.url), Pfe);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -48637,18 +48640,18 @@ function Rfe({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Ife(e);
+ let t = Rfe(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));
});
};
- if (m) return /* @__PURE__ */ (0, L.jsx)(SA, {
+ if (m) return /* @__PURE__ */ (0, L.jsx)(CA, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, L.jsx)(wA, { children: /* @__PURE__ */ (0, L.jsxs)(J, {
+ children: /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsxs)(J, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, L.jsx)(oA, {
+ /* @__PURE__ */ (0, L.jsx)(sA, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -48658,14 +48661,14 @@ function Rfe({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [
+ children: [/* @__PURE__ */ (0, L.jsxs)(TA, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(OA, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -48676,7 +48679,7 @@ function Rfe({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Oj, {
+ /* @__PURE__ */ (0, L.jsx)(kj, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -48689,13 +48692,13 @@ function Rfe({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, L.jsx)(_A, {
- icon: Nfe,
+ /* @__PURE__ */ (0, L.jsx)(vA, {
+ icon: Ffe,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...Y(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(_A, {
+ n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(vA, {
icon: MS,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
@@ -48704,7 +48707,7 @@ function Rfe({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Oj, {
+ /* @__PURE__ */ (0, L.jsx)(kj, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -48713,7 +48716,7 @@ function Rfe({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(OA, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(Ofe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(kA, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(Afe, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -48722,20 +48725,20 @@ function Rfe({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(OA, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(YA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(kA, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: FR.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(XA, {
+ children: FR.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(ZA, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: IR(e) }), t]
+ children: [/* @__PURE__ */ (0, L.jsx)(FA, { mark: IR(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(Oj, {
+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(kj, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -48752,18 +48755,18 @@ function Rfe({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, L.jsx)(Efe, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, L.jsxs)(EA, { children: [
+ A ? /* @__PURE__ */ (0, L.jsx)(Ofe, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, L.jsxs)(DA, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, L.jsxs)(kA, {
+ /* @__PURE__ */ (0, L.jsxs)(AA, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(EA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(Oj, {
+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(DA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(kj, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -48773,7 +48776,7 @@ function Rfe({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -48783,7 +48786,7 @@ function Rfe({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, L.jsx)(TA, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(EA, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
@@ -48793,7 +48796,7 @@ function Rfe({ data: e, receipt: t }) {
})]
});
}
-function zfe({ online: e }) {
+function Vfe({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, L.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -48817,20 +48820,20 @@ function zfe({ online: e }) {
}), "未检测"]
});
}
-function Bfe({ data: e }) {
+function Hfe({ data: e }) {
let t = e.media_sources, n = dw();
- return t ? /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return t ? /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, L.jsx)(AA, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(jA, {
- term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: IR(e.location) }), Pfe(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(zfe, { online: e.online })]
+ /* @__PURE__ */ (0, L.jsx)(jA, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(MA, {
+ term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(FA, { mark: IR(e.location) }), Ife(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(Vfe, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, L.jsx)(wA, {
+ n.error ? /* @__PURE__ */ (0, L.jsx)(TA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(DA, { children: n.error })
+ children: /* @__PURE__ */ (0, L.jsx)(OA, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(EA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => void n.run("refresh", (e) => kR(e), (e) => X.setQueryData(OR, e)),
...Y(n.busy === "refresh"),
children: "刷新挂载状态"
@@ -48840,12 +48843,12 @@ function Bfe({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Vfe = {
+var Ufe = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Hfe({ initial: e, receipt: t }) {
+function Wfe({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)({}), m = (0, I.useRef)(null), h = dw(), g = (e) => {
e.preventDefault();
let f = {};
@@ -48866,25 +48869,25 @@ function Hfe({ initial: e, receipt: t }) {
let t = e instanceof nw ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(K(e));
});
- }, _ = Vfe[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ }, _ = Ufe[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, L.jsxs)(wA, { children: [
- _ ? /* @__PURE__ */ (0, L.jsx)(EA, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, L.jsxs)(TA, { children: [
+ _ ? /* @__PURE__ */ (0, L.jsx)(DA, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(oj, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(sj, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(Oj, {
+ n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(kj, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -48897,7 +48900,7 @@ function Hfe({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Oj, {
+ v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(kj, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -48910,7 +48913,7 @@ function Hfe({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, L.jsx)(Oj, {
+ }), /* @__PURE__ */ (0, L.jsx)(kj, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -48929,9 +48932,9 @@ function Hfe({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, L.jsx)(OA, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, L.jsx)(TA, {
+ }), v ? /* @__PURE__ */ (0, L.jsx)(EA, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
@@ -48943,11 +48946,11 @@ function Hfe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var Ufe = 2e3, Wfe = [["quick", "临时链接"], ["named", "命名隧道"]], Gfe = {
+var Gfe = 2e3, Kfe = [["quick", "临时链接"], ["named", "命名隧道"]], qfe = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Kfe({ revision: e, initial: t, receipt: n }) {
+function Jfe({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, I.useState)(t), [a, o] = (0, I.useState)(e), [s, c] = (0, I.useState)(t.mode), [l, u] = (0, I.useState)(t.hostname), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)({}), h = dw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, I.useEffect)(() => {
if (r.state !== "starting") return;
@@ -48955,7 +48958,7 @@ function Kfe({ revision: e, initial: t, receipt: n }) {
kR(e.signal).then((t) => {
e.signal.aborted || !t.tunnel || (X.setQueryData(OR, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, Ufe);
+ }, Gfe);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -48974,26 +48977,26 @@ function Kfe({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(K(e));
});
};
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [
- r.named_available ? /* @__PURE__ */ (0, L.jsx)(Ek, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(TA, { children: [
+ r.named_available ? /* @__PURE__ */ (0, L.jsx)(Dk, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: xN,
- children: Wfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Dk, {
+ className: SN,
+ children: Kfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Ok, {
value: e,
- className: SN,
+ className: CN,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(EA, { children: Gfe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Oj, {
+ /* @__PURE__ */ (0, L.jsx)(DA, { children: qfe[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(kj, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -49004,7 +49007,7 @@ function Kfe({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, L.jsx)(Oj, {
+ }), /* @__PURE__ */ (0, L.jsx)(kj, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -49024,7 +49027,7 @@ function Kfe({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, L.jsx)(kA, {
+ children: /* @__PURE__ */ (0, L.jsx)(AA, {
href: r.url,
children: r.url
})
@@ -49034,9 +49037,9 @@ function Kfe({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, L.jsxs)(TA, {
+ r.error ? /* @__PURE__ */ (0, L.jsx)(OA, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, L.jsx)(OA, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, L.jsxs)(EA, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -49052,24 +49055,24 @@ function Kfe({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var qfe = [
+var Yfe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Jfe({ data: e, receipt: t }) {
+function Xfe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, L.jsx)(Yfe, {
+ e.peach_proxy ? /* @__PURE__ */ (0, L.jsx)(Zfe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, L.jsx)(Hfe, {
+ e.access ? /* @__PURE__ */ (0, L.jsx)(Wfe, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, L.jsx)(Kfe, {
+ e.tunnel ? /* @__PURE__ */ (0, L.jsx)(Jfe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -49077,9 +49080,9 @@ function Jfe({ data: e, receipt: t }) {
]
});
}
-function Yfe({ initial: e, receipt: t }) {
+function Zfe({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = dw();
- return /* @__PURE__ */ (0, L.jsxs)(SA, {
+ return /* @__PURE__ */ (0, L.jsxs)(CA, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -49091,25 +49094,25 @@ function Yfe({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, L.jsx)(CA, { children: /* @__PURE__ */ (0, L.jsx)(xA, {
+ /* @__PURE__ */ (0, L.jsx)(wA, { children: /* @__PURE__ */ (0, L.jsx)(SA, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, L.jsx)(YA, {
+ children: /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: qfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ children: Yfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)(wA, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)(TA, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(Oj, {
+ i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(kj, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -49123,10 +49126,10 @@ function Yfe({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, L.jsx)(OA, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(EA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
...Y(c.busy === "save"),
children: "保存配置"
@@ -49136,7 +49139,7 @@ function Yfe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Xfe({ receipt: e, reopenTutorial: t }) {
+function Qfe({ receipt: e, reopenTutorial: t }) {
let n = Ft({
queryKey: OR,
queryFn: ({ signal: e }) => kR(e)
@@ -49145,8 +49148,8 @@ function Xfe({ receipt: e, reopenTutorial: t }) {
className: "configpage",
children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "打不开配置",
- children: n.error ? K(n.error) : "没有读到配置"
+ title: "配置读取失败",
+ children: n.error ? K(n.error) : "未取得配置,请刷新页面重试。"
})
});
let i = {
@@ -49160,22 +49163,22 @@ function Xfe({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, L.jsx)(mfe, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, L.jsx)(gfe, { ...i }) : null,
/* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, L.jsx)(Lfe, { ...i }),
+ /* @__PURE__ */ (0, L.jsx)(zfe, { ...i }),
o ? /* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, L.jsx)(Jfe, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, L.jsx)(Xfe, { ...i }) : null,
/* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, L.jsx)(yfe, {
+ /* @__PURE__ */ (0, L.jsx)(xfe, {
...i,
reopenTutorial: t
})
@@ -49184,35 +49187,35 @@ function Xfe({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var Zfe = (e) => {
+var $fe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function Qfe({ openConfiguration: e }) {
+function epe({ openConfiguration: e }) {
let t = Ft({
queryKey: OR,
queryFn: ({ signal: e }) => kR(e)
}), n = t.data;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, L.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ children: [n ? /* @__PURE__ */ (0, L.jsxs)(jA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, L.jsx)(jA, {
+ /* @__PURE__ */ (0, L.jsx)(MA, {
term: "更新",
- children: Zfe(n)
+ children: $fe(n)
})
- ] }) : /* @__PURE__ */ (0, L.jsx)(wA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "打不开配置",
- children: t.error ? K(t.error) : "没有读到配置"
- }) }), /* @__PURE__ */ (0, L.jsx)(TA, {
+ title: "配置读取失败",
+ children: t.error ? K(t.error) : "未取得配置,请刷新页面重试。"
+ }) }), /* @__PURE__ */ (0, L.jsx)(EA, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
onClick: e,
@@ -49223,14 +49226,14 @@ function Qfe({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var $fe = "/api/stats", RR = ["stats"], zR = (e) => iw($fe, e);
-async function epe(e) {
+var tpe = "/api/stats", RR = ["stats"], zR = (e) => iw(tpe, e);
+async function npe(e) {
await X.fetchQuery({
queryKey: RR,
queryFn: () => zR(e)
});
}
-var BR = (e, t) => t ? Math.round(e / t * 100) : 0, tpe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, VR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, HR = (e) => (e.max_reached || 0) * 100, npe = (e) => e.kind === "online" ? "在线直接观看" : VR(e) < HR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", rpe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, ipe = (e) => Math.max(1, ...e) * 1.1, ape = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ope = {
+var BR = (e, t) => t ? Math.round(e / t * 100) : 0, rpe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, VR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, HR = (e) => (e.max_reached || 0) * 100, ipe = (e) => e.kind === "online" ? "在线直接观看" : VR(e) < HR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", ape = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, ope = (e) => Math.max(1, ...e) * 1.1, spe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), cpe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -49238,10 +49241,10 @@ var BR = (e, t) => t ? Math.round(e / t * 100) : 0, tpe = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, spe = (e) => e.map((e) => ({
- name: ope[e.k] ?? e.k,
+}, lpe = (e) => e.map((e) => ({
+ name: cpe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), cpe = {
+})).sort((e, t) => t.value - e.value), upe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -49249,7 +49252,7 @@ var BR = (e, t) => t ? Math.round(e / t * 100) : 0, tpe = (e) => e >= 3600 ? `${
}, UR = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), lpe = (e) => UR(e, cpe), upe = [
+})), dpe = (e) => UR(e, upe), fpe = [
[
1,
1,
@@ -49285,18 +49288,18 @@ var BR = (e, t) => t ? Math.round(e / t * 100) : 0, tpe = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], dpe = (e) => upe.map(([t, n, r]) => ({
+], ppe = (e) => fpe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), fpe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
+})), mpe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
function WR(e) {
- return typeof e == "string" && fpe.includes(e);
+ return typeof e == "string" && mpe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var ppe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
+var hpe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
function GR(e) {
- return typeof e == "string" && ppe.has(e);
+ return typeof e == "string" && hpe.has(e);
}
function KR(e) {
return typeof e == "string" && e.startsWith("data-");
@@ -49322,12 +49325,12 @@ function YR(e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (GR(n) || KR(n) || WR(n)) && (t[n] = e[n]);
return t;
}
-function mpe(e) {
+function gpe(e) {
return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? YR(e.props) : typeof e == "object" && !Array.isArray(e) ? YR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var hpe = [
+var _pe = [
"children",
"width",
"height",
@@ -49346,16 +49349,16 @@ function XR() {
return e;
}, XR.apply(null, arguments);
}
-function gpe(e, t) {
+function vpe(e, t) {
if (e == null) return {};
- var n, r, i = _pe(e, t);
+ var n, r, i = ype(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function _pe(e, t) {
+function ype(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -49365,7 +49368,7 @@ function _pe(e, t) {
return n;
}
var ZR = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = gpe(e, hpe), d = a || {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = vpe(e, _pe), d = a || {
width: r,
height: i,
x: 0,
@@ -49379,7 +49382,7 @@ var ZR = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ I.createElement("title", null, c), /*#__PURE__*/ I.createElement("desc", null, l), n);
-}), vpe = ["children", "className"];
+}), bpe = ["children", "className"];
function QR() {
return QR = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -49389,16 +49392,16 @@ function QR() {
return e;
}, QR.apply(null, arguments);
}
-function ype(e, t) {
+function xpe(e, t) {
if (e == null) return {};
- var n, r, i = bpe(e, t);
+ var n, r, i = Spe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function bpe(e, t) {
+function Spe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -49408,9 +49411,9 @@ function bpe(e, t) {
return n;
}
var $R = /*#__PURE__*/ I.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = ype(e, vpe), a = Xm("recharts-layer", r);
+ var { children: n, className: r } = e, i = xpe(e, bpe), a = Xm("recharts-layer", r);
return /*#__PURE__*/ I.createElement("g", QR({ className: a }, YR(i), { ref: t }), n);
-}), ez = /*#__PURE__*/ (0, I.createContext)(null), xpe = () => (0, I.useContext)(ez);
+}), ez = /*#__PURE__*/ (0, I.createContext)(null), Cpe = () => (0, I.useContext)(ez);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
function tz(e) {
@@ -49422,12 +49425,12 @@ function tz(e) {
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
var nz = Math.cos, rz = Math.sin, iz = Math.sqrt, az = Math.PI;
az / 2;
-var oz = 2 * az, sz = Math.PI, cz = 2 * sz, lz = 1e-6, Spe = cz - lz;
+var oz = 2 * az, sz = Math.PI, cz = 2 * sz, lz = 1e-6, wpe = cz - lz;
function uz(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Cpe(e) {
+function Tpe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
if (t > 15) return uz;
@@ -49439,7 +49442,7 @@ function Cpe(e) {
}
var dz = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? uz : Cpe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? uz : Tpe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -49471,7 +49474,7 @@ var dz = class {
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > lz || Math.abs(this._y1 - l) > lz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % cz + cz), d > Spe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > lz && this._append`A${n},${n},0,${+(d >= sz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > lz || Math.abs(this._y1 - l) > lz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % cz + cz), d > wpe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > lz && this._append`A${n},${n},0,${+(d >= sz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
rect(e, t, n, r) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@ -49638,10 +49641,10 @@ var bz = class {
this._x0 = e, this._y0 = t;
}
};
-function wpe(e) {
+function Epe(e) {
return new bz(e, !0);
}
-function Tpe(e) {
+function Dpe(e) {
return new bz(e, !1);
}
//#endregion
@@ -49649,33 +49652,33 @@ function Tpe(e) {
var xz = { draw(e, t) {
let n = iz(t / az);
e.moveTo(n, 0), e.arc(0, 0, n, 0, oz);
-} }, Epe = { draw(e, t) {
+} }, Ope = { draw(e, t) {
let n = iz(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, Sz = iz(1 / 3), Dpe = Sz * 2, Ope = { draw(e, t) {
- let n = iz(t / Dpe), r = n * Sz;
+} }, Sz = iz(1 / 3), kpe = Sz * 2, Ape = { draw(e, t) {
+ let n = iz(t / kpe), r = n * Sz;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, kpe = { draw(e, t) {
+} }, jpe = { draw(e, t) {
let n = iz(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, Ape = .8908130915292852, Cz = rz(az / 10) / rz(7 * az / 10), jpe = rz(oz / 10) * Cz, Mpe = -nz(oz / 10) * Cz, Npe = { draw(e, t) {
- let n = iz(t * Ape), r = jpe * n, i = Mpe * n;
+} }, Mpe = .8908130915292852, Cz = rz(az / 10) / rz(7 * az / 10), Npe = rz(oz / 10) * Cz, Ppe = -nz(oz / 10) * Cz, Fpe = { draw(e, t) {
+ let n = iz(t * Mpe), r = Npe * n, i = Ppe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
let a = oz * t / 5, o = nz(a), s = rz(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, wz = iz(3), Ppe = { draw(e, t) {
+} }, wz = iz(3), Ipe = { draw(e, t) {
let n = -iz(t / (wz * 3));
e.moveTo(0, n * 2), e.lineTo(-wz * n, -n), e.lineTo(wz * n, -n), e.closePath();
-} }, Tz = -.5, Ez = iz(3) / 2, Dz = 1 / iz(12), Fpe = (Dz / 2 + 1) * 3, Ipe = { draw(e, t) {
- let n = iz(t / Fpe), r = n / 2, i = n * Dz, a = r, o = n * Dz + n, s = -a, c = o;
+} }, Tz = -.5, Ez = iz(3) / 2, Dz = 1 / iz(12), Lpe = (Dz / 2 + 1) * 3, Rpe = { draw(e, t) {
+ let n = iz(t / Lpe), r = n / 2, i = n * Dz, a = r, o = n * Dz + n, s = -a, c = o;
e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(Tz * r - Ez * i, Ez * r + Tz * i), e.lineTo(Tz * a - Ez * o, Ez * a + Tz * o), e.lineTo(Tz * s - Ez * c, Ez * s + Tz * c), e.lineTo(Tz * r + Ez * i, Tz * i - Ez * r), e.lineTo(Tz * a + Ez * o, Tz * o - Ez * a), e.lineTo(Tz * s + Ez * c, Tz * c - Ez * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Lpe(e, t) {
+function zpe(e, t) {
let n = null, r = fz(i);
e = typeof e == "function" ? e : tz(e || xz), t = typeof t == "function" ? t : tz(t === void 0 ? 64 : +t);
function i() {
@@ -49732,7 +49735,7 @@ Az.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Rpe(e) {
+function Bpe(e) {
return new Az(e);
}
//#endregion
@@ -49773,7 +49776,7 @@ jz.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function zpe(e) {
+function Vpe(e) {
return new jz(e);
}
//#endregion
@@ -49813,7 +49816,7 @@ Mz.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Bpe(e) {
+function Hpe(e) {
return new Mz(e);
}
//#endregion
@@ -49834,7 +49837,7 @@ Nz.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Vpe(e) {
+function Upe(e) {
return new Nz(e);
}
//#endregion
@@ -49918,10 +49921,10 @@ Bz.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Hpe(e) {
+function Wpe(e) {
return new Rz(e);
}
-function Upe(e) {
+function Gpe(e) {
return new zz(e);
}
//#endregion
@@ -49959,7 +49962,7 @@ function Hz(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function Wpe(e) {
+function Kpe(e) {
return new Vz(e);
}
//#endregion
@@ -49995,13 +49998,13 @@ Uz.prototype = {
this._x = e, this._y = t;
}
};
-function Gpe(e) {
+function qpe(e) {
return new Uz(e, .5);
}
-function Kpe(e) {
+function Jpe(e) {
return new Uz(e, 0);
}
-function qpe(e) {
+function Ype(e) {
return new Uz(e, 1);
}
//#endregion
@@ -50017,17 +50020,17 @@ function Gz(e) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Jpe(e, t) {
+function Xpe(e, t) {
return e[t];
}
-function Ype(e) {
+function Zpe(e) {
let t = [];
return t.key = e, t;
}
-function Xpe() {
- var e = tz([]), t = Gz, n = Wz, r = Jpe;
+function Qpe() {
+ var e = tz([]), t = Gz, n = Wz, r = Xpe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Ype), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Zpe), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
for (o = 0, l = pz(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
@@ -50044,7 +50047,7 @@ function Xpe() {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Zpe(e, t) {
+function $pe(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
@@ -50055,7 +50058,7 @@ function Zpe(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Qpe(e, t) {
+function eme(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
@@ -50066,7 +50069,7 @@ function Qpe(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function $pe(e, t) {
+function tme(e, t) {
if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -50088,12 +50091,12 @@ function Kz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var eme = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+var nme = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
function qz(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : eme.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : nme.test(e);
default: return !1;
}
}
@@ -50109,7 +50112,7 @@ function Yz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function tme(e) {
+function rme(e) {
return e == null ? "" : Xz(e);
}
function Xz(e) {
@@ -50124,7 +50127,7 @@ function Xz(e) {
function Zz(e) {
if (Array.isArray(e)) return e.map(Jz);
if (typeof e == "symbol") return [e];
- e = tme(e);
+ e = rme(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -50167,14 +50170,14 @@ function Qz(e, t, n) {
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return nme(e, t, n);
+ if (Array.isArray(t)) return ime(e, t, n);
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Kz(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function nme(e, t, n) {
+function ime(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
@@ -50185,9 +50188,9 @@ function nme(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var rme = 4;
+var ame = 4;
function $z(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : rme), n = Math.round(e * t) / t;
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ame), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
function eB(e) {
@@ -50199,8 +50202,8 @@ function eB(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var tB = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, nB = (e) => typeof e == "number" && e != +e, rB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !nB(e), iB = (e) => Z(e) || typeof e == "string", ime = 0, aB = (e) => {
- var t = ++ime;
+var tB = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, nB = (e) => typeof e == "number" && e != +e, rB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !nB(e), iB = (e) => Z(e) || typeof e == "string", ome = 0, aB = (e) => {
+ var t = ++ome;
return `${e || ""}${t}`;
}, oB = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
@@ -50231,7 +50234,7 @@ function fB(e) {
function pB() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var ame = [
+var sme = [
"type",
"size",
"sizeType"
@@ -50259,26 +50262,26 @@ function gB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? hB(Object(n), !0).forEach(function(t) {
- ome(e, t, n[t]);
+ cme(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ome(e, t, n) {
- return (t = sme(t)) in e ? Object.defineProperty(e, t, {
+function cme(e, t, n) {
+ return (t = lme(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sme(e) {
- var t = cme(e, "string");
+function lme(e) {
+ var t = ume(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cme(e, t) {
+function ume(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50288,16 +50291,16 @@ function cme(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function lme(e, t) {
+function dme(e, t) {
if (e == null) return {};
- var n, r, i = ume(e, t);
+ var n, r, i = fme(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ume(e, t) {
+function fme(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50308,36 +50311,36 @@ function ume(e, t) {
}
var _B = {
symbolCircle: xz,
- symbolCross: Epe,
- symbolDiamond: Ope,
- symbolSquare: kpe,
- symbolStar: Npe,
- symbolTriangle: Ppe,
- symbolWye: Ipe
-}, dme = Math.PI / 180, fme = (e) => _B[`symbol${dB(e)}`] || xz, pme = (e, t, n) => {
+ symbolCross: Ope,
+ symbolDiamond: Ape,
+ symbolSquare: jpe,
+ symbolStar: Fpe,
+ symbolTriangle: Ipe,
+ symbolWye: Rpe
+}, pme = Math.PI / 180, mme = (e) => _B[`symbol${dB(e)}`] || xz, hme = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * dme;
+ var r = 18 * pme;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, mme = (e, t) => {
+}, gme = (e, t) => {
_B[`symbol${dB(e)}`] = t;
}, vB = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = gB(gB({}, lme(e, ame)), {}, {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = gB(gB({}, dme(e, sme)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = fme(a), t = Lpe().type(e).size(pme(n, r, a))();
+ var e = mme(a), t = zpe().type(e).size(hme(n, r, a))();
if (t !== null) return t;
}, { className: s, cx: c, cy: l } = i, u = YR(i);
return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", mB({}, u, {
@@ -50346,7 +50349,7 @@ var _B = {
d: o()
})) : null;
};
-vB.registerSymbol = mme;
+vB.registerSymbol = gme;
//#endregion
//#region node_modules/recharts/es6/util/types.js
var yB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, bB = (e, t) => {
@@ -50357,12 +50360,12 @@ var yB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, bB = (e,
return Object.keys(n).forEach((e) => {
WR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, hme = (e, t, n) => (r) => (e(t, n, r), null), xB = (e, t, n) => {
+}, _me = (e, t, n) => (r) => (e(t, n, r), null), xB = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- WR(i) && typeof a == "function" && (r ||= {}, r[i] = hme(a, t, n));
+ WR(i) && typeof a == "function" && (r ||= {}, r[i] = _me(a, t, n));
}), r;
};
//#endregion
@@ -50377,30 +50380,30 @@ function SB(e, t) {
}
return n;
}
-function gme(e) {
+function vme(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? SB(Object(n), !0).forEach(function(t) {
- _me(e, t, n[t]);
+ yme(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _me(e, t, n) {
- return (t = vme(t)) in e ? Object.defineProperty(e, t, {
+function yme(e, t, n) {
+ return (t = bme(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vme(e) {
- var t = yme(e, "string");
+function bme(e) {
+ var t = xme(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yme(e, t) {
+function xme(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50411,7 +50414,7 @@ function yme(e, t) {
return (t === "string" ? String : Number)(e);
}
function CB(e, t) {
- var n = gme({}, e), r = t;
+ var n = vme({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
@@ -50439,26 +50442,26 @@ function EB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? TB(Object(n), !0).forEach(function(t) {
- bme(e, t, n[t]);
+ Sme(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bme(e, t, n) {
- return (t = xme(t)) in e ? Object.defineProperty(e, t, {
+function Sme(e, t, n) {
+ return (t = Cme(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xme(e) {
- var t = Sme(e, "string");
+function Cme(e) {
+ var t = wme(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sme(e, t) {
+function wme(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50468,7 +50471,7 @@ function Sme(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var DB = 32, Cme = {
+var DB = 32, Tme = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -50476,17 +50479,17 @@ var DB = 32, Cme = {
verticalAlign: "middle",
labelStyle: {}
};
-function wme(e) {
+function Eme(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function Tme(e) {
+function Dme(e) {
var { data: t, iconType: n, inactiveColor: r } = e, i = DB / 2, a = DB / 6, o = DB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ I.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: wme(t.payload),
+ strokeDasharray: Eme(t.payload),
x1: 0,
y1: i,
x2: DB,
@@ -50522,7 +50525,7 @@ function Tme(e) {
type: c
});
}
-function Eme(e) {
+function Ome(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
@@ -50556,7 +50559,7 @@ function Eme(e) {
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ I.createElement(Tme, {
+ }, /*#__PURE__*/ I.createElement(Dme, {
data: t,
iconType: o,
inactiveColor: a
@@ -50566,8 +50569,8 @@ function Eme(e) {
}, m));
});
}
-var Dme = (e) => {
- var t = CB(e, Cme), { payload: n, layout: r, align: i } = t;
+var kme = (e) => {
+ var t = CB(e, Tme), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -50577,11 +50580,11 @@ var Dme = (e) => {
return /*#__PURE__*/ I.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ I.createElement(Eme, wB({}, t, { payload: n })));
+ }, /*#__PURE__*/ I.createElement(Ome, wB({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function Ome(e, t) {
+function Ame(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -50591,7 +50594,7 @@ function Ome(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function kme(e, t) {
+function jme(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
@@ -50603,17 +50606,17 @@ function OB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function Ame(e) {
+function Mme(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
function kB(e) {
- return e != null && typeof e != "function" && Ame(e.length);
+ return e != null && typeof e != "function" && Mme(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function jme(e) {
+function Nme(e) {
return function(t) {
return Qz(t, e);
};
@@ -50625,12 +50628,12 @@ function AB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function Mme(e) {
+function Pme(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function Nme(e) {
+function Fme(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
@@ -50640,17 +50643,17 @@ function jB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var Pme = "[object RegExp]", MB = "[object String]", NB = "[object Number]", PB = "[object Boolean]", FB = "[object Arguments]", Fme = "[object Symbol]", Ime = "[object Date]", Lme = "[object Map]", Rme = "[object Set]", zme = "[object Array]", Bme = "[object ArrayBuffer]", Vme = "[object Object]", Hme = "[object DataView]", Ume = "[object Uint8Array]", Wme = "[object Uint8ClampedArray]", Gme = "[object Uint16Array]", Kme = "[object Uint32Array]", qme = "[object Int8Array]", Jme = "[object Int16Array]", Yme = "[object Int32Array]", Xme = "[object Float32Array]", Zme = "[object Float64Array]", IB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var Ime = "[object RegExp]", MB = "[object String]", NB = "[object Number]", PB = "[object Boolean]", FB = "[object Arguments]", Lme = "[object Symbol]", Rme = "[object Date]", zme = "[object Map]", Bme = "[object Set]", Vme = "[object Array]", Hme = "[object ArrayBuffer]", Ume = "[object Object]", Wme = "[object DataView]", Gme = "[object Uint8Array]", Kme = "[object Uint8ClampedArray]", qme = "[object Uint16Array]", Jme = "[object Uint32Array]", Yme = "[object Int8Array]", Xme = "[object Int16Array]", Zme = "[object Int32Array]", Qme = "[object Float32Array]", $me = "[object Float64Array]", IB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
-function Qme(e) {
+function ehe(e) {
return IB.Buffer !== void 0 && IB.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function $me(e, t) {
+function the(e, t) {
return LB(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
function LB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
@@ -50681,8 +50684,8 @@ function LB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
for (let a of e) t.add(LB(a, void 0, n, r, i));
return t;
}
- if (Qme(e)) return e.subarray();
- if (Mme(e)) {
+ if (ehe(e)) return e.subarray();
+ if (Pme(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
for (let a = 0; a < e.length; a++) t[a] = LB(e[a], a, n, r, i);
@@ -50717,49 +50720,49 @@ function LB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let t = new String(e.valueOf());
return r.set(e, t), RB(t, e, n, r, i), t;
}
- if (typeof e == "object" && ehe(e)) {
+ if (typeof e == "object" && nhe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
return r.set(e, t), RB(t, e, n, r, i), t;
}
return e;
}
function RB(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...Nme(t)];
+ let a = [...Object.keys(t), ...Fme(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
(c == null || c.writable) && (e[s] = LB(t[s], s, n, r, i));
}
}
-function ehe(e) {
+function nhe(e) {
switch (jB(e)) {
case FB:
- case zme:
- case Bme:
+ case Vme:
case Hme:
+ case Wme:
case PB:
- case Ime:
+ case Rme:
+ case Qme:
+ case $me:
+ case Yme:
case Xme:
case Zme:
- case qme:
- case Jme:
- case Yme:
- case Lme:
+ case zme:
case NB:
- case Vme:
- case Pme:
- case Rme:
- case MB:
- case Fme:
case Ume:
- case Wme:
+ case Ime:
+ case Bme:
+ case MB:
+ case Lme:
case Gme:
- case Kme: return !0;
+ case Kme:
+ case qme:
+ case Jme: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function the(e) {
+function rhe(e) {
return LB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
@@ -50783,16 +50786,16 @@ function VB(e, t, n) {
function HB(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return nhe(e, t, n, r, i);
+ case "object": return ihe(e, t, n, r, i);
case "function": return Object.keys(t).length > 0 ? HB(e, { ...t }, n, r, i) : zB(e, t);
default: return BB(e) && i ? typeof t != "string" || t === "" : zB(e, t);
}
}
-function nhe(e, t, n, r, i = !1) {
+function ihe(e, t, n, r, i = !1) {
if (t == null) return !0;
if (Array.isArray(t)) return UB(e, t, n, r);
- if (t instanceof Map) return rhe(e, t, n, r);
- if (t instanceof Set) return ihe(e, t, n, r);
+ if (t instanceof Map) return ahe(e, t, n, r);
+ if (t instanceof Set) return ohe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
if (i) AB(e) && (e = Object(e));
@@ -50813,7 +50816,7 @@ function nhe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function rhe(e, t, n, r) {
+function ahe(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
@@ -50837,7 +50840,7 @@ function UB(e, t, n, r) {
}
return !0;
}
-function ihe(e, t, n, r) {
+function ohe(e, t, n, r) {
return t.size === 0 || e instanceof Set && UB([...e], [...t], n, r);
}
//#endregion
@@ -50847,13 +50850,13 @@ function WB(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function ahe(e) {
- return e = the(e), (t) => WB(t, e);
+function she(e) {
+ return e = rhe(e), (t) => WB(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function ohe(e, t) {
- return $me(e, (n, r, i, a) => {
+function che(e, t) {
+ return the(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
@@ -50879,49 +50882,49 @@ function ohe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function she(e) {
- return ohe(e);
+function lhe(e) {
+ return che(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var che = /^(?:0|[1-9]\d*)$/;
+var uhe = /^(?:0|[1-9]\d*)$/;
function GB(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return che.test(e);
+ case "string": return uhe.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function lhe(e) {
+function dhe(e) {
return typeof e == "object" && !!e && jB(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function uhe(e, t) {
+function fhe(e, t) {
let n;
if (n = Array.isArray(t) ? t : typeof t == "string" && qz(t) && !(t in Object(e)) ? Zz(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
let t = Jz(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || lhe(r)) && GB(t) && Number(t) < r.length)) return !1;
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || dhe(r)) && GB(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function dhe(e, t) {
+function phe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
case "number": e = Jz(e);
}
- return t = she(t), function(n) {
+ return t = lhe(t), function(n) {
let r = Qz(n, e);
- return r === void 0 ? uhe(n, e) : t === void 0 ? r === void 0 : WB(r, t);
+ return r === void 0 ? fhe(n, e) : t === void 0 ? r === void 0 : WB(r, t);
};
}
//#endregion
@@ -50930,19 +50933,19 @@ function KB(e) {
if (e == null) return OB;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? dhe(e[0], e[1]) : ahe(e);
- default: return jme(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? phe(e[0], e[1]) : she(e);
+ default: return Nme(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function fhe(e) {
+function mhe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
function qB(e, t = OB) {
- return kB(e) ? Ome(Array.from(e), kme(KB(t), 1)).map(fhe) : [];
+ return kB(e) ? Ame(Array.from(e), jme(KB(t), 1)).map(mhe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
@@ -50951,7 +50954,7 @@ function JB(e, t, n) {
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var phe = /* @__PURE__ */ F(((e) => {
+var hhe = /* @__PURE__ */ F(((e) => {
var t = ce(), n = wh();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -50996,53 +50999,53 @@ var phe = /* @__PURE__ */ F(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), mhe = /* @__PURE__ */ F(((e, t) => {
- t.exports = phe();
-})), YB = /*#__PURE__*/ (0, I.createContext)(null), hhe = mhe(), ghe = (e) => e, XB = () => {
+})), ghe = /* @__PURE__ */ F(((e, t) => {
+ t.exports = hhe();
+})), YB = /*#__PURE__*/ (0, I.createContext)(null), _he = ghe(), vhe = (e) => e, XB = () => {
var e = (0, I.useContext)(YB);
- return e ? e.store.dispatch : ghe;
-}, ZB = () => {}, _he = () => ZB, vhe = (e, t) => e === t;
+ return e ? e.store.dispatch : vhe;
+}, ZB = () => {}, yhe = () => ZB, bhe = (e, t) => e === t;
function Q(e) {
var t = (0, I.useContext)(YB), n = (0, I.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
} : ZB, [t, e]);
- return (0, hhe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : _he, t ? t.store.getState : ZB, t ? t.store.getState : ZB, n, vhe);
+ return (0, _he.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : yhe, t ? t.store.getState : ZB, t ? t.store.getState : ZB, n, bhe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function yhe(e, t = `expected a function, instead received ${typeof e}`) {
+function xhe(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function bhe(e, t = `expected an object, instead received ${typeof e}`) {
+function She(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function xhe(e, t = "expected all items to be functions, instead received the following types: ") {
+function Che(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
var QB = (e) => Array.isArray(e) ? e : [e];
-function She(e) {
+function whe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return xhe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return Che(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function Che(e, t) {
+function The(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var whe = class {
+var Ehe = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, The = typeof WeakRef < "u" ? WeakRef : whe, Ehe = 0, $B = 1;
+}, Dhe = typeof WeakRef < "u" ? WeakRef : Ehe, Ohe = 0, $B = 1;
function eV() {
return {
- s: Ehe,
+ s: Ohe,
v: void 0,
o: null,
p: null
@@ -51070,7 +51073,7 @@ function tV(e, t = {}) {
if (t.s === $B) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
let e = i?.deref?.() ?? i;
- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new The(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new Dhe(c) : c;
}
return s.s = $B, s.v = c, c;
}
@@ -51080,21 +51083,21 @@ function tV(e, t = {}) {
a = 0;
}, o;
}
-function Dhe(e, ...t) {
+function nV(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), yhe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ typeof o == "object" && (a = o, o = e.pop()), xhe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
let { memoize: s, memoizeOptions: c = [], argsMemoize: l = tV, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = QB(c), p = QB(u), m = She(e), h = s(function() {
+ }, f = QB(c), p = QB(u), m = whe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = Che(m, arguments);
+ let e = The(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -51116,14 +51119,14 @@ function Dhe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ Dhe(tV), nV = Object.assign((e, t = $) => {
- bhe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ nV(tV), rV = Object.assign((e, t = $) => {
+ She(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => nV });
+}, { withTypes: () => rV });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function rV(e, t = 1) {
+function iV(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -51134,17 +51137,17 @@ function rV(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function iV(e, t, n) {
+function aV(e, t, n) {
return BB(n) && (typeof t == "number" && kB(n) && GB(t) && t < n.length || typeof t == "string" && t in n) ? zB(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function aV(e) {
+function oV(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var oV = (e, t, n) => {
+var sV = (e, t, n) => {
if (e !== t) {
- let r = aV(e), i = aV(t);
+ let r = oV(e), i = oV(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -51152,13 +51155,13 @@ var oV = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, sV = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cV = /^\w*$/;
-function lV(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Yz(e) ? !0 : typeof e == "string" && (cV.test(e) || !sV.test(e)) || t != null && Object.hasOwn(t, e);
+}, cV = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, lV = /^\w*$/;
+function uV(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Yz(e) ? !0 : typeof e == "string" && (lV.test(e) || !cV.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function uV(e, t, n, r) {
+function dV(e, t, n, r) {
if (e == null) return [];
n = r ? void 0 : n, Array.isArray(e) || (e = kB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
@@ -51168,7 +51171,7 @@ function uV(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || lV(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || uV(e) ? e : {
key: e,
path: Zz(e)
}));
@@ -51177,7 +51180,7 @@ function uV(e, t, n, r) {
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = oV(e.criteria[r], t.criteria[r], n[r]);
+ let i = sV(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -51185,25 +51188,25 @@ function uV(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function dV(e, ...t) {
+function fV(e, ...t) {
let n = t.length;
- return n > 1 && iV(e, t[0], t[1]) ? t = [] : n > 2 && iV(t[0], t[1], t[2]) && (t = [t[0]]), uV(e, rV(t), ["asc"]);
+ return n > 1 && aV(e, t[0], t[1]) ? t = [] : n > 2 && aV(t[0], t[1], t[2]) && (t = [t[0]]), dV(e, iV(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var fV = (e) => e.legend.settings, pV = (e) => e.legend.size, mV = $([(e) => e.legend.payload, fV], (e, t) => {
+var pV = (e) => e.legend.settings, mV = (e) => e.legend.size, hV = $([(e) => e.legend.payload, pV], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? dV(r, n) : r;
+ return n ? fV(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function hV() {
- return Q(mV);
+function gV() {
+ return Q(hV);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var gV = 1;
-function _V() {
+var _V = 1;
+function vV() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, I.useState)({
height: 0,
left: 0,
@@ -51218,7 +51221,7 @@ function _V() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > gV || Math.abs(i.left - t.left) > gV || Math.abs(i.top - t.top) > gV || Math.abs(i.width - t.width) > gV) && n({
+ (Math.abs(i.height - t.height) > _V || Math.abs(i.left - t.left) > _V || Math.abs(i.top - t.top) > _V || Math.abs(i.width - t.width) > _V) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -51235,26 +51238,26 @@ function _V() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function vV(e) {
+function yV(e) {
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
-var yV = typeof Symbol == "function" && Symbol.observable || "@@observable", bV = () => Math.random().toString(36).substring(7).split("").join("."), xV = {
- INIT: `@@redux/INIT${/* @__PURE__ */ bV()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ bV()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${bV()}`
+var bV = typeof Symbol == "function" && Symbol.observable || "@@observable", xV = () => Math.random().toString(36).substring(7).split("").join("."), SV = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ xV()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ xV()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${xV()}`
};
-function SV(e) {
+function CV(e) {
if (typeof e != "object" || !e) return !1;
let t = e;
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
}
-function CV(e, t, n) {
- if (typeof e != "function") throw Error(vV(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(vV(0));
+function wV(e, t, n) {
+ if (typeof e != "function") throw Error(yV(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(yV(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(vV(1));
- return n(CV)(e, t);
+ if (typeof n != "function") throw Error(yV(1));
+ return n(wV)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -51263,27 +51266,27 @@ function CV(e, t, n) {
}));
}
function u() {
- if (c) throw Error(vV(3));
+ if (c) throw Error(yV(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(vV(4));
- if (c) throw Error(vV(5));
+ if (typeof e != "function") throw Error(yV(4));
+ if (c) throw Error(yV(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(vV(6));
+ if (c) throw Error(yV(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!SV(e)) throw Error(vV(7));
- if (e.type === void 0) throw Error(vV(8));
- if (typeof e.type != "string") throw Error(vV(17));
- if (c) throw Error(vV(9));
+ if (!CV(e)) throw Error(yV(7));
+ if (e.type === void 0) throw Error(yV(8));
+ if (typeof e.type != "string") throw Error(yV(17));
+ if (c) throw Error(yV(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -51294,41 +51297,41 @@ function CV(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(vV(10));
- r = e, f({ type: xV.REPLACE });
+ if (typeof e != "function") throw Error(yV(10));
+ r = e, f({ type: SV.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(vV(11));
+ if (typeof t != "object" || !t) throw Error(yV(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [yV]() {
+ [bV]() {
return this;
}
};
}
- return f({ type: xV.INIT }), {
+ return f({ type: SV.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [yV]: m
+ [bV]: m
};
}
-function wV(e) {
+function TV(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: xV.INIT }) === void 0) throw Error(vV(12));
- if (n(void 0, { type: xV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(vV(13));
+ if (n(void 0, { type: SV.INIT }) === void 0) throw Error(yV(12));
+ if (n(void 0, { type: SV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(yV(13));
});
}
-function TV(e) {
+function EV(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -51336,7 +51339,7 @@ function TV(e) {
}
let r = Object.keys(n), i;
try {
- wV(n);
+ TV(n);
} catch (e) {
i = e;
}
@@ -51345,124 +51348,124 @@ function TV(e) {
let a = !1, o = {};
for (let i = 0; i < r.length; i++) {
let s = r[i], c = n[s], l = e[s], u = c(l, t);
- if (u === void 0) throw t && t.type, Error(vV(14));
+ if (u === void 0) throw t && t.type, Error(yV(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function EV(...e) {
+function DV(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function DV(...e) {
+function OV(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(vV(15));
+ throw Error(yV(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = EV(...e.map((e) => e(o)))(i.dispatch), {
+ return a = DV(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function OV(e) {
- return SV(e) && "type" in e && typeof e.type == "string";
+function kV(e) {
+ return CV(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var kV = Symbol.for("immer-nothing"), AV = Symbol.for("immer-draftable"), jV = Symbol.for("immer-state");
-function MV(e, ...t) {
+var AV = Symbol.for("immer-nothing"), jV = Symbol.for("immer-draftable"), MV = Symbol.for("immer-state");
+function NV(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var NV = Object, PV = NV.getPrototypeOf, FV = "constructor", IV = "prototype", LV = "configurable", RV = "enumerable", zV = "writable", BV = "value", VV = (e) => !!e && !!e[jV];
-function HV(e) {
- return e ? GV(e) || QV(e) || !!e[AV] || !!e[FV]?.[AV] || $V(e) || eH(e) : !1;
+var PV = Object, FV = PV.getPrototypeOf, IV = "constructor", LV = "prototype", RV = "configurable", zV = "enumerable", BV = "writable", VV = "value", HV = (e) => !!e && !!e[MV];
+function UV(e) {
+ return e ? KV(e) || $V(e) || !!e[jV] || !!e[IV]?.[jV] || eH(e) || tH(e) : !1;
}
-var UV = NV[IV][FV].toString(), WV = /* @__PURE__ */ new WeakMap();
-function GV(e) {
- if (!e || !tH(e)) return !1;
- let t = PV(e);
- if (t === null || t === NV[IV]) return !0;
- let n = NV.hasOwnProperty.call(t, FV) && t[FV];
+var WV = PV[LV][IV].toString(), GV = /* @__PURE__ */ new WeakMap();
+function KV(e) {
+ if (!e || !nH(e)) return !1;
+ let t = FV(e);
+ if (t === null || t === PV[LV]) return !0;
+ let n = PV.hasOwnProperty.call(t, IV) && t[IV];
if (n === Object) return !0;
- if (!nH(n)) return !1;
- let r = WV.get(n);
- return r === void 0 && (r = Function.toString.call(n), WV.set(n, r)), r === UV;
+ if (!rH(n)) return !1;
+ let r = GV.get(n);
+ return r === void 0 && (r = Function.toString.call(n), GV.set(n, r)), r === WV;
}
-function KV(e, t, n = !0) {
- qV(e) === 0 ? (n ? Reflect.ownKeys(e) : NV.keys(e)).forEach((n) => {
+function qV(e, t, n = !0) {
+ JV(e) === 0 ? (n ? Reflect.ownKeys(e) : PV.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function qV(e) {
- let t = e[jV];
- return t ? t.type_ : QV(e) ? 1 : $V(e) ? 2 : eH(e) ? 3 : 0;
+function JV(e) {
+ let t = e[MV];
+ return t ? t.type_ : $V(e) ? 1 : eH(e) ? 2 : tH(e) ? 3 : 0;
}
-var JV = (e, t, n = qV(e)) => n === 2 ? e.has(t) : NV[IV].hasOwnProperty.call(e, t), YV = (e, t, n = qV(e)) => n === 2 ? e.get(t) : e[t], XV = (e, t, n, r = qV(e)) => {
+var YV = (e, t, n = JV(e)) => n === 2 ? e.has(t) : PV[LV].hasOwnProperty.call(e, t), XV = (e, t, n = JV(e)) => n === 2 ? e.get(t) : e[t], ZV = (e, t, n, r = JV(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function ZV(e, t) {
+function QV(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var QV = Array.isArray, $V = (e) => e instanceof Map, eH = (e) => e instanceof Set, tH = (e) => typeof e == "object", nH = (e) => typeof e == "function", rH = (e) => typeof e == "boolean";
-function iH(e) {
+var $V = Array.isArray, eH = (e) => e instanceof Map, tH = (e) => e instanceof Set, nH = (e) => typeof e == "object", rH = (e) => typeof e == "function", iH = (e) => typeof e == "boolean";
+function aH(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var aH = (e) => e.copy_ || e.base_, oH = (e) => e.modified_ ? e.copy_ : e.base_;
-function sH(e, t) {
- if ($V(e)) return new Map(e);
- if (eH(e)) return new Set(e);
- if (QV(e)) return Array[IV].slice.call(e);
- let n = GV(e);
+var oH = (e) => e.copy_ || e.base_, sH = (e) => e.modified_ ? e.copy_ : e.base_;
+function cH(e, t) {
+ if (eH(e)) return new Map(e);
+ if (tH(e)) return new Set(e);
+ if ($V(e)) return Array[LV].slice.call(e);
+ let n = KV(e);
if (t === !0 || t === "class_only" && !n) {
- let t = NV.getOwnPropertyDescriptors(e);
- delete t[jV];
+ let t = PV.getOwnPropertyDescriptors(e);
+ delete t[MV];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[zV] === !1 && (a[zV] = !0, a[LV] = !0), (a.get || a.set) && (t[i] = {
- [LV]: !0,
- [zV]: !0,
- [RV]: a[RV],
- [BV]: e[i]
+ a[BV] === !1 && (a[BV] = !0, a[RV] = !0), (a.get || a.set) && (t[i] = {
+ [RV]: !0,
+ [BV]: !0,
+ [zV]: a[zV],
+ [VV]: e[i]
});
}
- return NV.create(PV(e), t);
+ return PV.create(FV(e), t);
}
{
- let t = PV(e);
+ let t = FV(e);
if (t !== null && n) return { ...e };
- let r = NV.create(t);
- return NV.assign(r, e);
- }
-}
-function cH(e, t = !1) {
- return dH(e) || VV(e) || !HV(e) ? e : (qV(e) > 1 && NV.defineProperties(e, {
- set: uH,
- add: uH,
- clear: uH,
- delete: uH
- }), NV.freeze(e), t && KV(e, (e, t) => {
- cH(t, !0);
+ let r = PV.create(t);
+ return PV.assign(r, e);
+ }
+}
+function lH(e, t = !1) {
+ return fH(e) || HV(e) || !UV(e) ? e : (JV(e) > 1 && PV.defineProperties(e, {
+ set: dH,
+ add: dH,
+ clear: dH,
+ delete: dH
+ }), PV.freeze(e), t && qV(e, (e, t) => {
+ lH(t, !0);
}, !1), e);
}
-function lH() {
- MV(2);
+function uH() {
+ NV(2);
}
-var uH = { [BV]: lH };
-function dH(e) {
- return e === null || !tH(e) || NV.isFrozen(e);
+var dH = { [VV]: uH };
+function fH(e) {
+ return e === null || !nH(e) || PV.isFrozen(e);
}
-var fH = "MapSet", pH = "Patches", mH = "ArrayMethods", hH = {};
-function gH(e) {
- let t = hH[e];
- return t || MV(0, e), t;
+var pH = "MapSet", mH = "Patches", hH = "ArrayMethods", gH = {};
+function _H(e) {
+ let t = gH[e];
+ return t || NV(0, e), t;
}
-var _H = (e) => !!hH[e], vH, yH = () => vH, bH = (e, t) => ({
+var vH = (e) => !!gH[e], yH, bH = () => yH, xH = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -51470,114 +51473,114 @@ var _H = (e) => !!hH[e], vH, yH = () => vH, bH = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: _H(fH) ? gH(fH) : void 0,
- arrayMethodsPlugin_: _H(mH) ? gH(mH) : void 0
+ mapSetPlugin_: vH(pH) ? _H(pH) : void 0,
+ arrayMethodsPlugin_: vH(hH) ? _H(hH) : void 0
});
-function xH(e, t) {
- t && (e.patchPlugin_ = gH(pH), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
-}
-function SH(e) {
- CH(e), e.drafts_.forEach(TH), e.drafts_ = null;
+function SH(e, t) {
+ t && (e.patchPlugin_ = _H(mH), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function CH(e) {
- e === vH && (vH = e.parent_);
+ wH(e), e.drafts_.forEach(EH), e.drafts_ = null;
}
-var wH = (e) => vH = bH(vH, e);
-function TH(e) {
- let t = e[jV];
+function wH(e) {
+ e === yH && (yH = e.parent_);
+}
+var TH = (e) => yH = xH(yH, e);
+function EH(e) {
+ let t = e[MV];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function EH(e, t) {
+function DH(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[jV].modified_ && (SH(t), MV(4)), HV(e) && (e = DH(t, e));
+ n[MV].modified_ && (CH(t), NV(4)), UV(e) && (e = OH(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[jV].base_, e, t);
- } else e = DH(t, n);
- return OH(t, e, !0), SH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === kV ? void 0 : e;
-}
-function DH(e, t) {
- if (dH(t)) return t;
- let n = t[jV];
- if (!n) return IH(t, e.handledSet_, e);
- if (!AH(n, e)) return t;
+ r && r.generateReplacementPatches_(n[MV].base_, e, t);
+ } else e = OH(t, n);
+ return kH(t, e, !0), CH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === AV ? void 0 : e;
+}
+function OH(e, t) {
+ if (fH(t)) return t;
+ let n = t[MV];
+ if (!n) return LH(t, e.handledSet_, e);
+ if (!jH(n, e)) return t;
if (!n.modified_) return n.base_;
if (!n.finalized_) {
let { callbacks_: t } = n;
if (t) for (; t.length > 0;) t.pop()(e);
- PH(n, e);
+ FH(n, e);
}
return n.copy_;
}
-function OH(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && cH(t, n);
+function kH(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && lH(t, n);
}
-function kH(e) {
+function AH(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var AH = (e, t) => e.scope_ === t, jH = [];
-function MH(e, t, n, r) {
- let i = aH(e), a = e.type_;
- if (r !== void 0 && YV(i, r, a) === t) {
- XV(i, r, n, a);
+var jH = (e, t) => e.scope_ === t, MH = [];
+function NH(e, t, n, r) {
+ let i = oH(e), a = e.type_;
+ if (r !== void 0 && XV(i, r, a) === t) {
+ ZV(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- KV(i, (e, n) => {
- if (VV(n)) {
+ qV(i, (e, n) => {
+ if (HV(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? jH;
- for (let e of o) XV(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? MH;
+ for (let e of o) ZV(i, e, n, a);
}
-function NH(e, t, n) {
+function PH(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !AH(i, r)) return;
+ if (!i || !jH(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = oH(i);
- MH(e, i.draft_ ?? i, a, n), PH(i, r);
+ let a = sH(i);
+ NH(e, i.draft_ ?? i, a, n), FH(i, r);
});
}
-function PH(e, t) {
+function FH(e, t) {
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
let { patchPlugin_: n } = t;
if (n) {
let r = n.getPath(e);
r && n.generatePatches_(e, r, t);
}
- kH(e);
+ AH(e);
}
}
-function FH(e, t, n) {
+function IH(e, t, n) {
let { scope_: r } = e;
- if (VV(n)) {
- let i = n[jV];
- AH(i, r) && i.callbacks_.push(function() {
- GH(e), MH(e, n, oH(i), t);
+ if (HV(n)) {
+ let i = n[MV];
+ jH(i, r) && i.callbacks_.push(function() {
+ KH(e), NH(e, n, sH(i), t);
});
- } else HV(n) && e.callbacks_.push(function() {
- let i = aH(e);
- e.type_ === 3 ? i.has(n) && IH(n, r.handledSet_, r) : YV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && IH(YV(e.copy_, t, e.type_), r.handledSet_, r);
+ } else UV(n) && e.callbacks_.push(function() {
+ let i = oH(e);
+ e.type_ === 3 ? i.has(n) && LH(n, r.handledSet_, r) : XV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && LH(XV(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function IH(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || VV(e) || t.has(e) || !HV(e) || dH(e) ? e : (t.add(e), KV(e, (r, i) => {
- if (VV(i)) {
- let t = i[jV];
- AH(t, n) && (XV(e, r, oH(t), e.type_), kH(t));
- } else HV(i) && IH(i, t, n);
+function LH(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || HV(e) || t.has(e) || !UV(e) || fH(e) ? e : (t.add(e), qV(e, (r, i) => {
+ if (HV(i)) {
+ let t = i[MV];
+ jH(t, n) && (ZV(e, r, sH(t), e.type_), AH(t));
+ } else UV(i) && LH(i, t, n);
}), e);
}
-function LH(e, t) {
- let n = QV(e), r = {
+function RH(e, t) {
+ let n = $V(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : yH(),
+ scope_: t ? t.scope_ : bH(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -51588,108 +51591,108 @@ function LH(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = RH;
- n && (i = [r], a = zH);
+ }, i = r, a = zH;
+ n && (i = [r], a = BH);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var RH = {
+var zH = {
get(e, t) {
- if (t === jV) return e;
+ if (t === MV) return e;
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
- let i = aH(e);
- if (!JV(i, t, e.type_)) return HH(e, i, t);
+ let i = oH(e);
+ if (!YV(i, t, e.type_)) return UH(e, i, t);
let a = i[t];
- if (e.finalized_ || !HV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && iH(t)) return a;
- if (a === BH(e.base_, t) || VH(e, t, a)) {
- GH(e);
- let n = e.type_ === 1 ? +t : t, r = qH(e.scope_, a, e, n);
+ if (e.finalized_ || !UV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && aH(t)) return a;
+ if (a === VH(e.base_, t) || HH(e, t, a)) {
+ KH(e);
+ let n = e.type_ === 1 ? +t : t, r = JH(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in aH(e);
+ return t in oH(e);
},
ownKeys(e) {
- return Reflect.ownKeys(aH(e));
+ return Reflect.ownKeys(oH(e));
},
set(e, t, n) {
- let r = UH(aH(e), t);
+ let r = WH(oH(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = BH(aH(e), t), i = r?.[jV];
+ let r = VH(oH(e), t), i = r?.[MV];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (ZV(n, r) && (n !== void 0 || JV(e.base_, t, e.type_))) return !0;
- GH(e), WH(e);
+ if (QV(n, r) && (n !== void 0 || YV(e.base_, t, e.type_))) return !0;
+ KH(e), GH(e);
}
- return e.copy_[t] === n && (n !== void 0 || JV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), FH(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || YV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), IH(e, t, n), !0);
},
deleteProperty(e, t) {
- return GH(e), BH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), WH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return KH(e), VH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), GH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = aH(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = oH(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [zV]: !0,
- [LV]: e.type_ !== 1 || t !== "length",
- [RV]: r[RV],
- [BV]: n[t]
+ [BV]: !0,
+ [RV]: e.type_ !== 1 || t !== "length",
+ [zV]: r[zV],
+ [VV]: n[t]
};
},
defineProperty() {
- MV(11);
+ NV(11);
},
getPrototypeOf(e) {
- return PV(e.base_);
+ return FV(e.base_);
},
setPrototypeOf() {
- MV(12);
+ NV(12);
}
-}, zH = {};
-for (let e in RH) {
- let t = RH[e];
- zH[e] = function() {
+}, BH = {};
+for (let e in zH) {
+ let t = zH[e];
+ BH[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-zH.deleteProperty = function(e, t) {
- return zH.set.call(this, e, t, void 0);
-}, zH.set = function(e, t, n) {
- return RH.set.call(this, e[0], t, n, e[0]);
+BH.deleteProperty = function(e, t) {
+ return BH.set.call(this, e, t, void 0);
+}, BH.set = function(e, t, n) {
+ return zH.set.call(this, e[0], t, n, e[0]);
};
-function BH(e, t) {
- let n = e[jV];
- return (n ? aH(n) : e)[t];
-}
-function VH(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !HV(n) || n[jV] ? !1 : e.baseRefs_.has(n);
+function VH(e, t) {
+ let n = e[MV];
+ return (n ? oH(n) : e)[t];
}
function HH(e, t, n) {
- let r = UH(t, n);
- return r ? BV in r ? r[BV] : r.get?.call(e.draft_) : void 0;
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !UV(n) || n[MV] ? !1 : e.baseRefs_.has(n);
}
-function UH(e, t) {
+function UH(e, t, n) {
+ let r = WH(t, n);
+ return r ? VV in r ? r[VV] : r.get?.call(e.draft_) : void 0;
+}
+function WH(e, t) {
if (!(t in e)) return;
- let n = PV(e);
+ let n = FV(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = PV(n);
+ n = FV(n);
}
}
-function WH(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && WH(e.parent_));
-}
function GH(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), sH(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+ e.modified_ || (e.modified_ = !0, e.parent_ && GH(e.parent_));
}
-var KH = class {
+function KH(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), cH(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+}
+var qH = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (nH(e) && !nH(t)) {
+ if (rH(e) && !rH(t)) {
let n = t;
t = e;
let r = this;
@@ -51697,30 +51700,30 @@ var KH = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- nH(t) || MV(6), n !== void 0 && !nH(n) && MV(7);
+ rH(t) || NV(6), n !== void 0 && !rH(n) && NV(7);
let r;
- if (HV(e)) {
- let i = wH(this), a = qH(i, e, void 0), o = !0;
+ if (UV(e)) {
+ let i = TH(this), a = JH(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? SH(i) : CH(i);
+ o ? CH(i) : wH(i);
}
- return xH(i, n), EH(r, i);
+ return SH(i, n), DH(r, i);
}
- if (!e || !tH(e)) {
- if (r = t(e), r === void 0 && (r = e), r === kV && (r = void 0), this.autoFreeze_ && cH(r, !0), n) {
+ if (!e || !nH(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === AV && (r = void 0), this.autoFreeze_ && lH(r, !0), n) {
let t = [], i = [];
- gH(pH).generateReplacementPatches_(e, r, {
+ _H(mH).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- MV(1, e);
+ NV(1, e);
}, this.produceWithPatches = (e, t) => {
- if (nH(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (rH(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -51729,18 +51732,18 @@ var KH = class {
n,
r
];
- }, rH(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), rH(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), rH(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, iH(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), iH(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), iH(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- HV(e) || MV(8), VV(e) && (e = JH(e));
- let t = wH(this), n = qH(t, e, void 0);
- return n[jV].isManual_ = !0, CH(t), n;
+ UV(e) || NV(8), HV(e) && (e = YH(e));
+ let t = TH(this), n = JH(t, e, void 0);
+ return n[MV].isManual_ = !0, wH(t), n;
}
finishDraft(e, t) {
- let n = e && e[jV];
- (!n || !n.isManual_) && MV(9);
+ let n = e && e[MV];
+ (!n || !n.isManual_) && NV(9);
let { scope_: r } = n;
- return xH(r, t), EH(void 0, r);
+ return SH(r, t), DH(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -51764,48 +51767,48 @@ var KH = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = gH(pH).applyPatches_;
- return VV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = _H(mH).applyPatches_;
+ return HV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function qH(e, t, n, r) {
- let [i, a] = $V(t) ? gH(fH).proxyMap_(t, n) : eH(t) ? gH(fH).proxySet_(t, n) : LH(t, n);
- return (n?.scope_ ?? yH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? NH(n, a, r) : a.callbacks_.push(function(e) {
+function JH(e, t, n, r) {
+ let [i, a] = eH(t) ? _H(pH).proxyMap_(t, n) : tH(t) ? _H(pH).proxySet_(t, n) : RH(t, n);
+ return (n?.scope_ ?? bH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? PH(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function JH(e) {
- return VV(e) || MV(10, e), YH(e);
-}
function YH(e) {
- if (!HV(e) || dH(e)) return e;
- let t = e[jV], n, r = !0;
+ return HV(e) || NV(10, e), XH(e);
+}
+function XH(e) {
+ if (!UV(e) || fH(e)) return e;
+ let t = e[MV], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = sH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = sH(e, !0);
- return KV(n, (e, t) => {
- XV(n, e, YH(t));
+ t.finalized_ = !0, n = cH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = cH(e, !0);
+ return qV(n, (e, t) => {
+ ZV(n, e, XH(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var XH = new KH().produce;
+var ZH = new qH().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function ZH(e) {
+function QH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var QH = ZH(), $H = ZH, eU = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? EV : EV.apply(null, arguments);
+var $H = QH(), eU = QH, tU = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? DV : DV.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function tU(e, t) {
+function nU(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(uW(0));
+ if (!r) throw Error(dW(0));
return {
type: e,
payload: r.payload,
@@ -51818,9 +51821,9 @@ function tU(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => OV(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => kV(t) && t.type === e, n;
}
-var nU = class e extends Array {
+var rU = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -51834,29 +51837,29 @@ var nU = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function rU(e) {
- return HV(e) ? XH(e, () => {}) : e;
+function iU(e) {
+ return UV(e) ? ZH(e, () => {}) : e;
}
-function iU(e, t, n) {
+function aU(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function aU(e) {
+function oU(e) {
return typeof e == "boolean";
}
-var oU = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new nU();
- return t && (aU(t) ? a.push(QH) : a.push($H(t.extraArgument))), a;
-}, sU = "RTK_autoBatch", cU = () => (e) => ({
+var sU = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new rU();
+ return t && (oU(t) ? a.push($H) : a.push(eU(t.extraArgument))), a;
+}, cU = "RTK_autoBatch", lU = () => (e) => ({
payload: e,
- meta: { [sU]: !0 }
-}), lU = (e) => (t) => {
+ meta: { [cU]: !0 }
+}), uU = (e) => (t) => {
setTimeout(t, e);
-}, uU = (e, t) => (n) => {
+}, dU = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, dU = (e = { type: "raf" }) => (t) => (...n) => {
- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? uU(window.requestAnimationFrame, 100) : lU(10) : e.type === "callback" ? e.queueNotification : lU(e.timeout), l = () => {
+}, fU = (e = { type: "raf" }) => (t) => (...n) => {
+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? dU(window.requestAnimationFrame, 100) : uU(10) : e.type === "callback" ? e.queueNotification : uU(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -51868,37 +51871,37 @@ var oU = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[sU], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[cU], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, fU = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new nU(e);
- return n && r.push(dU(typeof n == "object" ? n : void 0)), r;
+}, pU = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new rU(e);
+ return n && r.push(fU(typeof n == "object" ? n : void 0)), r;
};
-function pU(e) {
- let t = oU(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function mU(e) {
+ let t = sU(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
if (typeof n == "function") c = n;
- else if (SV(n)) c = TV(n);
- else throw Error(uW(1));
+ else if (CV(n)) c = EV(n);
+ else throw Error(dW(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = EV;
- i && (u = eU({
+ let u = DV;
+ i && (u = tU({
trace: !1,
...typeof i == "object" && i
}));
- let d = fU(DV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return CV(c, o, p);
+ let d = pU(OV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return wV(c, o, p);
}
-function mU(e) {
+function hU(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(uW(28));
- if (r in t) throw Error(uW(29));
+ if (!r) throw Error(dW(28));
+ if (r in t) throw Error(dW(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -51923,25 +51926,25 @@ function mU(e) {
r
];
}
-function hU(e) {
+function gU(e) {
return typeof e == "function";
}
-function gU(e, t) {
- let [n, r, i] = mU(t), a;
- if (hU(e)) a = () => rU(e());
+function _U(e, t) {
+ let [n, r, i] = hU(t), a;
+ if (gU(e)) a = () => iU(e());
else {
- let t = rU(e);
+ let t = iU(e);
a = () => t;
}
function o(e = a(), t) {
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
if (n) {
- if (VV(e)) {
+ if (HV(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (HV(e)) return XH(e, (e) => n(e, t));
+ if (UV(e)) return ZH(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -51956,20 +51959,20 @@ function gU(e, t) {
}
return o.getInitialState = a, o;
}
-var _U = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", vU = (e = 21) => {
+var vU = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", yU = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += _U[Math.random() * 64 | 0];
+ for (; n--;) t += vU[Math.random() * 64 | 0];
return t;
-}, yU = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function bU(e, t) {
+}, bU = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function xU(e, t) {
return `${e}/${t}`;
}
-function xU({ creators: e } = {}) {
- let t = e?.asyncThunk?.[yU];
+function SU({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[bU];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(uW(11));
- let i = (typeof e.reducers == "function" ? e.reducers(wU()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(dW(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(TU()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -51977,8 +51980,8 @@ function xU({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(uW(12));
- if (n in o.sliceCaseReducersByType) throw Error(uW(13));
+ if (!n) throw Error(dW(12));
+ if (n in o.sliceCaseReducersByType) throw Error(dW(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -51997,17 +52000,17 @@ function xU({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: bU(n, r),
+ type: xU(n, r),
createNotation: typeof e.reducers == "function"
};
- EU(a) ? OU(o, a, s, t) : TU(o, a, s);
+ DU(a) ? kU(o, a, s, t) : EU(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? mU(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? hU(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return gU(e.initialState, (e) => {
+ return _U(e.initialState, (e) => {
for (let t in i) e.addCase(t, i[t]);
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -52024,12 +52027,12 @@ function xU({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = iU(d, r, m)), i;
+ return i === void 0 && n && (i = aU(d, r, m)), i;
}
function i(t = l) {
- return iU(iU(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return aU(aU(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = SU(a, t, () => iU(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = CU(a, t, () => aU(d, t, m), n);
return r;
});
}
@@ -52063,15 +52066,15 @@ function xU({ creators: e } = {}) {
return g;
};
}
-function SU(e, t, n, r) {
+function CU(e, t, n, r) {
function i(i, ...a) {
let o = t(i);
return o === void 0 && r && (o = n()), e(o, ...a);
}
return i.unwrapped = e, i;
}
-var CU = /* @__PURE__ */ xU();
-function wU() {
+var wU = /* @__PURE__ */ SU();
+function TU() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -52095,57 +52098,57 @@ function wU() {
asyncThunk: e
};
}
-function TU({ type: e, reducerName: t, createNotation: n }, r, i) {
+function EU({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !DU(r)) throw Error(uW(17));
+ if (n && !OU(r)) throw Error(dW(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? tU(e, o) : tU(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? nU(e, o) : nU(e));
}
-function EU(e) {
+function DU(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function DU(e) {
+function OU(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function OU({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(uW(18));
+function kU({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(dW(18));
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
- fulfilled: o || kU,
- pending: s || kU,
- rejected: c || kU,
- settled: l || kU
+ fulfilled: o || AU,
+ pending: s || AU,
+ rejected: c || AU,
+ settled: l || AU
});
}
-function kU() {}
-var AU = "task", jU = "listener", MU = "completed", NU = "cancelled", PU = `task-${NU}`, FU = `task-${MU}`, IU = `${jU}-${NU}`, LU = `${jU}-${MU}`, RU = class {
+function AU() {}
+var jU = "task", MU = "listener", NU = "completed", PU = "cancelled", FU = `task-${PU}`, IU = `task-${NU}`, LU = `${MU}-${PU}`, RU = `${MU}-${NU}`, zU = class {
constructor(e) {
- this.code = e, this.message = `${AU} ${NU} (reason: ${e})`;
+ this.code = e, this.message = `${jU} ${PU} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, zU = (e, t) => {
- if (typeof e != "function") throw TypeError(uW(32));
-}, BU = () => {}, VU = (e, t = BU) => (e.catch(t), e), HU = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), UU = (e) => {
- if (e.aborted) throw new RU(e.reason);
+}, BU = (e, t) => {
+ if (typeof e != "function") throw TypeError(dW(32));
+}, VU = () => {}, HU = (e, t = VU) => (e.catch(t), e), UU = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), WU = (e) => {
+ if (e.aborted) throw new zU(e.reason);
};
-function WU(e, t) {
- let n = BU;
+function GU(e, t) {
+ let n = VU;
return new Promise((r, i) => {
- let a = () => i(new RU(e.reason));
+ let a = () => i(new zU(e.reason));
if (e.aborted) {
a();
return;
}
- n = HU(e, a), t.finally(() => n()).then(r, i);
+ n = UU(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = BU;
+ n = VU;
});
}
-var GU = async (e, t) => {
+var KU = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -52153,40 +52156,40 @@ var GU = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof RU ? "cancelled" : "rejected",
+ status: e instanceof zU ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, KU = (e) => (t) => VU(WU(e, t).then((t) => (UU(e), t))), qU = (e) => {
- let t = KU(e);
+}, qU = (e) => (t) => HU(GU(e, t).then((t) => (WU(e), t))), JU = (e) => {
+ let t = qU(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: JU } = Object, YU = {}, XU = "listenerMiddleware", ZU = (e, t) => {
- let n = (t) => HU(e, () => t.abort(e.reason));
+}, { assign: YU } = Object, XU = {}, ZU = "listenerMiddleware", QU = (e, t) => {
+ let n = (t) => UU(e, () => t.abort(e.reason));
return (r, i) => {
- zU(r, "taskExecutor");
+ BU(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = GU(async () => {
- UU(e), UU(a.signal);
+ let o = KU(async () => {
+ WU(e), WU(a.signal);
let t = await r({
- pause: KU(a.signal),
- delay: qU(a.signal),
+ pause: qU(a.signal),
+ delay: JU(a.signal),
signal: a.signal
});
- return UU(a.signal), t;
- }, () => a.abort(FU));
- return i?.autoJoin && t.push(o.catch(BU)), {
- result: KU(e)(o),
+ return WU(a.signal), t;
+ }, () => a.abort(IU));
+ return i?.autoJoin && t.push(o.catch(VU)), {
+ result: qU(e)(o),
cancel() {
- a.abort(PU);
+ a.abort(FU);
}
};
};
-}, QU = (e, t) => {
+}, $U = (e, t) => {
let n = async (n, r) => {
- UU(t);
+ WU(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -52204,47 +52207,47 @@ var GU = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await WU(t, Promise.race(a));
- return UU(t), e;
+ let e = await GU(t, Promise.race(a));
+ return WU(t), e;
} finally {
i();
}
};
- return ((e, t) => VU(n(e, t)));
-}, $U = (e) => {
+ return ((e, t) => HU(n(e, t)));
+}, eW = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = tU(t).match;
+ if (t) i = nU(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(uW(21));
- return zU(a, "options.listener"), {
+ else if (!i) throw Error(dW(21));
+ return BU(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, eW = /* @__PURE__ */ JU((e) => {
- let { type: t, predicate: n, effect: r } = $U(e);
+}, tW = /* @__PURE__ */ YU((e) => {
+ let { type: t, predicate: n, effect: r } = eW(e);
return {
- id: vU(),
+ id: yU(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(uW(22));
+ throw Error(dW(22));
}
};
-}, { withTypes: () => eW }), tW = (e, t) => {
- let { type: n, effect: r, predicate: i } = $U(t);
+}, { withTypes: () => tW }), nW = (e, t) => {
+ let { type: n, effect: r, predicate: i } = eW(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, nW = (e) => {
+}, rW = (e) => {
e.pending.forEach((e) => {
- e.abort(IU);
+ e.abort(LU);
});
-}, rW = (e, t) => () => {
- for (let e of t.keys()) nW(e);
+}, iW = (e, t) => () => {
+ for (let e of t.keys()) rW(e);
e.clear();
-}, iW = (e, t, n) => {
+}, aW = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -52252,74 +52255,74 @@ var GU = async (e, t) => {
throw e;
}, 0);
}
-}, aW = /* @__PURE__ */ JU(/* @__PURE__ */ tU(`${XU}/add`), { withTypes: () => aW }), oW = /* @__PURE__ */ tU(`${XU}/removeAll`), sW = /* @__PURE__ */ JU(/* @__PURE__ */ tU(`${XU}/remove`), { withTypes: () => sW }), cW = (...e) => {
- console.error(`${XU}/error`, ...e);
-}, lW = (e = {}) => {
+}, oW = /* @__PURE__ */ YU(/* @__PURE__ */ nU(`${ZU}/add`), { withTypes: () => oW }), sW = /* @__PURE__ */ nU(`${ZU}/removeAll`), cW = /* @__PURE__ */ YU(/* @__PURE__ */ nU(`${ZU}/remove`), { withTypes: () => cW }), lW = (...e) => {
+ console.error(`${ZU}/error`, ...e);
+}, uW = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
let t = n.get(e) ?? 0;
n.set(e, t + 1);
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = cW } = e;
- zU(o, "onError");
+ }, { extra: a, onError: o = lW } = e;
+ BU(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && nW(e);
+ e.unsubscribe(), t?.cancelActive && rW(e);
}), c = ((e) => {
- let n = tW(t, e) ?? eW(e);
+ let n = nW(t, e) ?? tW(e);
return s(n);
});
- JU(c, { withTypes: () => c });
+ YU(c, { withTypes: () => c });
let l = (e) => {
- let n = tW(t, e);
- return n && (n.unsubscribe(), e.cancelActive && nW(n)), !!n;
+ let n = nW(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && rW(n)), !!n;
};
- JU(l, { withTypes: () => l });
+ YU(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = QU(c, u.signal), f = [];
+ let u = new AbortController(), d = $U(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, JU({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, YU({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: qU(u.signal),
- pause: KU(u.signal),
+ delay: JU(u.signal),
+ pause: qU(u.signal),
extra: a,
signal: u.signal,
- fork: ZU(u.signal, f),
+ fork: QU(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(IU), n.delete(e));
+ e !== u && (e.abort(LU), n.delete(e));
});
},
cancel: () => {
- u.abort(IU), e.pending.delete(u);
+ u.abort(LU), e.pending.delete(u);
},
throwIfCancelled: () => {
- UU(u.signal);
+ WU(u.signal);
}
})));
} catch (e) {
- e instanceof RU || iW(o, e, { raisedBy: "effect" });
+ e instanceof zU || aW(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(LU), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(RU), i(e), e.pending.delete(u);
}
- }, d = rW(t, n);
+ }, d = iW(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!OV(r)) return n(r);
- if (aW.match(r)) return c(r.payload);
- if (oW.match(r)) {
+ if (!kV(r)) return n(r);
+ if (oW.match(r)) return c(r.payload);
+ if (sW.match(r)) {
d();
return;
}
- if (sW.match(r)) return l(r.payload);
+ if (cW.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === YU) throw Error(uW(23));
+ if (i === XU) throw Error(dW(23));
return i;
}, s;
try {
@@ -52330,13 +52333,13 @@ var GU = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, iW(o, e, { raisedBy: "predicate" });
+ s = !1, aW(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = YU;
+ i = XU;
}
return s;
},
@@ -52345,12 +52348,12 @@ var GU = async (e, t) => {
clearListeners: d
};
};
-function uW(e) {
+function dW(e) {
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
//#endregion
//#region node_modules/recharts/es6/state/layoutSlice.js
-var dW = CU({
+var fW = wU({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -52378,23 +52381,23 @@ var dW = CU({
e.scale = t.payload;
}
}
-}), { setMargin: fW, setLayout: pW, setChartSize: mW, setScale: hW } = dW.actions, gW = dW.reducer;
+}), { setMargin: pW, setLayout: mW, setChartSize: hW, setScale: gW } = fW.actions, _W = fW.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function _W(e, t, n) {
+function vW(e, t, n) {
return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;
}
//#endregion
//#region node_modules/recharts/es6/util/isWellBehavedNumber.js
-function vW(e) {
+function yW(e) {
return Number.isFinite(e);
}
-function yW(e) {
+function bW(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function bW(e, t) {
+function xW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52404,30 +52407,30 @@ function bW(e, t) {
}
return n;
}
-function xW(e) {
+function SW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? bW(Object(n), !0).forEach(function(t) {
- SW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bW(Object(n)).forEach(function(t) {
+ t % 2 ? xW(Object(n), !0).forEach(function(t) {
+ CW(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SW(e, t, n) {
- return (t = CW(t)) in e ? Object.defineProperty(e, t, {
+function CW(e, t, n) {
+ return (t = wW(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CW(e) {
- var t = wW(e, "string");
+function wW(e) {
+ var t = TW(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wW(e, t) {
+function TW(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52437,28 +52440,28 @@ function wW(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function TW(e, t, n) {
+function EW(e, t, n) {
return uB(e) || uB(t) ? n : iB(t) ? Qz(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var EW = (e, t, n) => {
+var DW = (e, t, n) => {
if (t && n) {
var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return xW(xW({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return xW(xW({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return SW(SW({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return SW(SW({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, DW = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", OW = (e, t, n, r) => {
+}, OW = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", kW = (e, t, n, r) => {
if (r) return e.map((e) => e.coordinate);
var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));
return i || o.push(t), a || o.push(n), o;
-}, kW = (e, t, n) => {
+}, AW = (e, t, n) => {
if (!e) return null;
var { duplicateDomain: r, type: i, range: a, scale: o, realScaleType: s, isCategorical: c, categoricalDomain: l, tickCount: u, ticks: d, niceTicks: f, axisType: p } = e;
if (!o) return null;
var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;
return h = p === "angleAxis" && a && a.length >= 2 ? tB(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
var n = r ? r.indexOf(e) : e, i = o.map(n);
- return vW(i) ? {
+ return yW(i) ? {
coordinate: i + h,
value: e,
offset: h,
@@ -52466,7 +52469,7 @@ var EW = (e, t, n) => {
} : null;
}).filter(fB) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return vW(n) ? {
+ return yW(n) ? {
coordinate: n + h,
value: e,
index: t,
@@ -52474,7 +52477,7 @@ var EW = (e, t, n) => {
} : null;
}).filter(fB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return vW(n) ? {
+ return yW(n) ? {
coordinate: n + h,
value: e,
index: t,
@@ -52482,18 +52485,18 @@ var EW = (e, t, n) => {
} : null;
}).filter(fB) : o.domain().map((e, t) => {
var n = o.map(e);
- return vW(n) ? {
+ return yW(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
}).filter(fB);
-}, AW = (e, t) => {
+}, jW = (e, t) => {
if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, jW = {
+}, MW = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -52507,10 +52510,10 @@ var EW = (e, t, n) => {
}
}
},
- expand: Zpe,
+ expand: $pe,
none: Wz,
- silhouette: Qpe,
- wiggle: $pe,
+ silhouette: eme,
+ wiggle: tme,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -52524,19 +52527,19 @@ var EW = (e, t, n) => {
}
}
}
-}, MW = (e, t, n) => {
- var r = jW[n] ?? Wz, i = Xpe().keys(t).value((e, t) => Number(TW(e, t, 0))).order(Gz).offset(r)(e);
+}, NW = (e, t, n) => {
+ var r = MW[n] ?? Wz, i = Qpe().keys(t).value((e, t) => Number(EW(e, t, 0))).order(Gz).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = TW(e[i], t[r], 0);
+ var a = EW(e[i], t[r], 0);
Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function NW(e) {
+function PW(e) {
return e == null ? void 0 : String(e);
}
-function PW(e) {
+function FW(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
if (!t.allowDuplicatedCategory && t.dataKey && !uB(i[t.dataKey])) {
@@ -52545,43 +52548,43 @@ function PW(e) {
}
return n != null && n[a] ? n[a].coordinate + r / 2 : null;
}
- var c = TW(i, uB(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = EW(i, uB(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var FW = (e) => {
+var IW = (e) => {
var { axis: t, ticks: n, offset: r, bandSize: i, entry: a, index: o } = e;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
- var s = TW(a, t.dataKey, t.scale.domain()[o]);
+ var s = EW(a, t.dataKey, t.scale.domain()[o]);
if (uB(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, IW = (e) => {
+}, LW = (e) => {
var { numericAxis: t } = e, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, LW = (e) => {
+}, RW = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, RW = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], zW = (e, t, n) => {
- if (e != null) return RW(Object.keys(e).reduce((r, i) => {
+}, zW = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], BW = (e, t, n) => {
+ if (e != null) return zW(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = LW(_W(r, t, n));
- return !vW(i[0]) || !vW(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = RW(vW(r, t, n));
+ return !yW(i[0]) || !yW(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
}, [Infinity, -Infinity]));
-}, BW = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, VW = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, HW = (e, t, n) => {
+}, VW = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, HW = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, UW = (e, t, n) => {
if (e && e.scale && e.scale.bandwidth) {
var r = e.scale.bandwidth();
if (!n || r > 0) return r;
}
if (e && t && t.length >= 2) {
- for (var i = dV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = fV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
var c = i[o], l = i[o - 1];
a = Math.min((c?.coordinate || 0) - (l?.coordinate || 0), a);
}
@@ -52589,26 +52592,26 @@ var FW = (e) => {
}
return n ? void 0 : 0;
};
-function UW(e) {
+function WW(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return xW(xW({}, t), {}, {
+ return SW(SW({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function WW(e, t) {
+function GW(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var GW = (e, t) => {
+var KW = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, KW = (e, t) => t === "centric" ? e.angle : e.radius, qW = (e) => e.layout.width, JW = (e) => e.layout.height, YW = (e) => e.layout.scale, XW = (e) => e.layout.margin, ZW = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), QW = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), $W = "data-recharts-item-index";
+}, qW = (e, t) => t === "centric" ? e.angle : e.radius, JW = (e) => e.layout.width, YW = (e) => e.layout.height, XW = (e) => e.layout.scale, ZW = (e) => e.layout.margin, QW = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), $W = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), eG = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function eG(e, t) {
+function tG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52618,30 +52621,30 @@ function eG(e, t) {
}
return n;
}
-function tG(e) {
+function nG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? eG(Object(n), !0).forEach(function(t) {
- nG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eG(Object(n)).forEach(function(t) {
+ t % 2 ? tG(Object(n), !0).forEach(function(t) {
+ rG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nG(e, t, n) {
- return (t = rG(t)) in e ? Object.defineProperty(e, t, {
+function rG(e, t, n) {
+ return (t = iG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rG(e) {
- var t = iG(e, "string");
+function iG(e) {
+ var t = aG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iG(e, t) {
+function aG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52651,58 +52654,58 @@ function iG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var aG = (e) => e.brush.height;
-function oG(e) {
- return QW(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
+var oG = (e) => e.brush.height;
function sG(e) {
- return QW(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return $W(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function cG(e) {
- return ZW(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return $W(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function lG(e) {
- return ZW(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return QW(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+function uG(e) {
+ return QW(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var uG = $([
- qW,
+var dG = $([
JW,
- XW,
- aG,
+ YW,
+ ZW,
oG,
sG,
cG,
lG,
- fV,
- pV
+ uG,
+ pV,
+ mV
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = tG(tG({}, {
+ }, d = nG(nG({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = EW(d, c, l);
+ d.bottom += r, d = DW(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return tG(tG({ brushBottom: f }, d), {}, {
+ return nG(nG({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), dG = $(uG, (e) => ({
+}), fG = $(dG, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), fG = $(qW, JW, (e, t) => ({
+})), pG = $(JW, YW, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), pG = /*#__PURE__*/ (0, I.createContext)(null), mG = () => (0, I.useContext)(pG) != null, hG = (e) => e.brush, gG = $([
- hG,
- uG,
- XW
+})), mG = /*#__PURE__*/ (0, I.createContext)(null), hG = () => (0, I.useContext)(mG) != null, gG = (e) => e.brush, _G = $([
+ gG,
+ dG,
+ ZW
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -52711,7 +52714,7 @@ var uG = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function _G(e, t, { signal: n, edges: r } = {}) {
+function vG(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -52736,11 +52739,11 @@ function _G(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function vG(e, t = 0, n = {}) {
+function yG(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = _G(function(...t) {
+ let s, c = null, l = vG(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -52749,9 +52752,9 @@ function vG(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function yG(e, t = 0, n = {}) {
+function bG(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return vG(e, t, {
+ return yG(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -52759,7 +52762,7 @@ function yG(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var bG = function(e, t) {
+var xG = function(e, t) {
var n = [...arguments].slice(2);
if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {
if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -52768,7 +52771,7 @@ var bG = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, xG = {
+}, SG = {
width: "100%",
height: "100%",
debounce: 0,
@@ -52777,45 +52780,45 @@ var bG = function(e, t) {
width: -1,
height: -1
}
-}, SG = (e, t, n) => {
- var { width: r = xG.width, height: i = xG.height, aspect: a, maxHeight: o } = n, s = rB(r) ? e : Number(r), c = rB(i) ? t : Number(i);
+}, CG = (e, t, n) => {
+ var { width: r = SG.width, height: i = SG.height, aspect: a, maxHeight: o } = n, s = rB(r) ? e : Number(r), c = rB(i) ? t : Number(i);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, CG = {
+}, wG = {
width: 0,
height: 0,
overflow: "visible"
-}, wG = {
+}, TG = {
width: 0,
overflowX: "visible"
-}, TG = {
+}, EG = {
height: 0,
overflowY: "visible"
-}, EG = {}, DG = (e) => {
+}, DG = {}, OG = (e) => {
var { width: t, height: n } = e, r = rB(t), i = rB(n);
- return r && i ? CG : r ? wG : i ? TG : EG;
+ return r && i ? wG : r ? TG : i ? EG : DG;
};
-function OG(e) {
+function kG(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = xG.width, a = xG.height) : i === void 0 ? i = r && r > 0 ? void 0 : xG.width : a === void 0 && (a = r && r > 0 ? void 0 : xG.height), {
+ return i === void 0 && a === void 0 ? (i = SG.width, a = SG.height) : i === void 0 ? i = r && r > 0 ? void 0 : SG.width : a === void 0 && (a = r && r > 0 ? void 0 : SG.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function kG() {
- return kG = Object.assign ? Object.assign.bind() : function(e) {
+function AG() {
+ return AG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, kG.apply(null, arguments);
+ }, AG.apply(null, arguments);
}
-function AG(e, t) {
+function jG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52825,30 +52828,30 @@ function AG(e, t) {
}
return n;
}
-function jG(e) {
+function MG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? AG(Object(n), !0).forEach(function(t) {
- MG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AG(Object(n)).forEach(function(t) {
+ t % 2 ? jG(Object(n), !0).forEach(function(t) {
+ NG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function MG(e, t, n) {
- return (t = NG(t)) in e ? Object.defineProperty(e, t, {
+function NG(e, t, n) {
+ return (t = PG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NG(e) {
- var t = PG(e, "string");
+function PG(e) {
+ var t = FG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PG(e, t) {
+function FG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52858,19 +52861,19 @@ function PG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var FG = /*#__PURE__*/ (0, I.createContext)(xG.initialDimension);
-function IG(e) {
- return yW(e.width) && yW(e.height);
-}
+var IG = /*#__PURE__*/ (0, I.createContext)(SG.initialDimension);
function LG(e) {
+ return bW(e.width) && bW(e.height);
+}
+function RG(e) {
var { children: t, width: n, height: r } = e, i = (0, I.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return IG(i) ? /*#__PURE__*/ I.createElement(FG.Provider, { value: i }, t) : null;
+ return LG(i) ? /*#__PURE__*/ I.createElement(IG.Provider, { value: i }, t) : null;
}
-var RG = () => (0, I.useContext)(FG), zG = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = xG.initialDimension, width: i, height: a, minWidth: o = xG.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = xG.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();
+var zG = () => (0, I.useContext)(IG), BG = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = SG.initialDimension, width: i, height: a, minWidth: o = SG.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = SG.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();
g.current = p, (0, I.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, I.useState)({
containerWidth: r.width,
@@ -52893,7 +52896,7 @@ var RG = () => (0, I.useContext)(FG), zG = /*#__PURE__*/ (0, I.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = yG(e, u, {
+ u > 0 && (e = bG(e, u, {
trailing: !0,
leading: !1
}));
@@ -52903,17 +52906,17 @@ var RG = () => (0, I.useContext)(FG), zG = /*#__PURE__*/ (0, I.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- bG(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = SG(b, x, {
+ xG(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = CG(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return bG(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ I.createElement("div", {
+ return xG(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ I.createElement("div", {
id: d ? `${d}` : void 0,
className: Xm("recharts-responsive-container", f),
- style: jG(jG({}, m), {}, {
+ style: MG(MG({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -52921,30 +52924,30 @@ var RG = () => (0, I.useContext)(FG), zG = /*#__PURE__*/ (0, I.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ I.createElement("div", { style: DG({
+ }, /*#__PURE__*/ I.createElement("div", { style: OG({
width: i,
height: a
- }) }, /*#__PURE__*/ I.createElement(LG, {
+ }) }, /*#__PURE__*/ I.createElement(RG, {
width: S,
height: C
}, l)));
-}), BG = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = RG();
- if (yW(n.width) && yW(n.height)) return e.children;
- var { width: r, height: i } = OG({
+}), VG = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = zG();
+ if (bW(n.width) && bW(n.height)) return e.children;
+ var { width: r, height: i } = kG({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = SG(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = CG(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(LG, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(RG, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ I.createElement(zG, kG({}, e, {
+ }, e.children) : /*#__PURE__*/ I.createElement(BG, AG({}, e, {
width: r,
height: i,
ref: t
@@ -52952,7 +52955,7 @@ var RG = () => (0, I.useContext)(FG), zG = /*#__PURE__*/ (0, I.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function VG(e) {
+function HG(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -52962,15 +52965,15 @@ function VG(e) {
height: e.height
};
}
-var HG = () => {
- var e = mG(), t = Q(dG), n = Q(gG), r = Q(hG)?.padding;
+var UG = () => {
+ var e = hG(), t = Q(fG), n = Q(_G), r = Q(gG)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
x: r.left,
y: r.top
};
-}, UG = {
+}, WG = {
top: 0,
bottom: 0,
left: 0,
@@ -52978,16 +52981,16 @@ var HG = () => {
width: 0,
height: 0,
brushBottom: 0
-}, WG = () => Q(uG) ?? UG, GG = () => Q(qW), KG = () => Q(JW), qG = () => Q((e) => e.layout.margin), JG = (e) => e.layout.layoutType, YG = () => Q(JG), XG = () => {
- var e = YG();
+}, GG = () => Q(dG) ?? WG, KG = () => Q(JW), qG = () => Q(YW), JG = () => Q((e) => e.layout.margin), YG = (e) => e.layout.layoutType, XG = () => Q(YG), ZG = () => {
+ var e = XG();
if (e === "horizontal" || e === "vertical") return e;
-}, ZG = (e) => {
+}, QG = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, QG = () => Q(ZG), $G = () => YG() !== void 0, eK = (e) => {
- var t = XB(), n = mG(), { width: r, height: i } = e, a = RG(), o = r, s = i;
+}, $G = () => Q(QG), eK = () => XG() !== void 0, tK = (e) => {
+ var t = XB(), n = hG(), { width: r, height: i } = e, a = zG(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, I.useEffect)(() => {
- !n && yW(o) && yW(s) && t(mW({
+ !n && bW(o) && bW(s) && t(hW({
width: o,
height: s
}));
@@ -52997,64 +53000,64 @@ var HG = () => {
o,
s
]), null;
-}, tK = Symbol.for("immer-nothing"), nK = Symbol.for("immer-draftable"), rK = Symbol.for("immer-state");
-function iK(e, ...t) {
+}, nK = Symbol.for("immer-nothing"), rK = Symbol.for("immer-draftable"), iK = Symbol.for("immer-state");
+function aK(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var aK = Object.getPrototypeOf;
-function oK(e) {
- return !!e && !!e[rK];
-}
+var oK = Object.getPrototypeOf;
function sK(e) {
- return e ? uK(e) || Array.isArray(e) || !!e[nK] || !!e.constructor?.[nK] || gK(e) || _K(e) : !1;
+ return !!e && !!e[iK];
+}
+function cK(e) {
+ return e ? dK(e) || Array.isArray(e) || !!e[rK] || !!e.constructor?.[rK] || _K(e) || vK(e) : !1;
}
-var cK = Object.prototype.constructor.toString(), lK = /* @__PURE__ */ new WeakMap();
-function uK(e) {
+var lK = Object.prototype.constructor.toString(), uK = /* @__PURE__ */ new WeakMap();
+function dK(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
if (t === null || t === Object.prototype) return !0;
let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
if (n === Object) return !0;
if (typeof n != "function") return !1;
- let r = lK.get(n);
- return r === void 0 && (r = Function.toString.call(n), lK.set(n, r)), r === cK;
+ let r = uK.get(n);
+ return r === void 0 && (r = Function.toString.call(n), uK.set(n, r)), r === lK;
}
-function dK(e, t, n = !0) {
- fK(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function fK(e, t, n = !0) {
+ pK(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function fK(e) {
- let t = e[rK];
- return t ? t.type_ : Array.isArray(e) ? 1 : gK(e) ? 2 : _K(e) ? 3 : 0;
+function pK(e) {
+ let t = e[iK];
+ return t ? t.type_ : Array.isArray(e) ? 1 : _K(e) ? 2 : vK(e) ? 3 : 0;
}
-function pK(e, t) {
- return fK(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function mK(e, t) {
+ return pK(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function mK(e, t, n) {
- let r = fK(e);
+function hK(e, t, n) {
+ let r = pK(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function hK(e, t) {
+function gK(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function gK(e) {
+function _K(e) {
return e instanceof Map;
}
-function _K(e) {
+function vK(e) {
return e instanceof Set;
}
-function vK(e) {
+function yK(e) {
return e.copy_ || e.base_;
}
-function yK(e, t) {
- if (gK(e)) return new Map(e);
- if (_K(e)) return new Set(e);
+function bK(e, t) {
+ if (_K(e)) return new Map(e);
+ if (vK(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = uK(e);
+ let n = dK(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[rK];
+ delete t[iK];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -53065,40 +53068,40 @@ function yK(e, t) {
value: e[i]
});
}
- return Object.create(aK(e), t);
+ return Object.create(oK(e), t);
}
{
- let t = aK(e);
+ let t = oK(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function bK(e, t = !1) {
- return CK(e) || oK(e) || !sK(e) ? e : (fK(e) > 1 && Object.defineProperties(e, {
- set: SK,
- add: SK,
- clear: SK,
- delete: SK
- }), Object.freeze(e), t && Object.values(e).forEach((e) => bK(e, !0)), e);
+function xK(e, t = !1) {
+ return wK(e) || sK(e) || !cK(e) ? e : (pK(e) > 1 && Object.defineProperties(e, {
+ set: CK,
+ add: CK,
+ clear: CK,
+ delete: CK
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => xK(e, !0)), e);
}
-function xK() {
- iK(2);
+function SK() {
+ aK(2);
}
-var SK = { value: xK };
-function CK(e) {
+var CK = { value: SK };
+function wK(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var wK = {};
-function TK(e) {
- let t = wK[e];
- return t || iK(0, e), t;
+var TK = {};
+function EK(e) {
+ let t = TK[e];
+ return t || aK(0, e), t;
}
-var EK;
-function DK() {
- return EK;
+var DK;
+function OK() {
+ return DK;
}
-function OK(e, t) {
+function kK(e, t) {
return {
drafts_: [],
parent_: e,
@@ -53107,62 +53110,62 @@ function OK(e, t) {
unfinalizedDrafts_: 0
};
}
-function kK(e, t) {
- t && (TK("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
-}
-function AK(e) {
- jK(e), e.drafts_.forEach(NK), e.drafts_ = null;
+function AK(e, t) {
+ t && (EK("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function jK(e) {
- e === EK && (EK = e.parent_);
+ MK(e), e.drafts_.forEach(PK), e.drafts_ = null;
}
function MK(e) {
- return EK = OK(EK, e);
+ e === DK && (DK = e.parent_);
}
function NK(e) {
- let t = e[rK];
+ return DK = kK(DK, e);
+}
+function PK(e) {
+ let t = e[iK];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function PK(e, t) {
+function FK(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[rK].modified_ && (AK(t), iK(4)), sK(e) && (e = FK(t, e), t.parent_ || LK(t, e)), t.patches_ && TK("Patches").generateReplacementPatches_(n[rK].base_, e, t.patches_, t.inversePatches_)) : e = FK(t, n, []), AK(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === tK ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[iK].modified_ && (jK(t), aK(4)), cK(e) && (e = IK(t, e), t.parent_ || RK(t, e)), t.patches_ && EK("Patches").generateReplacementPatches_(n[iK].base_, e, t.patches_, t.inversePatches_)) : e = IK(t, n, []), jK(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === nK ? void 0 : e;
}
-function FK(e, t, n) {
- if (CK(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[rK];
- if (!i) return dK(t, (r, a) => IK(e, i, t, r, a, n), r), t;
+function IK(e, t, n) {
+ if (wK(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[iK];
+ if (!i) return fK(t, (r, a) => LK(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return LK(e, i.base_, !0), i.base_;
+ if (!i.modified_) return RK(e, i.base_, !0), i.base_;
if (!i.finalized_) {
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
let t = i.copy_, a = t, o = !1;
- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), dK(a, (r, a) => IK(e, i, t, r, a, n, o), r), LK(e, t, !1), n && e.patches_ && TK("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), fK(a, (r, a) => LK(e, i, t, r, a, n, o), r), RK(e, t, !1), n && e.patches_ && EK("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function IK(e, t, n, r, i, a, o) {
+function LK(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = CK(i);
+ let s = wK(i);
if (!(s && !o)) {
- if (oK(i)) {
- let o = FK(e, i, a && t && t.type_ !== 3 && !pK(t.assigned_, r) ? a.concat(r) : void 0);
- if (mK(n, r, o), oK(o)) e.canAutoFreeze_ = !1;
+ if (sK(i)) {
+ let o = IK(e, i, a && t && t.type_ !== 3 && !mK(t.assigned_, r) ? a.concat(r) : void 0);
+ if (hK(n, r, o), sK(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (sK(i) && !s) {
+ if (cK(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- FK(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (gK(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && LK(e, i);
+ IK(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (_K(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && RK(e, i);
}
}
}
-function LK(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && bK(t, n);
+function RK(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && xK(t, n);
}
-function RK(e, t) {
+function zK(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : DK(),
+ scope_: t ? t.scope_ : OK(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -53172,41 +53175,41 @@ function RK(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = zK;
- n && (i = [r], a = BK);
+ }, i = r, a = BK;
+ n && (i = [r], a = VK);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var zK = {
+var BK = {
get(e, t) {
- if (t === rK) return e;
- let n = vK(e);
- if (!pK(n, t)) return HK(e, n, t);
+ if (t === iK) return e;
+ let n = yK(e);
+ if (!mK(n, t)) return UK(e, n, t);
let r = n[t];
- return e.finalized_ || !sK(r) ? r : r === VK(e.base_, t) ? (GK(e), e.copy_[t] = qK(r, e)) : r;
+ return e.finalized_ || !cK(r) ? r : r === HK(e.base_, t) ? (KK(e), e.copy_[t] = JK(r, e)) : r;
},
has(e, t) {
- return t in vK(e);
+ return t in yK(e);
},
ownKeys(e) {
- return Reflect.ownKeys(vK(e));
+ return Reflect.ownKeys(yK(e));
},
set(e, t, n) {
- let r = UK(vK(e), t);
+ let r = WK(yK(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = VK(vK(e), t), i = r?.[rK];
+ let r = HK(yK(e), t), i = r?.[iK];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (hK(n, r) && (n !== void 0 || pK(e.base_, t))) return !0;
- GK(e), WK(e);
+ if (gK(n, r) && (n !== void 0 || mK(e.base_, t))) return !0;
+ KK(e), GK(e);
}
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);
},
deleteProperty(e, t) {
- return VK(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, GK(e), WK(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return HK(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, KK(e), GK(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = vK(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = yK(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -53215,48 +53218,48 @@ var zK = {
};
},
defineProperty() {
- iK(11);
+ aK(11);
},
getPrototypeOf(e) {
- return aK(e.base_);
+ return oK(e.base_);
},
setPrototypeOf() {
- iK(12);
+ aK(12);
}
-}, BK = {};
-dK(zK, (e, t) => {
- BK[e] = function() {
+}, VK = {};
+fK(BK, (e, t) => {
+ VK[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), BK.deleteProperty = function(e, t) {
- return BK.set.call(this, e, t, void 0);
-}, BK.set = function(e, t, n) {
- return zK.set.call(this, e[0], t, n, e[0]);
+}), VK.deleteProperty = function(e, t) {
+ return VK.set.call(this, e, t, void 0);
+}, VK.set = function(e, t, n) {
+ return BK.set.call(this, e[0], t, n, e[0]);
};
-function VK(e, t) {
- let n = e[rK];
- return (n ? vK(n) : e)[t];
+function HK(e, t) {
+ let n = e[iK];
+ return (n ? yK(n) : e)[t];
}
-function HK(e, t, n) {
- let r = UK(t, n);
+function UK(e, t, n) {
+ let r = WK(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function UK(e, t) {
+function WK(e, t) {
if (!(t in e)) return;
- let n = aK(e);
+ let n = oK(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = aK(n);
+ n = oK(n);
}
}
-function WK(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && WK(e.parent_));
-}
function GK(e) {
- e.copy_ ||= yK(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+ e.modified_ || (e.modified_ = !0, e.parent_ && GK(e.parent_));
+}
+function KK(e) {
+ e.copy_ ||= bK(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var KK = class {
+var qK = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -53267,25 +53270,25 @@ var KK = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && iK(6), n !== void 0 && typeof n != "function" && iK(7);
+ typeof t != "function" && aK(6), n !== void 0 && typeof n != "function" && aK(7);
let r;
- if (sK(e)) {
- let i = MK(this), a = qK(e, void 0), o = !0;
+ if (cK(e)) {
+ let i = NK(this), a = JK(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? AK(i) : jK(i);
+ o ? jK(i) : MK(i);
}
- return kK(i, n), PK(r, i);
+ return AK(i, n), FK(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === tK && (r = void 0), this.autoFreeze_ && bK(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === nK && (r = void 0), this.autoFreeze_ && xK(r, !0), n) {
let t = [], i = [];
- TK("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ EK("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- iK(1, e);
+ aK(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -53299,15 +53302,15 @@ var KK = class {
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- sK(e) || iK(8), oK(e) && (e = JK(e));
- let t = MK(this), n = qK(e, void 0);
- return n[rK].isManual_ = !0, jK(t), n;
+ cK(e) || aK(8), sK(e) && (e = YK(e));
+ let t = NK(this), n = JK(e, void 0);
+ return n[iK].isManual_ = !0, MK(t), n;
}
finishDraft(e, t) {
- let n = e && e[rK];
- (!n || !n.isManual_) && iK(9);
+ let n = e && e[iK];
+ (!n || !n.isManual_) && aK(9);
let { scope_: r } = n;
- return kK(r, t), PK(void 0, r);
+ return AK(r, t), FK(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -53331,35 +53334,35 @@ var KK = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = TK("Patches").applyPatches_;
- return oK(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = EK("Patches").applyPatches_;
+ return sK(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function qK(e, t) {
- let n = gK(e) ? TK("MapSet").proxyMap_(e, t) : _K(e) ? TK("MapSet").proxySet_(e, t) : RK(e, t);
- return (t ? t.scope_ : DK()).drafts_.push(n), n;
-}
-function JK(e) {
- return oK(e) || iK(10, e), YK(e);
+function JK(e, t) {
+ let n = _K(e) ? EK("MapSet").proxyMap_(e, t) : vK(e) ? EK("MapSet").proxySet_(e, t) : zK(e, t);
+ return (t ? t.scope_ : OK()).drafts_.push(n), n;
}
function YK(e) {
- if (!sK(e) || CK(e)) return e;
- let t = e[rK], n, r = !0;
+ return sK(e) || aK(10, e), XK(e);
+}
+function XK(e) {
+ if (!cK(e) || wK(e)) return e;
+ let t = e[iK], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = yK(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = yK(e, !0);
- return dK(n, (e, t) => {
- mK(n, e, YK(t));
+ t.finalized_ = !0, n = bK(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = bK(e, !0);
+ return fK(n, (e, t) => {
+ hK(n, e, XK(t));
}, r), t && (t.finalized_ = !1), n;
}
-new KK().produce;
-function XK(e) {
+new qK().produce;
+function ZK(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var ZK = CU({
+var QK = wU({
name: "legend",
initialState: {
settings: {
@@ -53383,43 +53386,43 @@ var ZK = CU({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(XK(t.payload));
+ e.payload.push(ZK(t.payload));
},
- prepare: cU()
+ prepare: lU()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = JH(e).payload.indexOf(XK(n));
- i > -1 && (e.payload[i] = XK(r));
+ var { prev: n, next: r } = t.payload, i = YH(e).payload.indexOf(ZK(n));
+ i > -1 && (e.payload[i] = ZK(r));
},
- prepare: cU()
+ prepare: lU()
},
removeLegendPayload: {
reducer(e, t) {
- var n = JH(e).payload.indexOf(XK(t.payload));
+ var n = YH(e).payload.indexOf(ZK(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: cU()
+ prepare: lU()
}
}
-}), { setLegendSize: QK, setLegendSettings: $K, addLegendPayload: eq, replaceLegendPayload: tq, removeLegendPayload: nq } = ZK.actions, rq = ZK.reducer, iq = /* @__PURE__ */ F(((e) => {
+}), { setLegendSize: $K, setLegendSettings: eq, addLegendPayload: tq, replaceLegendPayload: nq, removeLegendPayload: rq } = QK.actions, iq = QK.reducer, aq = /* @__PURE__ */ F(((e) => {
var t = ce();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ F(((e, t) => {
- t.exports = iq();
+ t.exports = aq();
})))();
-function aq(e) {
+function oq(e) {
e();
}
-function oq() {
+function sq() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- aq(() => {
+ oq(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -53441,12 +53444,12 @@ function oq() {
}
};
}
-var sq = {
+var cq = {
notify() {},
get: () => []
};
-function cq(e, t) {
- let n, r = sq, i = 0, a = !1;
+function lq(e, t) {
+ let n, r = cq, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -53464,10 +53467,10 @@ function cq(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = oq());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = sq());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = sq);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = cq);
}
function f() {
a || (a = !0, u());
@@ -53486,44 +53489,44 @@ function cq(e, t) {
};
return m;
}
-var lq = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, uq = typeof navigator < "u" && navigator.product === "ReactNative", dq = lq || uq ? I.useLayoutEffect : I.useEffect;
-function fq(e, t) {
+var uq = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, dq = typeof navigator < "u" && navigator.product === "ReactNative", fq = uq || dq ? I.useLayoutEffect : I.useEffect;
+function pq(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function pq(e, t) {
- if (fq(e, t)) return !0;
+function mq(e, t) {
+ if (pq(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !fq(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !pq(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var mq = /* @__PURE__ */ Symbol.for("react-redux-context"), hq = typeof globalThis < "u" ? globalThis : {};
-function gq() {
+var hq = /* @__PURE__ */ Symbol.for("react-redux-context"), gq = typeof globalThis < "u" ? globalThis : {};
+function _q() {
if (!I.createContext) return {};
- let e = hq[mq] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);
+ let e = gq[hq] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);
return t || (t = I.createContext(null), e.set(I.createContext, t)), t;
}
-var _q = /* @__PURE__ */ gq();
-function vq(e) {
+var vq = /* @__PURE__ */ _q();
+function yq(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = I.useMemo(() => {
- let e = cq(i);
+ let e = lq(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = I.useMemo(() => i.getState(), [i]);
- dq(() => {
+ fq(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
e.tryUnsubscribe(), e.onStateChange = void 0;
};
}, [a, o]);
- let s = n || _q;
+ let s = n || vq;
return /* @__PURE__ */ I.createElement(s.Provider, { value: a }, t);
}
-var yq = vq, bq = /* @__PURE__ */ new Set([
+var bq = yq, xq = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -53546,29 +53549,29 @@ var yq = vq, bq = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function xq(e, t) {
+function Sq(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function Sq(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (bq.has(n)) {
+function Cq(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (xq.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!pq(e[n], t[n])) return !1;
- } else if (!xq(e[n], t[n])) return !1;
+ if (!mq(e[n], t[n])) return !1;
+ } else if (!Sq(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var Cq = ["contextPayload"];
-function wq() {
- return wq = Object.assign ? Object.assign.bind() : function(e) {
+var wq = ["contextPayload"];
+function Tq() {
+ return Tq = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, wq.apply(null, arguments);
+ }, Tq.apply(null, arguments);
}
-function Tq(e, t) {
+function Eq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53578,30 +53581,30 @@ function Tq(e, t) {
}
return n;
}
-function Eq(e) {
+function Dq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Tq(Object(n), !0).forEach(function(t) {
- Dq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tq(Object(n)).forEach(function(t) {
+ t % 2 ? Eq(Object(n), !0).forEach(function(t) {
+ Oq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Eq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Dq(e, t, n) {
- return (t = Oq(t)) in e ? Object.defineProperty(e, t, {
+function Oq(e, t, n) {
+ return (t = kq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Oq(e) {
- var t = kq(e, "string");
+function kq(e) {
+ var t = Aq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kq(e, t) {
+function Aq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53611,16 +53614,16 @@ function kq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Aq(e, t) {
+function jq(e, t) {
if (e == null) return {};
- var n, r, i = jq(e, t);
+ var n, r, i = Mq(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function jq(e, t) {
+function Mq(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53629,36 +53632,36 @@ function jq(e, t) {
}
return n;
}
-function Mq(e) {
+function Nq(e) {
return e.value;
}
-function Nq(e) {
- var { contextPayload: t } = e, n = Aq(e, Cq), r = JB(t, e.payloadUniqBy, Mq), i = Eq(Eq({}, n), {}, { payload: r });
- return /*#__PURE__*/ I.isValidElement(e.content) ? /*#__PURE__*/ I.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ I.createElement(e.content, i) : /*#__PURE__*/ I.createElement(Dme, i);
+function Pq(e) {
+ var { contextPayload: t } = e, n = jq(e, wq), r = JB(t, e.payloadUniqBy, Nq), i = Dq(Dq({}, n), {}, { payload: r });
+ return /*#__PURE__*/ I.isValidElement(e.content) ? /*#__PURE__*/ I.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ I.createElement(e.content, i) : /*#__PURE__*/ I.createElement(kme, i);
}
-function Pq(e, t, n, r, i, a) {
+function Fq(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), Eq(Eq({}, l), u);
+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), Dq(Dq({}, l), u);
}
-function Fq(e) {
+function Iq(e) {
var t = XB();
return (0, I.useEffect)(() => {
- t($K(e));
+ t(eq(e));
}, [t, e]), null;
}
-function Iq(e) {
+function Lq(e) {
var t = XB();
- return (0, I.useEffect)(() => (t(QK(e)), () => {
- t(QK({
+ return (0, I.useEffect)(() => (t($K(e)), () => {
+ t($K({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function Lq(e, t, n, r) {
+function Rq(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var Rq = {
+var zq = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -53666,28 +53669,28 @@ var Rq = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function zq(e) {
- var t = CB(e, Rq), n = hV(), r = xpe(), i = qG(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = _V([n]), d = GG(), f = KG();
+function Bq(e) {
+ var t = CB(e, zq), n = gV(), r = Cpe(), i = JG(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = vV([n]), d = KG(), f = qG();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = Lq(t.layout, o, a, p), h = c ? s : Eq(Eq({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = Rq(t.layout, o, a, p), h = c ? s : Dq(Dq({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, Pq(s, t, i, d, f, l)), s), g = c ?? r;
+ }, Fq(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ I.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ I.createElement(Fq, {
+ }, /*#__PURE__*/ I.createElement(Iq, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ I.createElement(Iq, {
+ }), !c && /*#__PURE__*/ I.createElement(Lq, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ I.createElement(Nq, wq({}, t, m, {
+ }), /*#__PURE__*/ I.createElement(Pq, Tq({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -53695,20 +53698,20 @@ function zq(e) {
})));
return /*#__PURE__*/ (0, Th.createPortal)(_, g);
}
-var Bq = /*#__PURE__*/ I.memo(zq, Sq);
-Bq.displayName = "Legend";
+var Vq = /*#__PURE__*/ I.memo(Bq, Cq);
+Vq.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function Vq() {
- return Vq = Object.assign ? Object.assign.bind() : function(e) {
+function Hq() {
+ return Hq = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Vq.apply(null, arguments);
+ }, Hq.apply(null, arguments);
}
-function Hq(e, t) {
+function Uq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53718,30 +53721,30 @@ function Hq(e, t) {
}
return n;
}
-function Uq(e) {
+function Wq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Hq(Object(n), !0).forEach(function(t) {
- Wq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hq(Object(n)).forEach(function(t) {
+ t % 2 ? Uq(Object(n), !0).forEach(function(t) {
+ Gq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Uq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Wq(e, t, n) {
- return (t = Gq(t)) in e ? Object.defineProperty(e, t, {
+function Gq(e, t, n) {
+ return (t = Kq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Gq(e) {
- var t = Kq(e, "string");
+function Kq(e) {
+ var t = qq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Kq(e, t) {
+function qq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53751,10 +53754,10 @@ function Kq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function qq(e) {
+function Jq(e) {
return Array.isArray(e) && iB(e[0]) && iB(e[1]) ? e.join(" ~ ") : e;
}
-var Jq = {
+var Yq = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -53772,25 +53775,25 @@ var Jq = {
labelStyle: {},
accessibilityLayer: !1
};
-function Yq(e, t) {
- return t == null ? e : dV(e, t);
+function Xq(e, t) {
+ return t == null ? e : fV(e, t);
}
-var Xq = (e) => {
- var { separator: t = Jq.separator, contentStyle: n, itemStyle: r, labelStyle: i = Jq.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = Jq.accessibilityLayer } = e, p = () => {
+var Zq = (e) => {
+ var { separator: t = Yq.separator, contentStyle: n, itemStyle: r, labelStyle: i = Yq.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = Yq.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = Yq(a, s).map((e, n) => {
+ }, n = Xq(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || qq, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || Jq, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
else if (d != null) l = d;
else return null;
}
- var f = Uq(Uq({}, Jq.itemStyle), {}, { color: e.color || Jq.itemStyle.color }, r);
+ var f = Wq(Wq({}, Yq.itemStyle), {}, { color: e.color || Yq.itemStyle.color }, r);
return /*#__PURE__*/ I.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
@@ -53803,30 +53806,30 @@ var Xq = (e) => {
}, n);
}
return null;
- }, m = Uq(Uq({}, Jq.contentStyle), n), h = Uq({ margin: 0 }, i), g = !uB(u), _ = g ? u : "", v = Xm("recharts-default-tooltip", c), y = Xm("recharts-tooltip-label", l);
+ }, m = Wq(Wq({}, Yq.contentStyle), n), h = Wq({ margin: 0 }, i), g = !uB(u), _ = g ? u : "", v = Xm("recharts-default-tooltip", c), y = Xm("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ I.createElement("div", Vq({
+ return /*#__PURE__*/ I.createElement("div", Hq({
className: v,
style: m
}, b), /*#__PURE__*/ I.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ I.isValidElement(_) ? _ : `${_}`), p());
-}, Zq = "recharts-tooltip-wrapper", Qq = { visibility: "hidden" };
-function $q(e) {
+}, Qq = "recharts-tooltip-wrapper", $q = { visibility: "hidden" };
+function eJ(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Xm(Zq, {
- [`${Zq}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${Zq}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${Zq}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${Zq}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Xm(Qq, {
+ [`${Qq}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${Qq}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${Qq}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${Qq}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function eJ(e) {
+function tJ(e) {
var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;
if (a && Z(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
@@ -53834,13 +53837,13 @@ function eJ(e) {
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function tJ(e) {
+function nJ(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function nJ(e) {
+function rJ(e) {
var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;
- return s.height > 0 && s.width > 0 && n ? (d = eJ({
+ return s.height > 0 && s.width > 0 && n ? (d = tJ({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -53850,7 +53853,7 @@ function nJ(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = eJ({
+ }), f = tJ({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -53860,27 +53863,27 @@ function nJ(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = tJ({
+ }), u = nJ({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = Qq, {
+ })) : u = $q, {
cssProperties: u,
- cssClasses: $q({
+ cssClasses: eJ({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var rJ = {
+var iJ = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function iJ() {
- var [e, t] = (0, I.useState)(() => rJ.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function aJ() {
+ var [e, t] = (0, I.useState)(() => iJ.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, I.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -53894,7 +53897,7 @@ function iJ() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function aJ(e, t) {
+function oJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53904,30 +53907,30 @@ function aJ(e, t) {
}
return n;
}
-function oJ(e) {
+function sJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? aJ(Object(n), !0).forEach(function(t) {
- sJ(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aJ(Object(n)).forEach(function(t) {
+ t % 2 ? oJ(Object(n), !0).forEach(function(t) {
+ cJ(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sJ(e, t, n) {
- return (t = cJ(t)) in e ? Object.defineProperty(e, t, {
+function cJ(e, t, n) {
+ return (t = lJ(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cJ(e) {
- var t = lJ(e, "string");
+function lJ(e) {
+ var t = uJ(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lJ(e, t) {
+function uJ(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53937,11 +53940,11 @@ function lJ(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function uJ(e) {
+function dJ(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function dJ(e) {
- var t = iJ(), [n, r] = I.useState(() => ({
+function fJ(e) {
+ var t = aJ(), [n, r] = I.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -53961,8 +53964,8 @@ function dJ(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(oJ(oJ({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = nJ({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(sJ(sJ({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = rJ({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -53975,7 +53978,7 @@ function dJ(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = oJ(oJ({}, e.hasPortalFromProps ? {} : oJ(oJ({ transition: uJ({
+ }), o = sJ(sJ({}, e.hasPortalFromProps ? {} : sJ(sJ({ transition: dJ({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -53995,19 +53998,19 @@ function dJ(e) {
ref: e.innerRef
}, e.children);
}
-var fJ = /*#__PURE__*/ I.memo(dJ), pJ = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var pJ = /*#__PURE__*/ I.memo(fJ), mJ = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function mJ() {
- return mJ = Object.assign ? Object.assign.bind() : function(e) {
+function hJ() {
+ return hJ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, mJ.apply(null, arguments);
+ }, hJ.apply(null, arguments);
}
-function hJ(e, t) {
+function gJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54017,30 +54020,30 @@ function hJ(e, t) {
}
return n;
}
-function gJ(e) {
+function _J(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? hJ(Object(n), !0).forEach(function(t) {
- _J(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hJ(Object(n)).forEach(function(t) {
+ t % 2 ? gJ(Object(n), !0).forEach(function(t) {
+ vJ(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _J(e, t, n) {
- return (t = vJ(t)) in e ? Object.defineProperty(e, t, {
+function vJ(e, t, n) {
+ return (t = yJ(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vJ(e) {
- var t = yJ(e, "string");
+function yJ(e) {
+ var t = bJ(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yJ(e, t) {
+function bJ(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54050,40 +54053,40 @@ function yJ(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var bJ = {
- curveBasisClosed: zpe,
- curveBasisOpen: Bpe,
- curveBasis: Rpe,
- curveBumpX: wpe,
- curveBumpY: Tpe,
- curveLinearClosed: Vpe,
+var xJ = {
+ curveBasisClosed: Vpe,
+ curveBasisOpen: Hpe,
+ curveBasis: Bpe,
+ curveBumpX: Epe,
+ curveBumpY: Dpe,
+ curveLinearClosed: Upe,
curveLinear: hz,
- curveMonotoneX: Hpe,
- curveMonotoneY: Upe,
- curveNatural: Wpe,
- curveStep: Gpe,
- curveStepAfter: qpe,
- curveStepBefore: Kpe
-}, xJ = (e) => vW(e.x) && vW(e.y), SJ = (e) => e.base != null && xJ(e.base) && xJ(e), CJ = (e) => e.x, wJ = (e) => e.y, TJ = (e, t) => {
+ curveMonotoneX: Wpe,
+ curveMonotoneY: Gpe,
+ curveNatural: Kpe,
+ curveStep: qpe,
+ curveStepAfter: Ype,
+ curveStepBefore: Jpe
+}, SJ = (e) => yW(e.x) && yW(e.y), CJ = (e) => e.base != null && SJ(e.base) && SJ(e), wJ = (e) => e.x, TJ = (e) => e.y, khe = (e, t) => {
if (typeof e == "function") return e;
var n = `curve${dB(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = bJ[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = xJ[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return bJ[n] || hz;
+ return xJ[n] || hz;
}, EJ = {
connectNulls: !1,
type: "linear"
-}, Ohe = (e) => {
- var { type: t = EJ.type, points: n = [], baseLine: r, layout: i, connectNulls: a = EJ.connectNulls } = e, o = TJ(t, i), s = a ? n.filter(xJ) : n;
+}, Ahe = (e) => {
+ var { type: t = EJ.type, points: n = [], baseLine: r, layout: i, connectNulls: a = EJ.connectNulls } = e, o = khe(t, i), s = a ? n.filter(SJ) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => gJ(gJ({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? yz().y(wJ).x1(CJ).x0((e) => e.base.x) : yz().x(CJ).y1(wJ).y0((e) => e.base.y), c.defined(SJ).curve(o)(a ? l.filter(SJ) : l);
+ var c, l = n.map((e, t) => _J(_J({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? yz().y(TJ).x1(wJ).x0((e) => e.base.x) : yz().x(wJ).y1(TJ).y0((e) => e.base.y), c.defined(CJ).curve(o)(a ? l.filter(CJ) : l);
}
- return (i === "vertical" && Z(r) ? yz().y(wJ).x1(CJ).x0(r) : Z(r) ? yz().x(CJ).y1(wJ).y0(r) : vz().x(CJ).y(wJ)).defined(xJ).curve(o)(s);
+ return (i === "vertical" && Z(r) ? yz().y(TJ).x1(wJ).x0(r) : Z(r) ? yz().x(wJ).y1(TJ).y0(r) : vz().x(wJ).y(TJ)).defined(SJ).curve(o)(s);
}, DJ = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = YG();
+ var { className: t, points: n, path: r, pathRef: i } = e, a = XG();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -54091,13 +54094,13 @@ var bJ = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? Ohe(o) : r;
- return /*#__PURE__*/ I.createElement("path", mJ({}, qR(e), bB(e), {
+ }, s = n && n.length ? Ahe(o) : r;
+ return /*#__PURE__*/ I.createElement("path", hJ({}, qR(e), bB(e), {
className: Xm("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, khe = [
+}, jhe = [
"x",
"y",
"top",
@@ -54125,30 +54128,30 @@ function kJ(e, t) {
}
return n;
}
-function Ahe(e) {
+function Mhe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? kJ(Object(n), !0).forEach(function(t) {
- jhe(e, t, n[t]);
+ Nhe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jhe(e, t, n) {
- return (t = Mhe(t)) in e ? Object.defineProperty(e, t, {
+function Nhe(e, t, n) {
+ return (t = Phe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Mhe(e) {
- var t = Nhe(e, "string");
+function Phe(e) {
+ var t = Fhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Nhe(e, t) {
+function Fhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54158,16 +54161,16 @@ function Nhe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Phe(e, t) {
+function Ihe(e, t) {
if (e == null) return {};
- var n, r, i = Fhe(e, t);
+ var n, r, i = Lhe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Fhe(e, t) {
+function Lhe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54176,8 +54179,8 @@ function Fhe(e, t) {
}
return n;
}
-var Ihe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Lhe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Phe(e, khe), l = Ahe({
+var Rhe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, zhe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Ihe(e, jhe), l = Mhe({
x: t,
y: n,
top: r,
@@ -54187,12 +54190,12 @@ var Ihe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Lhe = (e) => {
}, c);
return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ I.createElement("path", OJ({}, YR(l), {
className: Xm("recharts-cross", s),
- d: Ihe(t, n, a, o, r, i)
+ d: Rhe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function Rhe(e, t, n, r) {
+function Bhe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -54219,26 +54222,26 @@ function jJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? AJ(Object(n), !0).forEach(function(t) {
- zhe(e, t, n[t]);
+ Vhe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zhe(e, t, n) {
- return (t = Bhe(t)) in e ? Object.defineProperty(e, t, {
+function Vhe(e, t, n) {
+ return (t = Hhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Bhe(e) {
- var t = Vhe(e, "string");
+function Hhe(e) {
+ var t = Uhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Vhe(e, t) {
+function Uhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54248,7 +54251,7 @@ function Vhe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Hhe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), MJ = (e, t, n) => e.map((e) => `${Hhe(e)} ${t}ms ${n}`).join(","), Uhe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), NJ = (e, t) => Object.keys(t).reduce((n, r) => jJ(jJ({}, n), {}, { [r]: e(r, t[r]) }), {});
+var Whe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), MJ = (e, t, n) => e.map((e) => `${Whe(e)} ${t}ms ${n}`).join(","), Ghe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), NJ = (e, t) => Object.keys(t).reduce((n, r) => jJ(jJ({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
function PJ(e, t) {
@@ -54265,26 +54268,26 @@ function FJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? PJ(Object(n), !0).forEach(function(t) {
- Whe(e, t, n[t]);
+ Khe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Whe(e, t, n) {
- return (t = Ghe(t)) in e ? Object.defineProperty(e, t, {
+function Khe(e, t, n) {
+ return (t = qhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Ghe(e) {
- var t = Khe(e, "string");
+function qhe(e) {
+ var t = Jhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Khe(e, t) {
+function Jhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54313,7 +54316,7 @@ var IJ = (e, t, n) => e + (t - e) * n, LJ = (e) => {
from: IJ(t.from, r[e].from, n)
}) : t, t) : RJ(e, r, n - 1);
};
-function qhe(e, t, n, r, i, a) {
+function Yhe(e, t, n, r, i, a) {
var o, s = r.reduce((n, r) => FJ(FJ({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
@@ -54328,7 +54331,7 @@ function qhe(e, t, n, r, i, a) {
(e = u) == null || e();
});
}
-function Jhe(e, t, n, r, i, a, o) {
+function Xhe(e, t, n, r, i, a, o) {
var s = null, c = i.reduce((n, r) => {
var i = e[r], a = t[r];
return i == null || a == null ? n : FJ(FJ({}, n), {}, { [r]: [i, a] });
@@ -54346,15 +54349,15 @@ function Jhe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var Yhe = (e, t, n, r, i, a) => {
- var o = Uhe(e, t);
- return n == null ? () => (i(FJ(FJ({}, e), t)), () => {}) : n.isStepper === !0 ? qhe(e, t, n, o, i, a) : Jhe(e, t, n, r, o, i, a);
+var Zhe = (e, t, n, r, i, a) => {
+ var o = Ghe(e, t);
+ return n == null ? () => (i(FJ(FJ({}, e), t)), () => {}) : n.isStepper === !0 ? Yhe(e, t, n, o, i, a) : Xhe(e, t, n, r, o, i, a);
}, zJ = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], BJ = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), VJ = (e, t) => (n) => BJ(zJ(e, t), n), Xhe = (e, t) => (n) => BJ([...zJ(e, t).map((e, t) => e * t).slice(1), 0], n), Zhe = (e) => {
+], BJ = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), VJ = (e, t) => (n) => BJ(zJ(e, t), n), Qhe = (e, t) => (n) => BJ([...zJ(e, t).map((e, t) => e * t).slice(1), 0], n), $he = (e) => {
var t, n = e.split("(");
if (n.length !== 2 || n[0] !== "cubic-bezier") return null;
var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");
@@ -54366,7 +54369,7 @@ var Yhe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, Qhe = function() {
+}, ege = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -54400,7 +54403,7 @@ var Yhe = (e, t, n, r, i, a) => {
1
];
default:
- var t = Zhe(e[0]);
+ var t = $he(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -54409,8 +54412,8 @@ var Yhe = (e, t, n, r, i, a) => {
1,
1
];
-}, $he = (e, t, n, r) => {
- var i = VJ(e, n), a = VJ(t, r), o = Xhe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, tge = (e, t, n, r) => {
+ var i = VJ(e, n), a = VJ(t, r), o = Qhe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {
var c = i(n) - t, l = o(n);
if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);
@@ -54420,28 +54423,28 @@ var Yhe = (e, t, n, r, i, a) => {
};
return c.isStepper = !1, c;
}, HJ = function() {
- return $he(...Qhe(...arguments));
-}, ege = function() {
+ return tge(...ege(...arguments));
+}, nge = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, tge = (e) => {
+}, rge = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
case "linear": return HJ(e);
- case "spring": return ege();
+ case "spring": return nge();
default: if (e.split("(")[0] === "cubic-bezier") return HJ(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function nge(e) {
+function ige(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -54472,7 +54475,7 @@ function nge(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var rge = class {
+var age = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));
@@ -54484,14 +54487,14 @@ var rge = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function ige() {
- return nge(new rge());
+function oge() {
+ return ige(new age());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var age = /*#__PURE__*/ (0, I.createContext)(ige);
-function oge(e, t) {
- var n = (0, I.useContext)(age);
+var sge = /*#__PURE__*/ (0, I.createContext)(oge);
+function cge(e, t) {
+ var n = (0, I.useContext)(sge);
return (0, I.useMemo)(() => t ?? n(e), [
e,
t,
@@ -54500,7 +54503,7 @@ function oge(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var sge = {
+var lge = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -54510,12 +54513,12 @@ var sge = {
onAnimationStart: () => {}
}, UJ = { t: 0 }, WJ = { t: 1 };
function GJ(e) {
- var t = CB(e, sge), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = iJ(), d = n === "auto" ? !rJ.isSsr && !u : n, f = oge(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? UJ : WJ), h = (0, I.useRef)(null);
+ var t = CB(e, lge), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = aJ(), d = n === "auto" ? !iJ.isSsr && !u : n, f = cge(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? UJ : WJ), h = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
d || m(WJ);
}, [d]), (0, I.useEffect)(() => {
if (!d || !r) return pB;
- var e = Yhe(UJ, WJ, tge(a), i, m, f.getTimeoutController());
+ var e = Zhe(UJ, WJ, rge(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -54546,7 +54549,7 @@ function KJ(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var cge = ["radius"], lge = ["radius"], uge, dge, fge, pge, mge, hge, gge, _ge, vge, yge;
+var uge = ["radius"], dge = ["radius"], fge, pge, mge, hge, gge, _ge, vge, yge, bge, xge;
function qJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -54561,26 +54564,26 @@ function JJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? qJ(Object(n), !0).forEach(function(t) {
- bge(e, t, n[t]);
+ Sge(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bge(e, t, n) {
- return (t = xge(t)) in e ? Object.defineProperty(e, t, {
+function Sge(e, t, n) {
+ return (t = Cge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xge(e) {
- var t = Sge(e, "string");
+function Cge(e) {
+ var t = wge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sge(e, t) {
+function wge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54601,14 +54604,14 @@ function YJ() {
}
function XJ(e, t) {
if (e == null) return {};
- var n, r, i = Cge(e, t);
+ var n, r, i = Tge(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Cge(e, t) {
+function Tge(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54632,44 +54635,44 @@ var QJ = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = eB(uge ||= ZJ([
+ d = eB(fge ||= ZJ([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += eB(dge ||= ZJ([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += eB(pge ||= ZJ([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += eB(fge ||= ZJ([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += eB(mge ||= ZJ([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += eB(pge ||= ZJ([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += eB(hge ||= ZJ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += eB(mge ||= ZJ([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += eB(gge ||= ZJ([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += eB(hge ||= ZJ([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += eB(_ge ||= ZJ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += eB(gge ||= ZJ([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += eB(vge ||= ZJ([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += eB(_ge ||= ZJ([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += eB(yge ||= ZJ([
"A ",
",",
",0,0,",
@@ -54679,8 +54682,8 @@ var QJ = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = eB(vge ||= ZJ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = eB(yge ||= ZJ([
+ d = eB(bge ||= ZJ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = eB(xge ||= ZJ([
"M ",
",",
" h ",
@@ -54724,7 +54727,7 @@ var QJ = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Xm("recharts-rectangle", u);
if (!h) {
- var S = YR(t), { radius: C } = S, w = XJ(S, cge);
+ var S = YR(t), { radius: C } = S, w = XJ(S, uge);
return /*#__PURE__*/ I.createElement("path", YJ({}, w, {
x: $z(a),
y: $z(o),
@@ -54750,7 +54753,7 @@ var QJ = (e, t, n, r, i) => {
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = YR(t), { radius: h } = p, b = XJ(p, lge);
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = YR(t), { radius: h } = p, b = XJ(p, dge);
return /*#__PURE__*/ I.createElement("path", YJ({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
@@ -54776,26 +54779,26 @@ function nY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? tY(Object(n), !0).forEach(function(t) {
- wge(e, t, n[t]);
+ Ege(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wge(e, t, n) {
- return (t = Tge(t)) in e ? Object.defineProperty(e, t, {
+function Ege(e, t, n) {
+ return (t = Dge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Tge(e) {
- var t = Ege(e, "string");
+function Dge(e) {
+ var t = Oge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ege(e, t) {
+function Oge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54805,10 +54808,10 @@ function Ege(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, Dge = (e) => e * 180 / Math.PI, aY = (e, t, n, r) => ({
+var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, kge = (e) => e * 180 / Math.PI, aY = (e, t, n, r) => ({
x: e + Math.cos(-rY * r) * n,
y: t + Math.sin(-rY * r) * n
-}), Oge = function(e, t) {
+}), Age = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -54819,11 +54822,11 @@ var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, Dge = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, kge = (e, t) => {
+}, jge = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, Age = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = kge({
+}, Mge = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = jge({
x: n,
y: r
}, {
@@ -54837,25 +54840,25 @@ var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, Dge = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: Dge(c),
+ angle: kge(c),
angleInRadian: c
};
-}, jge = (e) => {
+}, Nge = (e) => {
var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, Mge = (e, t) => {
+}, Pge = (e, t) => {
var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, Nge = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Age({
+}, Fge = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Mge({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = jge(t), u = a, d;
+ var { startAngle: c, endAngle: l } = Nge(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -54867,7 +54870,7 @@ var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, Dge = (e) => e * 180 / Ma
}
return d ? nY(nY({}, t), {}, {
radius: i,
- angle: Mge(u, t)
+ angle: Pge(u, t)
}) : null;
};
//#endregion
@@ -54885,7 +54888,7 @@ function oY(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var Pge, Fge, Ige, Lge, Rge, zge, Bge;
+var Ige, Lge, Rge, zge, Bge, Vge, Hge;
function sY() {
return sY = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -54898,7 +54901,7 @@ function sY() {
function cY(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) => {
+var Uge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) => {
var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / rY, d = c ? i : i + a * u, f = aY(t, n, l, d), p = aY(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
@@ -54907,7 +54910,7 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
theta: u
};
}, uY = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = Vge(a, o), c = a + s, l = aY(t, n, i, a), u = aY(t, n, i, c), d = eB(Pge ||= cY([
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = Uge(a, o), c = a + s, l = aY(t, n, i, a), u = aY(t, n, i, c), d = eB(Ige ||= cY([
"M ",
",",
"\n A ",
@@ -54920,7 +54923,7 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
var f = aY(t, n, r, a), p = aY(t, n, r, c);
- d += eB(Fge ||= cY([
+ d += eB(Lge ||= cY([
"L ",
",",
"\n A ",
@@ -54931,13 +54934,13 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += eB(Ige ||= cY([
+ } else d += eB(Rge ||= cY([
"L ",
",",
" Z"
]), t, n);
return d;
-}, Hge = (e) => {
+}, Wge = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = tB(l - c), { circleTangency: d, lineTangency: f, theta: p } = lY({
cx: t,
cy: n,
@@ -54955,7 +54958,7 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? eB(Lge ||= cY([
+ if (_ < 0) return o ? eB(zge ||= cY([
"M ",
",",
"\n a",
@@ -54973,7 +54976,7 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
startAngle: c,
endAngle: l
});
- var v = eB(Rge ||= cY([
+ var v = eB(Bge ||= cY([
"M ",
",",
"\n A",
@@ -55015,7 +55018,7 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
cornerIsExternal: s
}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;
if (T < 0 && a === 0) return `${v}L${t},${n}Z`;
- v += eB(zge ||= cY([
+ v += eB(Vge ||= cY([
"L",
",",
"\n A",
@@ -55036,13 +55039,13 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
",",
"Z"
]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);
- } else v += eB(Bge ||= cY([
+ } else v += eB(Hge ||= cY([
"L",
",",
"Z"
]), t, n);
return v;
-}, Uge = {
+}, Gge = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -55053,9 +55056,9 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
forceCornerRadius: !1,
cornerIsExternal: !1
}, dY = (e) => {
- var t = CB(e, Uge), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ var t = CB(e, Gge), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
if (a < i || l === u) return null;
- var f = Xm("recharts-sector", d), p = a - i, m = oB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Hge({
+ var f = Xm("recharts-sector", d), p = a - i, m = oB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Wge({
cx: n,
cy: r,
innerRadius: i,
@@ -55080,7 +55083,7 @@ var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function Wge(e, t, n) {
+function Kge(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -55111,18 +55114,18 @@ function Wge(e, t, n) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function Gge(e) {
+function qge(e) {
return Yz(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function fY(e) {
- return e ? (e = Gge(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = qge(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
function pY(e, t, n) {
- n && typeof n != "number" && iV(e, t, n) && (t = n = void 0), e = fY(e), t === void 0 ? (t = e, e = 0) : t = fY(t), n = n === void 0 ? e < t ? 1 : -1 : fY(n);
+ n && typeof n != "number" && aV(e, t, n) && (t = n = void 0), e = fY(e), t === void 0 ? (t = e, e = 0) : t = fY(t), n = n === void 0 ? e < t ? 1 : -1 : fY(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
@@ -55143,7 +55146,7 @@ var mY = (e) => e.chartData, hY = $([mY], (e) => {
function vY(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (vW(t) && vW(n)) return !0;
+ if (yW(t) && yW(n)) return !0;
}
return !1;
}
@@ -55153,15 +55156,15 @@ function yY(e, t, n) {
function bY(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (vW(n)) i = n;
+ if (yW(n)) i = n;
else if (typeof n == "function") return;
- if (vW(r)) a = r;
+ if (yW(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
if (vY(o)) return o;
}
}
-function Kge(e, t, n) {
+function Jge(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -55174,8 +55177,8 @@ function Kge(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && BW.test(i)) {
- var c = BW.exec(i);
+ else if (typeof i == "string" && VW.test(i)) {
+ var c = VW.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -55187,8 +55190,8 @@ function Kge(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && VW.test(a)) {
- var u = VW.exec(a);
+ else if (typeof a == "string" && HW.test(a)) {
+ var u = HW.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -55608,7 +55611,7 @@ var wY = (e) => {
}
var u = r[c] ?? 1, d = new xY.default(u).mul(o);
return t ? d : new xY.default(Math.ceil(d.toNumber()));
-}, qge = (e, t, n) => {
+}, Yge = (e, t, n) => {
var r = new xY.default(1), i = new xY.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -55637,7 +55640,7 @@ var wY = (e) => {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return qge(s, r, i);
+ if (s === c) return Yge(s, r, i);
var { step: u, tickMin: d, tickMax: f } = DY(s, c, o, i, 0, a === "snap125" ? EY : TY), p = CY(d, f.add(new xY.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
}, kY = function(e, t) {
@@ -55646,7 +55649,7 @@ var wY = (e) => {
if (o === s) return [o];
var c = a === "snap125" ? EY : TY, l = Math.max(t, 2), u = c(new xY.default(s).sub(o).div(l - 1), i, 0), d = [...CY(new xY.default(o), new xY.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, AY = (e) => e.rootProps.maxBarSize, jY = (e) => e.rootProps.barGap, MY = (e) => e.rootProps.barCategoryGap, NY = (e) => e.rootProps.barSize, PY = (e) => e.rootProps.stackOffset, FY = (e) => e.rootProps.reverseStackOrder, IY = (e) => e.options.chartName, LY = (e) => e.rootProps.syncId, RY = (e) => e.rootProps.syncMethod, zY = (e) => e.options.eventEmitter, Jge = (e) => e.rootProps.baseValue, BY = {
+}, AY = (e) => e.rootProps.maxBarSize, jY = (e) => e.rootProps.barGap, MY = (e) => e.rootProps.barCategoryGap, NY = (e) => e.rootProps.barSize, PY = (e) => e.rootProps.stackOffset, FY = (e) => e.rootProps.reverseStackOrder, IY = (e) => e.options.chartName, LY = (e) => e.rootProps.syncId, RY = (e) => e.rootProps.syncMethod, zY = (e) => e.options.eventEmitter, Xge = (e) => e.rootProps.baseValue, BY = {
grid: -100,
barBackground: -50,
area: 100,
@@ -55708,7 +55711,7 @@ var wY = (e) => {
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
function WY(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return DW(e, t) ? "category" : "number";
+ if (e != null) return OW(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
@@ -55726,26 +55729,26 @@ function KY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? GY(Object(n), !0).forEach(function(t) {
- Yge(e, t, n[t]);
+ Zge(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Yge(e, t, n) {
- return (t = Xge(t)) in e ? Object.defineProperty(e, t, {
+function Zge(e, t, n) {
+ return (t = Qge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xge(e) {
- var t = Zge(e, "string");
+function Qge(e) {
+ var t = $ge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zge(e, t) {
+function $ge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55791,19 +55794,19 @@ var qY = {
niceTicks: "auto"
}, YY = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, ZG], (e, t) => {
+}, QG], (e, t) => {
if (e != null) return e;
var n = WY(t, "angleAxis", qY.type) ?? "category";
return KY(KY({}, qY), {}, { type: n });
-}), XY = $([(e, t) => e.polarAxis.radiusAxis[t], ZG], (e, t) => {
+}), XY = $([(e, t) => e.polarAxis.radiusAxis[t], QG], (e, t) => {
if (e != null) return e;
var n = WY(t, "radiusAxis", JY.type) ?? "category";
return KY(KY({}, JY), {}, { type: n });
}), ZY = (e) => e.polarOptions, QY = $([
- qW,
JW,
- uG
-], Oge), $Y = $([ZY, QY], (e, t) => {
+ YW,
+ dG
+], Age), $Y = $([ZY, QY], (e, t) => {
if (e != null) return oB(e.innerRadius, t, 0);
}), eX = $([ZY, QY], (e, t) => {
if (e != null) return oB(e.outerRadius, t, t * .8);
@@ -55811,19 +55814,19 @@ var qY = {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), Qge = $([YY, tX], UY), nX = $([
+}), e_e = $([YY, tX], UY), nX = $([
QY,
$Y,
eX
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), $ge = $([XY, nX], UY), rX = $([
- JG,
+}), t_e = $([XY, nX], UY), rX = $([
+ YG,
ZY,
$Y,
eX,
- qW,
- JW
+ JW,
+ YW
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var { cx: o, cy: s, startAngle: c, endAngle: l } = t;
@@ -55852,7 +55855,7 @@ function sX(e, t, n) {
if (t != null && t.length !== 0) {
var n = oX(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(TW(t, a, null)), c = TW(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(EW(t, a, null)), c = EW(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -55871,7 +55874,7 @@ var lX = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&
function uX(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function e_e(e, t) {
+function n_e(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -55881,7 +55884,7 @@ function e_e(e, t) {
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
var dX = (e) => {
- var t = JG(e);
+ var t = YG(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
}, fX = (e) => e.tooltip.settings.axisId;
//#endregion
@@ -55933,7 +55936,7 @@ var mX = (e, t) => {
if (!vY(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- vW(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ yW(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
}
return n !== void 0 && r !== void 0 ? [n, r] : void 0;
}
@@ -55950,7 +55953,7 @@ function hX(e, t) {
//#region node_modules/d3-array/src/bisector.js
function gX(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = t_e(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = r_e(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -55976,7 +55979,7 @@ function gX(e) {
right: i
};
}
-function t_e(e) {
+function r_e(e) {
return (t, n) => hX(e(t), n);
}
//#endregion
@@ -55984,7 +55987,7 @@ function t_e(e) {
function _X(e) {
return e === null ? NaN : +e;
}
-function* n_e(e, t) {
+function* i_e(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -55998,7 +56001,7 @@ vX.left, gX(_X).center;
//#endregion
//#region node_modules/internmap/src/index.js
var bX = class extends Map {
- constructor(e, t = a_e) {
+ constructor(e, t = s_e) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -56011,25 +56014,25 @@ var bX = class extends Map {
return super.has(xX(this, e));
}
set(e, t) {
- return super.set(r_e(this, e), t);
+ return super.set(a_e(this, e), t);
}
delete(e) {
- return super.delete(i_e(this, e));
+ return super.delete(o_e(this, e));
}
};
function xX({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function r_e({ _intern: e, _key: t }, n) {
+function a_e({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function i_e({ _intern: e, _key: t }, n) {
+function o_e({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function a_e(e) {
+function s_e(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -56102,15 +56105,15 @@ function jX(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function o_e(e, t, n) {
- if (e = Float64Array.from(n_e(e, n)), r = e.length) {
+function c_e(e, t, n) {
+ if (e = Float64Array.from(i_e(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return kX(e);
if (t >= 1) return OX(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = OX(AX(e, a).subarray(0, a + 1));
return o + (kX(e.subarray(a + 1)) - o) * (i - a);
}
}
-function s_e(e, t, n = _X) {
+function l_e(e, t, n = _X) {
if (r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
@@ -56120,7 +56123,7 @@ function s_e(e, t, n = _X) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function c_e(e, t, n) {
+function u_e(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
@@ -56192,7 +56195,7 @@ function LX() {
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = c_e(e).map(function(e) {
+ var m = u_e(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -56227,7 +56230,7 @@ function RX(e) {
return RX(t());
}, e;
}
-function l_e() {
+function d_e() {
return RX(LX.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -56243,7 +56246,7 @@ function BX(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function VX() {}
-var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", u_e = /^#([0-9a-f]{3,8})$/, d_e = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), f_e = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), p_e = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), m_e = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), h_e = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), g_e = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {
+var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", f_e = /^#([0-9a-f]{3,8})$/, p_e = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), m_e = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), h_e = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), g_e = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), __e = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), v_e = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -56402,18 +56405,18 @@ zX(VX, XX, {
},
hex: JX,
formatHex: JX,
- formatHex8: __e,
- formatHsl: v_e,
+ formatHex8: y_e,
+ formatHsl: b_e,
formatRgb: YX,
toString: YX
});
function JX() {
return this.rgb().formatHex();
}
-function __e() {
+function y_e() {
return this.rgb().formatHex8();
}
-function v_e() {
+function b_e() {
return sZ(this).formatHsl();
}
function YX() {
@@ -56421,7 +56424,7 @@ function YX() {
}
function XX(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = u_e.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = d_e.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = f_e.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = p_e.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = m_e.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = h_e.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = g_e.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = f_e.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = p_e.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = m_e.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = h_e.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = g_e.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = __e.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = v_e.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;
}
function ZX(e) {
return new eZ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -56429,11 +56432,11 @@ function ZX(e) {
function QX(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new eZ(e, t, n, r);
}
-function y_e(e) {
+function x_e(e) {
return e instanceof VX || (e = XX(e)), e ? (e = e.rgb(), new eZ(e.r, e.g, e.b, e.opacity)) : new eZ();
}
function $X(e, t, n, r) {
- return arguments.length === 1 ? y_e(e) : new eZ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? x_e(e) : new eZ(e, t, n, r ?? 1);
}
function eZ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -56456,14 +56459,14 @@ zX(eZ, $X, BX(VX, {
},
hex: tZ,
formatHex: tZ,
- formatHex8: b_e,
+ formatHex8: S_e,
formatRgb: nZ,
toString: nZ
}));
function tZ() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}`;
}
-function b_e() {
+function S_e() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}${aZ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function nZ() {
@@ -56490,13 +56493,13 @@ function sZ(e) {
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new cZ(o, s, c, e.opacity);
}
-function x_e(e, t, n, r) {
+function C_e(e, t, n, r) {
return arguments.length === 1 ? sZ(e) : new cZ(e, t, n, r ?? 1);
}
function cZ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-zX(cZ, x_e, BX(VX, {
+zX(cZ, C_e, BX(VX, {
brighter(e) {
return e = e == null ? UX : UX ** +e, new cZ(this.h, this.s, this.l * e, this.opacity);
},
@@ -56532,29 +56535,29 @@ function dZ(e, t, n) {
var fZ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function S_e(e, t) {
+function w_e(e, t) {
return function(n) {
return e + n * t;
};
}
-function C_e(e, t, n) {
+function T_e(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function w_e(e) {
+function E_e(e) {
return (e = +e) == 1 ? pZ : function(t, n) {
- return n - t ? C_e(t, n, e) : fZ(isNaN(t) ? n : t);
+ return n - t ? T_e(t, n, e) : fZ(isNaN(t) ? n : t);
};
}
function pZ(e, t) {
var n = t - e;
- return n ? S_e(e, n) : fZ(isNaN(e) ? t : e);
+ return n ? w_e(e, n) : fZ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var mZ = (function e(t) {
- var n = w_e(t);
+ var n = E_e(t);
function r(e, t) {
var r = n((e = $X(e)).r, (t = $X(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = pZ(e.opacity, t.opacity);
return function(t) {
@@ -56565,7 +56568,7 @@ var mZ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function T_e(e, t) {
+function D_e(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -56573,12 +56576,12 @@ function T_e(e, t) {
return r;
};
}
-function E_e(e) {
+function O_e(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function D_e(e, t) {
+function k_e(e, t) {
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
for (o = 0; o < r; ++o) i[o] = vZ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -56589,7 +56592,7 @@ function D_e(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function O_e(e, t) {
+function A_e(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -56604,7 +56607,7 @@ function hZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function k_e(e, t) {
+function j_e(e, t) {
var n = {}, r = {}, i;
for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = vZ(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -56615,23 +56618,23 @@ function k_e(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var gZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, _Z = new RegExp(gZ.source, "g");
-function A_e(e) {
+function M_e(e) {
return function() {
return e;
};
}
-function j_e(e) {
+function N_e(e) {
return function(t) {
return e(t) + "";
};
}
-function M_e(e, t) {
+function P_e(e, t) {
var n = gZ.lastIndex = _Z.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = gZ.exec(e)) && (i = _Z.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
i: o,
x: hZ(r, i)
})), n = _Z.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? j_e(c[0].x) : A_e(t) : (t = c.length, function(e) {
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? N_e(c[0].x) : M_e(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
@@ -56640,7 +56643,7 @@ function M_e(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function vZ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : M_e : t instanceof XX ? mZ : t instanceof Date ? O_e : E_e(t) ? T_e : Array.isArray(t) ? D_e : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? k_e : hZ)(e, t);
+ return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : P_e : t instanceof XX ? mZ : t instanceof Date ? A_e : O_e(t) ? D_e : Array.isArray(t) ? k_e : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? j_e : hZ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -56651,7 +56654,7 @@ function yZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function N_e(e, t) {
+function F_e(e, t) {
t === void 0 && (t = e, e = vZ);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
@@ -56661,7 +56664,7 @@ function N_e(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function P_e(e) {
+function I_e(e) {
return function() {
return e;
};
@@ -56680,21 +56683,21 @@ function SZ(e) {
function CZ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : P_e(isNaN(t) ? NaN : .5);
+ } : I_e(isNaN(t) ? NaN : .5);
}
-function F_e(e, t) {
+function L_e(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function I_e(e, t, n) {
+function R_e(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = CZ(i, r), a = n(o, a)) : (r = CZ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function L_e(e, t, n) {
+function z_e(e, t, n) {
var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = CZ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
@@ -56709,7 +56712,7 @@ function TZ() {
var e = xZ, t = xZ, n = vZ, r, i, a, o = SZ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== SZ && (o = F_e(e[0], e[n - 1])), s = n > 2 ? L_e : I_e, c = l = null, d;
+ return o !== SZ && (o = L_e(e[0], e[n - 1])), s = n > 2 ? z_e : R_e, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -56737,7 +56740,7 @@ function EZ() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function R_e(e) {
+function B_e(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function DZ(e, t) {
@@ -56752,7 +56755,7 @@ function OZ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function z_e(e, t) {
+function V_e(e, t) {
return function(n, r) {
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
return a.reverse().join(t);
@@ -56760,7 +56763,7 @@ function z_e(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function B_e(e) {
+function H_e(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -56769,9 +56772,9 @@ function B_e(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var V_e = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var U_e = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function kZ(e) {
- if (!(t = V_e.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = U_e.exec(e))) throw Error("invalid format: " + e);
var t;
return new AZ({
fill: t[1],
@@ -56795,7 +56798,7 @@ AZ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function H_e(e) {
+function W_e(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -56812,7 +56815,7 @@ function H_e(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var jZ;
-function U_e(e, t) {
+function G_e(e, t) {
var n = DZ(e, t);
if (!n) return jZ = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (jZ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -56832,14 +56835,14 @@ var NZ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: R_e,
+ d: B_e,
e: (e, t) => e.toExponential(t),
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
p: (e, t) => MZ(e * 100, t),
r: MZ,
- s: U_e,
+ s: G_e,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -56869,8 +56872,8 @@ var FZ = Array.prototype.map, IZ = [
"Z",
"Y"
];
-function W_e(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : z_e(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : B_e(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
+function K_e(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : V_e(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : H_e(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
function l(e, l) {
e = kZ(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
@@ -56883,7 +56886,7 @@ function W_e(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = H_e(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = W_e(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
break;
@@ -56924,27 +56927,27 @@ function W_e(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var LZ, RZ, zZ;
-G_e({
+q_e({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function G_e(e) {
- return LZ = W_e(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
+function q_e(e) {
+ return LZ = K_e(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function K_e(e) {
+function J_e(e) {
return Math.max(0, -OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function q_e(e, t) {
+function Y_e(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(OZ(t) / 3))) * 3 - OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function J_e(e, t) {
+function X_e(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, OZ(t) - OZ(e)) + 1;
}
//#endregion
@@ -56954,16 +56957,16 @@ function BZ(e, t, n, r) {
switch (r = kZ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = q_e(i, o)) && (r.precision = a), zZ(r, o);
+ return r.precision == null && !isNaN(a = Y_e(i, o)) && (r.precision = a), zZ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = J_e(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = X_e(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = K_e(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = J_e(i)) && (r.precision = a - (r.type === "%") * 2);
}
return RZ(r);
}
@@ -57026,19 +57029,19 @@ function GZ(e) {
function KZ(e) {
return Math.exp(e);
}
-function Y_e(e) {
+function Z_e(e) {
return -Math.log(-e);
}
-function X_e(e) {
+function Q_e(e) {
return -Math.exp(-e);
}
-function Z_e(e) {
+function $_e(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function Q_e(e) {
- return e === 10 ? Z_e : e === Math.E ? Math.exp : (t) => e ** +t;
+function eve(e) {
+ return e === 10 ? $_e : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function $_e(e) {
+function tve(e) {
return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);
}
function qZ(e) {
@@ -57047,7 +57050,7 @@ function qZ(e) {
function JZ(e) {
let t = e(GZ, KZ), n = t.domain, r = 10, i, a;
function o() {
- return i = $_e(r), a = Q_e(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Y_e, X_e)) : e(GZ, KZ), t;
+ return i = tve(r), a = eve(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Z_e, Q_e)) : e(GZ, KZ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -57117,16 +57120,16 @@ function eQ(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function eve(e) {
+function nve(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function tve(e) {
+function rve(e) {
return e < 0 ? -e * e : e * e;
}
function tQ(e) {
var t = e(SZ, SZ), n = 1;
function r() {
- return n === 1 ? e(SZ, SZ) : n === .5 ? e(eve, tve) : e(eQ(n), eQ(1 / n));
+ return n === 1 ? e(SZ, SZ) : n === .5 ? e(nve, rve) : e(eQ(n), eQ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -57138,7 +57141,7 @@ function nQ() {
return wZ(e, nQ()).exponent(e.exponent());
}, NX.apply(e, arguments), e;
}
-function nve() {
+function ive() {
return nQ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -57146,13 +57149,13 @@ function nve() {
function rQ(e) {
return Math.sign(e) * e * e;
}
-function rve(e) {
+function ave(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function iQ() {
var e = EZ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = rve(e(t));
+ var i = ave(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -57179,7 +57182,7 @@ function aQ() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = s_e(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = l_e(e, r / i);
return a;
}
function a(e) {
@@ -57348,8 +57351,8 @@ function DQ(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * pQ) / gQ);
}
-var OQ = DQ(0), kQ = DQ(1), ive = DQ(2), ave = DQ(3), AQ = DQ(4), ove = DQ(5), sve = DQ(6);
-OQ.range, kQ.range, ive.range, ave.range, AQ.range, ove.range, sve.range;
+var OQ = DQ(0), kQ = DQ(1), ove = DQ(2), sve = DQ(3), AQ = DQ(4), cve = DQ(5), lve = DQ(6);
+OQ.range, kQ.range, ove.range, sve.range, AQ.range, cve.range, lve.range;
function jQ(e) {
return uQ((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -57357,8 +57360,8 @@ function jQ(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / gQ);
}
-var MQ = jQ(0), NQ = jQ(1), cve = jQ(2), lve = jQ(3), PQ = jQ(4), uve = jQ(5), dve = jQ(6);
-MQ.range, NQ.range, cve.range, lve.range, PQ.range, uve.range, dve.range;
+var MQ = jQ(0), NQ = jQ(1), uve = jQ(2), dve = jQ(3), PQ = jQ(4), fve = jQ(5), pve = jQ(6);
+MQ.range, NQ.range, uve.range, dve.range, PQ.range, fve.range, pve.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var FQ = uQ((e) => {
@@ -57505,7 +57508,7 @@ function zQ(e, t, n, r, i, a) {
}
return [s, c];
}
-var [fve, pve] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [mve, hve] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
+var [mve, hve] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [gve, _ve] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function BQ(e) {
@@ -57533,7 +57536,7 @@ function HQ(e, t, n) {
L: 0
};
}
-function gve(e) {
+function vve(e) {
var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = KQ(i), u = qQ(i), d = KQ(a), f = qQ(a), p = KQ(o), m = qQ(o), h = KQ(s), g = qQ(s), _ = KQ(c), v = qQ(c), y = {
a: N,
A: ee,
@@ -57542,30 +57545,30 @@ function gve(e) {
c: null,
d: QQ,
e: QQ,
- f: zve,
- g: Yve,
- G: Zve,
- H: Ive,
- I: Lve,
- j: Rve,
+ f: Vve,
+ g: Zve,
+ G: $ve,
+ H: Rve,
+ I: zve,
+ j: Bve,
L: $Q,
- m: Bve,
- M: Vve,
+ m: Hve,
+ M: Uve,
p: ne,
q: F,
Q: a$,
s: o$,
- S: Hve,
- u: Uve,
- U: Wve,
- V: Gve,
- w: Kve,
- W: qve,
+ S: Wve,
+ u: Gve,
+ U: Kve,
+ V: qve,
+ w: Jve,
+ W: Yve,
x: null,
X: null,
- y: Jve,
- Y: Xve,
- Z: Qve,
+ y: Xve,
+ Y: Qve,
+ Z: eye,
"%": i$
}, b = {
a: re,
@@ -57575,30 +57578,30 @@ function gve(e) {
c: null,
d: t$,
e: t$,
- f: nye,
- g: fye,
- G: mye,
- H: $ve,
- I: eye,
- j: tye,
+ f: iye,
+ g: mye,
+ G: gye,
+ H: tye,
+ I: nye,
+ j: rye,
L: n$,
- m: rye,
- M: iye,
+ m: aye,
+ M: oye,
p: se,
q: ce,
Q: a$,
s: o$,
- S: aye,
- u: oye,
- U: sye,
- V: cye,
- w: lye,
- W: uye,
+ S: sye,
+ u: cye,
+ U: lye,
+ V: uye,
+ w: dye,
+ W: fye,
x: null,
X: null,
- y: dye,
- Y: pye,
- Z: hye,
+ y: pye,
+ Y: hye,
+ Z: _ye,
"%": i$
}, x = {
a: E,
@@ -57608,31 +57611,31 @@ function gve(e) {
c: A,
d: XQ,
e: XQ,
- f: Mve,
+ f: Pve,
g: YQ,
G: JQ,
H: ZQ,
I: ZQ,
- j: Ove,
- L: jve,
- m: Dve,
- M: kve,
+ j: Ave,
+ L: Nve,
+ m: kve,
+ M: jve,
p: T,
- q: Eve,
- Q: Pve,
- s: Fve,
- S: Ave,
- u: xve,
- U: Sve,
- V: Cve,
- w: bve,
- W: wve,
+ q: Ove,
+ Q: Ive,
+ s: Lve,
+ S: Mve,
+ u: Cve,
+ U: wve,
+ V: Tve,
+ w: Sve,
+ W: Eve,
x: j,
X: M,
y: YQ,
Y: JQ,
- Z: Tve,
- "%": Nve
+ Z: Dve,
+ "%": Fve
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
@@ -57760,37 +57763,37 @@ var UQ = {
"-": "",
_: " ",
0: "0"
-}, WQ = /^\s*\d+/, _ve = /^%/, vve = /[\\^$*+?|[\]().{}]/g;
+}, WQ = /^\s*\d+/, yve = /^%/, bve = /[\\^$*+?|[\]().{}]/g;
function GQ(e, t, n) {
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
}
-function yve(e) {
- return e.replace(vve, "\\$&");
+function xve(e) {
+ return e.replace(bve, "\\$&");
}
function KQ(e) {
- return RegExp("^(?:" + e.map(yve).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(xve).join("|") + ")", "i");
}
function qQ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function bve(e, t, n) {
+function Sve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function xve(e, t, n) {
+function Cve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function Sve(e, t, n) {
+function wve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function Cve(e, t, n) {
+function Tve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function wve(e, t, n) {
+function Eve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -57802,15 +57805,15 @@ function YQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function Tve(e, t, n) {
+function Dve(e, t, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
-function Eve(e, t, n) {
+function Ove(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function Dve(e, t, n) {
+function kve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -57818,7 +57821,7 @@ function XQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function Ove(e, t, n) {
+function Ave(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -57826,159 +57829,159 @@ function ZQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function kve(e, t, n) {
+function jve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function Ave(e, t, n) {
+function Mve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function jve(e, t, n) {
+function Nve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function Mve(e, t, n) {
+function Pve(e, t, n) {
var r = WQ.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function Nve(e, t, n) {
- var r = _ve.exec(t.slice(n, n + 1));
+function Fve(e, t, n) {
+ var r = yve.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function Pve(e, t, n) {
+function Ive(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function Fve(e, t, n) {
+function Lve(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function QQ(e, t) {
return GQ(e.getDate(), t, 2);
}
-function Ive(e, t) {
+function Rve(e, t) {
return GQ(e.getHours(), t, 2);
}
-function Lve(e, t) {
+function zve(e, t) {
return GQ(e.getHours() % 12 || 12, t, 2);
}
-function Rve(e, t) {
+function Bve(e, t) {
return GQ(1 + wQ.count(LQ(e), e), t, 3);
}
function $Q(e, t) {
return GQ(e.getMilliseconds(), t, 3);
}
-function zve(e, t) {
+function Vve(e, t) {
return $Q(e, t) + "000";
}
-function Bve(e, t) {
+function Hve(e, t) {
return GQ(e.getMonth() + 1, t, 2);
}
-function Vve(e, t) {
+function Uve(e, t) {
return GQ(e.getMinutes(), t, 2);
}
-function Hve(e, t) {
+function Wve(e, t) {
return GQ(e.getSeconds(), t, 2);
}
-function Uve(e) {
+function Gve(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function Wve(e, t) {
+function Kve(e, t) {
return GQ(OQ.count(LQ(e) - 1, e), t, 2);
}
function e$(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? AQ(e) : AQ.ceil(e);
}
-function Gve(e, t) {
+function qve(e, t) {
return e = e$(e), GQ(AQ.count(LQ(e), e) + (LQ(e).getDay() === 4), t, 2);
}
-function Kve(e) {
+function Jve(e) {
return e.getDay();
}
-function qve(e, t) {
+function Yve(e, t) {
return GQ(kQ.count(LQ(e) - 1, e), t, 2);
}
-function Jve(e, t) {
+function Xve(e, t) {
return GQ(e.getFullYear() % 100, t, 2);
}
-function Yve(e, t) {
+function Zve(e, t) {
return e = e$(e), GQ(e.getFullYear() % 100, t, 2);
}
-function Xve(e, t) {
+function Qve(e, t) {
return GQ(e.getFullYear() % 1e4, t, 4);
}
-function Zve(e, t) {
+function $ve(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? AQ(e) : AQ.ceil(e), GQ(e.getFullYear() % 1e4, t, 4);
}
-function Qve(e) {
+function eye(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + GQ(t / 60 | 0, "0", 2) + GQ(t % 60, "0", 2);
}
function t$(e, t) {
return GQ(e.getUTCDate(), t, 2);
}
-function $ve(e, t) {
+function tye(e, t) {
return GQ(e.getUTCHours(), t, 2);
}
-function eye(e, t) {
+function nye(e, t) {
return GQ(e.getUTCHours() % 12 || 12, t, 2);
}
-function tye(e, t) {
+function rye(e, t) {
return GQ(1 + TQ.count(RQ(e), e), t, 3);
}
function n$(e, t) {
return GQ(e.getUTCMilliseconds(), t, 3);
}
-function nye(e, t) {
+function iye(e, t) {
return n$(e, t) + "000";
}
-function rye(e, t) {
+function aye(e, t) {
return GQ(e.getUTCMonth() + 1, t, 2);
}
-function iye(e, t) {
+function oye(e, t) {
return GQ(e.getUTCMinutes(), t, 2);
}
-function aye(e, t) {
+function sye(e, t) {
return GQ(e.getUTCSeconds(), t, 2);
}
-function oye(e) {
+function cye(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function sye(e, t) {
+function lye(e, t) {
return GQ(MQ.count(RQ(e) - 1, e), t, 2);
}
function r$(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? PQ(e) : PQ.ceil(e);
}
-function cye(e, t) {
+function uye(e, t) {
return e = r$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);
}
-function lye(e) {
+function dye(e) {
return e.getUTCDay();
}
-function uye(e, t) {
+function fye(e, t) {
return GQ(NQ.count(RQ(e) - 1, e), t, 2);
}
-function dye(e, t) {
+function pye(e, t) {
return GQ(e.getUTCFullYear() % 100, t, 2);
}
-function fye(e, t) {
+function mye(e, t) {
return e = r$(e), GQ(e.getUTCFullYear() % 100, t, 2);
}
-function pye(e, t) {
+function hye(e, t) {
return GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function mye(e, t) {
+function gye(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? PQ(e) : PQ.ceil(e), GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function hye() {
+function _ye() {
return "+0000";
}
function i$() {
@@ -57993,7 +57996,7 @@ function o$(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var s$, c$, l$;
-gye({
+vye({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -58045,15 +58048,15 @@ gye({
"Dec"
]
});
-function gye(e) {
- return s$ = gve(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
+function vye(e) {
+ return s$ = vve(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function _ye(e) {
+function yye(e) {
return new Date(e);
}
-function vye(e) {
+function bye(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function u$(e, t, n, r, i, a, o, s, c, l) {
@@ -58064,7 +58067,7 @@ function u$(e, t, n, r, i, a, o, s, c, l) {
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, vye)) : f().map(_ye);
+ return arguments.length ? f(Array.from(e, bye)) : f().map(yye);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -58077,13 +58080,13 @@ function u$(e, t, n, r, i, a, o, s, c, l) {
return wZ(u, u$(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function yye() {
- return NX.apply(u$(mve, hve, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function xye() {
+ return NX.apply(u$(gve, _ve, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function bye() {
- return NX.apply(u$(fve, pve, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function Sye() {
+ return NX.apply(u$(mve, hve, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -58138,7 +58141,7 @@ function g$() {
return f$(e, g$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function xye() {
+function Cye() {
return g$.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -58158,7 +58161,7 @@ function _$() {
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => o_e(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => c_e(e, r / t));
}, n.copy = function() {
return _$(t).domain(e);
}, PX.apply(n, arguments);
@@ -58184,7 +58187,7 @@ function v$() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = N_e(e, [
+ return arguments.length ? ([n, r, i] = t, l = F_e(e, [
n,
r,
i
@@ -58229,7 +58232,7 @@ function S$() {
return f$(e, S$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function Sye() {
+function wye() {
return S$.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -58239,14 +58242,14 @@ var C$ = /* @__PURE__ */ re({
scaleDiverging: () => y$,
scaleDivergingLog: () => b$,
scaleDivergingPow: () => S$,
- scaleDivergingSqrt: () => Sye,
+ scaleDivergingSqrt: () => wye,
scaleDivergingSymlog: () => x$,
scaleIdentity: () => UZ,
scaleImplicit: () => FX,
scaleLinear: () => HZ,
scaleLog: () => YZ,
scaleOrdinal: () => IX,
- scalePoint: () => l_e,
+ scalePoint: () => d_e,
scalePow: () => nQ,
scaleQuantile: () => aQ,
scaleQuantize: () => oQ,
@@ -58255,18 +58258,18 @@ var C$ = /* @__PURE__ */ re({
scaleSequentialLog: () => m$,
scaleSequentialPow: () => g$,
scaleSequentialQuantile: () => _$,
- scaleSequentialSqrt: () => xye,
+ scaleSequentialSqrt: () => Cye,
scaleSequentialSymlog: () => h$,
- scaleSqrt: () => nve,
+ scaleSqrt: () => ive,
scaleSymlog: () => $Z,
scaleThreshold: () => sQ,
- scaleTime: () => yye,
- scaleUtc: () => bye,
+ scaleTime: () => xye,
+ scaleUtc: () => Sye,
tickFormat: () => BZ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Cye(e) {
+function Tye(e) {
if (e in C$) return C$[e]();
var t = `scale${dB(e)}`;
if (t in C$) return C$[t]();
@@ -58274,7 +58277,7 @@ function Cye(e) {
function w$(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Cye(e);
+ var r = Tye(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -58283,22 +58286,22 @@ function T$(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function wye(e) {
+function Eye(e) {
return `scale${dB(e)}`;
}
-function Tye(e) {
- return wye(e) in C$;
+function Dye(e) {
+ return Eye(e) in C$;
}
var E$ = (e, t, n) => {
if (e != null) {
var { scale: r, type: i } = e;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return Tye(r) ? r : "point";
+ if (typeof r == "string") return Dye(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function Eye(e, t) {
+function Oye(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
@@ -58309,7 +58312,7 @@ function D$(e, t) {
if (e) {
var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();
if (!(n.length === 0 || i.length < 2)) return (e) => {
- var t = Eye(r, e);
+ var t = Oye(r, e);
if (t <= 0) return n[0];
if (t >= n.length) return n[n.length - 1];
var i = r[t - 1] ?? 0, a = r[t] ?? 0;
@@ -58319,7 +58322,7 @@ function D$(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function Dye(e) {
+function kye(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : D$(e, void 0);
}
//#endregion
@@ -58338,26 +58341,26 @@ function k$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? O$(Object(n), !0).forEach(function(t) {
- Oye(e, t, n[t]);
+ Aye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Oye(e, t, n) {
- return (t = kye(t)) in e ? Object.defineProperty(e, t, {
+function Aye(e, t, n) {
+ return (t = jye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kye(e) {
- var t = Aye(e, "string");
+function jye(e) {
+ var t = Mye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Aye(e, t) {
+function Mye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58425,7 +58428,7 @@ var A$ = [0, "auto"], j$ = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, jye = {
+}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, Nye = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -58438,7 +58441,7 @@ var A$ = [0, "auto"], j$ = {
scale: "auto",
type: "number",
unit: ""
-}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? jye, R$ = (e, t, n) => {
+}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? Nye, R$ = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
@@ -58447,7 +58450,7 @@ var A$ = [0, "auto"], j$ = {
case "radiusAxis": return XY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, Mye = (e, t, n) => {
+}, Pye = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
@@ -58474,14 +58477,14 @@ function V$(e, t) {
}
};
}
-var H$ = (e) => e.graphicalItems.cartesianItems, Nye = $([iX, aX], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
+var H$ = (e) => e.graphicalItems.cartesianItems, Fye = $([iX, aX], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
H$,
R$,
- Nye
-], U$, { memoizeOptions: { resultEqualityCheck: uX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(cX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Pye = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Fye = $([W$], q$, { memoizeOptions: { resultEqualityCheck: uX } }), J$ = (e, t) => {
+ Fye
+], U$, { memoizeOptions: { resultEqualityCheck: uX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(cX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Iye = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Lye = $([W$], q$, { memoizeOptions: { resultEqualityCheck: uX } }), J$ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, Y$ = $([Fye, gY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: TW(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: TW(e, t.dataKey) })), Z$ = $([
+}, Y$ = $([Lye, gY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: EW(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: EW(e, t.dataKey) })), Z$ = $([
Y$,
R$,
W$
@@ -58489,7 +58492,7 @@ var H$ = (e) => e.graphicalItems.cartesianItems, Nye = $([iX, aX], V$), U$ = (e,
function Q$(e) {
if (iB(e) || e instanceof Date) {
var t = Number(e);
- if (vW(t)) return t;
+ if (yW(t)) return t;
}
}
function $$(e) {
@@ -58503,11 +58506,11 @@ function $$(e) {
function e1(e) {
return e.map(Q$).filter(fB);
}
-function Iye(e, t) {
+function Rye(e, t) {
var n = Q$(e), r = Q$(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var Lye = $([Z$], (e) => e?.map((e) => e.value).sort(Iye));
+var zye = $([Z$], (e) => e?.map((e) => e.value).sort(Rye));
function t1(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -58515,13 +58518,13 @@ function t1(e, t) {
default: return !1;
}
}
-function Rye(e, t, n) {
+function Bye(e, t, n) {
return !n || typeof t != "number" || nB(t) || !n.length ? [] : e1(n.flatMap((n) => {
- var r = TW(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!vW(i) || !vW(a))) return [t - i, t + a];
+ var r = EW(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!yW(i) || !yW(a))) return [t - i, t + a];
}));
}
-var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), zye = $([
+var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), Vye = $([
G$,
gY,
n1
@@ -58534,22 +58537,22 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), zye = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: MW(e, o.map(oX), n),
+ stackedData: NW(e, o.map(oX), n),
graphicalItems: o
}];
}));
}, a1 = $([
- zye,
+ Vye,
G$,
PY,
FY
], i1), o1 = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = zW(e, i, a);
+ var o = BW(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, Bye = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
+}, Hye = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
if (e == null || !("domain" in e)) return A$;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
@@ -58560,12 +58563,12 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), zye = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? A$;
-}, c1 = $([R$], s1), l1 = $([c1, Bye], bY), Vye = $([
+}, c1 = $([R$], s1), l1 = $([c1, Hye], bY), Uye = $([
a1,
mY,
iX,
l1
-], o1, { memoizeOptions: { resultEqualityCheck: lX } }), u1 = (e) => e.errorBars, Hye = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
+], o1, { memoizeOptions: { resultEqualityCheck: lX } }), u1 = (e) => e.errorBars, Wye = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
@@ -58575,7 +58578,7 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), zye = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => t1(i, e)), c = TW(e, t.dataKey ?? n.dataKey), l = Rye(e, c, s);
+ var s = r[n.id]?.filter((e) => t1(i, e)), c = EW(e, t.dataKey ?? n.dataKey), l = Bye(e, c, s);
if (l.length >= 2) {
var u = Math.min(...l), d = Math.max(...l);
(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);
@@ -58584,32 +58587,32 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), zye = $([
f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));
});
}), t?.dataKey != null && e.forEach((e) => {
- var n = $$(TW(e, t.dataKey));
+ var n = $$(EW(e, t.dataKey));
n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));
- }), vW(a) && vW(o)) return [a, o];
-}, Uye = $([
+ }), yW(a) && yW(o)) return [a, o];
+}, Gye = $([
Y$,
R$,
- Pye,
+ Iye,
u1,
iX
], f1, { memoizeOptions: { resultEqualityCheck: lX } });
-function Wye(e) {
+function Kye(e) {
var { value: t } = e;
if (iB(t) || t instanceof Date) return t;
}
-var Gye = (e, t, n) => {
- var r = e.map(Wye).filter((e) => e != null);
+var qye = (e, t, n) => {
+ var r = e.map(Kye).filter((e) => e != null);
return n && (t.dataKey == null || t.allowDuplicatedCategory && sB(r)) ? pY(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Kye = $([
+}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Jye = $([
p1,
iX,
aX
-], m1), h1 = (e) => e.referenceElements.areas, qye = $([
+], m1), h1 = (e) => e.referenceElements.areas, Yye = $([
h1,
iX,
aX
-], m1), g1 = (e) => e.referenceElements.lines, Jye = $([
+], m1), g1 = (e) => e.referenceElements.lines, Xye = $([
g1,
iX,
aX
@@ -58618,49 +58621,49 @@ var Gye = (e, t, n) => {
var n = e1(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Yye = $(Kye, iX, _1), v1 = (e, t) => {
+}, Zye = $(Jye, iX, _1), v1 = (e, t) => {
if (e != null) {
var n = e1(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Xye = $([qye, iX], v1);
-function Zye(e) {
+}, Qye = $([Yye, iX], v1);
+function $ye(e) {
if (e.x != null) return e1([e.x]);
var t = e.segment?.map((e) => e.x);
return t == null || t.length === 0 ? [] : e1(t);
}
-function Qye(e) {
+function ebe(e) {
if (e.y != null) return e1([e.y]);
var t = e.segment?.map((e) => e.y);
return t == null || t.length === 0 ? [] : e1(t);
}
var y1 = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? Zye(e) : Qye(e));
+ var n = e.flatMap((e) => t === "xAxis" ? $ye(e) : ebe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, $ye = $(Yye, $([Jye, iX], y1), Xye, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? Kge(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), ebe = $([
+}, tbe = $(Zye, $([Xye, iX], y1), Qye, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? Jge(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), nbe = $([
R$,
c1,
l1,
- Vye,
Uye,
- $ye,
- JG,
+ Gye,
+ tbe,
+ YG,
iX
-], b1, { memoizeOptions: { resultEqualityCheck: lX } }), tbe = [0, 1], x1 = (e, t, n, r, i, a, o) => {
+], b1, { memoizeOptions: { resultEqualityCheck: lX } }), rbe = [0, 1], x1 = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var { dataKey: s, type: c } = e, l = DW(t, a);
- return l && s == null ? pY(0, n?.length ?? 0) : c === "category" ? Gye(r, e, l) : i === "expand" ? tbe : o;
+ var { dataKey: s, type: c } = e, l = OW(t, a);
+ return l && s == null ? pY(0, n?.length ?? 0) : c === "category" ? qye(r, e, l) : i === "expand" ? rbe : o;
}
}, S1 = $([
R$,
- JG,
+ YG,
Y$,
Z$,
PY,
iX,
- ebe
+ nbe
], x1), C1 = $([
R$,
B$,
@@ -58688,7 +58691,7 @@ var y1 = (e, t) => {
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, nbe = $([
+}, ibe = $([
R$,
S1,
T1,
@@ -58708,8 +58711,8 @@ var y1 = (e, t) => {
}
return n / o;
}
-}), JG, MY, uG, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!vW(e)) return 0;
+}), YG, MY, dG, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!yW(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
@@ -58717,13 +58720,13 @@ var y1 = (e, t) => {
return s - o - (s - o) / a * o;
}
return 0;
-}), rbe = (e, t, n) => {
+}), abe = (e, t, n) => {
var r = N$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "xAxis", t, n, r.padding);
-}, ibe = (e, t, n) => {
+}, obe = (e, t, n) => {
var r = I$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "yAxis", t, n, r.padding);
-}, abe = $(N$, rbe, (e, t) => {
+}, sbe = $(N$, abe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -58736,7 +58739,7 @@ var y1 = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), obe = $(I$, ibe, (e, t) => {
+}), cbe = $(I$, obe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -58749,29 +58752,29 @@ var y1 = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), sbe = $([
- uG,
- abe,
+}), lbe = $([
+ dG,
+ sbe,
+ _G,
gG,
- hG,
(e, t, n) => n
], (e, t, n, r, i) => {
var { padding: a } = r;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), cbe = $([
- uG,
- JG,
- obe,
+}), ube = $([
+ dG,
+ YG,
+ cbe,
+ _G,
gG,
- hG,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
}), O1 = (e, t, n, r) => {
switch (t) {
- case "xAxis": return sbe(e, n, r);
- case "yAxis": return cbe(e, n, r);
+ case "xAxis": return lbe(e, n, r);
+ case "yAxis": return ube(e, n, r);
case "zAxis": return L$(e, n)?.range;
case "angleAxis": return tX(e);
case "radiusAxis": return nX(e, n);
@@ -58780,67 +58783,67 @@ var y1 = (e, t) => {
}, k1 = $([R$, O1], UY), A1 = $([
R$,
C1,
- $([C1, nbe], mX),
+ $([C1, ibe], mX),
k1
], T$), j1 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (DW(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (OW(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
}, M1 = $([
- JG,
+ YG,
Z$,
z$,
iX
], j1), N1 = $([A1], pX);
-$([A1], Dye), $([A1, Lye], D$), $([
+$([A1], kye), $([A1, zye], D$), $([
W$,
u1,
iX
-], Hye);
+], Wye);
function P1(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), ube = $(QW, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({
+var F1 = (e, t) => t, I1 = (e, t, n) => n, dbe = $(QW, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), fbe = $($W, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({
width: e.width,
height: t.height
-}), dbe = (e, t) => ({
+}), pbe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), R1 = $(uG, N$, L1), fbe = (e, t, n) => {
+}), R1 = $(dG, N$, L1), mbe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, pbe = (e, t, n) => {
+}, hbe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, mbe = $(JW, uG, lbe, F1, I1, (e, t, n, r, i) => {
+}, gbe = $(YW, dG, dbe, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = L1(t, n);
- o ??= fbe(t, r, e);
+ o ??= mbe(t, r, e);
var c = r === "top" && !i || r === "bottom" && i;
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
}), a;
-}), hbe = $(qW, uG, ube, F1, I1, (e, t, n, r, i) => {
+}), _be = $(JW, dG, fbe, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = dbe(t, n);
- o ??= pbe(t, r, e);
+ var s = pbe(t, n);
+ o ??= hbe(t, r, e);
var c = r === "left" && !i || r === "right" && i;
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
-}), gbe = $([
- uG,
+}), vbe = $([
+ dG,
N$,
(e, t) => {
var n = N$(e, t);
- if (n != null) return mbe(e, n.orientation, n.mirror);
+ if (n != null) return gbe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -58854,12 +58857,12 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
y: i
};
}
-}), _be = $([
- uG,
+}), ybe = $([
+ dG,
I$,
(e, t) => {
var n = I$(e, t);
- if (n != null) return hbe(e, n.orientation, n.mirror);
+ if (n != null) return _be(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -58873,7 +58876,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
y: e.top
};
}
-}), z1 = $(uG, I$, (e, t) => ({
+}), z1 = $(dG, I$, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
})), B1 = (e, t, n) => {
@@ -58884,17 +58887,17 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
}
}, V1 = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = DW(e, r), c = t.map((e) => e.value);
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = OW(e, r), c = t.map((e) => e.value);
if (o && s && a === "category" && i && sB(c)) return c;
}
}, H1 = $([
- JG,
+ YG,
Z$,
R$,
iX
], V1), U1 = $([
- JG,
- Mye,
+ YG,
+ Pye,
C1,
N1,
H1,
@@ -58904,7 +58907,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
iX
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = DW(e, c);
+ var l = OW(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -58928,12 +58931,12 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
}
}), W1 = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = DW(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
+ var l = OW(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
m = c === "angleAxis" && a != null && a.length >= 2 ? tB(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
- return vW(i) ? {
+ return yW(i) ? {
index: t,
coordinate: i + m,
value: e,
@@ -58941,7 +58944,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
} : null;
}).filter(fB) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return vW(n) ? {
+ return yW(n) ? {
coordinate: n + m,
value: e,
index: t,
@@ -58949,7 +58952,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
} : null;
}).filter(fB) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return vW(n) ? {
+ return yW(n) ? {
coordinate: n + m,
value: e,
index: t,
@@ -58957,7 +58960,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
} : null;
}).filter(fB) : r.domain().map((e, t) => {
var n = r.map(e);
- return vW(n) ? {
+ return yW(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
@@ -58966,7 +58969,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
}).filter(fB);
}
}, G1 = $([
- JG,
+ YG,
z$,
C1,
N1,
@@ -58977,10 +58980,10 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
iX
], W1), K1 = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = DW(e, o), { tickCount: c } = t, l = 0;
+ var s = OW(e, o), { tickCount: c } = t, l = 0;
return l = o === "angleAxis" && r?.length >= 2 ? tB(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return vW(r) ? {
+ return yW(r) ? {
coordinate: r + l,
value: e,
index: t,
@@ -58988,7 +58991,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
} : null;
}).filter(fB) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return vW(r) ? {
+ return yW(r) ? {
coordinate: r + l,
value: e,
index: t,
@@ -58996,7 +58999,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
} : null;
}).filter(fB) : n.domain().map((e, t) => {
var r = n.map(e);
- return vW(r) ? {
+ return yW(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
@@ -59005,7 +59008,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.fi
}).filter(fB);
}
}, q1 = $([
- JG,
+ YG,
z$,
N1,
O1,
@@ -59023,10 +59026,10 @@ $((e, t, n) => L$(e, n), $([$([
], T$)], pX), (e, t) => {
if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
-var vbe = $([
- JG,
- ZW,
- QW
+var bbe = $([
+ YG,
+ QW,
+ $W
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -59057,7 +59060,7 @@ function Z1(e, t, n) {
function Q1(e, t) {
return Z1(t, Y1(e), X1(e));
}
-function ybe(e) {
+function xbe(e) {
return Q((t) => Q1(t, e));
}
//#endregion
@@ -59065,13 +59068,13 @@ function ybe(e) {
var $1 = (e, t) => {
var n, r = Number(t);
if (!(nB(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, bbe = (e) => e.tooltip.settings, e0 = {
+}, Sbe = (e) => e.tooltip.settings, e0 = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, t0 = CU({
+}, t0 = wU({
name: "tooltip",
initialState: {
itemInteraction: {
@@ -59104,23 +59107,23 @@ var $1 = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(XK(t.payload));
+ e.tooltipItemPayloads.push(ZK(t.payload));
},
- prepare: cU()
+ prepare: lU()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = JH(e).tooltipItemPayloads.indexOf(XK(n));
- i > -1 && (e.tooltipItemPayloads[i] = XK(r));
+ var { prev: n, next: r } = t.payload, i = YH(e).tooltipItemPayloads.indexOf(ZK(n));
+ i > -1 && (e.tooltipItemPayloads[i] = ZK(r));
},
- prepare: cU()
+ prepare: lU()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = JH(e).tooltipItemPayloads.indexOf(XK(t.payload));
+ var n = YH(e).tooltipItemPayloads.indexOf(ZK(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: cU()
+ prepare: lU()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -59150,7 +59153,7 @@ var $1 = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: xbe, replaceTooltipEntrySettings: Sbe, removeTooltipEntrySettings: Cbe, setTooltipSettingsState: wbe, setActiveMouseOverItemIndex: n0, mouseLeaveItem: Tbe, mouseLeaveChart: r0, setActiveClickItemIndex: Ebe, setMouseOverAxisIndex: i0, setMouseClickAxisIndex: Dbe, setSyncInteraction: a0, setKeyboardInteraction: o0 } = t0.actions, Obe = t0.reducer;
+}), { addTooltipEntrySettings: Cbe, replaceTooltipEntrySettings: wbe, removeTooltipEntrySettings: Tbe, setTooltipSettingsState: Ebe, setActiveMouseOverItemIndex: n0, mouseLeaveItem: Dbe, mouseLeaveChart: r0, setActiveClickItemIndex: Obe, setMouseOverAxisIndex: i0, setMouseClickAxisIndex: kbe, setSyncInteraction: a0, setKeyboardInteraction: o0 } = t0.actions, Abe = t0.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function s0(e, t) {
@@ -59167,26 +59170,26 @@ function c0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? s0(Object(n), !0).forEach(function(t) {
- kbe(e, t, n[t]);
+ jbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kbe(e, t, n) {
- return (t = Abe(t)) in e ? Object.defineProperty(e, t, {
+function jbe(e, t, n) {
+ return (t = Mbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Abe(e) {
- var t = jbe(e, "string");
+function Mbe(e) {
+ var t = Nbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jbe(e, t) {
+function Nbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59196,21 +59199,21 @@ function jbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Mbe(e, t, n) {
+function Pbe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function Nbe(e) {
+function Fbe(e) {
return e.index != null;
}
var l0 = (e, t, n, r) => {
if (t == null) return e0;
- var i = Mbe(e, t, n);
+ var i = Pbe(e, t, n);
if (i == null) return e0;
if (i.active) return i;
if (e.keyboardInteraction.active) return e.keyboardInteraction;
if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;
var a = e.settings.active === !0;
- if (Nbe(i)) {
+ if (Fbe(i)) {
if (a) return c0(c0({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -59223,7 +59226,7 @@ var l0 = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function Pbe(e) {
+function Ibe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -59232,24 +59235,24 @@ function Pbe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function Fbe(e, t) {
- var n = Pbe(e), r = t[0], i = t[1];
+function Lbe(e, t) {
+ var n = Ibe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function Ibe(e, t, n) {
+function Rbe(e, t, n) {
if (n == null || t == null) return !0;
- var r = TW(e, t);
- return r == null || !vY(n) || Fbe(r, n);
+ var r = EW(e, t);
+ return r == null || !vY(n) || Lbe(r, n);
}
var u0 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!vW(a)) return i;
+ if (!yW(a)) return i;
var o = 0, s = Infinity;
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
- return l == null || Ibe(l, n, r) ? String(c) : null;
+ return l == null || Rbe(l, n, r) ? String(c) : null;
}, d0 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -59293,26 +59296,26 @@ function g0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h0(Object(n), !0).forEach(function(t) {
- Lbe(e, t, n[t]);
+ zbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Lbe(e, t, n) {
- return (t = Rbe(t)) in e ? Object.defineProperty(e, t, {
+function zbe(e, t, n) {
+ return (t = Bbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Rbe(e) {
- var t = zbe(e, "string");
+function Bbe(e) {
+ var t = Vbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zbe(e, t) {
+function Vbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59322,57 +59325,57 @@ function zbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Bbe(e) {
+function Hbe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function Vbe(e) {
+function Ube(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function Hbe(e) {
+function Wbe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
function _0(e) {
if (typeof e == "string") return e;
}
-function Ube(e) {
+function Gbe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? Bbe(e.name) : void 0,
- unit: "unit" in e ? Vbe(e.unit) : void 0,
- dataKey: "dataKey" in e ? Hbe(e.dataKey) : void 0,
+ name: "name" in e ? Hbe(e.name) : void 0,
+ unit: "unit" in e ? Ube(e.unit) : void 0,
+ dataKey: "dataKey" in e ? Wbe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
color: "color" in e ? _0(e.color) : void 0,
fill: "fill" in e ? _0(e.fill) : void 0
};
}
-function Wbe(e, t) {
+function Kbe(e, t) {
return e ?? t;
}
var v0 = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;
return e.reduce((e, n) => {
- var { dataDefinedOnItem: d, settings: f } = n, p = Wbe(d, s), m = Array.isArray(p) ? _W(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? lB(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = Kbe(d, s), m = Array.isArray(p) ? vW(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? lB(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = Ube(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = g0(g0({}, f), {}, {
+ var n = Gbe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = g0(g0({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(UW({
+ e.push(WW({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: TW(a, i),
+ value: EW(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(UW({
+ }) : e.push(WW({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: TW(_, h),
- name: TW(_, g) ?? f?.name
+ value: EW(_, h),
+ name: EW(_, g) ?? f?.name
})), e;
}, []);
}
@@ -59384,17 +59387,17 @@ var v0 = (e, t, n, r, i, a, o) => {
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
n1,
$([dX, fX], V$)
-], U$, { memoizeOptions: { resultEqualityCheck: uX } }), Gbe = $([b0], (e) => e.filter(cX)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: uX } }), mY], J$), Kbe = $([
- Gbe,
+], U$, { memoizeOptions: { resultEqualityCheck: uX } }), qbe = $([b0], (e) => e.filter(cX)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: uX } }), mY], J$), Jbe = $([
+ qbe,
mY,
n1
], sX), S0 = $([
x0,
n1,
b0
-], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], bY), qbe = $([
+], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], bY), Ybe = $([
$([
- Kbe,
+ Jbe,
$([b0], (e) => e.filter(cX)),
PY,
FY
@@ -59402,23 +59405,23 @@ var v0 = (e, t, n, r, i, a, o) => {
mY,
dX,
w0
-], o1), Jbe = $([
+], o1), Xbe = $([
x0,
n1,
$([b0], K$),
u1,
dX
-], f1, { memoizeOptions: { resultEqualityCheck: lX } }), Ybe = $([$([
+], f1, { memoizeOptions: { resultEqualityCheck: lX } }), Zbe = $([$([
p1,
dX,
fX
-], m1), dX], _1), Xbe = $([$([
+], m1), dX], _1), Qbe = $([$([
h1,
dX,
fX
], m1), dX], v1), T0 = $([
n1,
- JG,
+ YG,
x0,
S0,
PY,
@@ -59427,21 +59430,21 @@ var v0 = (e, t, n, r, i, a, o) => {
n1,
C0,
w0,
- qbe,
- Jbe,
+ Ybe,
+ Xbe,
$([
- Ybe,
+ Zbe,
$([$([
g1,
dX,
fX
], m1), dX], y1),
- Xbe
+ Qbe
], d1),
- JG,
+ YG,
dX
], b1)
-], x1), Zbe = $([
+], x1), $be = $([
n1,
T0,
$([
@@ -59453,22 +59456,22 @@ var v0 = (e, t, n, r, i, a, o) => {
], E1), E0 = (e) => O1(e, dX(e), fX(e), !1), D0 = $([n1, E0], UY), O0 = $([$([
n1,
y0,
- Zbe,
+ $be,
D0
], T$)], pX), k0 = $([
- JG,
+ YG,
n1,
y0,
O0,
E0,
$([
- JG,
+ YG,
S0,
n1,
dX
], V1),
$([
- JG,
+ YG,
S0,
n1,
dX
@@ -59476,12 +59479,12 @@ var v0 = (e, t, n, r, i, a, o) => {
dX
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = DW(e, s);
+ var { type: c } = t, l = OW(e, s);
if (r) {
var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;
return d = s === "angleAxis" && i != null && i?.length >= 2 ? tB(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return vW(n) ? {
+ return yW(n) ? {
coordinate: n + d,
value: e,
index: t,
@@ -59489,7 +59492,7 @@ var v0 = (e, t, n, r, i, a, o) => {
} : null;
}).filter(fB) : r.domain().map((e, t) => {
var n = r.map(e);
- return vW(n) ? {
+ return yW(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
@@ -59501,7 +59504,7 @@ var v0 = (e, t, n, r, i, a, o) => {
}), A0 = $([
Y1,
X1,
- bbe
+ Sbe
], (e, t, n) => Z1(n.shared, e, t)), j0 = (e) => e.tooltip.settings.trigger, M0 = (e) => e.tooltip.settings.defaultIndex, N0 = $([
m0,
A0,
@@ -59514,22 +59517,22 @@ var v0 = (e, t, n, r, i, a, o) => {
T0
], u0), F0 = $([k0, P0], $1), I0 = $([N0], (e) => {
if (e) return e.dataKey;
-}), Qbe = $([N0], (e) => {
+}), exe = $([N0], (e) => {
if (e) return e.graphicalItemId;
}), L0 = $([
m0,
A0,
j0,
M0
-], f0), $be = $([N0, $([
- qW,
+], f0), txe = $([N0, $([
JW,
- JG,
- uG,
+ YW,
+ YG,
+ dG,
k0,
M0,
L0
-], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), exe = $([N0], (e) => e?.active ?? !1), txe = $([$([
+], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), nxe = $([N0], (e) => e?.active ?? !1), rxe = $([$([
L0,
P0,
mY,
@@ -59559,26 +59562,26 @@ function z0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? R0(Object(n), !0).forEach(function(t) {
- nxe(e, t, n[t]);
+ ixe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nxe(e, t, n) {
- return (t = rxe(t)) in e ? Object.defineProperty(e, t, {
+function ixe(e, t, n) {
+ return (t = axe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rxe(e) {
- var t = ixe(e, "string");
+function axe(e) {
+ var t = oxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ixe(e, t) {
+function oxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59588,9 +59591,9 @@ function ixe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var axe = () => Q(n1), oxe = () => {
- var e = axe(), t = Q(k0), n = Q(O0);
- return HW(!e || !n ? void 0 : z0(z0({}, e), {}, { scale: n }), t);
+var sxe = () => Q(n1), cxe = () => {
+ var e = sxe(), t = Q(k0), n = Q(O0);
+ return UW(!e || !n ? void 0 : z0(z0({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
@@ -59608,26 +59611,26 @@ function V0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? B0(Object(n), !0).forEach(function(t) {
- sxe(e, t, n[t]);
+ lxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sxe(e, t, n) {
- return (t = cxe(t)) in e ? Object.defineProperty(e, t, {
+function lxe(e, t, n) {
+ return (t = uxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cxe(e) {
- var t = lxe(e, "string");
+function uxe(e) {
+ var t = dxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lxe(e, t) {
+function dxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59637,7 +59640,7 @@ function lxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var uxe = (e, t, n, r) => {
+var fxe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -59653,7 +59656,7 @@ var uxe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, dxe = (e, t, n, r) => {
+}, pxe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
@@ -59683,7 +59686,7 @@ var uxe = (e, t, n, r) => {
y: 0
};
};
-function fxe(e, t) {
+function mxe(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
@@ -59720,7 +59723,7 @@ var H0 = (e, t, n, r, i) => {
}
}
return -1;
-}, U0 = () => Q(IY), W0 = (e, t) => t, G0 = (e, t, n) => n, K0 = (e, t, n, r) => r, pxe = $(k0, (e) => dV(e, (e) => e.coordinate)), q0 = $([
+}, U0 = () => Q(IY), W0 = (e, t) => t, G0 = (e, t, n) => n, K0 = (e, t, n, r) => r, hxe = $(k0, (e) => fV(e, (e) => e.coordinate)), q0 = $([
m0,
W0,
G0,
@@ -59730,7 +59733,7 @@ var H0 = (e, t, n, r, i) => {
x0,
r1,
T0
-], u0), mxe = (e, t, n) => {
+], u0), gxe = (e, t, n) => {
if (t != null) {
var r = m0(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
@@ -59741,14 +59744,14 @@ var H0 = (e, t, n, r, i) => {
G0,
K0
], f0), X0 = $([
- qW,
JW,
- JG,
- uG,
+ YW,
+ YG,
+ dG,
k0,
K0,
Y0
-], d0), hxe = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), gxe = $([
+], d0), _xe = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), vxe = $([
Y0,
J0,
mY,
@@ -59756,39 +59759,39 @@ var H0 = (e, t, n, r, i) => {
Z0,
p0,
W0
-], v0), _xe = $([q0, J0], (e, t) => ({
+], v0), yxe = $([q0, J0], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), vxe = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && fxe(e, o)) {
- var s = H0(GW(e, t), a, i, n, r), c = uxe(t, i, s, e);
+})), bxe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && mxe(e, o)) {
+ var s = H0(KW(e, t), a, i, n, r), c = fxe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, yxe = (e, t, n, r, i, a, o) => {
+}, xxe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = Nge(e, n);
+ var s = Fge(e, n);
if (s) {
- var c = H0(KW(s, t), o, a, r, i), l = dxe(t, a, c, s);
+ var c = H0(qW(s, t), o, a, r, i), l = pxe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, bxe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? vxe(e, t, r, i, a, o, s) : yxe(e, t, n, r, i, a, o);
-}, xxe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, Sxe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? bxe(e, t, r, i, a, o, s) : xxe(e, t, n, r, i, a, o);
+}, Cxe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), Sxe = $((e) => e.zIndex.zIndexMap, (e) => {
+}), wxe = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(BY));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: e_e } });
+}, { memoizeOptions: { resultEqualityCheck: n_e } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function Q0(e, t) {
@@ -59805,26 +59808,26 @@ function $0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Q0(Object(n), !0).forEach(function(t) {
- Cxe(e, t, n[t]);
+ Txe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Cxe(e, t, n) {
- return (t = wxe(t)) in e ? Object.defineProperty(e, t, {
+function Txe(e, t, n) {
+ return (t = Exe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wxe(e) {
- var t = Txe(e, "string");
+function Exe(e) {
+ var t = Dxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Txe(e, t) {
+function Dxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59834,17 +59837,17 @@ function Txe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Exe = { zIndexMap: Object.values(BY).reduce((e, t) => $0($0({}, e), {}, { [t]: {
+var Oxe = { zIndexMap: Object.values(BY).reduce((e, t) => $0($0({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, Dxe = new Set(Object.values(BY));
-function Oxe(e) {
- return Dxe.has(e);
+} }), {}) }, kxe = new Set(Object.values(BY));
+function Axe(e) {
+ return kxe.has(e);
}
-var e2 = CU({
+var e2 = wU({
name: "zIndex",
- initialState: Exe,
+ initialState: Oxe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -59855,47 +59858,47 @@ var e2 = CU({
panoramaElement: void 0
};
},
- prepare: cU()
+ prepare: lU()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !Oxe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !Axe(n) && delete e.zIndexMap[n]);
},
- prepare: cU()
+ prepare: lU()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = XK(r) : e.zIndexMap[n].element = XK(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = ZK(r) : e.zIndexMap[n].element = ZK(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : XK(r),
- panoramaElement: i ? XK(r) : void 0
+ element: i ? void 0 : ZK(r),
+ panoramaElement: i ? ZK(r) : void 0
};
},
- prepare: cU()
+ prepare: lU()
},
unregisterZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);
},
- prepare: cU()
+ prepare: lU()
}
}
-}), { registerZIndexPortal: kxe, unregisterZIndexPortal: Axe, registerZIndexPortalElement: jxe, unregisterZIndexPortalElement: Mxe } = e2.actions, Nxe = e2.reducer;
+}), { registerZIndexPortal: jxe, unregisterZIndexPortal: Mxe, registerZIndexPortalElement: Nxe, unregisterZIndexPortalElement: Pxe } = e2.actions, Fxe = e2.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function t2(e) {
- var { zIndex: t, children: n } = e, r = $G() && t !== void 0 && t !== 0, i = mG(), a = XB();
- (0, I.useLayoutEffect)(() => r ? (a(kxe({ zIndex: t })), () => {
- a(Axe({ zIndex: t }));
+ var { zIndex: t, children: n } = e, r = eK() && t !== void 0 && t !== 0, i = hG(), a = XB();
+ (0, I.useLayoutEffect)(() => r ? (a(jxe({ zIndex: t })), () => {
+ a(Mxe({ zIndex: t }));
}) : pB, [
a,
t,
r
]);
- var o = Q((e) => xxe(e, t, i));
+ var o = Q((e) => Cxe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, Th.createPortal)(n, o) : null : n;
}
//#endregion
@@ -59923,26 +59926,26 @@ function i2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r2(Object(n), !0).forEach(function(t) {
- Pxe(e, t, n[t]);
+ Ixe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Pxe(e, t, n) {
- return (t = Fxe(t)) in e ? Object.defineProperty(e, t, {
+function Ixe(e, t, n) {
+ return (t = Lxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Fxe(e) {
- var t = Ixe(e, "string");
+function Lxe(e) {
+ var t = Rxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ixe(e, t) {
+function Rxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59952,16 +59955,16 @@ function Ixe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Lxe(e) {
+function zxe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, I.isValidElement)(t) ? /*#__PURE__*/ (0, I.cloneElement)(t, r) : /*#__PURE__*/ (0, I.createElement)(n, r);
}
-function Rxe(e) {
+function Bxe(e) {
var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = Lhe, h = BY.cursorLine;
- else if (l === "BarChart") p = Rhe(o, u, i, a), m = eY, h = BY.cursorRectangle;
+ if (l === "ScatterChart") p = u, m = zhe, h = BY.cursorLine;
+ else if (l === "BarChart") p = Bhe(o, u, i, a), m = eY, h = BY.cursorRectangle;
else if (o === "radial" && yB(u)) {
var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = oY(u);
p = {
@@ -59972,7 +59975,7 @@ function Rxe(e) {
innerRadius: v,
outerRadius: v
}, m = dY, h = BY.cursorLine;
- } else p = { points: Wge(o, u, i) }, m = DJ, h = BY.cursorLine;
+ } else p = { points: Kge(o, u, i) }, m = DJ, h = BY.cursorLine;
var x = typeof s == "object" && "className" in s ? s.className : void 0, S = i2(i2(i2(i2({
stroke: "#ccc",
pointerEvents: "none"
@@ -59981,15 +59984,15 @@ function Rxe(e) {
payloadIndex: f,
className: Xm("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(Lxe, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(zxe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function zxe(e) {
- var t = oxe(), n = WG(), r = YG(), i = U0();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(Rxe, n2({}, e, {
+function Vxe(e) {
+ var t = cxe(), n = GG(), r = XG(), i = U0();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(Bxe, n2({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -59998,7 +60001,7 @@ function zxe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var a2 = /*#__PURE__*/ (0, I.createContext)(null), Bxe = () => (0, I.useContext)(a2), Vxe = (/* @__PURE__ */ ae((/* @__PURE__ */ F(((e, t) => {
+var a2 = /*#__PURE__*/ (0, I.createContext)(null), Hxe = () => (0, I.useContext)(a2), Uxe = (/* @__PURE__ */ ae((/* @__PURE__ */ F(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -60085,12 +60088,12 @@ var a2 = /*#__PURE__*/ (0, I.createContext)(null), Bxe = () => (0, I.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, o2 = new Vxe(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {
+})))(), 1)).default, o2 = new Uxe(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
if (!nB(n)) return e[n];
}
-}, u2 = CU({
+}, u2 = wU({
name: "options",
initialState: {
chartName: "",
@@ -60101,13 +60104,13 @@ var a2 = /*#__PURE__*/ (0, I.createContext)(null), Bxe = () => (0, I.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), Hxe = u2.reducer, { createEventEmitter: Uxe } = u2.actions;
+}), Wxe = u2.reducer, { createEventEmitter: Gxe } = u2.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function Wxe(e) {
+function Kxe(e) {
return e.tooltip.syncInteraction;
}
-var d2 = CU({
+var d2 = wU({
name: "chartData",
initialState: {
chartData: void 0,
@@ -60117,7 +60120,7 @@ var d2 = CU({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = XK(t.payload), t.payload == null) {
+ if (e.chartData = ZK(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -60131,7 +60134,7 @@ var d2 = CU({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: f2, setDataStartEndIndexes: Gxe, setComputedData: Kxe } = d2.actions, qxe = d2.reducer, Jxe = ["x", "y"];
+}), { setChartData: f2, setDataStartEndIndexes: qxe, setComputedData: Jxe } = d2.actions, Yxe = d2.reducer, Xxe = ["x", "y"];
function p2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -60146,26 +60149,26 @@ function m2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? p2(Object(n), !0).forEach(function(t) {
- Yxe(e, t, n[t]);
+ Zxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Yxe(e, t, n) {
- return (t = Xxe(t)) in e ? Object.defineProperty(e, t, {
+function Zxe(e, t, n) {
+ return (t = Qxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xxe(e) {
- var t = Zxe(e, "string");
+function Qxe(e) {
+ var t = $xe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zxe(e, t) {
+function $xe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60175,16 +60178,16 @@ function Zxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Qxe(e, t) {
+function eSe(e, t) {
if (e == null) return {};
- var n, r, i = $xe(e, t);
+ var n, r, i = tSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function $xe(e, t) {
+function tSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60193,8 +60196,8 @@ function $xe(e, t) {
}
return n;
}
-function eSe() {
- var e = Q(LY), t = Q(zY), n = XB(), r = Q(RY), i = Q(k0), a = YG(), o = HG(), s = Q((e) => e.rootProps.className);
+function nSe() {
+ var e = Q(LY), t = Q(zY), n = XB(), r = Q(RY), i = Q(k0), a = XG(), o = UG(), s = Q((e) => e.rootProps.className);
(0, I.useEffect)(() => {
if (e == null) return pB;
var s = (s, c, l) => {
@@ -60202,7 +60205,7 @@ function eSe() {
if (r === "index") {
var u;
if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {
- var d = c.payload.coordinate, { x: f, y: p } = d, m = Qxe(d, Jxe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = m2(m2({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = eSe(d, Xxe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = m2(m2({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
@@ -60263,12 +60266,12 @@ function eSe() {
o
]);
}
-function tSe() {
+function rSe() {
var e = Q(LY), t = Q(zY), n = XB();
(0, I.useEffect)(() => {
if (e == null) return pB;
var r = (r, i, a) => {
- t !== a && e === r && n(Gxe(i));
+ t !== a && e === r && n(qxe(i));
};
return o2.on(c2, r), () => {
o2.off(c2, r);
@@ -60279,14 +60282,14 @@ function tSe() {
e
]);
}
-function nSe() {
+function iSe() {
var e = XB();
(0, I.useEffect)(() => {
- e(Uxe());
- }, [e]), eSe(), tSe();
+ e(Gxe());
+ }, [e]), nSe(), rSe();
}
-function rSe(e, t, n, r, i, a) {
- var o = Q((n) => mxe(n, e, t)), s = Q(Qbe), c = Q(zY), l = Q(LY), u = Q(RY), d = Q(Wxe)?.active, f = HG();
+function aSe(e, t, n, r, i, a) {
+ var o = Q((n) => gxe(n, e, t)), s = Q(exe), c = Q(zY), l = Q(LY), u = Q(RY), d = Q(Kxe)?.active, f = UG();
(0, I.useEffect)(() => {
if (!d && l != null && c != null) {
var e = a0({
@@ -60330,26 +60333,26 @@ function g2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h2(Object(n), !0).forEach(function(t) {
- iSe(e, t, n[t]);
+ oSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iSe(e, t, n) {
- return (t = aSe(t)) in e ? Object.defineProperty(e, t, {
+function oSe(e, t, n) {
+ return (t = sSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aSe(e) {
- var t = oSe(e, "string");
+function sSe(e) {
+ var t = cSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oSe(e, t) {
+function cSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60359,13 +60362,13 @@ function oSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function sSe(e) {
+function lSe(e) {
return e.dataKey;
}
-function cSe(e, t) {
- return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(Xq, t);
+function uSe(e, t) {
+ return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(Zq, t);
}
-var _2 = [], lSe = {
+var _2 = [], dSe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -60391,10 +60394,10 @@ var _2 = [], lSe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function uSe(e) {
- var t = CB(e, lSe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = XB(), S = typeof v == "number" ? String(v) : v;
+function fSe(e) {
+ var t = CB(e, dSe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = XB(), S = typeof v == "number" ? String(v) : v;
(0, I.useEffect)(() => {
- x(wbe({
+ x(Ebe({
shared: g,
trigger: _,
axisId: b,
@@ -60409,12 +60412,12 @@ function uSe(e) {
n,
S
]);
- var C = HG(), w = pJ(), T = ybe(g), { activeIndex: E, isActive: D } = Q((e) => _xe(e, T, _, S)) ?? {}, O = Q((e) => gxe(e, T, _, S)), k = Q((e) => Z0(e, T, _, S)), A = Q((e) => hxe(e, T, _, S)), j = O, M = Bxe(), N = n ?? D ?? !1, [ee, te] = _V([j, N]), P = T === "axis" ? k : void 0;
- rSe(T, _, A, P, E, N);
+ var C = UG(), w = mJ(), T = xbe(g), { activeIndex: E, isActive: D } = Q((e) => yxe(e, T, _, S)) ?? {}, O = Q((e) => vxe(e, T, _, S)), k = Q((e) => Z0(e, T, _, S)), A = Q((e) => _xe(e, T, _, S)), j = O, M = Hxe(), N = n ?? D ?? !1, [ee, te] = vV([j, N]), P = T === "axis" ? k : void 0;
+ aSe(T, _, A, P, E, N);
var ne = y ?? M;
if (ne == null || C == null || T == null) return null;
var F = j ?? _2;
- N || (F = _2), s && F.length && (F = JB(F.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, sSe));
+ N || (F = _2), s && F.length && (F = JB(F.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, lSe));
var re = F.length > 0, ie = g2(g2({}, t), {}, {
payload: F,
label: P,
@@ -60422,7 +60425,7 @@ function uSe(e) {
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ae = /*#__PURE__*/ I.createElement(fJ, {
+ }), ae = /*#__PURE__*/ I.createElement(pJ, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -60439,8 +60442,8 @@ function uSe(e) {
lastBoundingBox: ee,
innerRef: te,
hasPortalFromProps: !!y
- }, cSe(o, ie));
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, Th.createPortal)(ae, ne), N && /*#__PURE__*/ I.createElement(zxe, {
+ }, uSe(o, ie));
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, Th.createPortal)(ae, ne), N && /*#__PURE__*/ I.createElement(Vxe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -60454,19 +60457,19 @@ var v2 = (e) => null;
v2.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function dSe(e, t, n) {
- return (t = fSe(t)) in e ? Object.defineProperty(e, t, {
+function pSe(e, t, n) {
+ return (t = mSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fSe(e) {
- var t = pSe(e, "string");
+function mSe(e) {
+ var t = hSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pSe(e, t) {
+function hSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60476,9 +60479,9 @@ function pSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var mSe = class {
+var gSe = class {
constructor(e) {
- dSe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ pSe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -60511,30 +60514,30 @@ function y2(e, t) {
}
return n;
}
-function hSe(e) {
+function _Se(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? y2(Object(n), !0).forEach(function(t) {
- gSe(e, t, n[t]);
+ vSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gSe(e, t, n) {
- return (t = _Se(t)) in e ? Object.defineProperty(e, t, {
+function vSe(e, t, n) {
+ return (t = ySe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _Se(e) {
- var t = vSe(e, "string");
+function ySe(e) {
+ var t = bSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vSe(e, t) {
+function bSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60544,10 +60547,10 @@ function vSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var b2 = hSe({}, {
+var b2 = _Se({}, {
cacheSize: 2e3,
enableCache: !0
-}), x2 = new mSe(b2.cacheSize), ySe = {
+}), x2 = new gSe(b2.cacheSize), xSe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -60556,13 +60559,13 @@ var b2 = hSe({}, {
border: "none",
whiteSpace: "pre"
}, S2 = "recharts_measurement_span";
-function bSe(e, t) {
+function SSe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
var C2 = (e, t) => {
try {
var n = document.getElementById(S2);
- n || (n = document.createElement("span"), n.setAttribute("id", S2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, ySe, t), n.textContent = `${e}`;
+ n || (n = document.createElement("span"), n.setAttribute("id", S2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, xSe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -60576,29 +60579,29 @@ var C2 = (e, t) => {
}
}, w2 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || rJ.isSsr) return {
+ if (e == null || iJ.isSsr) return {
width: 0,
height: 0
};
if (!b2.enableCache) return C2(e, t);
- var n = bSe(e, t), r = x2.get(n);
+ var n = SSe(e, t), r = x2.get(n);
if (r) return r;
var i = C2(e, t);
return x2.set(n, i), i;
}, T2;
-function xSe(e, t, n) {
- return (t = SSe(t)) in e ? Object.defineProperty(e, t, {
+function CSe(e, t, n) {
+ return (t = wSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SSe(e) {
- var t = CSe(e, "string");
+function wSe(e) {
+ var t = TSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CSe(e, t) {
+function TSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60608,7 +60611,7 @@ function CSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, wSe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, TSe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, ESe = {
+var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, ESe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, DSe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, OSe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -60616,7 +60619,7 @@ var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, DSe = [
+}, kSe = [
"cm",
"mm",
"pt",
@@ -60625,20 +60628,20 @@ var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(
"Q",
"px"
];
-function OSe(e) {
- return DSe.includes(e);
+function ASe(e) {
+ return kSe.includes(e);
}
var O2 = "NaN";
-function kSe(e, t) {
- return e * ESe[t];
+function jSe(e, t) {
+ return e * OSe[t];
}
var k2 = class e {
static parse(t) {
- var [, n, r] = TSe.exec(t) ?? [];
+ var [, n, r] = DSe.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, nB(e) && (this.unit = ""), t !== "" && !wSe.test(t) && (this.num = NaN, this.unit = ""), OSe(t) && (this.num = kSe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, nB(e) && (this.unit = ""), t !== "" && !ESe.test(t) && (this.num = NaN, this.unit = ""), ASe(t) && (this.num = jSe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -60659,7 +60662,7 @@ var k2 = class e {
return nB(this.num);
}
};
-T2 = k2, xSe(k2, "NaN", new T2(NaN, ""));
+T2 = k2, CSe(k2, "NaN", new T2(NaN, ""));
function A2(e) {
if (e == null || e.includes(O2)) return O2;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -60675,31 +60678,31 @@ function A2(e) {
return t;
}
var j2 = /\(([^()]*)\)/;
-function ASe(e) {
+function MSe(e) {
for (var t = e, n; (n = j2.exec(t)) != null;) {
var [, r] = n;
t = t.replace(j2, A2(r));
}
return t;
}
-function jSe(e) {
+function NSe(e) {
var t = e.replace(/\s+/g, "");
- return t = ASe(t), t = A2(t), t;
+ return t = MSe(t), t = A2(t), t;
}
-function MSe(e) {
+function PSe(e) {
try {
- return jSe(e);
+ return NSe(e);
} catch {
return O2;
}
}
function M2(e) {
- var t = MSe(e.slice(5, -1));
+ var t = PSe(e.slice(5, -1));
return t === O2 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var NSe = [
+var FSe = [
"x",
"y",
"lineHeight",
@@ -60708,7 +60711,7 @@ var NSe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], PSe = [
+], ISe = [
"dx",
"dy",
"angle",
@@ -60726,14 +60729,14 @@ function N2() {
}
function P2(e, t) {
if (e == null) return {};
- var n, r, i = FSe(e, t);
+ var n, r, i = LSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function FSe(e, t) {
+function LSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60760,7 +60763,7 @@ var F2 = /[ \f\n\r\t\v\u2028\u2029]+/, I2 = (e) => {
function L2(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function ISe(e) {
+function RSe(e) {
return uB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var R2 = (e, t, n, r) => e.reduce((e, i) => {
@@ -60774,16 +60777,16 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), z2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), LSe = "…", B2 = (e, t, n, r, i, a, o, s) => {
+}, []), z2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), zSe = "…", B2 = (e, t, n, r, i, a, o, s) => {
var c = I2({
breakAll: n,
style: r,
- children: e.slice(0, t) + LSe
+ children: e.slice(0, t) + zSe
});
if (!c) return [!1, []];
var l = R2(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || z2(l).width > Number(a), l];
-}, RSe = (e, t, n, r, i) => {
+}, BSe = (e, t, n, r, i) => {
var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = R2(t, r, n, i);
if (!l || i || !(d.length > a || z2(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
@@ -60798,9 +60801,9 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
}, V2 = (e) => [{
words: uB(e) ? [] : e.toString().split(F2),
width: void 0
-}], zSe = (e) => {
+}], VSe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !rJ.isSsr) {
+ if ((t || n) && !iJ.isSsr) {
var s, c, l = I2({
breakAll: a,
children: r,
@@ -60810,7 +60813,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
} else return V2(r);
- return RSe({
+ return BSe({
breakAll: a,
children: r,
maxLines: o,
@@ -60818,7 +60821,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return V2(r);
-}, H2 = "#808080", BSe = {
+}, H2 = "#808080", HSe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -60830,7 +60833,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, U2 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = CB(e, BSe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = P2(n, NSe), f = (0, I.useMemo)(() => zSe({
+ var n = CB(e, HSe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = P2(n, FSe), f = (0, I.useMemo)(() => VSe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -60844,10 +60847,10 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = P2(d, PSe);
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = P2(d, ISe);
if (!iB(r) || !iB(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!vW(y) || !vW(b)) return null;
+ if (!yW(y) || !yW(b)) return null;
var x;
switch (u) {
case "start":
@@ -60896,26 +60899,26 @@ function G2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? W2(Object(n), !0).forEach(function(t) {
- VSe(e, t, n[t]);
+ USe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VSe(e, t, n) {
- return (t = HSe(t)) in e ? Object.defineProperty(e, t, {
+function USe(e, t, n) {
+ return (t = WSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HSe(e) {
- var t = USe(e, "string");
+function WSe(e) {
+ var t = GSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function USe(e, t) {
+function GSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60925,8 +60928,8 @@ function USe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var WSe = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = VG(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
+var KSe = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = HG(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -61018,17 +61021,17 @@ var WSe = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, GSe = ["labelRef"], KSe = ["content"];
+}, qSe = ["labelRef"], JSe = ["content"];
function K2(e, t) {
if (e == null) return {};
- var n, r, i = qSe(e, t);
+ var n, r, i = YSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function qSe(e, t) {
+function YSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61051,26 +61054,26 @@ function J2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q2(Object(n), !0).forEach(function(t) {
- JSe(e, t, n[t]);
+ XSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JSe(e, t, n) {
- return (t = YSe(t)) in e ? Object.defineProperty(e, t, {
+function XSe(e, t, n) {
+ return (t = ZSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YSe(e) {
- var t = XSe(e, "string");
+function ZSe(e) {
+ var t = QSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XSe(e, t) {
+function QSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61107,9 +61110,9 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {
]);
return /*#__PURE__*/ I.createElement(X2.Provider, { value: c }, s);
}, Q2 = () => {
- var e = (0, I.useContext)(X2), t = HG();
- return e || (t ? VG(t) : void 0);
-}, $2 = /*#__PURE__*/ (0, I.createContext)(null), ZSe = (e) => {
+ var e = (0, I.useContext)(X2), t = UG();
+ return e || (t ? HG(t) : void 0);
+}, $2 = /*#__PURE__*/ (0, I.createContext)(null), $Se = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, I.useMemo)(() => ({
cx: t,
cy: n,
@@ -61131,11 +61134,11 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {
}, e4 = () => {
var e = (0, I.useContext)($2), t = Q(rX);
return e || t;
-}, QSe = (e) => {
+}, eCe = (e) => {
var { value: t, formatter: n } = e, r = uB(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, t4 = (e) => e != null && typeof e == "function", $Se = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 360), eCe = (e, t, n, r, i) => {
- var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = $Se(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, t4 = (e) => e != null && typeof e == "function", tCe = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 360), nCe = (e, t, n, r, i) => {
+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = tCe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -61159,7 +61162,7 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {
id: S,
d: x
})), /*#__PURE__*/ I.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, tCe = (e, t, n) => {
+}, rCe = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
var { x: u, y: d } = aY(r, i, o + t, l);
@@ -61195,14 +61198,14 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, n4 = (e) => e != null && "cx" in e && Z(e.cx), nCe = {
+}, n4 = (e) => e != null && "cx" in e && Z(e.cx), iCe = {
angle: 0,
offset: 5,
zIndex: BY.label,
position: "middle",
textBreakAll: !1
};
-function rCe(e) {
+function aCe(e) {
if (!n4(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -61215,24 +61218,24 @@ function rCe(e) {
};
}
function r4(e) {
- var t = CB(e, nCe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = e4(), f = Q2(), p = n == null ? i === "center" ? f : d ?? f : n4(n) ? n : VG(n), m, h, g = rCe(p);
+ var t = CB(e, iCe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = e4(), f = Q2(), p = n == null ? i === "center" ? f : d ?? f : n4(n) ? n : HG(n), m, h, g = aCe(p);
if (!p || uB(a) && uB(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;
var _ = J2(J2({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, I.isValidElement)(s)) {
- var { labelRef: v } = _, y = K2(_, GSe);
+ var { labelRef: v } = _, y = K2(_, qSe);
return /*#__PURE__*/ (0, I.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = K2(_, KSe);
+ var { content: b } = _, x = K2(_, JSe);
if (m = /*#__PURE__*/ (0, I.createElement)(s, x), /*#__PURE__*/ (0, I.isValidElement)(m)) return m;
- } else m = QSe(t);
+ } else m = eCe(t);
var S = YR(t);
if (n4(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return eCe(t, i, m, S, p);
- h = tCe(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return nCe(t, i, m, S, p);
+ h = rCe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = WSe({
+ var C = KSe({
viewBox: g,
position: i,
offset: t.offset,
@@ -61276,13 +61279,13 @@ function a4(e) {
var { label: t, labelRef: n } = e;
return i4(t, Q2(), n) || null;
}
-function iCe(e) {
+function oCe(e) {
var { label: t } = e;
return i4(t, e4()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var aCe = ["valueAccessor"], oCe = [
+var sCe = ["valueAccessor"], cCe = [
"dataKey",
"clockWise",
"id",
@@ -61300,14 +61303,14 @@ function o4() {
}
function s4(e, t) {
if (e == null) return {};
- var n, r, i = sCe(e, t);
+ var n, r, i = lCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function sCe(e, t) {
+function lCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61316,20 +61319,20 @@ function sCe(e, t) {
}
return n;
}
-var cCe = (e) => {
+var uCe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (ISe(t)) return t;
-}, c4 = /*#__PURE__*/ (0, I.createContext)(void 0), l4 = c4.Provider, u4 = /*#__PURE__*/ (0, I.createContext)(void 0), lCe = u4.Provider;
-function uCe() {
+ if (RSe(t)) return t;
+}, c4 = /*#__PURE__*/ (0, I.createContext)(void 0), l4 = c4.Provider, u4 = /*#__PURE__*/ (0, I.createContext)(void 0), dCe = u4.Provider;
+function fCe() {
return (0, I.useContext)(c4);
}
-function dCe() {
+function pCe() {
return (0, I.useContext)(u4);
}
function d4(e) {
- var { valueAccessor: t = cCe } = e, n = s4(e, aCe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = s4(n, oCe), l = uCe(), u = dCe(), d = l || u;
+ var { valueAccessor: t = uCe } = e, n = s4(e, sCe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = s4(n, cCe), l = fCe(), u = pCe(), d = l || u;
return !d || !d.length ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: s ?? BY.label }, /*#__PURE__*/ I.createElement($R, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = uB(r) ? t(e, i) : TW(e.payload, r), l = uB(a) ? {} : { id: `${a}-${i}` };
+ var s = uB(r) ? t(e, i) : EW(e.payload, r), l = uB(a) ? {} : { id: `${a}-${i}` };
return /*#__PURE__*/ I.createElement(r4, o4({ key: `label-${i}` }, YR(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
@@ -61351,12 +61354,12 @@ function f4(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var fCe = [
+var mCe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], pCe;
+], hCe;
function p4() {
return p4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -61366,16 +61369,16 @@ function p4() {
return e;
}, p4.apply(null, arguments);
}
-function mCe(e, t) {
+function gCe(e, t) {
if (e == null) return {};
- var n, r, i = hCe(e, t);
+ var n, r, i = _Ce(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function hCe(e, t) {
+function _Ce(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61384,10 +61387,10 @@ function hCe(e, t) {
}
return n;
}
-function gCe(e, t) {
+function vCe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, _Ce = function() {
+var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, yCe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -61398,9 +61401,9 @@ var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, _Ce = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, h4 = (e, t) => {
- var n = _Ce(e);
+ var n = yCe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => eB(pCe ||= gCe([
+ var r = n.map((e) => e.reduce((e, t, n) => eB(hCe ||= vCe([
"",
"",
"",
@@ -61408,15 +61411,15 @@ var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, _Ce = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, vCe = (e, t, n) => {
+}, bCe = (e, t, n) => {
var r = h4(e, n);
return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${h4(Array.from(t).reverse(), n).slice(1)}`;
}, g4 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = mCe(e, fCe);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = gCe(e, mCe);
if (!t || !t.length) return null;
var o = Xm("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = vCe(t, r, i);
+ var s = a.stroke && a.stroke !== "none", c = bCe(t, r, i);
return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", p4({}, YR(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
@@ -61469,18 +61472,18 @@ $([
R$,
b4
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: TW(e, t.dataKey ?? n.dataKey),
+ value: EW(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: TW(e, t.dataKey),
+ value: EW(e, t.dataKey),
errorDomain: []
})));
var C4 = () => void 0, w4 = $([
R$,
- JG,
+ YG,
x4,
S4,
PY,
@@ -61498,14 +61501,14 @@ var C4 = () => void 0, w4 = $([
iX
], f1),
C4,
- JG,
+ YG,
iX
], b1)
], x1), T4 = $([
w4,
z$,
C1
-], w1), yCe = $([C1, $([
+], w1), xCe = $([C1, $([
R$,
w4,
T4,
@@ -61518,22 +61521,22 @@ var C4 = () => void 0, w4 = $([
}
}, D4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return Qge(e, n);
- case "radiusAxis": return $ge(e, n);
+ case "angleAxis": return e_e(e, n);
+ case "radiusAxis": return t_e(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, O4 = $([$([
E4,
C1,
- yCe,
+ xCe,
D4
], T$)], pX), k4 = $([
- JG,
+ YG,
S4,
z$,
iX
], j1), A4 = $([
- JG,
+ YG,
E4,
C1,
O4,
@@ -61542,7 +61545,7 @@ var C4 = () => void 0, w4 = $([
H1,
k4,
iX
-], W1), bCe = $([A4], (e) => {
+], W1), SCe = $([A4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -61550,19 +61553,19 @@ var C4 = () => void 0, w4 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), xCe = $([
- JG,
+}), CCe = $([
+ YG,
E4,
O4,
D4,
H1,
k4,
iX
-], K1), SCe = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {
+], K1), wCe = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), CCe = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {
+}), TCe = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), wCe = [
+}), ECe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -61575,16 +61578,16 @@ var C4 = () => void 0, w4 = $([
"polarRadius",
"zIndex"
];
-function TCe(e, t) {
+function DCe(e, t) {
if (e == null) return {};
- var n, r, i = ECe(e, t);
+ var n, r, i = OCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ECe(e, t) {
+function OCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61616,26 +61619,26 @@ function N4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? M4(Object(n), !0).forEach(function(t) {
- DCe(e, t, n[t]);
+ kCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DCe(e, t, n) {
- return (t = OCe(t)) in e ? Object.defineProperty(e, t, {
+function kCe(e, t, n) {
+ return (t = ACe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OCe(e) {
- var t = kCe(e, "string");
+function ACe(e) {
+ var t = jCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kCe(e, t) {
+function jCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61645,13 +61648,13 @@ function kCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ACe = (e, t, n, r) => {
+var MCe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
var o = aY(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, jCe = (e) => {
+}, NCe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
var s = N4({ stroke: "#ccc" }, qR(e));
@@ -61682,9 +61685,9 @@ var ACe = (e, t, n, r) => {
}, qR(e));
return /*#__PURE__*/ I.createElement("path", j4({}, n, {
className: Xm("recharts-polar-grid-concentric-polygon", e.className),
- d: ACe(t, e.cx, e.cy, e.polarAngles)
+ d: MCe(t, e.cx, e.cy, e.polarAngles)
}));
-}, MCe = (e) => {
+}, PCe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -61698,14 +61701,14 @@ var ACe = (e, t, n, r) => {
radius: t
}));
}));
-}, NCe = {
+}, FCe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: BY.grid
}, I4 = (e) => {
- var t = CB(e, NCe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = TCe(t, wCe), m = Q(rX), h = Q((e) => SCe(e, i)), g = Q((e) => CCe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = CB(e, FCe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = DCe(t, ECe), m = Q(rX), h = Q((e) => wCe(e, i)), g = Q((e) => TCe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = N4({
cx: m?.cx ?? o ?? 0,
@@ -61716,13 +61719,13 @@ var ACe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(MCe, j4({
+ return b <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(PCe, j4({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ I.createElement(jCe, j4({
+ })), /*#__PURE__*/ I.createElement(NCe, j4({
gridType: n,
radialLines: r
}, y, {
@@ -61738,7 +61741,7 @@ function L4(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function PCe(e, t = OB) {
+function ICe(e, t = OB) {
if (e == null) return;
let n = L4(e);
if (n.length === 0) return;
@@ -61751,7 +61754,7 @@ function PCe(e, t = OB) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function FCe(e, t = OB) {
+function LCe(e, t = OB) {
if (e == null) return;
let n = L4(e);
if (n.length === 0) return;
@@ -61764,7 +61767,7 @@ function FCe(e, t = OB) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var R4 = CU({
+var R4 = wU({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -61772,19 +61775,19 @@ var R4 = CU({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = XK(t.payload);
+ e.radiusAxis[t.payload.id] = ZK(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = XK(t.payload);
+ e.angleAxis[t.payload.id] = ZK(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: ICe, removeRadiusAxis: LCe, addAngleAxis: RCe, removeAngleAxis: zCe } = R4.actions, BCe = R4.reducer;
+}), { addRadiusAxis: RCe, removeRadiusAxis: zCe, addAngleAxis: BCe, removeAngleAxis: VCe } = R4.actions, HCe = R4.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function z4(e) {
@@ -61792,12 +61795,12 @@ function z4(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var VCe = ["type"], HCe = [
+var UCe = ["type"], WCe = [
"cx",
"cy",
"angle",
"axisLine"
-], UCe = [
+], GCe = [
"angle",
"tickFormatter",
"stroke",
@@ -61826,26 +61829,26 @@ function H4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V4(Object(n), !0).forEach(function(t) {
- WCe(e, t, n[t]);
+ KCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WCe(e, t, n) {
- return (t = GCe(t)) in e ? Object.defineProperty(e, t, {
+function KCe(e, t, n) {
+ return (t = qCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GCe(e) {
- var t = KCe(e, "string");
+function qCe(e) {
+ var t = JCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KCe(e, t) {
+function JCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61857,14 +61860,14 @@ function KCe(e, t) {
}
function U4(e, t) {
if (e == null) return {};
- var n, r, i = qCe(e, t);
+ var n, r, i = YCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function qCe(e, t) {
+function YCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61873,20 +61876,20 @@ function qCe(e, t) {
}
return n;
}
-var JCe = "radiusAxis";
-function YCe(e) {
- var t = XB(), n = QG(), r = (0, I.useMemo)(() => {
- var { type: t } = e, r = U4(e, VCe), i = WY(n, "radiusAxis", t);
+var XCe = "radiusAxis";
+function ZCe(e) {
+ var t = XB(), n = $G(), r = (0, I.useMemo)(() => {
+ var { type: t } = e, r = U4(e, UCe), i = WY(n, "radiusAxis", t);
if (i != null) return H4(H4({}, r), {}, { type: i });
}, [e, n]);
- return (0, I.useEffect)(() => r == null ? pB : (t(ICe(r)), () => {
- t(LCe(r));
+ return (0, I.useEffect)(() => r == null ? pB : (t(RCe(r)), () => {
+ t(zCe(r));
}), [t, r]), null;
}
-var XCe = (e, t, n, r) => {
+var QCe = (e, t, n, r) => {
var { coordinate: i } = e;
return aY(n, r, i, t);
-}, ZCe = (e) => {
+}, $Ce = (e) => {
var t;
switch (e) {
case "left":
@@ -61898,28 +61901,28 @@ var XCe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, QCe = (e, t, n, r) => {
- var i = PCe(r, (e) => e.coordinate || 0);
+}, ewe = (e, t, n, r) => {
+ var i = ICe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: FCe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: LCe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, $Ce = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = U4(e, HCe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = aY(n, r, s[0], i), l = aY(n, r, s[1], i), u = H4(H4(H4({}, qR(o)), {}, { fill: "none" }, qR(a)), {}, {
+}, twe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = U4(e, WCe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = aY(n, r, s[0], i), l = aY(n, r, s[1], i), u = H4(H4(H4({}, qR(o)), {}, { fill: "none" }, qR(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
return /*#__PURE__*/ I.createElement("line", B4({ className: "recharts-polar-radius-axis-line" }, u));
-}, ewe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(U2, B4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), twe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = U4(e, UCe), s = ZCe(e.orientation), c = qR(o), l = JR(a), u = t.map((t, o) => {
- var u = XCe(t, e.angle, e.cx, e.cy), d = H4(H4(H4(H4({
+}, nwe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(U2, B4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), rwe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = U4(e, GCe), s = $Ce(e.orientation), c = qR(o), l = JR(a), u = t.map((t, o) => {
+ var u = QCe(t, e.angle, e.cx, e.cy), d = H4(H4(H4(H4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
@@ -61929,18 +61932,18 @@ var XCe = (e, t, n, r) => {
return /*#__PURE__*/ I.createElement($R, B4({
className: Xm("recharts-polar-radius-axis-tick", z4(a)),
key: `tick-${t.coordinate}`
- }, xB(e, t, o)), ewe(a, d, r ? r(t.value, o) : t.value));
+ }, xB(e, t, o)), nwe(a, d, r ? r(t.value, o) : t.value));
});
return /*#__PURE__*/ I.createElement($R, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, nwe = (e) => {
+}, iwe = (e) => {
var { radiusAxisId: t } = e, n = Q(rX), r = Q((e) => O4(e, "radiusAxis", t)), i = Q((e) => A4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = H4(H4({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ I.createElement(t2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-polar-radius-axis", JCe, a.className) }, s && $Ce(a, i), o && twe(a, i), /*#__PURE__*/ I.createElement(ZSe, QCe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(iCe, { label: a.label }), a.children)));
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-polar-radius-axis", XCe, a.className) }, s && twe(a, i), o && rwe(a, i), /*#__PURE__*/ I.createElement($Se, ewe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(oCe, { label: a.label }), a.children)));
};
function W4(e) {
var t = CB(e, HY);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(YCe, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(ZCe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -61957,12 +61960,12 @@ function W4(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ I.createElement(nwe, t));
+ }), /*#__PURE__*/ I.createElement(iwe, t));
}
W4.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var rwe = ["children", "type"], iwe = ["ref"];
+var awe = ["children", "type"], owe = ["ref"];
function G4() {
return G4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -61986,26 +61989,26 @@ function q4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K4(Object(n), !0).forEach(function(t) {
- awe(e, t, n[t]);
+ swe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function awe(e, t, n) {
- return (t = owe(t)) in e ? Object.defineProperty(e, t, {
+function swe(e, t, n) {
+ return (t = cwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function owe(e) {
- var t = swe(e, "string");
+function cwe(e) {
+ var t = lwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function swe(e, t) {
+function lwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62017,14 +62020,14 @@ function swe(e, t) {
}
function J4(e, t) {
if (e == null) return {};
- var n, r, i = cwe(e, t);
+ var n, r, i = uwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function cwe(e, t) {
+function uwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62033,17 +62036,17 @@ function cwe(e, t) {
}
return n;
}
-var Y4 = 1e-5, lwe = Math.cos(iY(45)), uwe = "angleAxis";
-function dwe(e) {
- var t = XB(), n = QG(), r = (0, I.useMemo)(() => {
- var { children: t, type: r } = e, i = J4(e, rwe), a = WY(n, "angleAxis", r);
+var Y4 = 1e-5, dwe = Math.cos(iY(45)), fwe = "angleAxis";
+function pwe(e) {
+ var t = XB(), n = $G(), r = (0, I.useMemo)(() => {
+ var { children: t, type: r } = e, i = J4(e, awe), a = WY(n, "angleAxis", r);
if (a != null) return q4(q4({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => YY(e, r?.id));
- return (0, I.useEffect)(() => r == null ? pB : (t(RCe(r)), () => {
- t(zCe(r));
+ return (0, I.useEffect)(() => r == null ? pB : (t(BCe(r)), () => {
+ t(VCe(r));
}), [t, r]), i ? e.children : null;
}
-var fwe = (e, t) => {
+var mwe = (e, t) => {
var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = aY(n, r, i, e.coordinate), l = aY(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
@@ -62051,13 +62054,13 @@ var fwe = (e, t) => {
x2: l.x,
y2: l.y
};
-}, pwe = (e, t) => {
+}, hwe = (e, t) => {
var n = Math.cos(iY(-e.coordinate));
return n > Y4 ? t === "outer" ? "start" : "end" : n < -Y4 ? t === "outer" ? "end" : "start" : "middle";
-}, mwe = (e) => {
+}, gwe = (e) => {
var t = Math.cos(iY(-e.coordinate)), n = Math.sin(iY(-e.coordinate));
- return Math.abs(t) <= lwe ? n > 0 ? "start" : "end" : "middle";
-}, hwe = (e) => {
+ return Math.abs(t) <= dwe ? n > 0 ? "start" : "end" : "middle";
+}, _we = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
var s = q4(q4({}, qR(e)), {}, { fill: "none" }, qR(a));
@@ -62068,12 +62071,12 @@ var fwe = (e, t) => {
}));
var c = o.map((e) => aY(t, n, r, e.coordinate));
return /*#__PURE__*/ I.createElement(g4, G4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, gwe = (e) => {
+}, vwe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
return t ? /*#__PURE__*/ I.isValidElement(t) ? /*#__PURE__*/ I.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ I.createElement(U2, G4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, _we = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = qR(e), { ref: s } = o, c = J4(o, iwe), l = JR(t), u = q4(q4({}, c), {}, { fill: "none" }, qR(n)), d = a.map((a, o) => {
- var s = fwe(a, e), d = pwe(a, e.orientation), f = mwe(a), p = q4(q4(q4({}, c), {}, {
+}, ywe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = qR(e), { ref: s } = o, c = J4(o, owe), l = JR(t), u = q4(q4({}, c), {}, { fill: "none" }, qR(n)), d = a.map((a, o) => {
+ var s = mwe(a, e), d = hwe(a, e.orientation), f = gwe(a), p = q4(q4(q4({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -62087,25 +62090,25 @@ var fwe = (e, t) => {
return /*#__PURE__*/ I.createElement($R, G4({
className: Xm("recharts-polar-angle-axis-tick", z4(t)),
key: `tick-${a.coordinate}`
- }, xB(e, a, o)), n && /*#__PURE__*/ I.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(gwe, {
+ }, xB(e, a, o)), n && /*#__PURE__*/ I.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(vwe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
return /*#__PURE__*/ I.createElement($R, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, vwe = (e) => {
- var { angleAxisId: t } = e, n = Q(rX), r = Q((e) => O4(e, "angleAxis", t)), i = mG(), a = Q((e) => bCe(e, "angleAxis", t, i));
+}, bwe = (e) => {
+ var { angleAxisId: t } = e, n = Q(rX), r = Q((e) => O4(e, "angleAxis", t)), i = hG(), a = Q((e) => SCe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = q4(q4(q4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ I.createElement(t2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-polar-angle-axis", uwe, o.className) }, /*#__PURE__*/ I.createElement(hwe, o), /*#__PURE__*/ I.createElement(_we, o)));
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-polar-angle-axis", fwe, o.className) }, /*#__PURE__*/ I.createElement(_we, o), /*#__PURE__*/ I.createElement(ywe, o)));
};
function X4(e) {
var t = CB(e, VY);
- return /*#__PURE__*/ I.createElement(dwe, {
+ return /*#__PURE__*/ I.createElement(pwe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -62122,12 +62125,12 @@ function X4(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ I.createElement(vwe, t));
+ }, /*#__PURE__*/ I.createElement(bwe, t));
}
X4.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var ywe = /* @__PURE__ */ F(((e) => {
+var xwe = /* @__PURE__ */ F(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -62156,13 +62159,13 @@ var ywe = /* @__PURE__ */ F(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), bwe = (/* @__PURE__ */ F(((e, t) => {
- t.exports = ywe();
+})), Swe = (/* @__PURE__ */ F(((e, t) => {
+ t.exports = xwe();
})))(), Z4 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", Q4 = null, $4 = null, e3 = (e) => {
if (e === Q4 && Array.isArray($4)) return $4;
var t = [];
return I.Children.forEach(e, (e) => {
- uB(e) || ((0, bwe.isFragment)(e) ? t = t.concat(e3(e.props.children)) : t.push(e));
+ uB(e) || ((0, Swe.isFragment)(e) ? t = t.concat(e3(e.props.children)) : t.push(e));
}), $4 = t, Q4 = e, t;
};
function t3(e, t) {
@@ -62175,7 +62178,7 @@ function t3(e, t) {
var n3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function xwe(e) {
+function Cwe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -62188,7 +62191,7 @@ function xwe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var Swe, Cwe, wwe, Twe, Ewe;
+var wwe, Twe, Ewe, Dwe, Owe;
function r3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -62203,26 +62206,26 @@ function i3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r3(Object(n), !0).forEach(function(t) {
- Dwe(e, t, n[t]);
+ kwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Dwe(e, t, n) {
- return (t = Owe(t)) in e ? Object.defineProperty(e, t, {
+function kwe(e, t, n) {
+ return (t = Awe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Owe(e) {
- var t = kwe(e, "string");
+function Awe(e) {
+ var t = jwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kwe(e, t) {
+function jwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62245,29 +62248,29 @@ function o3(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var s3 = (e, t, n, r, i) => {
- var a = n - r, o = eB(Swe ||= o3([
+ var a = n - r, o = eB(wwe ||= o3([
"M ",
",",
""
]), e, t);
- return o += eB(Cwe ||= o3([
+ return o += eB(Twe ||= o3([
"L ",
",",
""
- ]), e + n, t), o += eB(wwe ||= o3([
+ ]), e + n, t), o += eB(Ewe ||= o3([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += eB(Twe ||= o3([
+ ]), e + n - a / 2, t + i), o += eB(Dwe ||= o3([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += eB(Ewe ||= o3([
+ ]), e + n - a / 2 - r, t + i), o += eB(Owe ||= o3([
"L ",
",",
" Z"
]), e, t), o;
-}, Awe = {
+}, Mwe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -62277,8 +62280,8 @@ var s3 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, jwe = (e) => {
- var t = CB(e, Awe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = KJ(e, "trapezoid-");
+}, Nwe = (e) => {
+ var t = CB(e, Mwe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = KJ(e, "trapezoid-");
if ((0, I.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -62313,22 +62316,22 @@ var s3 = (e, t, n, r, i) => {
style: i3(i3({}, p), t.style)
}));
});
-}, Mwe = [
+}, Pwe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function Nwe(e, t) {
+function Fwe(e, t) {
if (e == null) return {};
- var n, r, i = Pwe(e, t);
+ var n, r, i = Iwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Pwe(e, t) {
+function Iwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62351,26 +62354,26 @@ function l3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? c3(Object(n), !0).forEach(function(t) {
- Fwe(e, t, n[t]);
+ Lwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Fwe(e, t, n) {
- return (t = Iwe(t)) in e ? Object.defineProperty(e, t, {
+function Lwe(e, t, n) {
+ return (t = Rwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Iwe(e) {
- var t = Lwe(e, "string");
+function Rwe(e) {
+ var t = zwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Lwe(e, t) {
+function zwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62380,34 +62383,34 @@ function Lwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Rwe(e, t) {
+function Bwe(e, t) {
return l3(l3({}, t), e);
}
-function zwe(e, t) {
+function Vwe(e, t) {
return e === "symbols";
}
function u3(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ I.createElement(eY, n);
- case "trapezoid": return /*#__PURE__*/ I.createElement(jwe, n);
+ case "trapezoid": return /*#__PURE__*/ I.createElement(Nwe, n);
case "sector": return /*#__PURE__*/ I.createElement(dY, n);
case "symbols":
- if (zwe(t, n)) return /*#__PURE__*/ I.createElement(vB, n);
+ if (Vwe(t, n)) return /*#__PURE__*/ I.createElement(vB, n);
break;
case "curve": return /*#__PURE__*/ I.createElement(DJ, n);
default: return null;
}
}
-function Bwe(e) {
+function Hwe(e) {
return /*#__PURE__*/ (0, I.isValidElement)(e) ? e.props : e;
}
function d3(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = Nwe(e, Mwe), o;
- if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, l3(l3({}, a), Bwe(t)));
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = Fwe(e, Pwe), o;
+ if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, l3(l3({}, a), Hwe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (xwe(t) && typeof t != "boolean") {
- var s = Rwe(t, a);
+ else if (Cwe(t) && typeof t != "boolean") {
+ var s = Bwe(t, a);
o = /*#__PURE__*/ I.createElement(u3, {
shapeType: n,
elementProps: s
@@ -62436,12 +62439,12 @@ var f3 = (e, t, n) => {
}, p3 = (e) => {
var t = XB();
return (n, r) => (i) => {
- e?.(n, r, i), t(Tbe());
+ e?.(n, r, i), t(Dbe());
};
}, m3 = (e, t, n) => {
var r = XB();
return (i, a) => (o) => {
- e?.(i, a, o), r(Ebe({
+ e?.(i, a, o), r(Obe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -62452,9 +62455,9 @@ var f3 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function h3(e) {
- var { tooltipEntrySettings: t } = e, n = XB(), r = mG(), i = (0, I.useRef)(null);
+ var { tooltipEntrySettings: t } = e, n = XB(), r = hG(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(xbe(t)) : i.current !== t && n(Sbe({
+ r || (i.current === null ? n(Cbe(t)) : i.current !== t && n(wbe({
prev: i.current,
next: t
})), i.current = t);
@@ -62463,15 +62466,15 @@ function h3(e) {
n,
r
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(Cbe(i.current)), null);
+ i.current &&= (n(Tbe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function g3(e) {
- var { legendPayload: t } = e, n = XB(), r = mG(), i = (0, I.useRef)(null);
+ var { legendPayload: t } = e, n = XB(), r = hG(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(eq(t)) : i.current !== t && n(tq({
+ r || (i.current === null ? n(tq(t)) : i.current !== t && n(nq({
prev: i.current,
next: t
})), i.current = t);
@@ -62480,13 +62483,13 @@ function g3(e) {
r,
t
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(nq(i.current)), null);
+ i.current &&= (n(rq(i.current)), null);
}, [n]), null;
}
function _3(e) {
- var { legendPayload: t } = e, n = XB(), r = Q(JG), i = (0, I.useRef)(null);
+ var { legendPayload: t } = e, n = XB(), r = Q(YG), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(eq(t)) : i.current !== t && n(tq({
+ (r === "centric" || r === "radial") && (i.current === null ? n(tq(t)) : i.current !== t && n(nq({
prev: i.current,
next: t
})), i.current = t);
@@ -62495,27 +62498,27 @@ function _3(e) {
r,
t
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(nq(i.current)), null);
+ i.current &&= (n(rq(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var Vwe = I.useId ?? (() => {
+var Uwe = I.useId ?? (() => {
var [e] = I.useState(() => aB("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function Hwe(e, t) {
- var n = Vwe();
+function Wwe(e, t) {
+ var n = Uwe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var Uwe = /*#__PURE__*/ (0, I.createContext)(void 0), v3 = (e) => {
- var { id: t, type: n, children: r } = e, i = Hwe(`recharts-${n}`, t);
- return /*#__PURE__*/ I.createElement(Uwe.Provider, { value: i }, r(i));
-}, y3 = CU({
+var Gwe = /*#__PURE__*/ (0, I.createContext)(void 0), v3 = (e) => {
+ var { id: t, type: n, children: r } = e, i = Wwe(`recharts-${n}`, t);
+ return /*#__PURE__*/ I.createElement(Gwe.Provider, { value: i }, r(i));
+}, y3 = wU({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -62524,79 +62527,79 @@ var Uwe = /*#__PURE__*/ (0, I.createContext)(void 0), v3 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(XK(t.payload));
+ e.cartesianItems.push(ZK(t.payload));
},
- prepare: cU()
+ prepare: lU()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = JH(e).cartesianItems.indexOf(XK(n));
- i > -1 && (e.cartesianItems[i] = XK(r));
+ var { prev: n, next: r } = t.payload, i = YH(e).cartesianItems.indexOf(ZK(n));
+ i > -1 && (e.cartesianItems[i] = ZK(r));
},
- prepare: cU()
+ prepare: lU()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = JH(e).cartesianItems.indexOf(XK(t.payload));
+ var n = YH(e).cartesianItems.indexOf(ZK(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: cU()
+ prepare: lU()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(XK(t.payload));
+ e.polarItems.push(ZK(t.payload));
},
- prepare: cU()
+ prepare: lU()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = JH(e).polarItems.indexOf(XK(t.payload));
+ var n = YH(e).polarItems.indexOf(ZK(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: cU()
+ prepare: lU()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = JH(e).polarItems.indexOf(XK(n));
- i > -1 && (e.polarItems[i] = XK(r));
+ var { prev: n, next: r } = t.payload, i = YH(e).polarItems.indexOf(ZK(n));
+ i > -1 && (e.polarItems[i] = ZK(r));
},
- prepare: cU()
+ prepare: lU()
}
}
-}), { addCartesianGraphicalItem: Wwe, replaceCartesianGraphicalItem: Gwe, removeCartesianGraphicalItem: Kwe, addPolarGraphicalItem: qwe, removePolarGraphicalItem: Jwe, replacePolarGraphicalItem: Ywe } = y3.actions, Xwe = y3.reducer, b3 = /*#__PURE__*/ (0, I.memo)((e) => {
+}), { addCartesianGraphicalItem: Kwe, replaceCartesianGraphicalItem: qwe, removeCartesianGraphicalItem: Jwe, addPolarGraphicalItem: Ywe, removePolarGraphicalItem: Xwe, replacePolarGraphicalItem: Zwe } = y3.actions, Qwe = y3.reducer, b3 = /*#__PURE__*/ (0, I.memo)((e) => {
var t = XB(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(Wwe(e)) : n.current !== e && t(Gwe({
+ n.current === null ? t(Kwe(e)) : n.current !== e && t(qwe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(Kwe(n.current)), null);
+ n.current &&= (t(Jwe(n.current)), null);
}, [t]), null;
}), x3 = /*#__PURE__*/ (0, I.memo)((e) => {
var t = XB(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(qwe(e)) : n.current !== e && t(Ywe({
+ n.current === null ? t(Ywe(e)) : n.current !== e && t(Zwe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(Jwe(n.current)), null);
+ n.current &&= (t(Xwe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function Zwe(e) {
+function $we(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function Qwe(e) {
- if (!(!kB(e) || e.length === 0)) return Zwe(L4(e));
+function eTe(e) {
+ if (!(!kB(e) || e.length === 0)) return $we(L4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var $we = ["points"];
+var tTe = ["points"];
function S3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -62611,26 +62614,26 @@ function C3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? S3(Object(n), !0).forEach(function(t) {
- eTe(e, t, n[t]);
+ nTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eTe(e, t, n) {
- return (t = tTe(t)) in e ? Object.defineProperty(e, t, {
+function nTe(e, t, n) {
+ return (t = rTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tTe(e) {
- var t = nTe(e, "string");
+function rTe(e) {
+ var t = iTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nTe(e, t) {
+function iTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62649,16 +62652,16 @@ function w3() {
return e;
}, w3.apply(null, arguments);
}
-function rTe(e, t) {
+function aTe(e, t) {
if (e == null) return {};
- var n, r, i = iTe(e, t);
+ var n, r, i = oTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function iTe(e, t) {
+function oTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62667,20 +62670,20 @@ function iTe(e, t) {
}
return n;
}
-function aTe(e) {
+function sTe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, I.isValidElement)(t)) return /*#__PURE__*/ (0, I.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Xm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = rTe(a, $we);
+ var i = Xm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = aTe(a, tTe);
return /*#__PURE__*/ I.createElement(v4, w3({}, s, { className: i }));
}
-function oTe(e, t) {
+function cTe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function T3(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = BY.scatter } = e;
- if (!oTe(t, n)) return null;
- var u = n3(n), d = mpe(n), f = t.map((e, r) => {
+ if (!cTe(t, n)) return null;
+ var u = n3(n), d = gpe(n), f = t.map((e, r) => {
var s = C3(C3(C3({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
@@ -62690,7 +62693,7 @@ function T3(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ I.createElement(aTe, {
+ return /*#__PURE__*/ I.createElement(sTe, {
key: `dot-${r}`,
option: n,
dotProps: s,
@@ -62715,26 +62718,26 @@ function D3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? E3(Object(n), !0).forEach(function(t) {
- sTe(e, t, n[t]);
+ lTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sTe(e, t, n) {
- return (t = cTe(t)) in e ? Object.defineProperty(e, t, {
+function lTe(e, t, n) {
+ return (t = uTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cTe(e) {
- var t = lTe(e, "string");
+function uTe(e) {
+ var t = dTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lTe(e, t) {
+function dTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62744,7 +62747,7 @@ function lTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var O3 = CU({
+var O3 = wU({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -62754,60 +62757,60 @@ var O3 = CU({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = XK(t.payload);
+ e.xAxis[t.payload.id] = ZK(t.payload);
},
- prepare: cU()
+ prepare: lU()
},
replaceXAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = XK(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = ZK(r));
},
- prepare: cU()
+ prepare: lU()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: cU()
+ prepare: lU()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = XK(t.payload);
+ e.yAxis[t.payload.id] = ZK(t.payload);
},
- prepare: cU()
+ prepare: lU()
},
replaceYAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = XK(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = ZK(r));
},
- prepare: cU()
+ prepare: lU()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: cU()
+ prepare: lU()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = XK(t.payload);
+ e.zAxis[t.payload.id] = ZK(t.payload);
},
- prepare: cU()
+ prepare: lU()
},
replaceZAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = XK(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = ZK(r));
},
- prepare: cU()
+ prepare: lU()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: cU()
+ prepare: lU()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -62822,15 +62825,15 @@ var O3 = CU({
}
}
}
-}), { addXAxis: uTe, replaceXAxis: dTe, removeXAxis: fTe, addYAxis: pTe, replaceYAxis: mTe, removeYAxis: hTe, addZAxis: gTe, replaceZAxis: _Te, removeZAxis: vTe, updateYAxisWidth: yTe } = O3.actions, bTe = O3.reducer, xTe = $([
- $([uG], (e) => ({
+}), { addXAxis: fTe, replaceXAxis: pTe, removeXAxis: mTe, addYAxis: hTe, replaceYAxis: gTe, removeYAxis: _Te, addZAxis: vTe, replaceZAxis: yTe, removeZAxis: bTe, updateYAxisWidth: xTe } = O3.actions, STe = O3.reducer, CTe = $([
+ $([dG], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- qW,
- JW
+ JW,
+ YW
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -62838,7 +62841,7 @@ var O3 = CU({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), k3 = () => Q(xTe), STe = () => Q(txe);
+}), k3 = () => Q(CTe), wTe = () => Q(rxe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function A3(e, t) {
@@ -62855,26 +62858,26 @@ function j3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? A3(Object(n), !0).forEach(function(t) {
- CTe(e, t, n[t]);
+ TTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function CTe(e, t, n) {
- return (t = wTe(t)) in e ? Object.defineProperty(e, t, {
+function TTe(e, t, n) {
+ return (t = ETe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wTe(e) {
- var t = TTe(e, "string");
+function ETe(e) {
+ var t = DTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TTe(e, t) {
+function DTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62884,7 +62887,7 @@ function TTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ETe = (e) => {
+var OTe = (e) => {
var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;
if (i === !1 || t.x == null || t.y == null) return null;
var s = j3(j3(j3({}, {
@@ -62905,10 +62908,10 @@ var ETe = (e) => {
}, c);
};
function M3(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = BY.activeDot } = e, s = Q(P0), c = STe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = BY.activeDot } = e, s = Q(P0), c = wTe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return uB(l) ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: o }, /*#__PURE__*/ I.createElement(ETe, {
+ return uB(l) ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: o }, /*#__PURE__*/ I.createElement(OTe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -62933,26 +62936,26 @@ function P3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? N3(Object(n), !0).forEach(function(t) {
- DTe(e, t, n[t]);
+ kTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DTe(e, t, n) {
- return (t = OTe(t)) in e ? Object.defineProperty(e, t, {
+function kTe(e, t, n) {
+ return (t = ATe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OTe(e) {
- var t = kTe(e, "string");
+function ATe(e) {
+ var t = jTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kTe(e, t) {
+function jTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62962,13 +62965,13 @@ function kTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var F3 = (e, t) => O4(e, "radiusAxis", t), ATe = $([F3], (e) => {
+var F3 = (e, t) => O4(e, "radiusAxis", t), MTe = $([F3], (e) => {
if (e != null) return { scale: e };
-}), jTe = $([XY, F3], (e, t) => {
+}), NTe = $([XY, F3], (e, t) => {
if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });
-}), MTe = (e, t, n, r) => A4(e, "radiusAxis", t, r), I3 = (e, t, n) => YY(e, n), L3 = (e, t, n) => O4(e, "angleAxis", n), NTe = $([I3, L3], (e, t) => {
+}), PTe = (e, t, n, r) => A4(e, "radiusAxis", t, r), I3 = (e, t, n) => YY(e, n), L3 = (e, t, n) => O4(e, "angleAxis", n), FTe = $([I3, L3], (e, t) => {
if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });
-}), PTe = (e, t, n, r) => A4(e, "angleAxis", n, r), FTe = $([
+}), ITe = (e, t, n, r) => A4(e, "angleAxis", n, r), LTe = $([
I3,
L3,
rX
@@ -62980,30 +62983,30 @@ var F3 = (e, t) => O4(e, "radiusAxis", t), ATe = $([F3], (e) => {
cx: n.cx,
cy: n.cy
};
-}), ITe = (e, t, n, r, i) => i, LTe = $([
- JG,
- jTe,
- MTe,
+}), RTe = (e, t, n, r, i) => i, zTe = $([
+ YG,
NTe,
- PTe
-], (e, t, n, r, i) => DW(e, "radiusAxis") ? HW(t, n, !1) : HW(r, i, !1)), RTe = $([
- ATe,
+ PTe,
FTe,
+ ITe
+], (e, t, n, r, i) => OW(e, "radiusAxis") ? UW(t, n, !1) : UW(r, i, !1)), BTe = $([
+ MTe,
+ LTe,
hY,
- $([y4, ITe], (e, t) => {
+ $([y4, RTe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- LTe
+ zTe
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return JTe({
+ if (e != null && t != null && a != null && i != null && r != null) return XTe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), zTe = ["id"];
+}), VTe = ["id"];
function R3() {
return R3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -63027,26 +63030,26 @@ function B3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? z3(Object(n), !0).forEach(function(t) {
- BTe(e, t, n[t]);
+ HTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BTe(e, t, n) {
- return (t = VTe(t)) in e ? Object.defineProperty(e, t, {
+function HTe(e, t, n) {
+ return (t = UTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VTe(e) {
- var t = HTe(e, "string");
+function UTe(e) {
+ var t = WTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HTe(e, t) {
+function WTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63056,16 +63059,16 @@ function HTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function UTe(e, t) {
+function GTe(e, t) {
if (e == null) return {};
- var n, r, i = WTe(e, t);
+ var n, r, i = KTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function WTe(e, t) {
+function KTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63077,17 +63080,17 @@ function WTe(e, t) {
function V3(e, t) {
return e && e !== "none" ? e : t;
}
-var GTe = (e) => {
+var qTe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: V3(r, i),
- value: WW(n, t),
+ value: GW(n, t),
payload: e
}];
-}, KTe = /*#__PURE__*/ I.memo((e) => {
+}, JTe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {
dataDefinedOnItem: void 0,
getPosition: pB,
@@ -63097,7 +63100,7 @@ var GTe = (e) => {
fill: i,
nameKey: void 0,
dataKey: t,
- name: WW(a, t),
+ name: GW(a, t),
hide: o,
type: s,
color: V3(n, i),
@@ -63107,8 +63110,8 @@ var GTe = (e) => {
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: l });
});
-function qTe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = qR(UTe(n, zTe));
+function YTe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = qR(GTe(n, VTe));
return /*#__PURE__*/ I.createElement(T3, {
points: t,
dot: r,
@@ -63118,10 +63121,10 @@ function qTe(e) {
baseProps: o
});
}
-function JTe(e) {
+function XTe(e) {
var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = TW(e, n.dataKey, r), d = TW(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Qwe(d) : d, m = uB(p) ? 0 : t.scale.map(p) ?? 0;
+ var a = EW(e, n.dataKey, r), d = EW(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? eTe(d) : d, m = uB(p) ? 0 : t.scale.map(p) ?? 0;
Array.isArray(d) && d.length >= 2 && (c = !0), l.push(B3(B3({}, aY(o, s, m, f)), {}, {
name: a,
value: d,
@@ -63144,7 +63147,7 @@ function JTe(e) {
baseLinePoints: d
};
}
-function YTe(e) {
+function ZTe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -63164,7 +63167,7 @@ function YTe(e) {
});
return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, r);
}
-function XTe(e) {
+function QTe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ I.isValidElement(i) ? /*#__PURE__*/ I.cloneElement(i, B3(B3({}, r), {}, { points: t })) : typeof i == "function" ? i(B3(B3({}, r), {}, { points: t })) : /*#__PURE__*/ I.createElement(g4, R3({}, YR(r), {
@@ -63180,7 +63183,7 @@ function XTe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ I.createElement($R, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(qTe, {
+ return /*#__PURE__*/ I.createElement($R, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(YTe, {
props: r,
points: t
}));
@@ -63195,13 +63198,13 @@ var H3 = (e, t, n) => (r, i) => {
y: cB(r.cy, r.y, n)
});
};
-function ZTe(e) {
+function $Te(e) {
var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = KJ(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, I.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ I.createElement(YTe, {
+ return /*#__PURE__*/ I.createElement(ZTe, {
showLabels: y,
points: i
}, /*#__PURE__*/ I.createElement(GJ, {
@@ -63215,22 +63218,22 @@ function ZTe(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(H3(f, m, e)), s = e === 1 ? a : a?.map(H3(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(XTe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(QTe, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ I.createElement(f4, { label: t.label }), t.children);
}
-function QTe(e) {
+function eEe(e) {
var t = (0, I.useRef)(void 0), n = (0, I.useRef)(void 0);
- return /*#__PURE__*/ I.createElement(ZTe, {
+ return /*#__PURE__*/ I.createElement($Te, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var $Te = {
+var tEe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -63244,27 +63247,27 @@ var $Te = {
radiusAxisId: 0,
zIndex: BY.area
};
-function eEe(e) {
+function nEe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Xm("recharts-radar", n);
- return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: i }, /*#__PURE__*/ I.createElement(QTe, e)), /*#__PURE__*/ I.createElement(M3, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: i }, /*#__PURE__*/ I.createElement(eEe, e)), /*#__PURE__*/ I.createElement(M3, {
points: r,
mainColor: V3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function tEe(e) {
- var t = mG(), n = Q((n) => RTe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ I.createElement(eEe, R3({}, e, {
+function rEe(e) {
+ var t = hG(), n = Q((n) => BTe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ I.createElement(nEe, R3({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function U3(e) {
- var t = CB(e, $Te);
+ var t = CB(e, tEe);
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "radar"
@@ -63276,7 +63279,7 @@ function U3(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ I.createElement(_3, { legendPayload: GTe(t) }), /*#__PURE__*/ I.createElement(KTe, {
+ }), /*#__PURE__*/ I.createElement(_3, { legendPayload: qTe(t) }), /*#__PURE__*/ I.createElement(JTe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -63285,7 +63288,7 @@ function U3(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ I.createElement(tEe, R3({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(rEe, R3({}, t, { id: e }))));
}
U3.displayName = "Radar";
//#endregion
@@ -63344,26 +63347,26 @@ function X3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Y3(Object(n), !0).forEach(function(t) {
- nEe(e, t, n[t]);
+ iEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nEe(e, t, n) {
- return (t = rEe(t)) in e ? Object.defineProperty(e, t, {
+function iEe(e, t, n) {
+ return (t = aEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rEe(e) {
- var t = iEe(e, "string");
+function aEe(e) {
+ var t = oEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iEe(e, t) {
+function oEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63373,11 +63376,11 @@ function iEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function aEe(e, t, n, r, i) {
+function sEe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
var o = oB(e, n, 0, !0), s, c = [];
- if (vW(r[0]?.barSize)) {
+ if (yW(r[0]?.barSize)) {
var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);
d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);
var f = {
@@ -63400,7 +63403,7 @@ function aEe(e, t, n, r, i) {
n - 2 * p - (a - 1) * o <= 0 && (o = 0);
var m = (n - 2 * p - (a - 1) * o) / a;
m > 1 && (m >>= 0);
- var h = vW(i) ? Math.min(m, i) : m;
+ var h = yW(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -63414,7 +63417,7 @@ function aEe(e, t, n, r, i) {
}
}
var Z3 = (e, t, n, r, i, a, o) => {
- var s = uB(o) ? t : o, c = aEe(n, r, i === a ? a : i, e, s);
+ var s = uB(o) ? t : o, c = sEe(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => X3(X3({}, e), {}, { position: X3(X3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, Q3 = (e, t) => {
var n = oX(t);
@@ -63450,26 +63453,26 @@ function t6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? e6(Object(n), !0).forEach(function(t) {
- oEe(e, t, n[t]);
+ cEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oEe(e, t, n) {
- return (t = sEe(t)) in e ? Object.defineProperty(e, t, {
+function cEe(e, t, n) {
+ return (t = lEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sEe(e) {
- var t = cEe(e, "string");
+function lEe(e) {
+ var t = uEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cEe(e, t) {
+function uEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63481,30 +63484,30 @@ function cEe(e, t) {
}
var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return t6(t6({}, e), {}, { scale: t });
-}), r6 = (e, t) => xCe(e, "radiusAxis", t, !1), i6 = $([(e, t, n) => YY(e, n), (e, t, n) => O4(e, "angleAxis", n)], (e, t) => {
+}), r6 = (e, t) => CCe(e, "radiusAxis", t, !1), i6 = $([(e, t, n) => YY(e, n), (e, t, n) => O4(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return t6(t6({}, e), {}, { scale: t });
}), a6 = (e, t, n) => A4(e, "angleAxis", n, !1), o6 = $([y4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
}), s6 = $([
- JG,
+ YG,
n6,
r6,
i6,
a6
-], (e, t, n, r, i) => DW(e, "radiusAxis") ? HW(t, n, !1) : HW(r, i, !1)), lEe = $([
+], (e, t, n, r, i) => OW(e, "radiusAxis") ? UW(t, n, !1) : UW(r, i, !1)), dEe = $([
i6,
n6,
- JG
+ YG
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return IW({ numericAxis: r });
-}), uEe = (e, t, n, r, i) => i, dEe = (e, t, n, r, i) => n, fEe = (e, t, n, r, i) => t, c6 = (e, t, n, r, i) => r.maxBarSize, l6 = (e) => e.type === "radialBar", pEe = $([$([
+ if (r != null && r.scale != null) return LW({ numericAxis: r });
+}), fEe = (e, t, n, r, i) => i, pEe = (e, t, n, r, i) => n, mEe = (e, t, n, r, i) => t, c6 = (e, t, n, r, i) => r.maxBarSize, l6 = (e) => e.type === "radialBar", hEe = $([$([
$([
$([
- JG,
+ YG,
y4,
- dEe,
- fEe
+ pEe,
+ mEe
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(l6)),
NY,
() => void 0
@@ -63513,7 +63516,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
jY,
MY,
$([
- JG,
+ YG,
AY,
i6,
a6,
@@ -63522,7 +63525,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
c6
], (e, t, n, r, i, a, o) => {
var s = uB(o) ? t : o;
- return e === "centric" ? HW(n, r, !0) ?? s ?? 0 : HW(i, a, !0) ?? s ?? 0;
+ return e === "centric" ? UW(n, r, !0) ?? s ?? 0 : UW(i, a, !0) ?? s ?? 0;
}),
s6,
c6
@@ -63535,7 +63538,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
u6,
PY,
FY
-], i1), mEe = $([
+], i1), gEe = $([
i6,
a6,
n6,
@@ -63543,17 +63546,17 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
mY,
o6,
s6,
- JG,
- lEe,
+ YG,
+ dEe,
rX,
- uEe,
- pEe,
- $([(e, t, n) => JG(e) === "centric" ? d6(e, "radiusAxis", t) : d6(e, "angleAxis", n), o6], Q3)
+ fEe,
+ hEe,
+ $([(e, t, n) => YG(e) === "centric" ? d6(e, "radiusAxis", t) : d6(e, "angleAxis", n), o6], Q3)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return jEe({
+ return NEe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -63574,7 +63577,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), hEe = $([hY, (e, t) => t], (e, t) => {
+}), _Ee = $([hY, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -63588,20 +63591,20 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function f6(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && vW(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && yW(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var gEe = [
+var vEe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], _Ee = [
+], yEe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], vEe = ["value", "background"];
+], bEe = ["value", "background"];
function p6() {
return p6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -63625,26 +63628,26 @@ function h6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? m6(Object(n), !0).forEach(function(t) {
- yEe(e, t, n[t]);
+ xEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yEe(e, t, n) {
- return (t = bEe(t)) in e ? Object.defineProperty(e, t, {
+function xEe(e, t, n) {
+ return (t = SEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bEe(e) {
- var t = xEe(e, "string");
+function SEe(e) {
+ var t = CEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xEe(e, t) {
+function CEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63656,14 +63659,14 @@ function xEe(e, t) {
}
function g6(e, t) {
if (e == null) return {};
- var n, r, i = SEe(e, t);
+ var n, r, i = wEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function SEe(e, t) {
+function wEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63673,7 +63676,7 @@ function SEe(e, t) {
return n;
}
var _6 = [];
-function CEe(e) {
+function TEe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -63690,11 +63693,11 @@ function CEe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ I.createElement(lCe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ I.createElement(dCe, { value: t ? i : void 0 }, r);
}
-function wEe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = g6(n, gEe), l = qR(c), u = Q(P0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = g6(n, _Ee), h = f3(d, n.dataKey, s), g = p3(p), _ = m3(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ I.createElement(CEe, {
+function EEe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = g6(n, vEe), l = qR(c), u = Q(P0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = g6(n, yEe), h = f3(d, n.dataKey, s), g = p3(p), _ = m3(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ I.createElement(TEe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
@@ -63715,7 +63718,7 @@ function wEe(e) {
}, /*#__PURE__*/ I.createElement(K3, f)) : /*#__PURE__*/ I.createElement(K3, p6({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ I.createElement(f4, { label: n.label }), n.children);
}
-function TEe(e) {
+function DEe(e) {
var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = KJ(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, I.useCallback)(() => {
@@ -63740,25 +63743,25 @@ function TEe(e) {
var { endAngle: i, startAngle: a } = t;
return h6(h6({}, t), {}, { endAngle: cB(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(wEe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(EEe, {
sectors: i ?? _6,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function EEe(e) {
+function OEe(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(TEe, {
+ return /*#__PURE__*/ I.createElement(DEe, {
props: e,
previousSectorsRef: t
});
}
-function DEe(e) {
- var t = Q((t) => hEe(t, e.legendType));
+function kEe(e) {
+ var t = Q((t) => _Ee(t, e.legendType));
return /*#__PURE__*/ I.createElement(_3, { legendPayload: t ?? [] });
}
-var OEe = /*#__PURE__*/ I.memo((e) => {
+var AEe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: n,
getPosition: pB,
@@ -63769,7 +63772,7 @@ var OEe = /*#__PURE__*/ I.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: WW(a, t),
+ name: GW(a, t),
hide: o,
type: c,
color: s,
@@ -63777,12 +63780,12 @@ var OEe = /*#__PURE__*/ I.memo((e) => {
}
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: u });
-}), kEe = class extends I.PureComponent {
+}), jEe = class extends I.PureComponent {
renderBackground(e) {
if (e == null) return null;
var { cornerRadius: t } = this.props, n = JR(this.props.background);
return /*#__PURE__*/ I.createElement(t2, { zIndex: f6(this.props.background, BY.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = g6(e, vEe);
+ var { value: i, background: a } = e, o = g6(e, bEe);
if (!a) return null;
var s = h6(h6(h6(h6(h6({ cornerRadius: G3(t) }, o), {}, { fill: "#eee" }, a), n), xB(this.props, e, r)), {}, {
index: r,
@@ -63797,17 +63800,17 @@ var OEe = /*#__PURE__*/ I.memo((e) => {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Xm("recharts-area", n);
- return /*#__PURE__*/ I.createElement(t2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement($R, { className: i }, r && /*#__PURE__*/ I.createElement($R, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement($R, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(EEe, this.props))));
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement($R, { className: i }, r && /*#__PURE__*/ I.createElement($R, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement($R, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(OEe, this.props))));
}
};
-function AEe(e) {
+function MEe(e) {
var t = I.useMemo(() => t3(e.children, v2), [e.children]), n = I.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: NW(e.stackId),
+ stackId: PW(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -63822,8 +63825,8 @@ function AEe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => mEe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(OEe, {
+ ]), r = Q((r) => gEe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(AEe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -63833,7 +63836,7 @@ function AEe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ I.createElement(kEe, p6({}, e, { sectors: r })));
+ }), /*#__PURE__*/ I.createElement(jEe, p6({}, e, { sectors: r })));
}
var v6 = {
angleAxisId: 0,
@@ -63852,12 +63855,12 @@ var v6 = {
radiusAxisId: 0,
zIndex: BY.bar
};
-function jEe(e) {
+function NEe(e) {
var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;
return g == null || l == null ? _6 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = AW(n[r + t], i) : (b = TW(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = FW({
+ if (n ? b = jW(n[r + t], i) : (b = EW(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
+ if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = IW({
axis: c,
ticks: l,
bandSize: u,
@@ -63880,7 +63883,7 @@ function jEe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = FW({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = IW({
axis: f,
ticks: g,
bandSize: u,
@@ -63920,17 +63923,17 @@ function y6(e) {
hide: t.hide ?? v6.hide,
angleAxisId: t.angleAxisId ?? v6.angleAxisId,
radiusAxisId: t.radiusAxisId ?? v6.radiusAxisId,
- stackId: NW(t.stackId),
+ stackId: PW(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ I.createElement(DEe, t), /*#__PURE__*/ I.createElement(AEe, p6({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(kEe, t), /*#__PURE__*/ I.createElement(MEe, p6({}, t, { id: e }))));
}
y6.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var b6 = (e) => {
- var { chartData: t } = e, n = XB(), r = mG();
+ var { chartData: t } = e, n = XB(), r = hG();
return (0, I.useEffect)(() => r ? () => {} : (n(f2(t)), () => {
n(f2(void 0));
}), [
@@ -63949,13 +63952,13 @@ var b6 = (e) => {
bottom: 0,
left: 0
}
-}, S6 = CU({
+}, S6 = wU({
name: "brush",
initialState: x6,
reducers: { setBrushSettings(e, t) {
return t.payload == null ? x6 : t.payload;
} }
-}), { setBrushSettings: MEe } = S6.actions, NEe = S6.reducer, PEe = (e, t) => {
+}), { setBrushSettings: PEe } = S6.actions, FEe = S6.reducer, IEe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -63963,9 +63966,9 @@ var b6 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, FEe = (e) => {
+}, LEe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return PEe({
+ return IEe({
x: t,
y: n
}, {
@@ -63973,13 +63976,13 @@ var b6 = (e) => {
y: i
});
};
-function IEe(e) {
+function REe(e) {
return (e % 180 + 180) % 180;
}
-var LEe = function(e) {
- var { width: t, height: n } = e, r = IEe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var zEe = function(e) {
+ var { width: t, height: n } = e, r = REe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
return Math.abs(a);
-}, C6 = CU({
+}, C6 = wU({
name: "referenceElements",
initialState: {
dots: [],
@@ -63991,25 +63994,25 @@ var LEe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = JH(e).dots.findIndex((e) => e === t.payload);
+ var n = YH(e).dots.findIndex((e) => e === t.payload);
n !== -1 && e.dots.splice(n, 1);
},
addArea: (e, t) => {
e.areas.push(t.payload);
},
removeArea: (e, t) => {
- var n = JH(e).areas.findIndex((e) => e === t.payload);
+ var n = YH(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(XK(t.payload));
+ e.lines.push(ZK(t.payload));
},
removeLine: (e, t) => {
- var n = JH(e).lines.findIndex((e) => e === t.payload);
+ var n = YH(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: REe, removeDot: zEe, addArea: BEe, removeArea: VEe, addLine: HEe, removeLine: UEe } = C6.actions, WEe = C6.reducer, w6 = /*#__PURE__*/ (0, I.createContext)(void 0), GEe = (e) => {
+}), { addDot: BEe, removeDot: VEe, addArea: HEe, removeArea: UEe, addLine: WEe, removeLine: GEe } = C6.actions, KEe = C6.reducer, w6 = /*#__PURE__*/ (0, I.createContext)(void 0), qEe = (e) => {
var { children: t } = e, [n] = (0, I.useState)(`${aB("recharts")}-clip`), r = k3();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
@@ -64019,7 +64022,7 @@ var LEe = function(e) {
height: s,
width: o
}))), t);
-}, KEe = () => (0, I.useContext)(w6), qEe = class {
+}, JEe = () => (0, I.useContext)(w6), YEe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -64059,26 +64062,26 @@ function E6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? T6(Object(n), !0).forEach(function(t) {
- JEe(e, t, n[t]);
+ XEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JEe(e, t, n) {
- return (t = YEe(t)) in e ? Object.defineProperty(e, t, {
+function XEe(e, t, n) {
+ return (t = ZEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YEe(e) {
- var t = XEe(e, "string");
+function ZEe(e) {
+ var t = QEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XEe(e, t) {
+function QEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64097,18 +64100,18 @@ function D6() {
return e;
}, D6.apply(null, arguments);
}
-var ZEe = (e, t) => {
+var $Ee = (e, t) => {
var n;
if (/*#__PURE__*/ I.isValidElement(e)) n = /*#__PURE__*/ I.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!vW(t.x1) || !vW(t.y1) || !vW(t.x2) || !vW(t.y2)) return null;
+ if (!yW(t.x1) || !yW(t.y1) || !yW(t.x2) || !yW(t.y2)) return null;
n = /*#__PURE__*/ I.createElement("line", D6({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, QEe = (e, t, n, r, i, a) => {
+}, eDe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!vW(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!yW(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -64117,9 +64120,9 @@ var ZEe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, $Ee = (e, t, n, r, i, a) => {
+}, tDe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!vW(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!yW(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -64128,7 +64131,7 @@ var ZEe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, eDe = (e, t, n, r) => {
+}, nDe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -64137,23 +64140,23 @@ var ZEe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, tDe = (e, t, n, r, i, a, o) => {
+}, rDe = (e, t, n, r, i, a, o) => {
var { x: s, y: c, segment: l, ifOverflow: u } = o, d = iB(s);
- return iB(c) ? QEe(c, u, r, a, t, n) : d ? $Ee(s, u, r, i, e, n) : l != null && l.length === 2 ? eDe(l, u, r, new qEe({
+ return iB(c) ? eDe(c, u, r, a, t, n) : d ? tDe(s, u, r, i, e, n) : l != null && l.length === 2 ? nDe(l, u, r, new YEe({
x: e,
y: t
})) : null;
};
-function nDe(e) {
+function iDe(e) {
var t = XB();
- return (0, I.useEffect)(() => (t(HEe(e)), () => {
- t(UEe(e));
+ return (0, I.useEffect)(() => (t(WEe(e)), () => {
+ t(GEe(e));
})), null;
}
-function rDe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = mG(), s = KEe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = HG();
+function aDe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = hG(), s = JEe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = UG();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = tDe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = rDe(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
@@ -64162,18 +64165,18 @@ function rDe(e) {
y1: _,
x2: v,
y2: y
- }), x = FEe({
+ }), x = LEe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-reference-line", i) }, ZEe(r, b), /*#__PURE__*/ I.createElement(Z2, D6({}, x, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-reference-line", i) }, $Ee(r, b), /*#__PURE__*/ I.createElement(Z2, D6({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ I.createElement(a4, { label: e.label }), e.children)));
}
-var iDe = {
+var oDe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -64186,15 +64189,15 @@ var iDe = {
zIndex: BY.line
};
function O6(e) {
- var t = CB(e, iDe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(nDe, {
+ var t = CB(e, oDe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(iDe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ I.createElement(rDe, t));
+ }), /*#__PURE__*/ I.createElement(aDe, t));
}
O6.displayName = "ReferenceLine";
//#endregion
@@ -64210,13 +64213,13 @@ function k6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function aDe(e, t, n) {
- return LEe({
+function sDe(e, t, n) {
+ return zEe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function oDe(e, t, n) {
+function cDe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -64231,12 +64234,12 @@ function A6(e, t, n, r, i) {
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function sDe(e, t) {
+function lDe(e, t) {
return k6(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function cDe(e, t, n, r, i) {
+function uDe(e, t, n, r, i) {
for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
if (t === void 0) return { v: k6(r, l) };
@@ -64245,7 +64248,7 @@ function cDe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function lDe(e, t, n, r, i) {
+function dDe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
@@ -64282,26 +64285,26 @@ function M6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? j6(Object(n), !0).forEach(function(t) {
- uDe(e, t, n[t]);
+ fDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uDe(e, t, n) {
- return (t = dDe(t)) in e ? Object.defineProperty(e, t, {
+function fDe(e, t, n) {
+ return (t = pDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dDe(e) {
- var t = fDe(e, "string");
+function pDe(e) {
+ var t = mDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fDe(e, t) {
+function mDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64311,7 +64314,7 @@ function fDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function pDe(e, t, n, r, i) {
+function hDe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
@@ -64324,7 +64327,7 @@ function pDe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function mDe(e, t, n, r, i, a) {
+function gDe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
@@ -64348,7 +64351,7 @@ function mDe(e, t, n, r, i, a) {
function N6(e, t, n) {
var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;
if (!i || !i.length || !r) return [];
- if (Z(c) || rJ.isSsr) return sDe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || iJ.isSsr) return lDe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? w2(u, {
fontSize: t,
letterSpacing: n
@@ -64357,19 +64360,19 @@ function N6(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? aDe(w2(i, {
+ return p === "width" ? sDe(w2(i, {
fontSize: t,
letterSpacing: n
}), m, d) : w2(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? tB(_.coordinate - g.coordinate) : 1, y = oDe(a, v, p);
- return c === "equidistantPreserveStart" ? cDe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? lDe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? mDe(v, y, h, i, o, c === "preserveStartEnd") : pDe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? tB(_.coordinate - g.coordinate) : 1, y = cDe(a, v, p);
+ return c === "equidistantPreserveStart" ? uDe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? dDe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? gDe(v, y, h, i, o, c === "preserveStartEnd") : hDe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var hDe = (e) => {
+var _De = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -64382,7 +64385,7 @@ var hDe = (e) => {
return Math.round(l);
}
return 0;
-}, P6 = CU({
+}, P6 = wU({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -64391,14 +64394,14 @@ var hDe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = XK(i);
+ e[n][r] = ZK(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: gDe, removeRenderedTicks: _De } = P6.actions, vDe = P6.reducer, yDe = [
+}), { setRenderedTicks: vDe, removeRenderedTicks: yDe } = P6.actions, bDe = P6.reducer, xDe = [
"axisLine",
"width",
"height",
@@ -64408,16 +64411,16 @@ var hDe = (e) => {
"axisType",
"axisId"
];
-function bDe(e, t) {
+function SDe(e, t) {
if (e == null) return {};
- var n, r, i = xDe(e, t);
+ var n, r, i = CDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function xDe(e, t) {
+function CDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64449,26 +64452,26 @@ function L6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? I6(Object(n), !0).forEach(function(t) {
- SDe(e, t, n[t]);
+ wDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SDe(e, t, n) {
- return (t = CDe(t)) in e ? Object.defineProperty(e, t, {
+function wDe(e, t, n) {
+ return (t = TDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CDe(e) {
- var t = wDe(e, "string");
+function TDe(e) {
+ var t = EDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wDe(e, t) {
+function EDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64502,7 +64505,7 @@ var R6 = {
interval: "preserveEnd",
zIndex: BY.axis
};
-function TDe(e) {
+function DDe(e) {
var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;
if (!s) return null;
var l = L6(L6(L6({}, c), qR(s)), {}, { fill: "none" });
@@ -64525,7 +64528,7 @@ function TDe(e) {
}
return /*#__PURE__*/ I.createElement("line", F6({}, l, { className: Xm("recharts-cartesian-axis-line", Qz(s, "className")) }));
}
-function EDe(e, t, n, r, i, a, o, s, c) {
+function ODe(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -64552,14 +64555,14 @@ function EDe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function DDe(e, t) {
+function kDe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function ODe(e, t) {
+function ADe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -64567,7 +64570,7 @@ function ODe(e, t) {
default: return t ? "end" : "start";
}
}
-function kDe(e) {
+function jDe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Xm(n.className, "recharts-cartesian-axis-tick-value");
if (/*#__PURE__*/ I.isValidElement(t)) i = /*#__PURE__*/ I.cloneElement(t, L6(L6({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(L6(L6({}, n), {}, { className: a }));
@@ -64577,9 +64580,9 @@ function kDe(e) {
}
return i;
}
-function ADe(e) {
+function MDe(e) {
var { ticks: t, axisType: n, axisId: r } = e, i = XB();
- return (0, I.useEffect)(() => r == null || n == null ? pB : (i(gDe({
+ return (0, I.useEffect)(() => r == null || n == null ? pB : (i(vDe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -64589,7 +64592,7 @@ function ADe(e) {
axisId: r,
axisType: n
})), () => {
- i(_De({
+ i(yDe({
axisId: r,
axisType: n
}));
@@ -64600,10 +64603,10 @@ function ADe(e) {
n
]), null;
}
-var jDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = N6(L6(L6({}, b), {}, { ticks: n }), v, y), T = qR(b), E = JR(r), D = L2(T.textAnchor) ? T.textAnchor : DDe(u, d), O = ODe(u, d), k = {};
+var NDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = N6(L6(L6({}, b), {}, { ticks: n }), v, y), T = qR(b), E = JR(r), D = L2(T.textAnchor) ? T.textAnchor : kDe(u, d), O = ADe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = L6(L6({}, T), {}, { fill: "none" }, k), j = w.map((e) => L6({ entry: e }, EDe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = L6(L6({}, T), {}, { fill: "none" }, k), j = w.map((e) => L6({ entry: e }, ODe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
return /*#__PURE__*/ I.createElement($R, {
className: "recharts-cartesian-axis-tick",
@@ -64624,13 +64627,13 @@ var jDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
return /*#__PURE__*/ I.createElement($R, F6({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, xB(x, n, t)), r && /*#__PURE__*/ I.createElement(kDe, {
+ }, xB(x, n, t)), r && /*#__PURE__*/ I.createElement(jDe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(ADe, {
+ return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(MDe, {
ticks: w,
axisId: C,
axisType: S
@@ -64638,9 +64641,9 @@ var jDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), MDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = bDe(e, yDe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
- (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => hDe({
+}), PDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = SDe(e, xDe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
+ (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => _De({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -64658,7 +64661,7 @@ var jDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(TDe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(DDe, {
x: e.x,
y: e.y,
width: r,
@@ -64667,7 +64670,7 @@ var jDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
mirror: e.mirror,
axisLine: n,
otherSvgProps: qR(e)
- }), /*#__PURE__*/ I.createElement(jDe, {
+ }), /*#__PURE__*/ I.createElement(NDe, {
ref: g,
axisType: c,
events: u,
@@ -64704,18 +64707,18 @@ var jDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}), e.children)));
}), z6 = /*#__PURE__*/ I.forwardRef((e, t) => {
var n = CB(e, R6);
- return /*#__PURE__*/ I.createElement(MDe, F6({}, n, { ref: t }));
+ return /*#__PURE__*/ I.createElement(PDe, F6({}, n, { ref: t }));
});
z6.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var NDe = [
+var FDe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], PDe = ["offset"], FDe = ["xAxisId", "yAxisId"], IDe = ["xAxisId", "yAxisId"];
+], IDe = ["offset"], LDe = ["xAxisId", "yAxisId"], RDe = ["xAxisId", "yAxisId"];
function B6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -64730,26 +64733,26 @@ function V6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? B6(Object(n), !0).forEach(function(t) {
- LDe(e, t, n[t]);
+ zDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LDe(e, t, n) {
- return (t = RDe(t)) in e ? Object.defineProperty(e, t, {
+function zDe(e, t, n) {
+ return (t = BDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RDe(e) {
- var t = zDe(e, "string");
+function BDe(e) {
+ var t = VDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zDe(e, t) {
+function VDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64770,14 +64773,14 @@ function H6() {
}
function U6(e, t) {
if (e == null) return {};
- var n, r, i = BDe(e, t);
+ var n, r, i = HDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function BDe(e, t) {
+function HDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64786,7 +64789,7 @@ function BDe(e, t) {
}
return n;
}
-var VDe = (e) => {
+var UDe = (e) => {
var { fill: t } = e;
if (!t || t === "none") return null;
var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;
@@ -64807,7 +64810,7 @@ function W6(e) {
if (/*#__PURE__*/ I.isValidElement(t)) r = /*#__PURE__*/ I.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = qR(U6(n, NDe)) ?? {}, { offset: u } = l, d = U6(l, PDe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = qR(U6(n, FDe)) ?? {}, { offset: u } = l, d = U6(l, IDe);
r = /*#__PURE__*/ I.createElement("line", H6({}, d, {
x1: i,
y1: a,
@@ -64819,10 +64822,10 @@ function W6(e) {
}
return r;
}
-function HDe(e) {
+function WDe(e) {
var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = U6(e, FDe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, LDe), c = i.map((e, i) => {
var a = V6(V6({}, s), {}, {
x1: t,
y1: e,
@@ -64839,10 +64842,10 @@ function HDe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function UDe(e) {
+function GDe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = U6(e, IDe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, RDe), c = i.map((e, i) => {
var a = V6(V6({}, s), {}, {
x1: e,
y1: t,
@@ -64859,7 +64862,7 @@ function UDe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function WDe(e) {
+function KDe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -64882,7 +64885,7 @@ function WDe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function GDe(e) {
+function qDe(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -64905,10 +64908,10 @@ function GDe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var KDe = (e, t) => {
+var JDe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return OW(N6(V6(V6(V6({}, R6), n), {}, {
- ticks: kW(n, !0),
+ return kW(N6(V6(V6(V6({}, R6), n), {}, {
+ ticks: AW(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -64916,10 +64919,10 @@ var KDe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, qDe = (e, t) => {
+}, YDe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return OW(N6(V6(V6(V6({}, R6), n), {}, {
- ticks: kW(n, !0),
+ return kW(N6(V6(V6(V6({}, R6), n), {}, {
+ ticks: AW(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -64927,7 +64930,7 @@ var KDe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, JDe = {
+}, XDe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -64942,14 +64945,14 @@ var KDe = (e, t) => {
zIndex: BY.grid
};
function G6(e) {
- var t = GG(), n = KG(), r = WG(), i = V6(V6({}, CB(e, JDe)), {}, {
+ var t = KG(), n = qG(), r = GG(), i = V6(V6({}, CB(e, XDe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = mG(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));
- if (!yW(l) || !yW(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || KDe, v = i.horizontalCoordinatesGenerator || qDe, { horizontalPoints: y, verticalPoints: b } = i;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = hG(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));
+ if (!bW(l) || !bW(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || JDe, v = i.horizontalCoordinatesGenerator || YDe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
yAxis: g ? V6(V6({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
@@ -64957,7 +64960,7 @@ function G6(e) {
height: n ?? u,
offset: r
}, x ? !0 : d);
- bG(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ xG(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
@@ -64966,9 +64969,9 @@ function G6(e) {
height: n ?? u,
offset: r
}, C ? !0 : d);
- bG(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ xG(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ I.createElement(t2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(VDe, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(UDe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -64976,12 +64979,12 @@ function G6(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ I.createElement(WDe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(GDe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(HDe, H6({}, i, {
+ }), /*#__PURE__*/ I.createElement(KDe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(qDe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(WDe, H6({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ I.createElement(UDe, H6({}, i, {
+ })), /*#__PURE__*/ I.createElement(GDe, H6({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -64991,7 +64994,7 @@ function G6(e) {
G6.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var K6 = CU({
+var K6 = wU({
name: "errorBars",
initialState: {},
reducers: {
@@ -65008,17 +65011,17 @@ var K6 = CU({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: YDe, replaceErrorBar: XDe, removeErrorBar: ZDe } = K6.actions, QDe = K6.reducer, $De = ["children"];
-function eOe(e, t) {
+}), { addErrorBar: ZDe, replaceErrorBar: QDe, removeErrorBar: $De } = K6.actions, eOe = K6.reducer, tOe = ["children"];
+function nOe(e, t) {
if (e == null) return {};
- var n, r, i = tOe(e, t);
+ var n, r, i = rOe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function tOe(e, t) {
+function rOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65027,7 +65030,7 @@ function tOe(e, t) {
}
return n;
}
-var nOe = /*#__PURE__*/ (0, I.createContext)({
+var iOe = /*#__PURE__*/ (0, I.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -65039,8 +65042,8 @@ var nOe = /*#__PURE__*/ (0, I.createContext)({
errorBarOffset: 0
});
function q6(e) {
- var { children: t } = e, n = eOe(e, $De);
- return /*#__PURE__*/ I.createElement(nOe.Provider, { value: n }, t);
+ var { children: t } = e, n = nOe(e, tOe);
+ return /*#__PURE__*/ I.createElement(iOe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -65065,30 +65068,30 @@ function Y6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var X6 = (e, t, n, r) => J1(e, "xAxis", t, r), Z6 = (e, t, n, r) => q1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "yAxis", n, r), $6 = (e, t, n, r) => q1(e, "yAxis", n, r), rOe = $([
- JG,
+var X6 = (e, t, n, r) => J1(e, "xAxis", t, r), Z6 = (e, t, n, r) => q1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "yAxis", n, r), $6 = (e, t, n, r) => q1(e, "yAxis", n, r), aOe = $([
+ YG,
X6,
Q6,
Z6,
$6
-], (e, t, n, r, i) => DW(e, "xAxis") ? HW(t, r, !1) : HW(n, i, !1)), iOe = (e, t, n, r, i) => i;
-function aOe(e) {
+], (e, t, n, r, i) => OW(e, "xAxis") ? UW(t, r, !1) : UW(n, i, !1)), oOe = (e, t, n, r, i) => i;
+function sOe(e) {
return e.type === "line";
}
-var oOe = $([
- JG,
+var cOe = $([
+ YG,
X6,
Q6,
Z6,
$6,
- $([H$, iOe], (e, t) => e.filter(aOe).find((e) => e.id === t)),
- rOe,
+ $([H$, oOe], (e, t) => e.filter(sOe).find((e) => e.id === t)),
+ aOe,
gY
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return EOe({
+ if (p != null) return OOe({
layout: e,
xAxis: t,
yAxis: n,
@@ -65118,13 +65121,13 @@ function e8(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var sOe = ["id"], cOe = [
+var lOe = ["id"], uOe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], lOe = [
+], dOe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -65163,26 +65166,26 @@ function r8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? n8(Object(n), !0).forEach(function(t) {
- uOe(e, t, n[t]);
+ fOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uOe(e, t, n) {
- return (t = dOe(t)) in e ? Object.defineProperty(e, t, {
+function fOe(e, t, n) {
+ return (t = pOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dOe(e) {
- var t = fOe(e, "string");
+function pOe(e) {
+ var t = mOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fOe(e, t) {
+function mOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65194,14 +65197,14 @@ function fOe(e, t) {
}
function i8(e, t) {
if (e == null) return {};
- var n, r, i = pOe(e, t);
+ var n, r, i = hOe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function pOe(e, t) {
+function hOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65210,17 +65213,17 @@ function pOe(e, t) {
}
return n;
}
-var mOe = (e) => {
+var gOe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: WW(n, t),
+ value: GW(n, t),
payload: e
}];
-}, hOe = /*#__PURE__*/ I.memo((e) => {
+}, _Oe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
getPosition: pB,
@@ -65230,7 +65233,7 @@ var mOe = (e) => {
fill: a,
dataKey: t,
nameKey: void 0,
- name: WW(o, t),
+ name: GW(o, t),
hide: s,
type: l,
color: r,
@@ -65240,11 +65243,11 @@ var mOe = (e) => {
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: d });
}), a8 = (e, t) => `${t}px ${e}px`;
-function gOe(e, t) {
+function vOe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var _Oe = (e, t, n) => {
+var yOe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
if (!r) return a8(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
@@ -65256,13 +65259,13 @@ var _Oe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...gOe(n, i),
+ ...vOe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function vOe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = qR(i8(r, sOe));
+function bOe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = qR(i8(r, lOe));
return /*#__PURE__*/ I.createElement(T3, {
points: n,
dot: i,
@@ -65274,7 +65277,7 @@ function vOe(e) {
clipPathId: t
});
}
-function yOe(e) {
+function xOe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, I.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -65295,7 +65298,7 @@ function yOe(e) {
return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, n);
}
function o8(e) {
- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = r8(r8({}, YR(i8(a, cOe))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = r8(r8({}, YR(i8(a, uOe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -65308,28 +65311,28 @@ function o8(e) {
return /*#__PURE__*/ I.createElement(I.Fragment, null, r?.length > 1 && /*#__PURE__*/ I.createElement(d3, t8({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(vOe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(bOe, {
points: r,
clipPathId: t,
props: a
}));
}
-function bOe(e) {
+function SOe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function xOe(e) {
+function COe(e) {
var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = KJ(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, I.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = bOe(r.current), E = (0, I.useRef)(0);
+ }, [g]), T = SOe(r.current), E = (0, I.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ I.createElement(yOe, {
+ return /*#__PURE__*/ I.createElement(xOe, {
points: o,
showLabels: S
}, n.children, /*#__PURE__*/ I.createElement(GJ, {
@@ -65342,7 +65345,7 @@ function xOe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = cB(D, T + D, e), u = Math.min(l, T), d = c ? s ? _Oe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : a8(T, u) : s == null ? void 0 : String(s);
+ var l = cB(D, T + D, e), u = Math.min(l, T), d = c ? s ? yOe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : a8(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
@@ -65378,9 +65381,9 @@ function xOe(e) {
});
}), /*#__PURE__*/ I.createElement(f4, { label: n.label }));
}
-function SOe(e) {
+function wOe(e) {
var { clipPathId: t, props: n } = e, r = (0, I.useRef)(null), i = (0, I.useRef)(0), a = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(xOe, {
+ return /*#__PURE__*/ I.createElement(COe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -65388,12 +65391,12 @@ function SOe(e) {
pathRef: a
});
}
-var COe = (e, t) => ({
+var TOe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: TW(e.payload, t)
-}), wOe = class extends I.Component {
+ errorVal: EW(e.payload, t)
+}), EOe = class extends I.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
@@ -65411,9 +65414,9 @@ var COe = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: COe,
+ dataPointFormatter: TOe,
errorBarOffset: 0
- }, /*#__PURE__*/ I.createElement(SOe, {
+ }, /*#__PURE__*/ I.createElement(wOe, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ I.createElement(M3, {
@@ -65444,11 +65447,11 @@ var COe = (e, t) => ({
zIndex: BY.line,
type: "linear"
};
-function TOe(e) {
- var t = CB(e, s8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = i8(t, lOe), { needClip: _ } = J6(p, m), v = k3(), y = YG(), b = mG(), x = Q((e) => oOe(e, p, m, b, h));
+function DOe(e) {
+ var t = CB(e, s8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = i8(t, dOe), { needClip: _ } = J6(p, m), v = k3(), y = XG(), b = hG(), x = Q((e) => cOe(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ I.createElement(wOe, t8({}, g, {
+ return /*#__PURE__*/ I.createElement(EOe, t8({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -65472,12 +65475,12 @@ function TOe(e) {
needClip: _
}));
}
-function EOe(e) {
+function OOe(e) {
var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;
return c.map((e, c) => {
- var l = TW(e, o);
+ var l = EW(e, o);
if (t === "horizontal") return {
- x: PW({
+ x: FW({
axis: n,
ticks: i,
bandSize: s,
@@ -65488,7 +65491,7 @@ function EOe(e) {
value: l,
payload: e
};
- var u = uB(l) ? null : n.scale.map(l), d = PW({
+ var u = uB(l) ? null : n.scale.map(l), d = FW({
axis: r,
ticks: a,
bandSize: s,
@@ -65503,12 +65506,12 @@ function EOe(e) {
};
}).filter(Boolean);
}
-function DOe(e) {
- var t = CB(e, s8), n = mG();
+function kOe(e) {
+ var t = CB(e, s8), n = hG();
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: mOe(t) }), /*#__PURE__*/ I.createElement(hOe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: gOe(t) }), /*#__PURE__*/ I.createElement(_Oe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -65529,9 +65532,9 @@ function DOe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ I.createElement(TOe, t8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(DOe, t8({}, t, { id: e }))));
}
-var c8 = /*#__PURE__*/ I.memo(DOe, Sq);
+var c8 = /*#__PURE__*/ I.memo(kOe, Cq);
c8.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -65543,19 +65546,19 @@ function u8(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxis", l8(e, t), n), p8 = (e, t, n) => J1(e, "yAxis", u8(e, t), n), m8 = (e, t, n) => q1(e, "yAxis", u8(e, t), n), OOe = $([
- JG,
+var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxis", l8(e, t), n), p8 = (e, t, n) => J1(e, "yAxis", u8(e, t), n), m8 = (e, t, n) => q1(e, "yAxis", u8(e, t), n), AOe = $([
+ YG,
d8,
p8,
f8,
m8
-], (e, t, n, r, i) => DW(e, "xAxis") ? HW(t, r, !1) : HW(n, i, !1)), h8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), g8 = (e) => DW(JG(e), "xAxis") ? "yAxis" : "xAxis", kOe = (e, t) => g8(e) === "yAxis" ? u8(e, t) : l8(e, t), AOe = $([
- JG,
+], (e, t, n, r, i) => OW(e, "xAxis") ? UW(t, r, !1) : UW(n, i, !1)), h8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), g8 = (e) => OW(YG(e), "xAxis") ? "yAxis" : "xAxis", jOe = (e, t) => g8(e) === "yAxis" ? u8(e, t) : l8(e, t), MOe = $([
+ YG,
d8,
p8,
f8,
m8,
- $([h8, (e, t, n) => a1(e, g8(e), kOe(e, t), n)], (e, t) => {
+ $([h8, (e, t, n) => a1(e, g8(e), jOe(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = oX(e);
if (n != null && r != null) {
@@ -65565,14 +65568,14 @@ var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxi
}
}),
_Y,
- OOe,
+ AOe,
h8,
- Jge
+ Xge
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return XOe({
+ if (m != null) return QOe({
layout: e,
xAxis: t,
yAxis: n,
@@ -65586,7 +65589,7 @@ var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxi
bandSize: s
});
}
-}), jOe = ["id"], MOe = [
+}), NOe = ["id"], POe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -65613,14 +65616,14 @@ function _8() {
}
function v8(e, t) {
if (e == null) return {};
- var n, r, i = NOe(e, t);
+ var n, r, i = FOe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function NOe(e, t) {
+function FOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65643,26 +65646,26 @@ function b8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? y8(Object(n), !0).forEach(function(t) {
- POe(e, t, n[t]);
+ IOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function POe(e, t, n) {
- return (t = FOe(t)) in e ? Object.defineProperty(e, t, {
+function IOe(e, t, n) {
+ return (t = LOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FOe(e) {
- var t = IOe(e, "string");
+function LOe(e) {
+ var t = ROe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function IOe(e, t) {
+function ROe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65675,17 +65678,17 @@ function IOe(e, t) {
function x8(e, t) {
return e && e !== "none" ? e : t;
}
-var LOe = (e) => {
+var zOe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: x8(r, i),
- value: WW(n, t),
+ value: GW(n, t),
payload: e
}];
-}, ROe = /*#__PURE__*/ I.memo((e) => {
+}, BOe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
getPosition: pB,
@@ -65695,7 +65698,7 @@ var LOe = (e) => {
fill: a,
dataKey: t,
nameKey: void 0,
- name: WW(o, t),
+ name: GW(o, t),
hide: s,
type: l,
color: x8(r, a),
@@ -65705,7 +65708,7 @@ var LOe = (e) => {
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: d });
});
-function zOe(e) {
+function VOe(e) {
var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = qR(r);
return /*#__PURE__*/ I.createElement(T3, {
points: n,
@@ -65718,7 +65721,7 @@ function zOe(e) {
clipPathId: t
});
}
-function BOe(e) {
+function HOe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -65739,7 +65742,7 @@ function BOe(e) {
return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, n);
}
function S8(e) {
- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = v8(a, jOe), p = qR(f), m = YR(f);
+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = v8(a, NOe), p = qR(f), m = YR(f);
return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement($R, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(DJ, _8({}, m, {
id: d,
points: t,
@@ -65763,15 +65766,15 @@ function S8(e) {
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ I.createElement(zOe, {
+ }))), /*#__PURE__*/ I.createElement(VOe, {
points: t,
props: f,
clipPathId: i
}));
}
-function VOe(e) {
+function UOe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!vW(a) || !vW(o)) return null;
+ if (!yW(a) || !yW(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ I.createElement("rect", {
x: 0,
@@ -65780,9 +65783,9 @@ function VOe(e) {
height: Math.floor(s)
}) : null;
}
-function HOe(e) {
+function WOe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!vW(a) || !vW(o)) return null;
+ if (!yW(a) || !yW(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ I.createElement("rect", {
x: a < o ? a : a - s,
@@ -65791,32 +65794,32 @@ function HOe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function UOe(e) {
+function GOe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ I.createElement(VOe, {
+ return n === "vertical" ? /*#__PURE__*/ I.createElement(UOe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ I.createElement(HOe, {
+ }) : /*#__PURE__*/ I.createElement(WOe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function WOe(e) {
+function KOe(e) {
var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = KJ((0, I.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = XG(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = ZG(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, I.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ I.createElement(BOe, {
+ return /*#__PURE__*/ I.createElement(HOe, {
showLabels: v,
points: o
}, r.children, /*#__PURE__*/ I.createElement(GJ, {
@@ -65859,7 +65862,7 @@ function WOe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement($R, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(UOe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement($R, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(GOe, {
alpha: e,
points: o,
baseLine: s,
@@ -65874,9 +65877,9 @@ function WOe(e) {
})));
}), /*#__PURE__*/ I.createElement(f4, { label: r.label }));
}
-function GOe(e) {
+function qOe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, I.useRef)(null), a = (0, I.useRef)();
- return /*#__PURE__*/ I.createElement(WOe, {
+ return /*#__PURE__*/ I.createElement(KOe, {
needClip: t,
clipPathId: n,
props: r,
@@ -65884,7 +65887,7 @@ function GOe(e) {
previousBaselineRef: a
});
}
-var KOe = class extends I.PureComponent {
+var JOe = class extends I.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
@@ -65898,7 +65901,7 @@ var KOe = class extends I.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ I.createElement(GOe, {
+ }))), /*#__PURE__*/ I.createElement(qOe, {
needClip: o,
clipPathId: h,
props: this.props
@@ -65916,7 +65919,7 @@ var KOe = class extends I.PureComponent {
clipPath: b
}));
}
-}, qOe = {
+}, YOe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -65936,11 +65939,11 @@ var KOe = class extends I.PureComponent {
yAxisId: 0,
zIndex: BY.area
};
-function JOe(e) {
- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = v8(e, MOe), g = YG(), _ = U0(), { needClip: v } = J6(p, m), y = mG(), { points: b, isRange: x, baseLine: S } = Q((t) => AOe(t, e.id, y)) ?? {}, C = k3();
+function XOe(e) {
+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = v8(e, POe), g = XG(), _ = U0(), { needClip: v } = J6(p, m), y = hG(), { points: b, isRange: x, baseLine: S } = Q((t) => MOe(t, e.id, y)) ?? {}, C = k3();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ I.createElement(KOe, _8({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ I.createElement(JOe, _8({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -65966,7 +65969,7 @@ function JOe(e) {
yAxisId: m
}));
}
-var YOe = (e, t, n, r, i) => {
+var ZOe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -65976,17 +65979,17 @@ var YOe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function XOe(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = YOe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function QOe(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = ZOe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
- var o = TW(e, r);
+ var o = EW(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && TW(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && EW(e, r) == null;
return g ? {
- x: PW({
+ x: FW({
axis: s,
ticks: d,
bandSize: p,
@@ -65998,7 +66001,7 @@ function XOe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: PW({
+ y: FW({
axis: c,
ticks: f,
bandSize: p,
@@ -66026,12 +66029,12 @@ function XOe(e) {
isRange: _
};
}
-function ZOe(e) {
- var t = CB(e, qOe), n = mG();
+function $Oe(e) {
+ var t = CB(e, YOe), n = hG();
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: LOe(t) }), /*#__PURE__*/ I.createElement(ROe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: zOe(t) }), /*#__PURE__*/ I.createElement(BOe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -66050,21 +66053,21 @@ function ZOe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: NW(t.stackId),
+ stackId: PW(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ I.createElement(JOe, _8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(XOe, _8({}, t, { id: e }))));
}
-var C8 = /*#__PURE__*/ I.memo(ZOe, Sq);
+var C8 = /*#__PURE__*/ I.memo($Oe, Cq);
C8.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var QOe = "Invariant failed";
-function $Oe(e, t) {
- if (!e) throw Error(QOe);
+var eke = "Invariant failed";
+function tke(e, t) {
+ if (!e) throw Error(eke);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -66084,45 +66087,45 @@ function T8(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var eke = function(e) {
+var nke = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
if (Z(e)) return e;
var i = Z(n) || uB(n);
- return i ? e(n, r) : (!i && $Oe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ return i ? e(n, r) : (!i && tke(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, tke = (e, t, n) => n, E8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), nke = $([E8], (e) => e?.maxBarSize), rke = (e, t, n, r) => r, ike = $([
- JG,
+}, rke = (e, t, n) => n, E8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), ike = $([E8], (e) => e?.maxBarSize), ake = (e, t, n, r) => r, oke = $([
+ YG,
H$,
l8,
u8,
- tke
-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), ake = (e, t, n) => {
- var r = JG(e), i = l8(e, t), a = u8(e, t);
+ rke
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), ske = (e, t, n) => {
+ var r = YG(e), i = l8(e, t), a = u8(e, t);
if (i != null && a != null) return r === "horizontal" ? a1(e, "yAxis", a, n) : a1(e, "xAxis", i, n);
-}, oke = $([
- ike,
+}, cke = $([
+ oke,
NY,
(e, t) => {
- var n = JG(e), r = l8(e, t), i = u8(e, t);
+ var n = YG(e), r = l8(e, t), i = u8(e, t);
if (r != null && i != null) return n === "horizontal" ? B1(e, "xAxis", r) : B1(e, "yAxis", i);
}
-], J3), ske = (e, t, n) => {
+], J3), lke = (e, t, n) => {
var r = E8(e, t);
if (r == null) return 0;
var i = l8(e, t), a = u8(e, t);
if (i == null || a == null) return 0;
- var o = JG(e), s = AY(e), { maxBarSize: c } = r, l = uB(c) ? s : c, u, d;
- return o === "horizontal" ? (u = J1(e, "xAxis", i, n), d = q1(e, "xAxis", i, n)) : (u = J1(e, "yAxis", a, n), d = q1(e, "yAxis", a, n)), HW(u, d, !0) ?? l ?? 0;
+ var o = YG(e), s = AY(e), { maxBarSize: c } = r, l = uB(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = J1(e, "xAxis", i, n), d = q1(e, "xAxis", i, n)) : (u = J1(e, "yAxis", a, n), d = q1(e, "yAxis", a, n)), UW(u, d, !0) ?? l ?? 0;
}, D8 = (e, t, n) => {
- var r = JG(e), i = l8(e, t), a = u8(e, t);
+ var r = YG(e), i = l8(e, t), a = u8(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = J1(e, "xAxis", i, n), s = q1(e, "xAxis", i, n)) : (o = J1(e, "yAxis", a, n), s = q1(e, "yAxis", a, n)), HW(o, s);
+ return r === "horizontal" ? (o = J1(e, "xAxis", i, n), s = q1(e, "xAxis", i, n)) : (o = J1(e, "yAxis", a, n), s = q1(e, "yAxis", a, n)), UW(o, s);
}
-}, cke = $([
- uG,
- fG,
+}, uke = $([
+ dG,
+ pG,
(e, t, n) => {
var r = l8(e, t);
if (r != null) return J1(e, "xAxis", r, n);
@@ -66140,25 +66143,25 @@ var eke = function(e) {
if (r != null) return q1(e, "yAxis", r, n);
},
$([$([
- oke,
+ cke,
AY,
jY,
MY,
- ske,
+ lke,
D8,
- nke
+ ike
], Z3), E8], $3),
- JG,
+ YG,
_Y,
D8,
- $([ake, E8], Q3),
+ $([ske, E8], Q3),
E8,
- rke
+ ake
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return Ike({
+ if (_ != null) return Rke({
layout: s,
barSettings: d,
pos: o,
@@ -66175,7 +66178,7 @@ var eke = function(e) {
dataStartIndex: m
});
}
-}), lke = ["index"];
+}), dke = ["index"];
function O8() {
return O8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -66185,16 +66188,16 @@ function O8() {
return e;
}, O8.apply(null, arguments);
}
-function uke(e, t) {
+function fke(e, t) {
if (e == null) return {};
- var n, r, i = dke(e, t);
+ var n, r, i = pke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function dke(e, t) {
+function pke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66203,31 +66206,31 @@ function dke(e, t) {
}
return n;
}
-var k8 = /*#__PURE__*/ (0, I.createContext)(void 0), fke = (e) => {
+var k8 = /*#__PURE__*/ (0, I.createContext)(void 0), mke = (e) => {
var t = (0, I.useContext)(k8);
if (t != null) return t.stackId;
- if (e != null) return NW(e);
-}, pke = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, mke = (e) => {
+ if (e != null) return PW(e);
+}, hke = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, gke = (e) => {
var t = (0, I.useContext)(k8);
if (t != null) {
var { stackId: n } = t;
- return `url(#${pke(n, e)})`;
+ return `url(#${hke(n, e)})`;
}
}, A8 = (e) => {
- var { index: t } = e, n = uke(e, lke), r = mke(t);
+ var { index: t } = e, n = fke(e, dke), r = gke(t);
return /*#__PURE__*/ I.createElement($R, O8({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, hke = [
+}, _ke = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], gke = [
+], vke = [
"value",
"background",
"tooltipPosition"
-], _ke = ["id"], vke = [
+], yke = ["id"], bke = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -66255,26 +66258,26 @@ function N8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? M8(Object(n), !0).forEach(function(t) {
- yke(e, t, n[t]);
+ xke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yke(e, t, n) {
- return (t = bke(t)) in e ? Object.defineProperty(e, t, {
+function xke(e, t, n) {
+ return (t = Ske(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bke(e) {
- var t = xke(e, "string");
+function Ske(e) {
+ var t = Cke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xke(e, t) {
+function Cke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66286,14 +66289,14 @@ function xke(e, t) {
}
function P8(e, t) {
if (e == null) return {};
- var n, r, i = Ske(e, t);
+ var n, r, i = wke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Ske(e, t) {
+function wke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66302,17 +66305,17 @@ function Ske(e, t) {
}
return n;
}
-var Cke = (e) => {
+var Tke = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: WW(n, t),
+ value: GW(n, t),
payload: e
}];
-}, wke = /*#__PURE__*/ I.memo((e) => {
+}, Eke = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: void 0,
getPosition: pB,
@@ -66322,7 +66325,7 @@ var Cke = (e) => {
fill: i,
dataKey: t,
nameKey: void 0,
- name: WW(a, t),
+ name: GW(a, t),
hide: o,
type: c,
color: i,
@@ -66332,12 +66335,12 @@ var Cke = (e) => {
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: u });
});
-function Tke(e) {
- var t = Q(P0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = P8(a, hke), u = f3(o, r, a.id), d = p3(s), f = m3(c, r, a.id);
+function Dke(e) {
+ var t = Q(P0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = P8(a, _ke), u = f3(o, r, a.id), d = p3(s), f = m3(c, r, a.id);
if (!i || n == null) return null;
var p = JR(i);
return /*#__PURE__*/ I.createElement(t2, { zIndex: f6(i, BY.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = P8(e, gke);
+ var { value: a, background: o, tooltipPosition: s } = e, c = P8(e, vke);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = N8(N8(N8(N8(N8({
option: i,
@@ -66353,7 +66356,7 @@ function Tke(e) {
return /*#__PURE__*/ I.createElement(T8, j8({ key: `background-bar-${n}` }, _));
}));
}
-function Eke(e) {
+function Oke(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -66373,7 +66376,7 @@ function Eke(e) {
});
return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, n);
}
-function Dke(e) {
+function kke(e) {
var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(P0), c = Q(I0), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
var e;
@@ -66394,7 +66397,7 @@ function Dke(e) {
}));
return g ? /*#__PURE__*/ I.createElement(t2, { zIndex: BY.activeBar }, /*#__PURE__*/ I.createElement(A8, { index: i.originalDataIndex }, v)) : v;
}
-function Oke(e) {
+function Ake(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
return /*#__PURE__*/ I.createElement(T8, j8({}, n, { name: String(n.name) }, r, {
isActive: !1,
@@ -66403,8 +66406,8 @@ function Oke(e) {
dataKey: a
}));
}
-function kke(e) {
- var { data: t, props: n } = e, r = qR(n) ?? {}, { id: i } = r, a = P8(r, _ke), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = P8(n, vke), p = f3(l, s, i), m = p3(d), h = m3(u, s, i);
+function jke(e) {
+ var { data: t, props: n } = e, r = qR(n) ?? {}, { id: i } = r, a = P8(r, yke), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = P8(n, bke), p = f3(l, s, i), m = p3(d), h = m3(u, s, i);
return t ? /*#__PURE__*/ I.createElement(I.Fragment, null, t.map((e, t) => /*#__PURE__*/ I.createElement(A8, j8({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
@@ -66413,14 +66416,14 @@ function kke(e) {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ I.createElement(Dke, {
+ }), c ? /*#__PURE__*/ I.createElement(kke, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ I.createElement(Oke, {
+ }) : /*#__PURE__*/ I.createElement(Ake, {
shape: o,
baseProps: a,
entry: e,
@@ -66428,13 +66431,13 @@ function kke(e) {
dataKey: s
})))) : null;
}
-function Ake(e) {
+function Mke(e) {
var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = KJ(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, I.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ I.createElement(Eke, {
+ return /*#__PURE__*/ I.createElement(Oke, {
showLabels: h,
rects: r
}, /*#__PURE__*/ I.createElement(GJ, {
@@ -66468,28 +66471,28 @@ function Ake(e) {
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement($R, null, /*#__PURE__*/ I.createElement(kke, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement($R, null, /*#__PURE__*/ I.createElement(jke, {
props: t,
data: a
}));
}), /*#__PURE__*/ I.createElement(f4, { label: t.label }), t.children);
}
-function jke(e) {
+function Nke(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(Ake, {
+ return /*#__PURE__*/ I.createElement(Mke, {
previousRectanglesRef: t,
props: e
});
}
-var F8 = 0, Mke = (e, t) => {
+var F8 = 0, Pke = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: TW(e, t)
+ errorVal: EW(e, t)
};
-}, Nke = class extends I.PureComponent {
+}, Fke = class extends I.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
@@ -66504,14 +66507,14 @@ var F8 = 0, Mke = (e, t) => {
})), /*#__PURE__*/ I.createElement($R, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ I.createElement(Tke, {
+ }, /*#__PURE__*/ I.createElement(Dke, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ I.createElement(jke, this.props)));
+ }), /*#__PURE__*/ I.createElement(Nke, this.props)));
}
-}, Pke = {
+}, Ike = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -66526,17 +66529,17 @@ var F8 = 0, Mke = (e, t) => {
yAxisId: 0,
zIndex: BY.bar
};
-function Fke(e) {
- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = J6(t, n), f = YG(), p = mG(), m = t3(e.children, v2), h = Q((t) => cke(t, e.id, p, m));
+function Lke(e) {
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = J6(t, n), f = XG(), p = hG(), m = t3(e.children, v2), h = Q((t) => uke(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ I.createElement(q6, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: Mke,
+ dataPointFormatter: Pke,
errorBarOffset: g
- }, /*#__PURE__*/ I.createElement(Nke, j8({}, e, {
+ }, /*#__PURE__*/ I.createElement(Fke, j8({}, e, {
layout: f,
needClip: d,
data: h,
@@ -66552,20 +66555,20 @@ function Fke(e) {
isAnimationActive: u
})));
}
-function Ike(e) {
- var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = IW({ numericAxis: _ }), b = _.scale.map(y);
+function Rke(e) {
+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = LW({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = AW(E, v);
- } else _ = TW(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = eke(r, F8)(_[1], f);
+ _ = jW(E, v);
+ } else _ = EW(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = nke(r, F8)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = FW({
+ x = IW({
axis: s,
ticks: l,
bandSize: o,
@@ -66586,7 +66589,7 @@ function Ike(e) {
} else {
var M = s.scale.map(_[0]), N = s.scale.map(_[1]);
if (M == null || N == null) return null;
- if (x = M, S = FW({
+ if (x = M, S = IW({
axis: c,
ticks: u,
bandSize: o,
@@ -66621,12 +66624,12 @@ function Ike(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function Lke(e) {
- var t = CB(e, Pke), n = fke(t.stackId), r = mG();
+function zke(e) {
+ var t = CB(e, Ike), n = mke(t.stackId), r = hG();
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: Cke(t) }), /*#__PURE__*/ I.createElement(wke, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: Tke(t) }), /*#__PURE__*/ I.createElement(Eke, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -66651,23 +66654,23 @@ function Lke(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ I.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(Fke, j8({}, t, { id: e })))));
+ }), /*#__PURE__*/ I.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(Lke, j8({}, t, { id: e })))));
}
-var I8 = /*#__PURE__*/ I.memo(Lke, Sq);
+var I8 = /*#__PURE__*/ I.memo(zke, Cq);
I8.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var Rke = ["domain", "range"], zke = ["domain", "range"];
+var Bke = ["domain", "range"], Vke = ["domain", "range"];
function L8(e, t) {
if (e == null) return {};
- var n, r, i = Bke(e, t);
+ var n, r, i = Hke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Bke(e, t) {
+function Hke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66681,16 +66684,16 @@ function R8(e, t) {
}
function z8(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = L8(e, Rke), { domain: a, range: o } = t, s = L8(t, zke);
- return !R8(n, a) || !R8(r, o) ? !1 : Sq(i, s);
+ var { domain: n, range: r } = e, i = L8(e, Bke), { domain: a, range: o } = t, s = L8(t, Vke);
+ return !R8(n, a) || !R8(r, o) ? !1 : Cq(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var Vke = ["type"], Hke = [
+var Uke = ["type"], Wke = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], Uke = ["id", "scale"];
+], Gke = ["id", "scale"];
function B8() {
return B8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -66714,26 +66717,26 @@ function H8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V8(Object(n), !0).forEach(function(t) {
- Wke(e, t, n[t]);
+ Kke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Wke(e, t, n) {
- return (t = Gke(t)) in e ? Object.defineProperty(e, t, {
+function Kke(e, t, n) {
+ return (t = qke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Gke(e) {
- var t = Kke(e, "string");
+function qke(e) {
+ var t = Jke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Kke(e, t) {
+function Jke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66745,14 +66748,14 @@ function Kke(e, t) {
}
function U8(e, t) {
if (e == null) return {};
- var n, r, i = qke(e, t);
+ var n, r, i = Yke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function qke(e, t) {
+function Yke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66761,23 +66764,23 @@ function qke(e, t) {
}
return n;
}
-function Jke(e) {
- var t = XB(), n = (0, I.useRef)(null), r = XG(), { type: i } = e, a = U8(e, Vke), o = WY(r, "xAxis", i), s = (0, I.useMemo)(() => {
+function Xke(e) {
+ var t = XB(), n = (0, I.useRef)(null), r = ZG(), { type: i } = e, a = U8(e, Uke), o = WY(r, "xAxis", i), s = (0, I.useMemo)(() => {
if (o != null) return H8(H8({}, a), {}, { type: o });
}, [a, o]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(uTe(s)) : n.current !== s && t(dTe({
+ s != null && (n.current === null ? t(fTe(s)) : n.current !== s && t(pTe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(fTe(n.current)), null);
+ n.current &&= (t(mTe(n.current)), null);
}, [t]), null;
}
-var Yke = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(fG), i = mG(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => gbe(e, t)), l = Q((e) => M$(e, t));
+var Zke = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(pG), i = hG(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => vbe(e, t)), l = Q((e) => M$(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, Hke), { id: m, scale: h } = l, g = U8(l, Uke);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, Wke), { id: m, scale: h } = l, g = U8(l, Gke);
return /*#__PURE__*/ I.createElement(z6, B8({}, p, g, {
x: c.x,
y: c.y,
@@ -66789,7 +66792,7 @@ var Yke = (e) => {
axisType: a,
axisId: t
}));
-}, Xke = {
+}, Qke = {
allowDataOverflow: j$.allowDataOverflow,
allowDecimals: j$.allowDecimals,
allowDuplicatedCategory: j$.allowDuplicatedCategory,
@@ -66814,8 +66817,8 @@ var Yke = (e) => {
niceTicks: j$.niceTicks,
xAxisId: 0
}, W8 = /*#__PURE__*/ I.memo((e) => {
- var t = CB(e, Xke);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Jke, {
+ var t = CB(e, Qke);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Xke, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -66841,16 +66844,16 @@ var Yke = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(Yke, t));
+ }), /*#__PURE__*/ I.createElement(Zke, t));
}, z8);
W8.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var Zke = ["type"], Qke = [
+var $ke = ["type"], eAe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], $ke = ["id", "scale"];
+], tAe = ["id", "scale"];
function G8() {
return G8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -66874,26 +66877,26 @@ function q8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K8(Object(n), !0).forEach(function(t) {
- eAe(e, t, n[t]);
+ nAe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eAe(e, t, n) {
- return (t = tAe(t)) in e ? Object.defineProperty(e, t, {
+function nAe(e, t, n) {
+ return (t = rAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tAe(e) {
- var t = nAe(e, "string");
+function rAe(e) {
+ var t = iAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nAe(e, t) {
+function iAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66905,14 +66908,14 @@ function nAe(e, t) {
}
function J8(e, t) {
if (e == null) return {};
- var n, r, i = rAe(e, t);
+ var n, r, i = aAe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function rAe(e, t) {
+function aAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66921,27 +66924,27 @@ function rAe(e, t) {
}
return n;
}
-function iAe(e) {
- var t = XB(), n = (0, I.useRef)(null), r = XG(), { type: i } = e, a = J8(e, Zke), o = WY(r, "yAxis", i), s = (0, I.useMemo)(() => {
+function oAe(e) {
+ var t = XB(), n = (0, I.useRef)(null), r = ZG(), { type: i } = e, a = J8(e, $ke), o = WY(r, "yAxis", i), s = (0, I.useMemo)(() => {
if (o != null) return q8(q8({}, a), {}, { type: o });
}, [o, a]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(pTe(s)) : n.current !== s && t(mTe({
+ s != null && (n.current === null ? t(hTe(s)) : n.current !== s && t(gTe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(hTe(n.current)), null);
+ n.current &&= (t(_Te(n.current)), null);
}, [t]), null;
}
-function aAe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(fG), c = mG(), l = XB(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => _be(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));
+function sAe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(pG), c = hG(), l = XB(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => ybe(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));
if ((0, I.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || t4(i) || /*#__PURE__*/ (0, I.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(yTe({
+ Math.round(d.width) !== Math.round(n) && l(xTe({
id: t,
width: n
}));
@@ -66956,7 +66959,7 @@ function aAe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, Qke), { id: y, scale: b } = m, x = J8(m, $ke);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, eAe), { id: y, scale: b } = m, x = J8(m, tAe);
return /*#__PURE__*/ I.createElement(z6, G8({}, v, x, {
ref: a,
labelRef: o,
@@ -66972,7 +66975,7 @@ function aAe(e) {
axisId: t
}));
}
-var oAe = {
+var cAe = {
allowDataOverflow: P$.allowDataOverflow,
allowDecimals: P$.allowDecimals,
allowDuplicatedCategory: P$.allowDuplicatedCategory,
@@ -66997,8 +67000,8 @@ var oAe = {
width: P$.width,
yAxisId: 0
}, Y8 = /*#__PURE__*/ I.memo((e) => {
- var t = CB(e, oAe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(iAe, {
+ var t = CB(e, cAe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(oAe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -67024,27 +67027,27 @@ var oAe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(aAe, t));
+ }), /*#__PURE__*/ I.createElement(sAe, t));
}, z8);
Y8.displayName = "YAxis";
var X8 = $([
(e, t) => t,
- JG,
+ YG,
rX,
dX,
D0,
k0,
- pxe,
- uG
-], bxe);
+ hxe,
+ dG
+], Sxe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function sAe(e) {
+function lAe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function Z8(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (sAe(e)) {
+ if (lAe(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -67059,19 +67062,19 @@ function Z8(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var Q8 = tU("mouseClick"), $8 = lW();
+var Q8 = nU("mouseClick"), $8 = uW();
$8.startListening({
actionCreator: Q8,
effect: (e, t) => {
var n = e.payload, r = X8(t.getState(), Z8(n));
- r?.activeIndex != null && t.dispatch(Dbe({
+ r?.activeIndex != null && t.dispatch(kbe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var e5 = tU("mouseMove"), t5 = lW(), n5 = null, r5 = null, i5 = null;
+var e5 = nU("mouseMove"), t5 = uW(), n5 = null, r5 = null, i5 = null;
t5.startListening({
actionCreator: e5,
effect: (e, t) => {
@@ -67102,7 +67105,7 @@ t5.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function cAe(e, t) {
+function uAe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
@@ -67119,17 +67122,17 @@ var a5 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, o5 = CU({
+}, o5 = wU({
name: "rootProps",
initialState: a5,
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? a5.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
} }
-}), lAe = o5.reducer, { updateOptions: uAe } = o5.actions, s5 = CU({
+}), dAe = o5.reducer, { updateOptions: fAe } = o5.actions, s5 = wU({
name: "polarOptions",
initialState: null,
reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }
-}), { updatePolarOptions: dAe } = s5.actions, fAe = s5.reducer, c5 = tU("keyDown"), l5 = tU("focus"), u5 = tU("blur"), d5 = lW(), f5 = null, p5 = null, m5 = null;
+}), { updatePolarOptions: pAe } = s5.actions, mAe = s5.reducer, c5 = nU("keyDown"), l5 = nU("focus"), u5 = nU("blur"), d5 = uW(), f5 = null, p5 = null, m5 = null;
d5.startListening({
actionCreator: c5,
effect: (e, t) => {
@@ -67154,7 +67157,7 @@ d5.startListening({
}));
return;
}
- var c = vbe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = bbe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
var u = X0(e, "axis", "hover", String(l));
t.dispatch(o0({
@@ -67217,7 +67220,7 @@ function h5(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var g5 = tU("externalEvent"), _5 = lW(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();
+var g5 = nU("externalEvent"), _5 = uW(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();
_5.startListening({
actionCreator: g5,
effect: (e, t) => {
@@ -67237,12 +67240,12 @@ _5.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: $be(a),
+ activeCoordinate: txe(a),
activeDataKey: I0(a),
activeIndex: P0(a),
activeLabel: F0(a),
activeTooltipIndex: P0(a),
- isTooltipActive: exe(a)
+ isTooltipActive: nxe(a)
};
n && n(o, r);
} finally {
@@ -67266,7 +67269,7 @@ _5.startListening({
}
}
});
-var pAe = $([
+var hAe = $([
$([m0], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -67278,7 +67281,7 @@ var pAe = $([
if (i != null) return i(t);
}
}
-}), x5 = tU("touchMove"), S5 = lW(), C5 = null, w5 = null, T5 = null, E5 = null;
+}), x5 = nU("touchMove"), S5 = uW(), C5 = null, w5 = null, T5 = null, E5 = null;
S5.startListening({
actionCreator: x5,
effect: (e, t) => {
@@ -67311,9 +67314,9 @@ S5.startListening({
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute($W), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = b0(e).find((e) => e.id === c);
+ var s = o.getAttribute(eG), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = b0(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = pAe(e, s, c);
+ var { dataKey: u } = l, d = hAe(e, s, c);
t.dispatch(n0({
activeDataKey: u,
activeIndex: s,
@@ -67345,33 +67348,33 @@ var D5 = {
"scroll",
"wheel"
]
-}, O5 = CU({
+}, O5 = wU({
name: "eventSettings",
initialState: D5,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = XK(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = ZK(t.payload.throttledEvents));
} }
-}), { setEventSettings: mAe } = O5.actions, hAe = O5.reducer, gAe = TV({
- brush: NEe,
- cartesianAxis: bTe,
- chartData: qxe,
- errorBars: QDe,
- eventSettings: hAe,
- graphicalItems: Xwe,
- layout: gW,
- legend: rq,
- options: Hxe,
- polarAxis: BCe,
- polarOptions: fAe,
- referenceElements: WEe,
- renderedTicks: vDe,
- rootProps: lAe,
- tooltip: Obe,
- zIndex: Nxe
-}), _Ae = function(e) {
+}), { setEventSettings: gAe } = O5.actions, _Ae = O5.reducer, vAe = EV({
+ brush: FEe,
+ cartesianAxis: STe,
+ chartData: Yxe,
+ errorBars: eOe,
+ eventSettings: _Ae,
+ graphicalItems: Qwe,
+ layout: _W,
+ legend: iq,
+ options: Wxe,
+ polarAxis: HCe,
+ polarOptions: mAe,
+ referenceElements: KEe,
+ renderedTicks: bDe,
+ rootProps: dAe,
+ tooltip: Abe,
+ zIndex: Fxe
+}), yAe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return pU({
- reducer: gAe,
+ return mU({
+ reducer: vAe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -67389,10 +67392,10 @@ var D5 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(dU({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(fU({ type: "raf" }));
},
- devTools: rJ.devToolsEnabled && {
- serialize: { replacer: cAe },
+ devTools: iJ.devToolsEnabled && {
+ serialize: { replacer: uAe },
name: `recharts-${t}`
}
});
@@ -67400,21 +67403,21 @@ var D5 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function k5(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = mG(), a = (0, I.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = hG(), a = (0, I.useRef)(null);
if (i) return n;
- a.current ??= _Ae(t, r);
+ a.current ??= yAe(t, r);
var o = YB;
- return /*#__PURE__*/ I.createElement(yq, {
+ return /*#__PURE__*/ I.createElement(bq, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function vAe(e) {
- var { layout: t, margin: n } = e, r = XB(), i = mG();
+function bAe(e) {
+ var { layout: t, margin: n } = e, r = XB(), i = hG();
return (0, I.useEffect)(() => {
- i || (r(pW(t)), r(fW(n)));
+ i || (r(mW(t)), r(pW(n)));
}, [
r,
i,
@@ -67422,31 +67425,31 @@ function vAe(e) {
n
]), null;
}
-var A5 = /*#__PURE__*/ (0, I.memo)(vAe, Sq);
+var A5 = /*#__PURE__*/ (0, I.memo)(bAe, Cq);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function j5(e) {
var t = XB();
return (0, I.useEffect)(() => {
- t(uAe(e));
+ t(fAe(e));
}, [t, e]), null;
}
var M5 = /*#__PURE__*/ (0, I.memo)((e) => {
var t = XB();
return (0, I.useEffect)(() => {
- t(mAe(e));
+ t(gAe(e));
}, [t, e]), null;
-}, Sq);
+}, Cq);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function N5(e) {
var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = XB();
- return (0, I.useLayoutEffect)(() => (r.current && i(jxe({
+ return (0, I.useLayoutEffect)(() => (r.current && i(Nxe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(Mxe({
+ i(Pxe({
zIndex: t,
isPanorama: n
}));
@@ -67461,7 +67464,7 @@ function N5(e) {
});
}
function P5(e) {
- var { children: t, isPanorama: n } = e, r = Q(Sxe);
+ var { children: t, isPanorama: n } = e, r = Q(wxe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
return /*#__PURE__*/ I.createElement(I.Fragment, null, i.map((e) => /*#__PURE__*/ I.createElement(N5, {
@@ -67476,17 +67479,17 @@ function P5(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var yAe = ["children"];
-function bAe(e, t) {
+var xAe = ["children"];
+function SAe(e, t) {
if (e == null) return {};
- var n, r, i = xAe(e, t);
+ var n, r, i = CAe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function xAe(e, t) {
+function CAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67504,13 +67507,13 @@ function F5() {
return e;
}, F5.apply(null, arguments);
}
-var SAe = {
+var wAe = {
width: "100%",
height: "100%",
display: "block"
-}, CAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = GG(), r = KG(), i = pJ();
- if (!yW(n) || !yW(r)) return null;
+}, TAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = KG(), r = qG(), i = mJ();
+ if (!bW(n) || !bW(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ I.createElement(ZR, F5({}, o, {
title: s,
@@ -67519,11 +67522,11 @@ var SAe = {
tabIndex: l,
width: n,
height: r,
- style: SAe,
+ style: wAe,
ref: t
}), a);
-}), wAe = (e) => {
- var { children: t } = e, n = Q(gG);
+}), EAe = (e) => {
+ var { children: t } = e, n = Q(_G);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
return /*#__PURE__*/ I.createElement(ZR, {
@@ -67533,17 +67536,17 @@ var SAe = {
y: a
}, t);
}, I5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n } = e, r = bAe(e, yAe);
- return mG() ? /*#__PURE__*/ I.createElement(wAe, null, /*#__PURE__*/ I.createElement(P5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(CAe, F5({ ref: t }, r), /*#__PURE__*/ I.createElement(P5, { isPanorama: !1 }, n));
+ var { children: n } = e, r = SAe(e, xAe);
+ return hG() ? /*#__PURE__*/ I.createElement(EAe, null, /*#__PURE__*/ I.createElement(P5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(TAe, F5({ ref: t }, r), /*#__PURE__*/ I.createElement(P5, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function TAe() {
- var e = XB(), [t, n] = (0, I.useState)(null), r = Q(YW);
+function DAe() {
+ var e = XB(), [t, n] = (0, I.useState)(null), r = Q(XW);
return (0, I.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- vW(n) && n !== r && e(hW(n));
+ yW(n) && n !== r && e(gW(n));
}
}, [
t,
@@ -67563,30 +67566,30 @@ function L5(e, t) {
}
return n;
}
-function EAe(e) {
+function OAe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? L5(Object(n), !0).forEach(function(t) {
- DAe(e, t, n[t]);
+ kAe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DAe(e, t, n) {
- return (t = OAe(t)) in e ? Object.defineProperty(e, t, {
+function kAe(e, t, n) {
+ return (t = AAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OAe(e) {
- var t = kAe(e, "string");
+function AAe(e) {
+ var t = jAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kAe(e, t) {
+function jAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67605,7 +67608,7 @@ function R5() {
return e;
}, R5.apply(null, arguments);
}
-var AAe = () => (nSe(), null);
+var MAe = () => (iSe(), null);
function z5(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -67614,7 +67617,7 @@ function z5(e) {
}
return 0;
}
-var jAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+var NAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var n = (0, I.useRef)(null), [r, i] = (0, I.useState)({
containerWidth: z5(e.style?.width),
containerHeight: z5(e.style?.height)
@@ -67642,11 +67645,11 @@ var jAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}, [t, a]);
return (0, I.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {
+ }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(tK, {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ I.createElement("div", R5({ ref: o }, e)));
-}), MAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), PAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, I.useState)({
containerWidth: z5(n),
containerHeight: z5(r)
@@ -67664,32 +67667,32 @@ var jAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(tK, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ I.createElement("div", R5({ ref: s }, e)));
-}), NAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), FAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(tK, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", R5({ ref: t }, e)));
-}), PAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), IAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(MAe, R5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(NAe, R5({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(PAe, R5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(FAe, R5({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {
+ })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(tK, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", R5({ ref: t }, e)));
});
-function FAe(e) {
- return e ? jAe : PAe;
+function LAe(e) {
+ return e ? NAe : IAe;
}
-var IAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, I.useRef)(null), x = XB(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = TAe(), D = RG(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
+var RAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, I.useRef)(null), x = XB(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = DAe(), D = zG(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -67761,12 +67764,12 @@ var IAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), le = FAe(v);
+ }, [x, p]), le = LAe(v);
return /*#__PURE__*/ I.createElement(a2.Provider, { value: S }, /*#__PURE__*/ I.createElement(ez.Provider, { value: w }, /*#__PURE__*/ I.createElement(le, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Xm("recharts-wrapper", r),
- style: EAe({
+ style: OAe({
position: "relative",
cursor: "default",
width: O,
@@ -67787,8 +67790,8 @@ var IAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
onTouchMove: se,
onTouchStart: oe,
ref: A
- }, /*#__PURE__*/ I.createElement(AAe, null), n)));
-}), LAe = [
+ }, /*#__PURE__*/ I.createElement(MAe, null), n)));
+}), zAe = [
"width",
"height",
"responsive",
@@ -67799,16 +67802,16 @@ var IAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
"title",
"desc"
];
-function RAe(e, t) {
+function BAe(e, t) {
if (e == null) return {};
- var n, r, i = zAe(e, t);
+ var n, r, i = VAe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function zAe(e, t) {
+function VAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67818,15 +67821,15 @@ function zAe(e, t) {
return n;
}
var B5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = qR(RAe(e, LAe));
- return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = qR(BAe(e, zAe));
+ return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(tK, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement(I5, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ I.createElement(IAe, {
+ }, a)) : /*#__PURE__*/ I.createElement(RAe, {
className: o,
style: s,
width: n,
@@ -67848,7 +67851,7 @@ var B5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ I.createElement(GEe, null, a)));
+ }, /*#__PURE__*/ I.createElement(qEe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -67871,30 +67874,30 @@ function H5(e, t) {
}
return n;
}
-function BAe(e) {
+function HAe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H5(Object(n), !0).forEach(function(t) {
- VAe(e, t, n[t]);
+ UAe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VAe(e, t, n) {
- return (t = HAe(t)) in e ? Object.defineProperty(e, t, {
+function UAe(e, t, n) {
+ return (t = WAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HAe(e) {
- var t = UAe(e, "string");
+function WAe(e) {
+ var t = GAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UAe(e, t) {
+function GAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67904,7 +67907,7 @@ function UAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var WAe = BAe({
+var KAe = HAe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -67920,7 +67923,7 @@ var WAe = BAe({
stackOffset: "none",
syncMethod: "index"
}, D5), U5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = CB(e.categoricalChartProps, WAe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = CB(e.categoricalChartProps, KAe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -67949,32 +67952,32 @@ var WAe = BAe({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ I.createElement(B5, V5({}, n, { ref: t })));
-}), GAe = ["axis"], KAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
+}), qAe = ["axis"], JAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: GAe,
+ validateTooltipEventTypes: qAe,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
-})), qAe = ["axis", "item"], W5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
+})), YAe = ["axis", "item"], W5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: qAe,
+ validateTooltipEventTypes: YAe,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function JAe(e) {
+function XAe(e) {
var t = XB();
return (0, I.useEffect)(() => {
- t(dAe(e));
+ t(pAe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var YAe = ["layout"];
+var ZAe = ["layout"];
function G5() {
return G5 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -67984,16 +67987,16 @@ function G5() {
return e;
}, G5.apply(null, arguments);
}
-function XAe(e, t) {
+function QAe(e, t) {
if (e == null) return {};
- var n, r, i = ZAe(e, t);
+ var n, r, i = $Ae(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ZAe(e, t) {
+function $Ae(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68012,30 +68015,30 @@ function K5(e, t) {
}
return n;
}
-function QAe(e) {
+function eje(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K5(Object(n), !0).forEach(function(t) {
- $Ae(e, t, n[t]);
+ tje(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Ae(e, t, n) {
- return (t = eje(t)) in e ? Object.defineProperty(e, t, {
+function tje(e, t, n) {
+ return (t = nje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eje(e) {
- var t = tje(e, "string");
+function nje(e) {
+ var t = rje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tje(e, t) {
+function rje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68045,7 +68048,7 @@ function tje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var q5 = QAe({
+var q5 = eje({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -68065,7 +68068,7 @@ var q5 = QAe({
innerRadius: 0,
outerRadius: "80%"
}, D5), J5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = CB(e.categoricalChartProps, q5), { layout: r } = n, i = XAe(n, YAe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = CB(e.categoricalChartProps, q5), { layout: r } = n, i = QAe(n, ZAe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -68093,7 +68096,7 @@ var q5 = QAe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ I.createElement(JAe, {
+ }), /*#__PURE__*/ I.createElement(XAe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -68118,26 +68121,26 @@ function X5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Y5(Object(n), !0).forEach(function(t) {
- nje(e, t, n[t]);
+ ije(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nje(e, t, n) {
- return (t = rje(t)) in e ? Object.defineProperty(e, t, {
+function ije(e, t, n) {
+ return (t = aje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rje(e) {
- var t = ije(e, "string");
+function aje(e) {
+ var t = oje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ije(e, t) {
+function oje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68147,24 +68150,24 @@ function ije(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var aje = ["axis"], oje = X5(X5({}, q5), {}, {
+var sje = ["axis"], cje = X5(X5({}, q5), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), sje = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = CB(e, oje);
+}), lje = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = CB(e, cje);
return /*#__PURE__*/ I.createElement(J5, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: aje,
+ validateTooltipEventTypes: sje,
tooltipPayloadSearcher: l2,
categoricalChartProps: n,
ref: t
});
-}), cje = ["axis"], lje = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
+}), uje = ["axis"], dje = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: cje,
+ validateTooltipEventTypes: uje,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
@@ -68185,26 +68188,26 @@ function Q5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Z5(Object(n), !0).forEach(function(t) {
- uje(e, t, n[t]);
+ $5(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uje(e, t, n) {
- return (t = dje(t)) in e ? Object.defineProperty(e, t, {
+function $5(e, t, n) {
+ return (t = fje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dje(e) {
- var t = fje(e, "string");
+function fje(e) {
+ var t = pje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fje(e, t) {
+function pje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68214,16 +68217,16 @@ function fje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var pje = ["axis", "item"], mje = Q5(Q5({}, q5), {}, {
+var mje = ["axis", "item"], hje = Q5(Q5({}, q5), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), $5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = CB(e, mje);
+}), gje = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = CB(e, hje);
return /*#__PURE__*/ I.createElement(J5, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: pje,
+ validateTooltipEventTypes: mje,
tooltipPayloadSearcher: l2,
categoricalChartProps: n,
ref: t
@@ -68240,7 +68243,7 @@ var t7 = {
light: "",
dark: ".dark"
}, n7 = Object.keys(t7);
-function hje(e) {
+function _je(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !n7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${n7.join(", ")}). Received empty object or invalid keys.`);
}
var r7 = I.createContext(null);
@@ -68254,7 +68257,7 @@ function a7({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = I.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return hje(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {
+ return _je(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, L.jsxs)("div", {
"data-slot": "chart",
@@ -68266,7 +68269,7 @@ function a7({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, L.jsx)(BG, {
+ /* @__PURE__ */ (0, L.jsx)(VG, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -68285,7 +68288,7 @@ function o7({ isLoading: e }) {
})
}) : null;
}
-function gje(e, t) {
+function vje(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -68300,7 +68303,7 @@ var s7 = ({ id: e, config: t }) => {
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : gje(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : vje(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(t7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, L.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -68314,15 +68317,15 @@ function l7(e) {
let t = n7.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var _je = (e = 10, t = 0, n = 70) => {
+var yje = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, vje = {
+}, bje = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, yje = {
+}, xje = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -68349,7 +68352,7 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", vje[p], yje[m], n),
+ className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", bje[p], xje[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, L.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
@@ -68363,7 +68366,7 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: bje(n, o)
+ style: Sje(n, o)
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: e7("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -68382,10 +68385,10 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function bje(e, t) {
+function Sje(e, t) {
return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(uSe, {
+var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(fSe, {
animationDuration: e,
...t
});
@@ -68402,7 +68405,7 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(xje, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(Cje, {
variant: l,
dataKey: r,
colorsCount: d
@@ -68411,8 +68414,8 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function xje({ variant: e, dataKey: t, colorsCount: n }) {
- let r = Sje(t, n), i = Cje(t, n);
+function Cje({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = wje(t, n), i = Tje(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, L.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -68444,10 +68447,10 @@ function xje({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function Sje(e, t) {
+function wje(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function Cje(e, t) {
+function Tje(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -68462,12 +68465,12 @@ function Cje(e, t) {
...n
};
}
-var p7 = Bq, m7 = () => null, h7 = {
+var p7 = Vq, m7 = () => null, h7 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function wje({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function Eje({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = I.useRef(null), [a, o] = I.useState(!1), s = (0, I.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, I.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -68513,7 +68516,7 @@ function wje({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function Tje({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function Dje({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = I.useRef(null), S = I.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = I.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = I.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -68547,7 +68550,7 @@ function Tje({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = wje({
+ }, [C, v]), { isDragging: A, bind: j } = Eje({
range: E,
totalPoints: C,
containerRef: x,
@@ -68603,7 +68606,7 @@ function Tje({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, L.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, L.jsx)(Eje, {
+ children: /* @__PURE__ */ (0, L.jsx)(Oje, {
data: e,
keys: S,
chartConfig: t,
@@ -68672,7 +68675,7 @@ function g7({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function Eje({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function Oje({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = I.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
colorsCount: l7(t)
@@ -68729,10 +68732,10 @@ function Eje({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, L.jsx)(BG, {
+ if (r === "line") return /* @__PURE__ */ (0, L.jsx)(VG, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(KAe, {
+ children: /* @__PURE__ */ (0, L.jsxs)(JAe, {
data: e,
margin: {
top: 4,
@@ -68756,7 +68759,7 @@ function Eje({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, L.jsx)(BG, {
+ return /* @__PURE__ */ (0, L.jsx)(VG, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, L.jsxs)(W5, {
@@ -68785,10 +68788,10 @@ function Eje({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, L.jsx)(BG, {
+ return /* @__PURE__ */ (0, L.jsx)(VG, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(lje, {
+ children: /* @__PURE__ */ (0, L.jsxs)(dje, {
data: e,
margin: {
top: 4,
@@ -68814,7 +68817,7 @@ function Eje({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function Dje({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function kje({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = I.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -68838,7 +68841,7 @@ function Dje({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var Oje = {
+var Aje = {
dots: ({ id: e }) => /* @__PURE__ */ (0, L.jsx)("pattern", {
id: e,
x: "0",
@@ -69011,7 +69014,7 @@ var Oje = {
})
};
function _7({ variant: e }) {
- let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = Oje[e];
+ let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = Aje[e];
return /* @__PURE__ */ (0, L.jsxs)(t2, {
zIndex: -1,
children: [/* @__PURE__ */ (0, L.jsxs)("defs", { children: [
@@ -69042,7 +69045,7 @@ function _7({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var v7 = 2, kje = "loading", Aje = 2e3, jje = "evil-stacked", Mje = .5, Nje = .05, Pje = [
+var v7 = 2, jje = "loading", Mje = 2e3, Nje = "evil-stacked", Pje = .5, Fje = .05, Ije = [
0,
.7,
.5,
@@ -69054,7 +69057,7 @@ function b7() {
return e;
}
function x7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = v7, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = $je(m, h), { visibleData: T, brushProps: E } = Dje({ data: t }), D = (0, I.useMemo)(() => {
+ let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = tMe(m, h), { visibleData: T, brushProps: E } = kje({ data: t }), D = (0, I.useMemo)(() => {
let e = I.Children.toArray(n), t = e.find((e) => (0, I.isValidElement)(e) && e.type === m7), r = (0, I.isValidElement)(t) ? t.props : {};
return {
slot: {
@@ -69097,7 +69100,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, L.jsx)(Tje, {
+ footer: O && !m && /* @__PURE__ */ (0, L.jsx)(Dje, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -69128,7 +69131,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, L.jsx)(_7, { variant: d }),
/* @__PURE__ */ (0, L.jsx)(O6, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, L.jsx)(eMe, {
+ m && /* @__PURE__ */ (0, L.jsx)(nMe, {
chartId: _,
onShimmerExit: w
})
@@ -69137,7 +69140,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function Fje({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+function Lje({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = b7(), b = (0, I.useId)().replace(/:/g, ""), x = Nf();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
@@ -69160,7 +69163,7 @@ function Fje({ dataKey: e, variant: t = "default", radius: n, animationType: r,
};
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(I8, {
dataKey: e,
- stackId: u ? jje : void 0,
+ stackId: u ? Nje : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -69177,44 +69180,44 @@ function Fje({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(Wje, {
+ /* @__PURE__ */ (0, L.jsx)(Kje, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, L.jsx)(Gje, {
+ t === "hatched" && /* @__PURE__ */ (0, L.jsx)(qje, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, L.jsx)(qje, {
+ t === "duotone" && /* @__PURE__ */ (0, L.jsx)(Yje, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(Jje, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(Xje, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, L.jsx)(Yje, {
+ t === "gradient" && /* @__PURE__ */ (0, L.jsx)(Zje, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, L.jsx)(Xje, {
+ t === "stripped" && /* @__PURE__ */ (0, L.jsx)(Qje, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, L.jsx)(Kje, {
+ s && /* @__PURE__ */ (0, L.jsx)(Jje, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, L.jsx)(Zje, {
+ o && /* @__PURE__ */ (0, L.jsx)($je, {
id: b,
dataKey: e
})
] })] });
}
-function Ije({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function Rje({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = b7();
return o ? null : /* @__PURE__ */ (0, L.jsx)(W8, {
tickLine: e,
@@ -69225,7 +69228,7 @@ function Ije({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function Lje({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+function zje({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = b7();
return s ? null : /* @__PURE__ */ (0, L.jsx)(Y8, {
tickLine: e,
@@ -69237,7 +69240,7 @@ function Lje({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function Rje({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function Bje({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = b7();
return /* @__PURE__ */ (0, L.jsx)(G6, {
strokeDasharray: e,
@@ -69246,7 +69249,7 @@ function Rje({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function zje({ variant: e, roundness: t, defaultIndex: n }) {
+function Vje({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = b7();
return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
cursor: !1,
@@ -69258,7 +69261,7 @@ function zje({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function Bje({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+function Hje({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = b7();
return /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -69272,7 +69275,7 @@ function Bje({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
});
}
var S7 = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = Vje(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : Hje(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = Uje({
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = Uje(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : Wje(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = Gje({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -69317,7 +69320,7 @@ var S7 = (e) => {
children: A
}) : A]
});
-}, Vje = (e, t, n, r, i) => {
+}, Uje = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -69332,11 +69335,11 @@ var S7 = (e) => {
break;
default: s = t;
}
- let c = s * Nje * 1e3, l = Mje * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * Fje * 1e3, l = Pje * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: Pje,
+ ease: Ije,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -69350,7 +69353,7 @@ var S7 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, Hje = (e, t, n) => {
+}, Wje = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -69359,10 +69362,10 @@ var S7 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, Uje = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, Gje = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, Wje = ({ id: e, dataKey: t, config: n }) => {
+}, Kje = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -69384,7 +69387,7 @@ var S7 = (e) => {
}, i);
})
});
-}, Gje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, qje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -69425,7 +69428,7 @@ var S7 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), Kje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), Jje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -69466,7 +69469,7 @@ var S7 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), qje = ({ id: e, dataKey: t, config: n }) => {
+] }), Yje = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -69534,7 +69537,7 @@ var S7 = (e) => {
})
})
] });
-}, Jje = ({ id: e, dataKey: t, config: n }) => {
+}, Xje = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -69602,7 +69605,7 @@ var S7 = (e) => {
})
})
] });
-}, Yje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, Zje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -69639,7 +69642,7 @@ var S7 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), Xje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), Qje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -69676,7 +69679,7 @@ var S7 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), Zje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+] }), $je = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -69696,35 +69699,35 @@ var S7 = (e) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), Qje = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), eMe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function $je(e, t = 12) {
+function tMe(e, t = 12) {
let [n, r] = (0, I.useState)(!1), i = (0, I.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, I.useMemo)(() => _je(t, 20, 80), [t, n]),
+ loadingData: (0, I.useMemo)(() => yje(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var eMe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(I8, {
- dataKey: kje,
+var nMe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(I8, {
+ dataKey: jje,
fill: "currentColor",
fillOpacity: .15,
radius: v7,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(tMe, {
+}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(rMe, {
chartId: e,
onShimmerExit: t
-}) })] }), tMe = ({ chartId: e, onShimmerExit: t }) => {
- let n = Qje(), r = (0, I.useRef)(-1);
+}) })] }), rMe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = eMe(), r = (0, I.useRef)(-1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -69755,7 +69758,7 @@ var eMe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: Aje / 1e3,
+ duration: Mje / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -69777,7 +69780,7 @@ var eMe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
})
] });
};
-x7.Bar = Fje, x7.XAxis = Ije, x7.YAxis = Lje, x7.Grid = Rje, x7.Tooltip = zje, x7.Legend = Bje, x7.Brush = m7;
+x7.Bar = Lje, x7.XAxis = Rje, x7.YAxis = zje, x7.Grid = Bje, x7.Tooltip = Vje, x7.Legend = Hje, x7.Brush = m7;
//#endregion
//#region src/react/charts/chart-card.tsx
var C7 = `${aw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
@@ -69807,7 +69810,7 @@ var T7 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], E7 = (e) => ({ light: [e] }), D7 = (e) => `s${e}`;
-function nMe(e) {
+function iMe(e) {
return Object.fromEntries(e.map((e, t) => [D7(t), {
label: e,
colors: E7(T7[t % T7.length])
@@ -69832,7 +69835,7 @@ function k7({ swatch: e, name: t, value: n }) {
});
}
var A7 = "size-2.5 shrink-0 rounded-xs";
-function rMe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+function aMe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = i7(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
@@ -69857,7 +69860,7 @@ function rMe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function j7({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, L.jsx)(d7, {
cursor: !1,
- content: /* @__PURE__ */ (0, L.jsx)(rMe, {
+ content: /* @__PURE__ */ (0, L.jsx)(aMe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -69934,7 +69937,7 @@ var F7 = [
"周六",
"周日"
], I7 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function iMe(e) {
+function oMe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -69951,7 +69954,7 @@ function iMe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function aMe(e) {
+function sMe(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -69990,19 +69993,19 @@ var L7 = 14, R7 = 17, z7 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, oMe = {
+}, cMe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function sMe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function lMe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${oMe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${cMe[a]}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -70060,7 +70063,7 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, L.jsx)(sMe, {
+ }), g && _ ? /* @__PURE__ */ (0, L.jsx)(lMe, {
cell: g,
series: t.series,
tone: c,
@@ -70076,7 +70079,7 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var cMe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
+var uMe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
x: 0,
y: 18 + t * R7 + 7,
dominantBaseline: "middle",
@@ -70090,7 +70093,7 @@ var cMe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) =>
children: t
}, t))] });
function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = iMe(e), s = aMe(e);
+ let o = oMe(e), s = sMe(e);
return s.cells.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
children: [/* @__PURE__ */ (0, L.jsx)(B7, {
@@ -70101,7 +70104,7 @@ function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: cMe,
+ axis: uMe,
footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
}), /* @__PURE__ */ (0, L.jsx)(B7, {
title: n,
@@ -70173,14 +70176,14 @@ function H7({ children: e, className: t = "", previewCount: n = 10 }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var lMe = "30%", uMe = "100%", U7 = 5, W7 = 14, dMe = 5, G7 = 1500, K7 = (0, I.createContext)(null);
+var dMe = "30%", fMe = "100%", U7 = 5, W7 = 14, pMe = 5, G7 = 1500, K7 = (0, I.createContext)(null);
function q7() {
let e = (0, I.use)(K7);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = lMe, outerRadius: l = uMe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = vMe(f), v = hMe(o), y = (0, I.useCallback)((e, t) => {
+function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = dMe, outerRadius: l = fMe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = bMe(f), v = _Me(o), y = (0, I.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -70212,7 +70215,7 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)($5, {
+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(gje, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -70231,8 +70234,8 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, L.jsx)(_7, { variant: p }),
r,
- f && /* @__PURE__ */ (0, L.jsx)(yMe, {}),
- /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(gMe, {
+ f && /* @__PURE__ */ (0, L.jsx)(xMe, {}),
+ /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(vMe, {
config: e,
chartId: m
}) })
@@ -70241,7 +70244,7 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function fMe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+function mMe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = q7();
return s ? null : /* @__PURE__ */ (0, L.jsx)(y6, {
dataKey: e,
@@ -70266,7 +70269,7 @@ function fMe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground
...a
});
}
-function pMe({ variant: e, roundness: t, defaultIndex: n }) {
+function hMe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = q7();
return i ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
defaultIndex: n,
@@ -70279,7 +70282,7 @@ function pMe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function mMe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function gMe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = q7();
return a ? null : /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -70293,7 +70296,7 @@ function mMe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function hMe(e) {
+function _Me(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -70309,7 +70312,7 @@ function hMe(e) {
};
}
}
-var gMe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var vMe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = l7(n);
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -70332,13 +70335,13 @@ var gMe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function _Me() {
- return Array.from({ length: dMe }, (e, t) => ({
+function yMe() {
+ return Array.from({ length: pMe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function vMe(e) {
+function bMe(e) {
let [t, n] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -70346,9 +70349,9 @@ function vMe(e) {
n((e) => e + 1);
}, G7);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => _Me(), [t]);
+ }, [e]), (0, I.useMemo)(() => yMe(), [t]);
}
-var yMe = () => /* @__PURE__ */ (0, L.jsx)(y6, {
+var xMe = () => /* @__PURE__ */ (0, L.jsx)(y6, {
dataKey: "value",
cornerRadius: U7,
barSize: W7,
@@ -70362,17 +70365,17 @@ var yMe = () => /* @__PURE__ */ (0, L.jsx)(y6, {
fillOpacity: .25
})
});
-J7.RadialBar = fMe, J7.Tooltip = pMe, J7.Legend = mMe;
+J7.RadialBar = mMe, J7.Tooltip = hMe, J7.Legend = gMe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var bMe = [
+var SMe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], xMe = [
+], CMe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -70413,13 +70416,13 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, L.jsxs)(J7, {
data: f,
nameKey: "slice",
- config: nMe(s.map((e) => e.name)),
- max: ipe(s.map((e) => e.value)),
+ config: iMe(s.map((e) => e.name)),
+ max: ope(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, L.jsx)(J7.RadialBar, {
dataKey: "value",
- barSize: ape(s.length),
+ barSize: spe(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, L.jsx)(dY, {
...e,
@@ -70445,13 +70448,13 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${xMe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${CMe[t % 6]}`,
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, L.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${bMe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${SMe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, L.jsx)("b", {
@@ -70470,7 +70473,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var SMe = 10, X7 = T7[5], CMe = T7[4], wMe = `${aw()} flex flex-col gap-4`, TMe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", EMe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", DMe = "开始播放后,这里会显示最近的真实观看证据。", OMe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", kMe = "添加媒体文件夹后,这里会显示存储空间。";
+var wMe = 10, X7 = T7[5], TMe = T7[4], EMe = `${aw()} flex flex-col gap-4`, DMe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", OMe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", kMe = "开始播放后,这里会显示最近的真实观看证据。", AMe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", jMe = "添加媒体文件夹后,这里会显示存储空间。";
function Z7({ term: e, value: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -70523,14 +70526,14 @@ function $7({ term: e, figure: t, unit: n }) {
}
function e9({ headline: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: `${wMe} md:flex-row md:gap-6`,
+ className: `${EMe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function AMe({ data: t, configurable: n, openMediaSettings: r }) {
+function MMe({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -70558,7 +70561,7 @@ function AMe({ data: t, configurable: n, openMediaSettings: r }) {
unit: "个视频",
series: "视频",
color: X7,
- rows: lpe(t.by_length)
+ rows: dpe(t.by_length)
}),
/* @__PURE__ */ (0, L.jsx)(P7, {
title: "画质",
@@ -70573,7 +70576,7 @@ function AMe({ data: t, configurable: n, openMediaSettings: r }) {
series: "条目",
color: X7,
layout: "horizontal",
- rows: spe(t.by_medium)
+ rows: lpe(t.by_medium)
})
]
})]
@@ -70591,10 +70594,10 @@ function AMe({ data: t, configurable: n, openMediaSettings: r }) {
size: "small",
children: "添加关注"
})] }),
- children: TMe
+ children: DMe
});
}
-function jMe({ data: e }) {
+function NMe({ data: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(V7, {
activity: e.play_activity,
title: "播放时间",
@@ -70609,11 +70612,11 @@ function jMe({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: CMe,
- rows: dpe(e.replays)
+ color: TMe,
+ rows: ppe(e.replays)
})] });
}
-function MMe({ attribution: e }) {
+function PMe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
@@ -70646,7 +70649,7 @@ function MMe({ attribution: e }) {
]
});
}
-function NMe({ volume: e }) {
+function FMe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, L.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -70685,10 +70688,10 @@ function NMe({ volume: e }) {
]
});
}
-function PMe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function IMe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(NMe, { volume: e }, `${e.kind}:${e.label}`))
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(FMe, { volume: e }, `${e.kind}:${e.label}`))
}) : /* @__PURE__ */ (0, L.jsx)(ow, {
shell: "plain",
icon: VS,
@@ -70698,12 +70701,12 @@ function PMe({ volumes: e, configurable: t, openMediaSettings: n }) {
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: kMe
+ children: jMe
});
}
-function FMe({ tags: e, tagLabel: t, onTag: n }) {
+function LMe({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)(H7, {
- previewCount: SMe,
+ previewCount: wMe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, L.jsx)("li", {
className: "min-w-0",
@@ -70737,10 +70740,10 @@ function FMe({ tags: e, tagLabel: t, onTag: n }) {
size: "small",
children: "补全资料"
}),
- children: EMe
+ children: OMe
});
}
-function IMe({ rows: e }) {
+function RMe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
@@ -70752,14 +70755,14 @@ function IMe({ rows: e }) {
children: [/* @__PURE__ */ (0, L.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, L.jsx)("a", {
- href: rpe(e),
+ href: ape(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, L.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, L.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, L.jsx)("span", { children: npe(e) })]
+ children: [/* @__PURE__ */ (0, L.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, L.jsx)("span", { children: ipe(e) })]
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -70783,10 +70786,10 @@ function IMe({ rows: e }) {
size: "small",
children: "浏览馆藏"
}),
- children: DMe
+ children: kMe
});
}
-function LMe({ sources: e, videos: t }) {
+function zMe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)("article", {
@@ -70826,17 +70829,17 @@ function LMe({ sources: e, videos: t }) {
size: "small",
children: "补全资料"
}),
- children: OMe
+ children: AMe
});
}
function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, L.jsx)(rA, {
+ return /* @__PURE__ */ (0, L.jsx)(iA, {
id: e,
- className: vD({
+ className: yD({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, L.jsx)(SD, {
+ children: /* @__PURE__ */ (0, L.jsx)(CD, {
label: t,
icon: i,
accent: a,
@@ -70845,15 +70848,15 @@ function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function RMe(e) {
+function BMe(e) {
let t = Ft({
queryKey: RR,
queryFn: ({ signal: e }) => zR(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "读取失败",
- children: t.error ? K(t.error) : "读取统计失败"
+ title: "馆藏统计读取失败",
+ children: t.error ? K(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
let r = n.consumption, i = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = BR(n.tag_cov, n.attribution.videos);
return /* @__PURE__ */ (0, L.jsxs)(cw, { children: [
@@ -70861,12 +70864,12 @@ function RMe(e) {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${a(s)}`
}),
- /* @__PURE__ */ (0, L.jsxs)(tA, {
+ /* @__PURE__ */ (0, L.jsxs)(nA, {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsxs)(nA, {
+ /* @__PURE__ */ (0, L.jsxs)(rA, {
"aria-label": "统计视图",
- className: yD,
+ className: bD,
children: [
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "inventory",
@@ -70882,7 +70885,7 @@ function RMe(e) {
icon: RS,
accent: 1,
figure: r.played.toLocaleString(),
- detail: tpe(r.play_seconds)
+ detail: rpe(r.play_seconds)
}),
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "coverage",
@@ -70902,14 +70905,14 @@ function RMe(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "inventory",
- children: /* @__PURE__ */ (0, L.jsx)(AMe, {
+ children: /* @__PURE__ */ (0, L.jsx)(MMe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, L.jsxs)(iA, {
+ /* @__PURE__ */ (0, L.jsxs)(aA, {
id: "viewing",
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, L.jsx)(e9, {
@@ -70955,9 +70958,9 @@ function RMe(e) {
})
]
})
- }), /* @__PURE__ */ (0, L.jsx)(jMe, { data: n })]
+ }), /* @__PURE__ */ (0, L.jsx)(NMe, { data: n })]
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "coverage",
children: /* @__PURE__ */ (0, L.jsx)(e9, {
headline: /* @__PURE__ */ (0, L.jsx)($7, {
@@ -70965,10 +70968,10 @@ function RMe(e) {
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, L.jsx)(MMe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, L.jsx)(PMe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "storage",
children: /* @__PURE__ */ (0, L.jsx)(e9, {
headline: /* @__PURE__ */ (0, L.jsx)($7, {
@@ -70976,7 +70979,7 @@ function RMe(e) {
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, L.jsx)(PMe, {
+ children: /* @__PURE__ */ (0, L.jsx)(IMe, {
volumes: n.storage_volumes,
...e
})
@@ -70984,50 +70987,50 @@ function RMe(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(tA, {
+ /* @__PURE__ */ (0, L.jsxs)(nA, {
className: `${aw({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, L.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, L.jsxs)(nA, {
+ children: /* @__PURE__ */ (0, L.jsxs)(rA, {
"aria-label": "统计维度",
- className: xN,
+ className: SN,
children: [
- /* @__PURE__ */ (0, L.jsx)(rA, {
+ /* @__PURE__ */ (0, L.jsx)(iA, {
id: "tags",
- className: SN,
+ className: CN,
children: "内容标签"
}),
- /* @__PURE__ */ (0, L.jsx)(rA, {
+ /* @__PURE__ */ (0, L.jsx)(iA, {
id: "recent",
- className: SN,
+ className: CN,
children: "最近看过"
}),
- /* @__PURE__ */ (0, L.jsx)(rA, {
+ /* @__PURE__ */ (0, L.jsx)(iA, {
id: "sources",
- className: SN,
+ className: CN,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(FMe, {
+ children: /* @__PURE__ */ (0, L.jsx)(LMe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(IMe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, L.jsx)(RMe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, L.jsx)(iA, {
+ /* @__PURE__ */ (0, L.jsx)(aA, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(LMe, {
+ children: /* @__PURE__ */ (0, L.jsx)(zMe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -71038,7 +71041,7 @@ function RMe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function zMe(e, t) {
+function VMe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -71062,13 +71065,13 @@ function a9(e, t) {
function o9(e) {
return e.value;
}
-function BMe(e) {
+function HMe(e) {
return e.index;
}
-function VMe(e) {
+function UMe(e) {
return e.nodes;
}
-function HMe(e) {
+function WMe(e) {
return e.links;
}
function s9(e, t) {
@@ -71083,8 +71086,8 @@ function c9({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function UMe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = BMe, c = zMe, l, u, d = VMe, f = HMe, p = 6;
+function GMe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = HMe, c = VMe, l, u, d = UMe, f = WMe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -71270,7 +71273,7 @@ function UMe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, WMe = u9 - d9;
+var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, KMe = u9 - d9;
function f9() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -71311,7 +71314,7 @@ f9.prototype = p9.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > WMe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > KMe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -71329,27 +71332,27 @@ function m9(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function GMe(e) {
+function qMe(e) {
return e[0];
}
-function KMe(e) {
+function JMe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var qMe = Array.prototype.slice;
+var YMe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function JMe(e) {
+function XMe(e) {
return e.source;
}
-function YMe(e) {
+function ZMe(e) {
return e.target;
}
-function XMe(e) {
- var t = JMe, n = YMe, r = GMe, i = KMe, a = null;
+function QMe(e) {
+ var t = XMe, n = ZMe, r = qMe, i = JMe, a = null;
function o() {
- var o, s = qMe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = YMe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = p9(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
@@ -71364,48 +71367,48 @@ function XMe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function ZMe(e, t, n, r, i) {
+function $Me(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function QMe() {
- return XMe(ZMe);
+function eNe() {
+ return QMe($Me);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function $Me(e) {
+function tNe(e) {
return [e.source.x1, e.y0];
}
-function eNe(e) {
+function nNe(e) {
return [e.target.x0, e.y1];
}
-function tNe() {
- return QMe().source($Me).target(eNe);
+function rNe() {
+ return eNe().source(tNe).target(nNe);
}
//#endregion
//#region src/react/taste/taste.ts
-var nNe = "/api/taste", h9 = "/api/taste/refresh", rNe = "/api/taste/import", iNe = "/api/taste/source", g9 = (e) => ["taste", e], aNe = ["taste", "refresh"], oNe = [
+var iNe = "/api/taste", h9 = "/api/taste/refresh", aNe = "/api/taste/import", oNe = "/api/taste/source", g9 = (e) => ["taste", e], sNe = ["taste", "refresh"], cNe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], _9 = (e, t) => iw(`${nNe}?window=${e}`, t), sNe = (e) => iw(h9, e);
-async function cNe(e, t) {
+], _9 = (e, t) => iw(`${iNe}?window=${e}`, t), lNe = (e) => iw(h9, e);
+async function uNe(e, t) {
await X.fetchQuery({
queryKey: g9(e),
queryFn: () => _9(e, t)
});
}
-var lNe = (e) => q(h9, {
+var dNe = (e) => q(h9, {
window: e,
background: !0
-}), uNe = (e, t) => q(iNe, {
+}), fNe = (e, t) => q(oNe, {
operation: "remove",
source_key: e,
window: t
});
-async function dNe(e) {
- let t = await fetch(rNe, {
+async function pNe(e) {
+ let t = await fetch(aNe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -71423,21 +71426,21 @@ async function dNe(e) {
}
return n;
}
-var fNe = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", pNe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, mNe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function hNe(e) {
+var mNe = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", hNe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, gNe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function _Ne(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function gNe(e) {
- let t = e.map(mNe), n = Math.max(1, ...t);
+function vNe(e) {
+ let t = e.map(gNe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var y9 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function _Ne(e) {
+function yNe(e) {
let t = y9(e, 6);
return t.length < 3 ? [] : t;
}
@@ -71448,10 +71451,10 @@ var b9 = {
source: 145,
target: 545
};
-function vNe(e = []) {
+function bNe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = UMe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = GMe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -71466,7 +71469,7 @@ function vNe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = tNe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = rNe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -71496,7 +71499,7 @@ function vNe(e = []) {
total: a
};
}
-var yNe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var xNe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = I.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
@@ -71619,14 +71622,14 @@ var T9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
T9.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var bNe = 1, xNe = .3, SNe = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
+var SNe = 1, CNe = .3, wNe = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
function k9() {
let e = (0, I.use)(O9);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function A9({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = FNe(c, l), m = (0, I.useCallback)((e) => {
+ let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = LNe(c, l), m = (0, I.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, I.useMemo)(() => ({
config: e,
@@ -71644,32 +71647,32 @@ function A9({ config: e, data: t, children: n, className: r, chartProps: i, back
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(sje, {
+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(lje, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, L.jsx)(_7, { variant: a }),
n,
- c && /* @__PURE__ */ (0, L.jsx)(INe, {})
+ c && /* @__PURE__ */ (0, L.jsx)(RNe, {})
]
})]
})
});
}
-function CNe({ dataKey: e, variant: t = "filled", fillOpacity: n = xNe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+function TNe({ dataKey: e, variant: t = "filled", fillOpacity: n = CNe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = k9(), d = (0, I.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = kNe(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = jNe(a, d, e, p.dot);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(U3, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: bNe,
+ strokeWidth: SNe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -71682,29 +71685,29 @@ function CNe({ dataKey: e, variant: t = "filled", fillOpacity: n = xNe, isGlowin
},
...o
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(ANe, {
+ /* @__PURE__ */ (0, L.jsx)(MNe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, L.jsx)(jNe, {
+ /* @__PURE__ */ (0, L.jsx)(NNe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, L.jsx)(MNe, {
+ m && /* @__PURE__ */ (0, L.jsx)(PNe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, L.jsx)(NNe, {
+ r && /* @__PURE__ */ (0, L.jsx)(FNe, {
id: d,
dataKey: e
})
] })] });
}
var j9 = () => null, M9 = () => null;
-function wNe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+function ENe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, L.jsx)(I4, {
gridType: e,
stroke: t,
@@ -71713,7 +71716,7 @@ function wNe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function TNe({ tick: e = {
+function DNe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
@@ -71724,7 +71727,7 @@ function TNe({ tick: e = {
...n
});
}
-function ENe({ tick: e = {
+function ONe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
@@ -71736,7 +71739,7 @@ function ENe({ tick: e = {
...r
});
}
-function DNe({ variant: e, roundness: t, defaultIndex: n }) {
+function kNe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = k9();
return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
defaultIndex: n,
@@ -71748,7 +71751,7 @@ function DNe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function ONe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function ANe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = k9();
return i ? null : /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -71761,7 +71764,7 @@ function ONe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var kNe = (e, t, n, r) => {
+var jNe = (e, t, n, r) => {
let i = !1, a = !1;
return I.Children.forEach(e, (e) => {
if ((0, I.isValidElement)(e)) {
@@ -71803,7 +71806,7 @@ var kNe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), ANe = ({ id: e, dataKey: t, config: n }) => {
+}) }), MNe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -71816,7 +71819,7 @@ var kNe = (e, t, n, r) => {
colorsCount: r
})
});
-}, jNe = ({ id: e, dataKey: t, config: n }) => {
+}, NNe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -71829,7 +71832,7 @@ var kNe = (e, t, n, r) => {
colorsCount: r
})
});
-}, MNe = ({ id: e, dataKey: t, config: n }) => {
+}, PNe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, L.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
@@ -71842,7 +71845,7 @@ var kNe = (e, t, n, r) => {
opacities: i
})
});
-}, NNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+}, FNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -71862,7 +71865,7 @@ var kNe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), PNe = (e) => [
+}), INe = (e) => [
"A",
"B",
"C",
@@ -71873,7 +71876,7 @@ var kNe = (e, t, n, r) => {
skill: e,
[D9]: 30 + Math.random() * 70
}));
-function FNe(e, t = SNe) {
+function LNe(e, t = wNe) {
let [n, r] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -71881,9 +71884,9 @@ function FNe(e, t = SNe) {
r((e) => e + 1);
}, E9);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => PNe(t), [t, n]);
+ }, [e]), (0, I.useMemo)(() => INe(t), [t, n]);
}
-var INe = () => /* @__PURE__ */ (0, L.jsx)(U3, {
+var RNe = () => /* @__PURE__ */ (0, L.jsx)(U3, {
dataKey: D9,
stroke: "currentColor",
strokeOpacity: .3,
@@ -71895,17 +71898,17 @@ var INe = () => /* @__PURE__ */ (0, L.jsx)(U3, {
animationDuration: E9,
animationEasing: "ease-in-out"
});
-A9.Radar = CNe, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = wNe, A9.PolarAngleAxis = TNe, A9.PolarRadiusAxis = ENe, A9.Tooltip = DNe, A9.Legend = ONe;
+A9.Radar = TNe, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = ENe, A9.PolarAngleAxis = DNe, A9.PolarRadiusAxis = ONe, A9.Tooltip = kNe, A9.Legend = ANe;
//#endregion
//#region src/react/taste/charts.tsx
-var LNe = [
+var zNe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], RNe = [
+], BNe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -71915,7 +71918,7 @@ var LNe = [
], P9 = { value: {
label: "标签命中",
colors: E7(T7[3])
-} }, zNe = [
+} }, VNe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -71925,20 +71928,20 @@ var LNe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], BNe = 26, VNe = { radius: P9.value }, HNe = (e, t) => Math.sqrt(e / t);
-function UNe({ rows: e, label: t }) {
- let n = _Ne(e);
+], HNe = 26, UNe = { radius: P9.value }, WNe = (e, t) => Math.sqrt(e / t);
+function GNe({ rows: e, label: t }) {
+ let n = yNe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: HNe(e.value, r)
+ radius: WNe(e.value, r)
}));
return /* @__PURE__ */ (0, L.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
children: /* @__PURE__ */ (0, L.jsxs)(A9, {
data: i,
- config: VNe,
+ config: UNe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
@@ -71955,17 +71958,17 @@ function UNe({ rows: e, label: t }) {
})
});
}
-function WNe({ rows: e, label: t }) {
+function KNe({ rows: e, label: t }) {
let n = y9(e, 8);
return n.length ? /* @__PURE__ */ (0, L.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${zNe[n.length]}`,
+ className: `flex grow flex-col ${VNe[n.length]}`,
children: /* @__PURE__ */ (0, L.jsxs)(x7, {
data: n,
config: P9,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: BNe },
+ chartProps: { maxBarSize: HNe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, L.jsx)(x7.YAxis, {
@@ -71989,8 +71992,8 @@ function WNe({ rows: e, label: t }) {
})
}) : null;
}
-function GNe({ flows: e }) {
- let [t, n] = (0, I.useState)(null), r = vNe(e);
+function qNe({ flows: e }) {
+ let [t, n] = (0, I.useState)(null), r = bNe(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, L.jsxs)("section", {
@@ -72018,7 +72021,7 @@ function GNe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${LNe[e.color]}`,
+ className: `outline-none transition-opacity ${zNe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -72052,14 +72055,14 @@ function GNe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? RNe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? BNe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, L.jsxs)("text", {
x: x9[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [yNe(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
+ children: [xNe(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
x: x9[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -72077,11 +72080,11 @@ function GNe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var KNe = 10, F9 = XC(cA, lA, "text-body-2-medium"), I9 = `${aw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", qNe = "读取运行 Peach 的这台电脑上的浏览记录", JNe = "导入或读取浏览记录后,这里会列出已采集设备。", YNe = "馆藏里暂时没有对得上浏览信号的标签。", XNe = "采集浏览记录后,这里会显示聚合后的口味证据。", ZNe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", QNe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", $Ne = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", ePe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", tPe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
+var JNe = 10, F9 = XC(lA, uA, "text-body-2-medium"), I9 = `${aw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", YNe = "读取运行 Peach 的这台电脑上的浏览记录", XNe = "导入或读取浏览记录后,这里会列出已采集设备。", ZNe = "馆藏里暂时没有对得上浏览信号的标签。", QNe = "采集浏览记录后,这里会显示聚合后的口味证据。", $Ne = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", ePe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", tPe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", nPe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", rPe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: vD(),
- children: /* @__PURE__ */ (0, L.jsx)(SD, {
+ className: yD(),
+ children: /* @__PURE__ */ (0, L.jsx)(CD, {
label: t,
icon: e,
accent: i,
@@ -72104,22 +72107,22 @@ function B9({ name: e, domain: t }) {
})]
});
}
-function nPe({ html: e }) {
+function iPe({ html: e }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${mL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function rPe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+function aPe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
if (!e.length) return /* @__PURE__ */ (0, L.jsx)(ow, {
shell: "plain",
icon: QS,
title: "暂无足够证据",
children: r
});
- let o = gNe(e);
+ let o = vNe(e);
return /* @__PURE__ */ (0, L.jsx)(H7, {
- previewCount: KNe,
+ previewCount: JNe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
@@ -72146,7 +72149,7 @@ function rPe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(nPe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(iPe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -72158,7 +72161,7 @@ function rPe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: hNe(e)
+ children: _Ne(e)
})]
}),
s ? /* @__PURE__ */ (0, L.jsx)(DS, {
@@ -72182,23 +72185,23 @@ function rPe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
});
}
function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, L.jsxs)(tA, {
+ return /* @__PURE__ */ (0, L.jsxs)(nA, {
className: `${aw({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, L.jsx)(nA, {
+ children: /* @__PURE__ */ (0, L.jsx)(rA, {
"aria-label": e,
- className: xN,
- children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(rA, {
+ className: SN,
+ children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(iA, {
id: e.id,
- className: SN,
+ className: CN,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(iA, {
+ }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(aA, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(rPe, {
+ children: /* @__PURE__ */ (0, L.jsx)(aPe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -72206,7 +72209,7 @@ function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function iPe({ data: e, onSignal: t, navigate: n }) {
+function oPe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -72281,12 +72284,12 @@ function iPe({ data: e, onSignal: t, navigate: n }) {
shell: "plain",
icon: QS,
title: "还没有可探索的入口",
- children: YNe
+ children: ZNe
})
]
});
}
-function aPe({ onboarding: e, done: t }) {
+function sPe({ onboarding: e, done: t }) {
let [n, r] = (0, I.useState)(() => {
try {
return localStorage.getItem(R9) === "1";
@@ -72299,17 +72302,17 @@ function aPe({ onboarding: e, done: t }) {
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, L.jsxs)(MA, {
+ children: /* @__PURE__ */ (0, L.jsxs)(NA, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: QNe
+ children: ePe
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: $Ne
+ children: tPe
}),
/* @__PURE__ */ (0, L.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -72339,7 +72342,7 @@ function aPe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ePe
+ children: nPe
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
@@ -72359,7 +72362,7 @@ function aPe({ onboarding: e, done: t }) {
})
});
}
-function oPe({ busy: e, onRefresh: t, onImport: n }) {
+function cPe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -72369,7 +72372,7 @@ function oPe({ busy: e, onRefresh: t, onImport: n }) {
"data-variant": "primary",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
leadingIcon: NS,
- title: qNe,
+ title: YNe,
onClick: t,
...Y(e),
children: "读取浏览器历史"
@@ -72382,14 +72385,14 @@ function oPe({ busy: e, onRefresh: t, onImport: n }) {
"aria-expanded": i,
onClick: () => a(!0)
})]
- }), /* @__PURE__ */ (0, L.jsx)(ck, {
+ }), /* @__PURE__ */ (0, L.jsx)(lk, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: sA,
- children: /* @__PURE__ */ (0, L.jsxs)(yk, {
+ className: cA,
+ children: /* @__PURE__ */ (0, L.jsxs)(bk, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, L.jsxs)("button", {
@@ -72412,9 +72415,9 @@ function oPe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function sPe({ sources: e, window: t, toast: n }) {
+function lPe({ sources: e, window: t, toast: n }) {
let r = It({
- mutationFn: (e) => uNe(e, t),
+ mutationFn: (e) => fNe(e, t),
onSuccess: (e) => {
X.setQueryData(g9(t), e.dashboard), n("已移除口味数据源");
}
@@ -72466,7 +72469,7 @@ function sPe({ sources: e, window: t, toast: n }) {
onClick: () => {
r.isPending || g({
title: "移除口味数据源",
- body: tPe,
+ body: rPe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -72478,26 +72481,26 @@ function sPe({ sources: e, window: t, toast: n }) {
shell: "plain",
icon: PS,
title: "还没有数据源",
- children: JNe
+ children: XNe
})
]
});
}
-function cPe(e) {
+function uPe(e) {
let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: o } = e, [s, c] = (0, I.useState)("all"), [l, u] = (0, I.useState)("browser"), d = (0, I.useRef)(null), f = Ft({
queryKey: g9(s),
queryFn: ({ signal: e }) => _9(s, e),
placeholderData: Pe
- }), { job: p, running: m, outcome: h, start: g } = ej({
- queryKey: aNe,
- queryFn: ({ signal: e }) => sNe(e),
- start: () => lNe(s),
- idlePollMs: fNe,
+ }), { job: p, running: m, outcome: h, start: g } = tj({
+ queryKey: sNe,
+ queryFn: ({ signal: e }) => lNe(e),
+ start: () => dNe(s),
+ idlePollMs: mNe,
onFinish: (e) => {
e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = It({
- mutationFn: (e) => dNe(e),
+ mutationFn: (e) => pNe(e),
onSuccess: (e) => {
X.setQueryData(g9("all"), e.dashboard), c("all"), r("已导入口味数据");
}
@@ -72509,45 +72512,45 @@ function cPe(e) {
}, b = f.data;
if (!b) return /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: "读取失败",
+ title: "口味分析读取失败",
children: f.error ? K(f.error) : "读取口味分析失败"
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? K(g.error) : _.error ? K(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
return /* @__PURE__ */ (0, L.jsxs)(cw, { children: [
- /* @__PURE__ */ (0, L.jsxs)(tA, {
+ /* @__PURE__ */ (0, L.jsxs)(nA, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, L.jsxs)(nA, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(rA, {
"aria-label": "口味证据来源",
- className: xN,
- children: [/* @__PURE__ */ (0, L.jsx)(rA, {
+ className: SN,
+ children: [/* @__PURE__ */ (0, L.jsx)(iA, {
id: "browser",
- className: SN,
+ className: CN,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, L.jsx)(rA, {
+ }), /* @__PURE__ */ (0, L.jsx)(iA, {
id: "peach",
- className: SN,
+ className: CN,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(YA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
"aria-label": "分析范围",
selectedKey: s,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: oNe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {
+ children: cNe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ZA, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(oPe, {
+ /* @__PURE__ */ (0, L.jsx)(cPe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -72563,7 +72566,7 @@ function cPe(e) {
]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(aPe, {
+ /* @__PURE__ */ (0, L.jsx)(sPe, {
onboarding: o,
done: !!(x.history_sources || b.updated_at)
}),
@@ -72589,12 +72592,12 @@ function cPe(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(iA, {
+ /* @__PURE__ */ (0, L.jsxs)(aA, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: yD,
+ className: bD,
children: [
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 0,
@@ -72635,7 +72638,7 @@ function cPe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, L.jsx)(UNe, {
+ /* @__PURE__ */ (0, L.jsx)(GNe, {
rows: T,
label: "主要口味维度"
}),
@@ -72646,14 +72649,14 @@ function cPe(e) {
]
}), /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, L.jsx)(WNe, {
+ children: T.length ? /* @__PURE__ */ (0, L.jsx)(KNe, {
rows: T,
label: "口味维度排名"
}) : /* @__PURE__ */ (0, L.jsx)(ow, {
shell: "plain",
icon: QS,
title: "暂无口味维度",
- children: XNe
+ children: QNe
})
})]
}),
@@ -72669,7 +72672,7 @@ function cPe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, L.jsx)(GNe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, L.jsx)(qNe, { flows: b.creator_flows }),
/* @__PURE__ */ (0, L.jsx)(V9, {
label: "浏览器口味维度",
onSignal: t,
@@ -72712,26 +72715,26 @@ function cPe(e) {
rows: E,
kind: "",
visual: "none",
- empty: ZNe
+ empty: $Ne
}
}
]
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(iA, {
+ /* @__PURE__ */ (0, L.jsxs)(aA, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: yD,
+ className: bD,
children: [
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 0,
icon: RS,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: pNe(x.peach_seconds || 0)
+ detail: hNe(x.peach_seconds || 0)
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 1,
@@ -72826,12 +72829,12 @@ function cPe(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(iPe, {
+ /* @__PURE__ */ (0, L.jsx)(oPe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, L.jsx)(sPe, {
+ /* @__PURE__ */ (0, L.jsx)(lPe, {
sources: b.sources || [],
window: s,
toast: r
@@ -72860,26 +72863,26 @@ function H9({ term: e, value: t, rest: n }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function lPe(e) {
+function dPe(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var uPe = (e) => {
+var fPe = (e) => {
switch (e) {
- case "success": return pPe;
- case "info": return hPe;
- case "warning": return mPe;
- case "error": return gPe;
+ case "success": return hPe;
+ case "info": return _Pe;
+ case "warning": return gPe;
+ case "error": return vPe;
default: return null;
}
-}, dPe = Array(12).fill(0), fPe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
+}, pPe = Array(12).fill(0), mPe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, dPe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
+}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, pPe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), pPe = /*#__PURE__*/ I.createElement("svg", {
+})))), hPe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -72890,7 +72893,7 @@ var uPe = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), mPe = /*#__PURE__*/ I.createElement("svg", {
+})), gPe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -72901,7 +72904,7 @@ var uPe = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), hPe = /*#__PURE__*/ I.createElement("svg", {
+})), _Pe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -72912,7 +72915,7 @@ var uPe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), gPe = /*#__PURE__*/ I.createElement("svg", {
+})), vPe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -72923,7 +72926,7 @@ var uPe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), _Pe = /*#__PURE__*/ I.createElement("svg", {
+})), yPe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -72944,7 +72947,7 @@ var uPe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), vPe = () => {
+})), bPe = () => {
let [e, t] = I.useState(document.hidden);
return I.useEffect(() => {
let e = () => {
@@ -72952,7 +72955,7 @@ var uPe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, yPe = 1, bPe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : yPe++, W9 = new class {
+}, xPe = 1, SPe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : xPe++, W9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -72962,7 +72965,7 @@ var uPe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - bPe;
+ let e = this.toasts.length - SPe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
let { message: t, ...n } = e, r = U9(e), i = this.pendingDismissals.get(r);
@@ -73040,7 +73043,7 @@ var uPe = (e) => {
type: "default",
message: e
});
- else if (SPe(e) && !e.ok) {
+ else if (wPe(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !I.isValidElement(r) ? r : { message: r };
this.create({
@@ -73093,7 +73096,7 @@ var uPe = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), xPe = (e, t) => W9.message(e, t), SPe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(xPe, {
+}(), CPe = (e, t) => W9.message(e, t), wPe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(CPe, {
success: W9.success,
info: W9.info,
warning: W9.warning,
@@ -73107,20 +73110,20 @@ var uPe = (e) => {
getHistory: () => W9.toasts,
getToasts: () => W9.getActiveToasts()
});
-lPe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+dPe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function K9(e) {
return e.label !== void 0;
}
-var CPe = 3, wPe = "24px", TPe = "16px", q9 = 4e3, EPe = 356, DPe = 14, OPe = 45, kPe = 200;
+var TPe = 3, EPe = "24px", DPe = "16px", q9 = 4e3, OPe = 356, kPe = 14, APe = 45, jPe = 200;
function J9(...e) {
return e.filter(Boolean).join(" ");
}
-function APe(e) {
+function MPe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var jPe = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, ne] = I.useState(!1), [F, re] = I.useState(!1), [ie, ae] = I.useState(0), [oe, se] = I.useState(0), ce = I.useRef(n.duration || y || q9), le = I.useRef(null), ue = I.useRef(null), L = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = vPe(), Ee = I.useMemo(() => e.swipeDirections ?? APe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
+var NPe = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, ne] = I.useState(!1), [F, re] = I.useState(!1), [ie, ae] = I.useState(0), [oe, se] = I.useState(0), ce = I.useRef(n.duration || y || q9), le = I.useRef(null), ue = I.useRef(null), L = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = bPe(), Ee = I.useMemo(() => e.swipeDirections ?? MPe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
ye.current = I.useMemo(() => he * x + we, [he, we]), I.useEffect(() => {
ce.current = _e;
}, [_e]), I.useEffect(() => {
@@ -73161,7 +73164,7 @@ var jPe = (e) => {
let ke = I.useCallback(() => {
N(!0), ae(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, kPe);
+ }, jPe);
}, [
n,
d,
@@ -73194,12 +73197,12 @@ var jPe = (e) => {
return w?.loading ? /*#__PURE__*/ I.createElement("div", {
className: J9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": z === "loading"
- }, w.loading) : /*#__PURE__*/ I.createElement(fPe, {
+ }, w.loading) : /*#__PURE__*/ I.createElement(mPe, {
className: J9(C?.loader, n?.classNames?.loader),
visible: z === "loading"
});
}
- let je = n.icon || w?.[z] || uPe(z);
+ let je = n.icon || w?.[z] || fPe(z);
return /*#__PURE__*/ I.createElement("li", {
tabIndex: 0,
ref: ue,
@@ -73246,7 +73249,7 @@ var jPe = (e) => {
if (P || !fe) return;
xe.current = null;
let e = Number(ue.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ue.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - le.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= OPe || a > .11)) {
+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= APe || a > .11)) {
ae(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), ne(!0);
return;
}
@@ -73287,7 +73290,7 @@ var jPe = (e) => {
ke(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: J9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? _Pe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {
+ }, w?.close ?? yPe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {
"data-icon": "",
className: J9(C?.icon, n?.classNames?.icon)
}, z === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, z === "loading" ? null : je) : null, /*#__PURE__*/ I.createElement("div", {
@@ -73322,10 +73325,10 @@ function Y9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function MPe(e, t) {
+function PPe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? TPe : wPe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? DPe : EPe;
function o(e) {
[
"top",
@@ -73346,8 +73349,8 @@ function MPe(e, t) {
}) : o(a);
}), n;
}
-var NPe = /*#__PURE__*/ I.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = CPe, toastOptions: g, dir: _ = Y9(), gap: v = DPe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), ne = I.useRef(!1), F = I.useCallback((e) => {
+var FPe = /*#__PURE__*/ I.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = TPe, toastOptions: g, dir: _ = Y9(), gap: v = kPe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), ne = I.useRef(!1), F = I.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || W9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return I.useEffect(() => W9.subscribe((e) => {
@@ -73433,10 +73436,10 @@ var NPe = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${EPe}px`,
+ "--width": `${OPe}px`,
"--gap": `${v}px`,
...m,
- ...MPe(l, u)
+ ...PPe(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -73454,7 +73457,7 @@ var NPe = /*#__PURE__*/ I.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(jPe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(NPe, {
key: n.id,
icons: y,
index: i,
@@ -73488,8 +73491,8 @@ var NPe = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Z9 = !1, PPe = (e, t) => {
- Z9 || (Z9 = !0, (0, SS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(NPe, {
+}), Z9 = !1, IPe = (e, t) => {
+ Z9 || (Z9 = !0, (0, SS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(FPe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -73510,7 +73513,7 @@ var NPe = /*#__PURE__*/ I.forwardRef(function(e, t) {
error: X9(t.error, !1)
}
})));
-}, FPe = (e, t) => {
+}, LPe = (e, t) => {
let n = t.alert ? G9.error : G9.success, r = t.action;
n(/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -73523,7 +73526,7 @@ var NPe = /*#__PURE__*/ I.forwardRef(function(e, t) {
} : void 0
});
}, Q9 = null;
-function IPe() {
+function RPe() {
return Q9?.isConnected || (Q9 = document.createElement("div"), Q9.className = "peach-react", Q9.dataset.reactOverlays = "", document.body.append(Q9)), Q9;
}
function $9(e) {
@@ -73533,7 +73536,7 @@ function $9(e) {
children: /* @__PURE__ */ (0, L.jsx)(Bu, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, L.jsx)(cy, {
- getContainer: IPe,
+ getContainer: RPe,
children: /* @__PURE__ */ (0, L.jsx)(e, { ...t })
})
})
@@ -73544,30 +73547,30 @@ function $9(e) {
};
};
}
-var LPe = {
+var zPe = {
activity: {
prefetch: (e, t) => Hne(t),
mount: $9(ere)
},
"catalog-grid": {
prefetch: cre,
- mount: $9(Zw)
+ mount: $9(Qw)
},
configuration: {
prefetch: (e, t) => AR(t),
- mount: $9(Xfe)
+ mount: $9(Qfe)
},
"configuration-summary": {
prefetch: (e, t) => AR(t),
- mount: $9(Qfe)
+ mount: $9(epe)
},
"data-cleanup": {
- prefetch: (e, t) => cie(t),
- mount: $9(Zj)
+ prefetch: (e, t) => sie(t),
+ mount: $9(Qj)
},
duplicates: {
- prefetch: (e, t) => gT(t),
- mount: $9(hM)
+ prefetch: (e, t) => _T(t),
+ mount: $9(gM)
},
"entity-hero": {
prefetch: async () => {},
@@ -73575,11 +73578,11 @@ var LPe = {
},
"entity-filter": {
prefetch: async () => {},
- mount: $9(AN)
+ mount: $9(jN)
},
"entity-body": {
prefetch: async () => {},
- mount: $9(uN)
+ mount: $9(dN)
},
"follow-detail": {
prefetch: kse,
@@ -73598,7 +73601,7 @@ var LPe = {
mount: $9(Wle)
},
index: {
- prefetch: (e, t) => LM(e, t),
+ prefetch: (e, t) => RM(e, t),
mount: $9(Xue)
},
"junk-queue": {
@@ -73606,19 +73609,19 @@ var LPe = {
mount: $9(pde)
},
"library-processing": {
- prefetch: (e, t) => DT(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(yde, { ...e }) : /* @__PURE__ */ (0, L.jsx)(UA, { ...e }))
+ prefetch: (e, t) => OT(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(yde, { ...e }) : /* @__PURE__ */ (0, L.jsx)(WA, { ...e }))
},
playlists: {
prefetch: (e, t) => xde(t),
mount: $9(Nde)
},
"quality-goals": {
- prefetch: (e, t) => $T(t),
+ prefetch: (e, t) => eE(t),
mount: $9(Fde)
},
review: {
- prefetch: (e, t) => PE(t),
+ prefetch: (e, t) => FE(t),
mount: $9(Zde)
},
scraping: {
@@ -73626,13 +73629,13 @@ var LPe = {
mount: $9(dfe)
},
stats: {
- prefetch: (e, t) => epe(t),
- mount: $9(RMe)
+ prefetch: (e, t) => npe(t),
+ mount: $9(BMe)
},
taste: {
- prefetch: (e, t) => cNe("all", t),
- mount: $9(cPe)
+ prefetch: (e, t) => uNe("all", t),
+ mount: $9(uPe)
}
};
//#endregion
-export { PPe as mountToaster, LPe as pages, FPe as showToast };
+export { IPe as mountToaster, zPe as pages, LPe as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 22c798966..524508f12 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -477,40 +477,40 @@ function O(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${E("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
}
//#endregion
-//#region src/configuration-skeleton.ts
-var k = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${D({
+//#region src/configuration-copy.ts
+var Te = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Ee = "仅填域名;留空使用默认地址", k = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${D({
label: "保存配置",
attrs: "disabled data-skeleton-action"
-})}</div></div></section>`, A = (e, t = "") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`, j = (e) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${e} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">只写域名本身,留空就是默认</p></div>`;
-function Te() {
+})}</div></div></section>`, A = (e, t = "") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`, De = (e) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${e} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">${Ee}</p></div>`;
+function Oe() {
return `<div class="peach-react"><div class="configpage">${`<div class="board-local-nav">${[
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${k("开机自启", `<div class="flex flex-col">${A("开机后启动 Peach")}${A("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${A("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${k("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。</p>${j("JavDB")}${j("MISSAV")}</div>`)}</div></div></div>`;
+ ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${k("开机自启", `<div class="flex flex-col">${A("开机后启动 Peach")}${A("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${A("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${k("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${Te}</p>${De("JavDB")}${De("MISSAV")}</div>`)}</div></div></div>`;
}
//#endregion
//#region src/board-skeleton.ts
-var M = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, N = () => `${M("80%")}${M("48%")}`, P = (e, t) => e.repeat(t), F = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${M("45%")}</b><small class="board-stat-footer">${M("60%")}</small></div>`).join("")}</div>`, Ee = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, I = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${P(N(), 3)}</div></section>`, L = "disabled data-skeleton-action", R = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, z = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, De = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", Oe = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var j = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, M = () => `${j("80%")}${j("48%")}`, N = (e, t) => e.repeat(t), P = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${j("45%")}</b><small class="board-stat-footer">${j("60%")}</small></div>`).join("")}</div>`, ke = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, F = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${N(M(), 3)}</div></section>`, I = "disabled data-skeleton-action", L = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, R = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, Ae = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", je = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${De}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${R("3em")}</b></div>`).join("")}</div>`, ke = "flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Ae = () => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1">${[
+].map((e) => `<div class="${Ae}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${L("3em")}</b></div>`).join("")}</div>`, Me = "flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Ne = () => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1">${[
"关注列表",
"添加关注",
"JAV 订阅源",
"来源和凭证"
-].map((e, t) => `<span class="${ke}"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, B = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, je = ({ table: e, sort: t, dir: n }) => {
+].map((e, t) => `<span class="${Me}"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, z = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, Pe = ({ table: e, sort: t, dir: n }) => {
let r = w.find(([e]) => e === t)[1];
- return `<div class="flex flex-wrap items-center gap-2 follow-skeleton-toolbar"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${R("132px")}</span>${D({
+ return `<div class="flex flex-wrap items-center gap-2 follow-skeleton-toolbar"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${L("132px")}</span>${D({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: L
+ attrs: I
})}<span data-button-group role="group">${D({
variant: "ghost",
glyph: "layout-grid",
@@ -527,42 +527,42 @@ var M = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, N =
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: L
+ attrs: I
})}</div>`;
-}, V = () => `<span class="flex shrink-0 items-center gap-1">${D({
+}, B = () => `<span class="flex shrink-0 items-center gap-1">${D({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: L
+ attrs: I
})}${D({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: L
-})}</span>`, Me = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 follow-skeleton-source">${B()}<span class="flex min-w-0 grow flex-col gap-0.5"><span class="text-body-medium">${R("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${z(14, 14)}</span>${z(48, 24)}<span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary">${R("113px")}</span>${V()}</div>`, H = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${z(32, 32, !0)}<b class="min-w-0 grow text-body-medium break-words text-text-primary">${R("92px")}</b>${D({
+ attrs: I
+})}</span>`, Fe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 follow-skeleton-source">${z()}<span class="flex min-w-0 grow flex-col gap-0.5"><span class="text-body-medium">${L("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${R(14, 14)}</span>${R(48, 24)}<span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary">${L("113px")}</span>${B()}</div>`, V = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${R(32, 32, !0)}<b class="min-w-0 grow text-body-medium break-words text-text-primary">${L("92px")}</b>${D({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: L
-})}<span class="flex shrink-0 items-center gap-1">${z(14, 14)}${z(14, 14)}</span>${D({
+ attrs: I
+})}<span class="flex shrink-0 items-center gap-1">${R(14, 14)}${R(14, 14)}</span>${D({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: L
+ attrs: I
})}${D({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: L
-})}</div><div data-source-divider>${P(Me(), e)}</div></section>`, Ne = () => {
+ attrs: I
+})}</div><div data-source-divider>${N(Fe(), e)}</div></section>`, Ie = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, Pe = [
+}, Le = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -570,60 +570,60 @@ var M = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, N =
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], Fe = {
+], Re = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Ie = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Le = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${Pe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${Fe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${Ie}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${P(`<tr>${[
- B(),
- `<span class="flex min-w-0 items-center gap-2">${z(32, 32, !0)}${R("5em")}</span>`,
- R("10em"),
- `<span class="flex items-center gap-1.5">${z(14, 14)}${R("4em")}</span>`,
- z(48, 24),
- R("113px"),
- V()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Re = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${R("111px")}</span>${O(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${z(204, 32)}</div>`, ze = (e) => {
- let t = e.followLayout === "table", n = ve(e.followSort, e.followDir), r = e.followPageSize || Ne(), i = t ? Le(r, n) : `${B("全选本页")}<div class="flex flex-col gap-3">${H(3)}${H(4)}${H(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Oe()}<div class="flex flex-col gap-6">${Ae()}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 follow-skeleton-surface" data-layout="${t ? "table" : "default"}">${je({
+}, ze = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Be = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${Le.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${Re[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${ze}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${N(`<tr>${[
+ z(),
+ `<span class="flex min-w-0 items-center gap-2">${R(32, 32, !0)}${L("5em")}</span>`,
+ L("10em"),
+ `<span class="flex items-center gap-1.5">${R(14, 14)}${L("4em")}</span>`,
+ R(48, 24),
+ L("113px"),
+ B()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Ve = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${L("111px")}</span>${O(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${R(204, 32)}</div>`, He = (e) => {
+ let t = e.followLayout === "table", n = ve(e.followSort, e.followDir), r = e.followPageSize || Ie(), i = t ? Be(r, n) : `${z("全选本页")}<div class="flex flex-col gap-3">${V(3)}${V(4)}${V(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${je()}<div class="flex flex-col gap-6">${Ne()}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 follow-skeleton-surface" data-layout="${t ? "table" : "default"}">${Pe({
table: t,
...n
- })}${i}${Re(t, r)}</div></div></div></div></div>`;
+ })}${i}${Ve(t, r)}</div></div></div></div></div>`;
};
-function Be() {
- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${M("85%")}${M("65%")}${P(N(), 4)}</div></aside></div></div>`;
+function Ue() {
+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${j("85%")}${j("65%")}${N(M(), 4)}</div></aside></div></div>`;
}
-function Ve(e, t = {}) {
+function We(e, t = {}) {
let n = "";
- if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${M("38%")}</header>${F([
+ if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${j("38%")}</header>${P([
"馆藏视频",
"看过",
"内容标签",
"使用空间"
- ])}${I("馆藏视频")}${I("内容标签")}</div>`;
- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${Ee(["浏览器记录", "Peach 内部"], "insightswitch")}${M("24%")}</header><div class="tastestate"></div>${F([
+ ])}${F("馆藏视频")}${F("内容标签")}</div>`;
+ else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${ke(["浏览器记录", "Peach 内部"], "insightswitch")}${j("24%")}</header><div class="tastestate"></div>${P([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${P(N(), 4)}</div></section>${I("口味分析")}<div class="board-activity-charts">${I("浏览活动")}${I("时间分布")}</div>${I("标签")}</div>`;
- else if (e === "/follow-manage") n = ze(t);
- else if (e === "/configuration") n = Te();
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${N(M(), 4)}</div></section>${F("口味分析")}<div class="board-activity-charts">${F("浏览活动")}${F("时间分布")}</div>${F("标签")}</div>`;
+ else if (e === "/follow-manage") n = He(t);
+ else if (e === "/configuration") n = Oe();
else if (e === "/activity") n = `<div class="activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${M("35%")}${N()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${M("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${M("40%")}</div>${P(`<section class="dupgroup"><div class="duphead">${M("45%")}</div><div class="duplist">${P(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${M()}</span><span class="dupname">${M("90%")}</span>${M()}${M()}${M()}<span class="duppath">${M("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
- else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${M("20%")}</div><div class="qualitylist">${P(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${N()}</div><footer class="qualityactions">${M("80%")}</footer></article>`, 6)}</div></div>`;
- else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${M("200px")}</div></header><div class="playlistcards">${P(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${N()}</div></div></article>`, 6)}</div></section>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${j("35%")}${M()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${j("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${j("40%")}</div>${N(`<section class="dupgroup"><div class="duphead">${j("45%")}</div><div class="duplist">${N(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${j()}</span><span class="dupname">${j("90%")}</span>${j()}${j()}${j()}<span class="duppath">${j("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
+ else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${j("20%")}</div><div class="qualitylist">${N(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${M()}</div><footer class="qualityactions">${j("80%")}</footer></article>`, 6)}</div></div>`;
+ else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${j("200px")}</div></header><div class="playlistcards">${N(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${M()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var He = [
+var Ge = [
"loc",
"creator",
"performer",
@@ -641,16 +641,16 @@ var He = [
"jav",
"thumb"
];
-function Ue() {
+function Ke() {
let e = (e) => Array(64).fill(e).join("");
return {
tiers: "<div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"av\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>") + "</div><div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"brandpill\"><span class=\"mk\"></span><span class=\"placeholder-name\">&nbsp;</span></span>") + "</div>",
tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\">&nbsp;</span>") + "</span>"
};
}
-async function We(e, t) {
+async function qe(e, t) {
let n = new URLSearchParams();
- for (let t of He) e[t] && n.set(t, e[t]);
+ for (let t of Ge) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -661,7 +661,7 @@ async function We(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function Ge({ kind: t = "catalog", filtered: n = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {
+function Je({ kind: t = "catalog", filtered: n = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {
let o = i ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!i || a ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (n || r) return e("search", r ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", r ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (t !== "catalog") {
@@ -682,7 +682,7 @@ function Ge({ kind: t = "catalog", filtered: n = !1, jav: r = !1, configurable:
}
//#endregion
//#region src/sidebar.ts
-function Ke(e) {
+function Ye(e) {
return [
"/",
"/unseen",
@@ -692,96 +692,96 @@ function Ke(e) {
"/junk-files"
].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);
}
-function qe(e, t) {
+function Xe(e, t) {
return e.dataset.surface?.split("?")[0] === t.split("?")[0] && e.querySelector(".dnav") ? (e.dataset.surface = t, !1) : (e.dataset.surface = t, e.replaceChildren(), !0);
}
-function Je(e) {
+function Ze(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/management.ts
-var Ye = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Xe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", U = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", W = "type=\"button\" disabled data-skeleton-action", G = "disabled data-skeleton-action", Ze = "aria-disabled=\"true\"", K = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, q = (e, t) => `<div data-geist-fieldset-content>
+var Qe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", $e = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", H = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", U = "type=\"button\" disabled data-skeleton-action", W = "disabled data-skeleton-action", et = "aria-disabled=\"true\"", G = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, K = (e, t) => `<div data-geist-fieldset-content>
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div>`;
-function Qe() {
- return K(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${q("扫描与采集", Ye)}
+function tt() {
+ return G(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing>
+ ${K("扫描与采集", Qe)}
<footer data-geist-fieldset-footer><a href="/scraping" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${E("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${D({
glyph: "database",
label: "扫描并补全资料",
- attrs: G
+ attrs: W
})}${D({
glyph: "chevron-down",
- attrs: `${G} aria-label="更多扫描与采集方式"`
+ attrs: `${W} aria-label="更多扫描与采集方式"`
})}</span></footer>
</section>`);
}
-function $e() {
- return K(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${q("媒体修复", Xe)}
- <footer data-geist-fieldset-footer>${O(U, {
+function nt() {
+ return G(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
+ ${K("媒体修复", $e)}
+ <footer data-geist-fieldset-footer>${O(H, {
className: "w-48",
- attrs: Ze
+ attrs: et
})}${D({
label: "开始修复",
- attrs: G
+ attrs: W
})}</footer>
</section>`);
}
-function et() {
+function rt() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = `<span class="geist-button organize-preset-skeleton">${U}</span>`.repeat(3), n = (e) => `<div class="organizefield"><span>${e}</span>
- <span class="geist-input organize-input-skeleton">${U}</span></div>`;
+ ], t = `<span class="geist-button organize-preset-skeleton">${H}</span>`.repeat(3), n = (e) => `<div class="organizefield"><span>${e}</span>
+ <span class="geist-input organize-input-skeleton">${H}</span></div>`;
return `<div class="cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态">
<div class="cleanupstats">${e.map(([e, t]) => `
<button type="button" class="board-plain-stat" disabled>
<span class="board-plain-stat-head"><span class="board-stat-tile">${s(t)}</span>${e}</span>
- <strong>${U}</strong><span class="cleanupmeta">${U}</span></button>`).join("")}</div>
+ <strong>${H}</strong><span class="cleanupmeta">${H}</span></button>`).join("")}</div>
<div class="cleanupgrid">
- <div class="cleanupscraping">${Qe()}</div>
- <div class="cleanupmediarepair">${$e()}</div>
+ <div class="cleanupscraping">${tt()}</div>
+ <div class="cleanupmediarepair">${nt()}</div>
<section class="cleanupfieldset cleanuporganize" data-geist-fieldset data-cleanup-task aria-labelledby="cleanup-loading-organize">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-organize">整理</h3>
<p>按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
<div class="organizefields">
- <div class="organizesource"><span class="gselect"><span class="gselectfield organize-source-skeleton">${U}${s("chevron-down")}</span></span></div>
+ <div class="organizesource"><span class="gselect"><span class="gselectfield organize-source-skeleton">${H}${s("chevron-down")}</span></span></div>
${n("文件名模板")}
${n("目录模板")}
<div class="organizepresets">${t}</div>
- <p class="cleanupmeta">${U}</p>
+ <p class="cleanupmeta">${H}</p>
</div></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${W}>预览</button></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${U}>预览</button></footer>
</section></div>
<section class="resourcesync" aria-labelledby="cleanup-loading-links">
<h2 id="cleanup-loading-links">链接管理</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">站外链接</h3>
- <div class="linksummary"><div class="linkstats"><div><span>链接总数</span><b>${U}</b><small>${U}</small></div>${[
+ <div class="linksummary"><div class="linkstats"><div><span>链接总数</span><b>${H}</b><small>${H}</small></div>${[
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div><span>${e}</span><b>${U}</b></div>`).join("")}</div>
- <div class="linkhosts"><span>主要站点</span><b>${U}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${W}>${s("unlink")}<span>检查死链</span></button></div>
+ ].map((e) => `<div><span>${e}</span><b>${H}</b></div>`).join("")}</div>
+ <div class="linkhosts"><span>主要站点</span><b>${H}</b></div></div></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${U}>${s("unlink")}<span>检查死链</span></button></div>
</div></section>
<section class="resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${W}>${s("git-compare")}<span>检查文件</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${U}>${s("git-compare")}<span>检查文件</span></button></div>
</div></section></div>`;
}
//#endregion
//#region src/junk-queue.ts
-var J = [
+var q = [
[
"",
"全部",
@@ -817,60 +817,60 @@ var J = [
"其它",
"hard-drive"
]
-], tt = (e) => J.find(([t]) => t === e)?.[0] ?? "";
-function nt(e) {
+], it = (e) => q.find(([t]) => t === e)?.[0] ?? "";
+function at(e) {
let t = new URLSearchParams(e);
return {
- kind: tt(t.get("type")),
+ kind: it(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function Y(e = "", t = "pending") {
+function J(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function rt(e) {
+function ot(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: Y("", "pending")
+ href: J("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: Y("", "dismissed")
+ href: J("", "dismissed")
};
}
-var it = (e) => e === "dismissed" ? "已排除" : "待判断", at = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", ot = "flex min-w-0 flex-col gap-2", st = "text-body-regular text-text-secondary", ct = "text-display-4-medium tabular-nums text-text-primary", lt = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen", X = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function ut({ kind: e, view: t }) {
- let n = J.map(([n, r, i]) => `<a href="${Y(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${X(i)}${o(r)}</a>`).join(""), r = rt(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite"><div data-collection-summary="" class="${at}"><div class="${ot}"><span class="${st}">${it(t)}</span><strong class="${ct}"><span data-skeleton="count" aria-hidden="true" class="${lt}"></span></strong></div></div></div><div data-junk-filters-frame=""><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${X(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var st = (e) => e === "dismissed" ? "已排除" : "待判断", ct = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", lt = "flex min-w-0 flex-col gap-2", ut = "text-body-regular text-text-secondary", dt = "text-display-4-medium tabular-nums text-text-primary", ft = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen", Y = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function pt({ kind: e, view: t }) {
+ let n = q.map(([n, r, i]) => `<a href="${J(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${Y(i)}${o(r)}</a>`).join(""), r = ot(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite"><div data-collection-summary="" class="${ct}"><div class="${lt}"><span class="${ut}">${st(t)}</span><strong class="${dt}"><span data-skeleton="count" aria-hidden="true" class="${ft}"></span></strong></div></div></div><div data-junk-filters-frame=""><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${Y(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/jav-artwork.ts
-function Z(e) {
+function X(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function dt(e) {
+function mt(e) {
return {
- javLayout: Z(e.javLayout),
- javImage: Q(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: X(e.javLayout),
+ javImage: Z(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function Q(e) {
+function Z(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function ft(e, t) {
- return e.is_jav && e.code && e.has_cover && (Q(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function ht(e, t) {
+ return e.is_jav && e.code && e.has_cover && (Z(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function pt(e, t) {
+function gt(e, t) {
let n = Number(e?.px?.[0]), r = Number(e?.px?.[1]), i = Number(e?.x0);
if (!(n > 0 && r > 0 && t > 0) || !Number.isFinite(i)) return null;
let a = (e, t, n) => Math.min(n, Math.max(0, Number.isFinite(Number(e)) ? Number(e) : t)), o = a(i, 0, n), s = Math.max(o, a(e?.x1, n, n)), c = a(e?.y0, 0, r), l = Math.max(c, a(e?.y1, r, r)), u = s - o, d = l - c;
@@ -890,13 +890,13 @@ function pt(e, t) {
height: m(r / d)
};
}
-function mt(e, t) {
+function _t(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Q(t) === "cover" || !r)), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Z(t) === "cover" || !r)), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
-function ht(e, t) {
+function vt(e, t) {
let n = [];
return e.querySelectorAll("img[data-jav-image]").forEach((e) => {
e.dataset.javImageLayout !== t && (e.dataset.javImageLayout = t, e.classList.contains("cover") && (e.classList.toggle("whole", t !== "big"), e.classList.toggle("front", t === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), e.complete && e.naturalWidth && n.push(e)));
@@ -904,7 +904,7 @@ function ht(e, t) {
}
//#endregion
//#region src/islands.ts
-var gt = {
+var Q = {
"catalog-grid": { react: "catalog-grid" },
"data-cleanup": { react: "data-cleanup" },
duplicates: { react: "duplicates" },
@@ -927,11 +927,11 @@ var gt = {
activity: { react: "activity" },
stats: { react: "stats" },
taste: { react: "taste" }
-}, _t = () => import("/dist/peach-react.js").then(() => void 0), vt = () => Object.keys(gt), $ = /* @__PURE__ */ new Map();
-async function yt(e, t, n, r = {}) {
- let i = gt[e];
+}, yt = () => import("/dist/peach-react.js").then(() => void 0), bt = () => Object.keys(Q), $ = /* @__PURE__ */ new Map();
+async function xt(e, t, n, r = {}) {
+ let i = Q[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- Ct(t);
+ Tt(t);
let a = { controller: new AbortController() };
$.set(t, a);
let o = (await import("/dist/peach-react.js")).pages[i.react];
@@ -940,7 +940,7 @@ async function yt(e, t, n, r = {}) {
} catch {
if (a.controller.signal.aborted) return;
}
- if (!xt(t, a, r)) return;
+ if (!Ct(t, a, r)) return;
let s = () => {
t.textContent = "";
let e = t.ownerDocument.createElement("div");
@@ -952,27 +952,27 @@ async function yt(e, t, n, r = {}) {
};
r.reveal ? r.reveal(t, s) : s();
}
-function bt(e, t) {
+function St(e, t) {
let n = e ? $.get(e) : void 0;
!n?.update || !n.props || (n.props = {
...n.props,
...t
}, n.update(n.props));
}
-function xt(e, t, n) {
+function Ct(e, t, n) {
return $.get(e) === t ? n.isCurrent && !n.isCurrent() ? ($.delete(e), !1) : !0 : !1;
}
-var St = (e) => !!e && $.has(e);
-function Ct(e) {
- for (let t of [...$.keys()]) (t === e || e.contains(t)) && wt(t);
+var wt = (e) => !!e && $.has(e);
+function Tt(e) {
+ for (let t of [...$.keys()]) (t === e || e.contains(t)) && Et(t);
}
-function wt(e) {
+function Et(e) {
let t = $.get(e);
t && (t.controller.abort(), $.delete(e), t.dispose?.());
}
-var Tt = null;
-function Et(e, t, n, r) {
- Tt ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), Tt.then((e) => e.showToast(n, r));
+var Dt = null;
+function Ot(e, t, n, r) {
+ Dt ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), Dt.then((e) => e.showToast(n, r));
}
//#endregion
-export { Ve as boardPageSkeleton, u as boundedPreference, Ge as catalogEmptyHtml, We as catalogSuggestions, ue as clampPage, et as cleanupSkeletonHtml, Be as detailSkeletonHtml, Ue as emptyCatalogLayout, me as entitySkeletonHtml, fe as faceSourceScale, re as followJobProgress, m as initBoardControls, St as islandMounted, vt as islandNames, ft as javImageKind, ne as jobActivityHtml, ut as junkCountSkeletonHtml, Y as junkPath, nt as junkRoute, yt as mountIsland, f as mountNumberSetting, pe as nativeImageFit, Q as normalizeJavImage, Z as normalizeJavLayout, dt as normalizeJavPreferences, le as pageCount, de as paginationHtml, pt as panelFrame, c as preferredDirection, _t as preloadIslands, ht as relayoutJavImages, oe as selectGroup, ie as selectRange, ae as selectionSummary, Et as showToast, Ke as sidebarHasCatalogContent, b as sidebarSectionHtml, Je as sidebarTagCounts, p as syncBoardRange, mt as syncJavImages, d as syncNumberSetting, se as syncSelectionToolbar, qe as syncSidebarSurface, ee as transitionTheme, Ct as unmountIsland, bt as updateIsland, C as watchJob, x as wireSidebarGroups };
+export { We as boardPageSkeleton, u as boundedPreference, Je as catalogEmptyHtml, qe as catalogSuggestions, ue as clampPage, rt as cleanupSkeletonHtml, Ue as detailSkeletonHtml, Ke as emptyCatalogLayout, me as entitySkeletonHtml, fe as faceSourceScale, re as followJobProgress, m as initBoardControls, wt as islandMounted, bt as islandNames, ht as javImageKind, ne as jobActivityHtml, pt as junkCountSkeletonHtml, J as junkPath, at as junkRoute, xt as mountIsland, f as mountNumberSetting, pe as nativeImageFit, Z as normalizeJavImage, X as normalizeJavLayout, mt as normalizeJavPreferences, le as pageCount, de as paginationHtml, gt as panelFrame, c as preferredDirection, yt as preloadIslands, vt as relayoutJavImages, oe as selectGroup, ie as selectRange, ae as selectionSummary, Ot as showToast, Ye as sidebarHasCatalogContent, b as sidebarSectionHtml, Ze as sidebarTagCounts, p as syncBoardRange, _t as syncJavImages, d as syncNumberSetting, se as syncSelectionToolbar, Xe as syncSidebarSurface, ee as transitionTheme, Tt as unmountIsland, St as updateIsland, C as watchJob, x as wireSidebarGroups };