Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(settings): 配置页分成五组并删减说明文案

longmeidao7553769495e7
diff --git a/README.en.md b/README.en.md
index 08f104d83..b63710584 100644
--- a/README.en.md
+++ b/README.en.md
@@ -71,7 +71,7 @@ Want to look around before installing? The [live demo](https://demo.peach.video)
- **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.
- **JAV intake**: mark a new-release card or followed post as wanted, or enter a video code. Work cards find and deduplicate links from JavDB's resource list and comments, showing attributes, size and date. Add magnets directly to 115 or PikPak, or copy other links. Files scanned into your library are marked as acquired; titles set aside can be searched again.
- **Cloud download**: paste a magnet link in Activity and hand it to 115 or PikPak for offline download; the finished file joins your library on its own. Followed items and your wishlist also have an entry.
-- **Find a release**: add your own Prowlarr or Jackett indexer under Media in local configuration, then search by release code in Activity's Cloud download section. Filter by size and prioritize resolution, Chinese subtitles, or uncensored editions; select a candidate and confirm submission.
+- **Find a release**: add your own Prowlarr or Jackett indexer under Downloads in local configuration, then search by release code in Activity's Cloud download section. Filter by size and prioritize resolution, Chinese subtitles, or uncensored editions; select a candidate and confirm submission.
- **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.
@@ -105,7 +105,7 @@ On macOS, replace the last two lines with `uv sync --locked --python 3.14 --extr
LAN access, access passwords, updates and uninstalling are covered in [Operations](docs/OPERATIONS.md).
-Open System diagnostics under Configuration → Updates and maintenance to view library health lists, source parsing and cooldowns. `peach doctor` provides the same report; `--json` returns redacted JSON. See [Local diagnostics](docs/OPERATIONS.md#本机诊断) for status and actions.
+Open System diagnostics under Configuration → Maintenance to view library health lists, source parsing and cooldowns. `peach doctor` provides the same report; `--json` returns redacted JSON. See [Local diagnostics](docs/OPERATIONS.md#本机诊断) for status and actions.
## FAQ
diff --git a/README.md b/README.md
index 31258ae40..e55361714 100644
--- a/README.md
+++ b/README.md
@@ -71,7 +71,7 @@ https://github.com/user-attachments/assets/a5610874-e611-41bb-be22-7d99f0d64b62
- **追新作**:在女优页打开订阅,或在关注管理里按名字订阅,馆藏中尚未收录的女优也可订阅。Peach 会定期检查新作;创作者可跨 FANBOX、Patreon、Kemono 等站点关注,不同站点的同一作品合成一张卡。
- **JAV 入库**:在新作卡或关注内容上点「想要」,也可以直接输入番号。作品卡自动查找 JavDB 资源区与评论中的链接,合并重复资源,显示属性、大小和日期;磁链可以直接添加到 115 或 PikPak,其他链接可以复制。文件扫进馆藏后自动标为已入库,久找不到的老片可重新查找。
- **云下载**:在活动页贴一条磁力,交给 115 或 PikPak 离线下载,下载完自动入库;关注条目和想要清单也有入口。
-- **按番号找资源**:在本机配置页「媒体」里添加自己的 Prowlarr 或 Jackett 索引器,在活动页「云下载」按番号搜索。可按体积筛选,优先找高清、中字或无码;选中候选后确认提交。
+- **按番号找资源**:在本机配置页「下载」里添加自己的 Prowlarr 或 Jackett 索引器,在活动页「云下载」按番号搜索。可按体积筛选,优先找高清、中字或无码;选中候选后确认提交。
- **统计**:片子存在哪块盘、看过多少、标签分布,一页看完。
- **外观**:深色浅色、主题色、侧栏顺序都能自己调。
- **多端**:电脑、平板、手机的浏览器都能用。
@@ -105,7 +105,7 @@ macOS 把后两条换成 `uv sync --locked --python 3.14 --extra macos` 和 `./.
局域网访问、访问密码、更新和卸载见 [运行与配置](docs/OPERATIONS.md)。
-在配置页「更新与维护」打开系统诊断,可查看库健康清单、来源解析与冷却状态。运行 `peach doctor` 可取得同一份报告;`--json` 输出脱敏 JSON。状态与处理方式见 [本机诊断](docs/OPERATIONS.md#本机诊断)。
+在配置页「维护」打开系统诊断,可查看库健康清单、来源解析与冷却状态。运行 `peach doctor` 可取得同一份报告;`--json` 输出脱敏 JSON。状态与处理方式见 [本机诊断](docs/OPERATIONS.md#本机诊断)。
## 常见问题
diff --git a/docs/CLOUDDRIVE.md b/docs/CLOUDDRIVE.md
index 72aa56065..647b04223 100644
--- a/docs/CLOUDDRIVE.md
+++ b/docs/CLOUDDRIVE.md
@@ -13,7 +13,7 @@ Peach 可以把 115 和 PikPak 网盘里的视频当作馆藏来浏览和播放
3. 填写路径:
- Windows:直接填挂载出来的盘符路径,例如 `B:\`。
- macOS:「本机文件夹」填本机挂载点,「Windows 中的对应路径」填这个来源在 Windows 上的盘符根,例如 `/Volumes/CloudDrive/115` 对应 `B:\`、`/Volumes/CloudDrive/PikPak` 对应 `A:\`。已经有馆藏的,必须沿用馆藏里登记的盘符路径。
-4. 点「保存配置」,托盘会重新载入设置。「挂载状态」一栏逐个显示每个文件夹在线还是离线;点「刷新挂载状态」不会清掉还没保存的输入。
+4. 点「保存配置」,托盘会重新载入设置。每个文件夹行右侧标着它在线还是离线,刷新页面重新读取。
5. 勾选扫描再保存,托盘会依次扫描所有在线的文件夹,离线的跳过。网盘重新挂上以后,再勾选一次扫描并保存即可。
Windows 上,Peach 和 CloudDrive2 要在同一个普通用户下运行。用「以管理员身份运行」启动的程序,可能看不到普通用户挂载的盘。
@@ -115,7 +115,7 @@ Peach 不实时监视网盘目录,因为每列一次目录都是一次网络
云下载把磁力交给 115 或 PikPak 在网盘那头下载,文件不经过这台电脑。下载完的文件落进已挂载的目录,由上一节的推送发现登记入库;推送没配时,等下一次扫描发现。
-配置在配置页「媒体」分组的「云下载」和「PikPak 账号」两张卡里:
+配置在配置页「下载」分组的「云下载」和「PikPak 账号」两张卡里:
- **115**:经 CloudDrive2 的 gRPC 接口提交。在 CloudDrive2「设置 → API 令牌」里生成一个令牌,至少勾「提交离线任务」「查看离线任务与配额」,要在 Peach 里取消任务再勾「取消离线任务」,要在 Peach 里新建目标目录再勾上新建文件夹权限(`allow_create_folder`)。检查报出缺哪项权限、目标目录能不能离线下载、本月还剩几条配额,只读,不提交任务:地址和令牌都已保存时,卡片一打开就按已保存的配置查一遍;点「保存配置」后响应里也带着一份,直接显示在卡上;改了表单想先看结果再保存,点「检查」按此刻填的值重查。CloudDrive2 跑在这台电脑上时地址可以留空,检查会依次试 `http://127.0.0.1:19798`(独立版默认)和 `http://127.0.0.1:29798`(Windows 桌面版常见),用不需要令牌的 `GetSystemInfo` 看谁应答,把先应答的地址填回表单;点「保存配置」后才记下来。两个都不应答时报错并列出试过的两个地址,这时确认 CloudDrive2 已启动,或者把它的实际地址填进去。
- **PikPak**:PikPak 没有开放接口,Peach 照网页端的协议直连。用账号密码登录一次换取登录令牌;勾「保存密码」时登录过期会自动重新登录,不勾就要回到这张卡重新登录。登录触发人机验证时,卡上会给出验证页链接,在浏览器里完成后回来再点一次「登录」,Peach 不替你过验证。
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index 95693a68b..284c18788 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -73,7 +73,7 @@ Peach 按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页接入 R
配置好之后改文件夹与端口的那张页整个是 React(`frontend/src/react/settings/`,入口 `configuration-page.tsx`)。`/configuration` 是唯一的编辑页,进管理菜单;媒体库选单、统计页与首次配置引导都指向它。
-- 结构:一条窄列里排「通用 / 媒体 / 网络与访问 / 更新与维护」四组,每组一个 `h2.configgroup` 小标题,没有内容的组连标题一起省略。左栏页签按 `.configgroup` 标题切(`web/app.js` 的 `configTabItems`)。
+- 结构:一条窄列里排「通用 / 媒体 / 下载 / 网络与访问 / 维护」五组,每组一个 `h2.configgroup` 小标题,没有内容的组连标题一起省略。左栏页签按 `.configgroup` 标题切(`web/app.js` 的 `configTabItems`)。
- 数据契约是 `/api/configuration`(`src/peach/routes_configuration.py`)。端点字符串只在 `frontend/src/configuration-endpoints.ts` 声明一次,整页和设置弹层的摘要卡读同一个 `queryKey`。
- 第一帧必须同步:壳挂完这一页紧接着就读它画出来的结构,所以 `react/entry.tsx` 的 `mounter` 用 `flushSync` 画第一帧,往后的更新照常异步。小标题和分区因此必须是 `.configpage` 的直接子节点、交替排列。
- 设置弹层「这台电脑」一格只挂 `configuration-summary`(`configuration-summary.tsx`):媒体库数、端口、更新状态和「打开配置页」,不放可编辑的控件(ADR-0050)。媒体库数取 `/api/configuration` 的 `library_count`,由服务端按 `media_libraries.libraries` 分组数好,页面不自己归并。
diff --git a/docs/OPERATIONS.md b/docs/OPERATIONS.md
index 76810d16e..7e37b759d 100644
--- a/docs/OPERATIONS.md
+++ b/docs/OPERATIONS.md
@@ -105,7 +105,7 @@ Windows 上这一段留空是正常的,盘符本身就是挂载点。没挂上
### 配置页
-配置页地址是 `/configuration`。从管理菜单的「配置」、设置弹层「这台电脑」卡片上的「打开配置页」,或托盘菜单「配置 Peach」进入。页面分成「通用」「媒体」「网络与访问」「更新与维护」四组。
+配置页地址是 `/configuration`。从管理菜单的「配置」、设置弹层「这台电脑」卡片上的「打开配置页」,或托盘菜单「配置 Peach」进入。页面分成「通用」「媒体」「下载」「网络与访问」「维护」五组。
- 只有在运行 Peach 的这台电脑上、并且服务由托盘管理时才能修改。其他设备的管理菜单里没有这一项,设置里会写明要去哪台电脑改。
- 这台电脑可以用配置的 `.local` 名字、回环地址或服务绑定的 IP 打开配置页。Peach 按连接两端的 IP 判断是不是本机。
@@ -126,7 +126,7 @@ Windows 上这一段留空是正常的,盘符本身就是挂载点。没挂上
### 卸载
-Windows 测试包在配置页「更新与维护 → 卸载 Peach」里卸载:
+Windows 测试包在配置页「维护 → 卸载 Peach」里卸载:
1. 先选择范围。默认保留数据;勾选「完全卸载」会同时删除设置、本地数据库、观看记录、凭据和缓存。
2. 确认后,Peach 会退出托盘、关闭自己的服务、结束仍在程序目录里运行的残留进程,再移除开机自启和整个程序目录。删除会重试三次,仍失败才报错。
@@ -157,7 +157,7 @@ Windows 测试包在配置页「更新与维护 → 卸载 Peach」里卸载:
在安装 Peach 的电脑上运行 `peach doctor`,逐项查看版本、配置、账本迁移、工具路径、数据目录写入、媒体挂载、端口和最近一次任务失败。`peach doctor --json` 输出同一份脱敏报告,供本机诊断 API `/api/diagnostics` 使用。
-配置页「更新与维护」可打开 `/diagnostics`。库健康提供识别失败、补资料失败、缺封面、缺时长计数,展开后可打开作品、复制当前清单。每类最多返回 500 条,保留总数;没有番号的作品使用编号。失败来自最近处理任务的问题记录,暂停与未命中记录不计为失败;记录损坏时显示未取得。
+配置页「维护 → 运行信息」可打开 `/diagnostics`。库健康提供识别失败、补资料失败、缺封面、缺时长计数,展开后可打开作品、复制当前清单。每类最多返回 500 条,保留总数;没有番号的作品使用编号。失败来自最近处理任务的问题记录,暂停与未命中记录不计为失败;记录损坏时显示未取得。
minnano-av 与 javdb 使用实际解析并核对身份后落库的记录,显示上次成功时间与冷却截止。一天内有成功证据且未在冷却时显示正常;旧记录保留时间,当前状态为未取得。打开诊断不发起来源抓取。
diff --git a/docs/TESTING_DESKTOP.md b/docs/TESTING_DESKTOP.md
index 5672d2738..54a071ee8 100644
--- a/docs/TESTING_DESKTOP.md
+++ b/docs/TESTING_DESKTOP.md
@@ -81,7 +81,7 @@ Windows 第一次询问防火墙权限时,只勾选「专用网络」。
## 更新
-在配置页「更新与维护 → 检查更新」里操作:
+在配置页「通用 → 检查更新」里操作:
1. 点「检查更新」。有新版本时出现「下载并安装」。
2. 点「下载并安装」,等待下载、校验、解压和准备安装完成。
@@ -96,7 +96,7 @@ Windows 第一次询问防火墙权限时,只勾选「专用网络」。
## 卸载
-在配置页「更新与维护 → 卸载 Peach」里操作。卸载会先退出 Peach,再移除程序文件夹、开机自启和桌面图标;用安装包装的,开始菜单项和系统设置里的卸载项也一并移除。
+在配置页「维护 → 卸载 Peach」里操作。卸载会先退出 Peach,再移除程序文件夹、开机自启和桌面图标;用安装包装的,开始菜单项和系统设置里的卸载项也一并移除。
用安装包装的也可以在系统设置「应用 → 已安装的应用」里卸载 Peach。这条路只移除程序、开始菜单项、开机自启和桌面图标,数据全部保留;要连数据一起删,用配置页里的「完全卸载」。
diff --git a/frontend/e2e/configuration-skeleton.test.ts b/frontend/e2e/configuration-skeleton.test.ts
index 77af1e75f..885caea37 100644
--- a/frontend/e2e/configuration-skeleton.test.ts
+++ b/frontend/e2e/configuration-skeleton.test.ts
@@ -3,22 +3,23 @@ import { after, before, describe, it } from 'node:test';
import type { Browser, Page } from 'playwright-core';
import { configurationBody, expectBody, launch, layout, settle, visit, VIEWPORTS } from './harness.ts';
-const measure = (page: Page) => page.locator('.configpage').evaluate(root => {
+const measure = (page: Page, names = ['开机自启', '自动更新']) => page.locator('.configpage').evaluate((root, names) => {
const rect = (el: Element) => {
const r = el.getBoundingClientRect();
return { x: r.x, y: r.y, width: r.width, height: r.height };
};
- const sections = ['开机自启', '外部入口'].map(name => root.querySelector(`[aria-label="${name}"]`)!);
+ const sections = names.map(name => root.querySelector(`[aria-label="${name}"]`)!);
return {
nav: rect(root.querySelector('.board-local-nav')!),
selected: root.querySelector('.board-local-nav [aria-selected="true"]')?.textContent,
sections: sections.map(section => ({
label: rect(section.firstElementChild!),
card: rect(section.lastElementChild!),
- save: rect(section.querySelector('button')!),
+ // 保存键在卡片页脚,取分区里最后一个按钮:Select 的触发器也是 button。
+ save: rect([...section.querySelectorAll('button')].at(-1)!),
})),
};
-});
+}, names);
describe('配置页等待态', () => {
let browser: Browser;
@@ -33,16 +34,18 @@ describe('配置页等待态', () => {
await settle(page);
const nav = page.getByRole('tablist', { name: '配置分区' });
assert.equal(await nav.getAttribute('aria-orientation'), 'horizontal');
- const geometry = await measure(page);
+ const geometry = await measure(page, ['开机自启']);
assert.ok(geometry.nav.y + geometry.nav.height <= geometry.sections[0].label.y);
- const input = page.getByRole('textbox', { name: 'JavDB 地址', exact: true });
+ await nav.getByRole('tab', { name: '网络与访问', exact: true }).click();
+ // 切到别的页签后这一栏所在的面板隐藏,值仍要留在原处。
+ const input = page.getByRole('textbox', { name: 'JavDB 地址', exact: true, includeHidden: true });
await input.fill('example.invalid');
const general = nav.getByRole('tab', { name: '通用', exact: true });
- await general.focus();
+ await general.click();
await page.keyboard.press('ArrowRight');
assert.equal(await nav.getByRole('tab', { name: '媒体', exact: true }).getAttribute('aria-selected'), 'true');
await page.keyboard.press('End');
- assert.equal(await nav.getByRole('tab', { name: '更新与维护' }).getAttribute('aria-selected'), 'true');
+ assert.equal(await nav.getByRole('tab', { name: '维护' }).getAttribute('aria-selected'), 'true');
await page.keyboard.press('Home');
assert.equal(await input.inputValue(), 'example.invalid');
const bounds = await layout(page);
@@ -69,7 +72,7 @@ describe('配置页等待态', () => {
await pending;
await route.fulfill({ json: { ...data, startup: {
available: true, enabled: true, silent: true, desktop: true, desktop_message: '', message: '',
- } } });
+ }, automatic_updates: { mode: 'check', interval_hours: 24, available: true, download_available: false } } });
});
await opened.page.reload({ waitUntil: 'load' });
await opened.page.locator('[data-skeleton="board/configuration"]').waitFor();
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index 3cbb3558c..63b57e981 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -869,7 +869,7 @@ describe('设计决定', () => {
assert.notEqual(surface, 'rgba(0, 0, 0, 0)', '警示没有底色');
assert.equal(surface, await tokenColor(opened.page, '.peach-react', '--color-status-yellow-background'));
const ink = await note.evaluate((element) => getComputedStyle(element).color);
- const hint = await opened.form.getByText('保存后立即生效。').evaluate((element) => getComputedStyle(element).color);
+ const hint = await opened.form.getByText('关闭访问密码时无需填写。').evaluate((element) => getComputedStyle(element).color);
assert.notEqual(ink, hint, '警示文字和字段说明同色');
assert.deepEqual(opened.problems, []);
} finally {
diff --git a/frontend/e2e/smoke.test.ts b/frontend/e2e/smoke.test.ts
index b883ac9f2..f1dc29cca 100644
--- a/frontend/e2e/smoke.test.ts
+++ b/frontend/e2e/smoke.test.ts
@@ -172,7 +172,7 @@ describe('路由冒烟', () => {
// 设置浮层的那一排 tab 常驻 DOM、关着时不可见;只点页面上看得见的那一排。
const tabs = opened.page.locator('.board-local-nav [role="tab"]:visible');
const count = await tabs.count();
- // 选择器一旦对不上,循环一格都不跑也照样绿;配置页至少有媒体、网络与访问、更新与维护三格。
+ // 选择器一旦对不上,循环一格都不跑也照样绿;配置页至少有媒体、网络与访问、维护三格。
if (route.path === '/configuration') assert.ok(count >= 3, `配置页只看到 ${count} 个分区 tab`);
for (let index = 0; index < count; index += 1) {
const tab = tabs.nth(index);
diff --git a/frontend/src/configuration-copy.ts b/frontend/src/configuration-copy.ts
index d40e9ea3a..d480169d2 100644
--- a/frontend/src/configuration-copy.ts
+++ b/frontend/src/configuration-copy.ts
@@ -1,6 +1,4 @@
/** 配置首屏与正式表单共用文案,保持文字和换行高度一致。 */
-export const ENTRY_LINKS_HELP = 'JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 '
- + '资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 '
- + '缺少这些记录的 FC2 创作者不会显示这两个入口。';
+export const ENTRY_LINKS_HELP = 'JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。';
-export const ENTRY_LINKS_HINT = '仅填域名;留空使用默认地址';
+export const ENTRY_LINKS_HINT = '只填域名,留空用默认地址';
diff --git a/frontend/src/configuration-skeleton.ts b/frontend/src/configuration-skeleton.ts
index 968c6f48d..1d18335fd 100644
--- a/frontend/src/configuration-skeleton.ts
+++ b/frontend/src/configuration-skeleton.ts
@@ -1,14 +1,12 @@
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">${ENTRY_LINKS_HINT}</p></div>`;
+const row = (label: string, description = '', control = 'configuration-skeleton-toggle') => `<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 ${control}"></span></div>`;
export function configurationSkeleton(): string {
- const nav = `<div class="board-local-nav" data-section-nav data-section-items>${['通用', '媒体', '网络与访问', '更新与维护'].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">${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>`;
+ const nav = `<div class="board-local-nav" data-section-nav data-section-items>${['通用', '媒体', '下载', '网络与访问', '维护'].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('静默启动', '开机后只显示托盘图标,不打开网页。')}${row('在桌面创建快捷方式', '双击图标打开 Peach 网页。')}</div>`);
+ const updates = section('自动更新', `<div class="flex flex-col">${row('自动检查新版本')}${row('自动下载更新')}${row('检查频率', '', 'configuration-skeleton-select')}</div>`);
+ return `<div class="peach-react"><div class="configpage">${nav}<div class="flex flex-col gap-6">${startup}${updates}</div></div></div>`;
}
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 4dc38bbab..7e0792910 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -268,8 +268,8 @@ export interface ConfigurationProps {
reopenTutorial(): Promise<void>;
}
-/** 配置页的一个分组(「通用」「媒体」「网络与访问」「更新与维护」)。
- * 重开教程那一半只归「更新与维护」,别的分组不必接它。 */
+/** 配置页的一个分组(「通用」「媒体」「下载」「网络与访问」「维护」)。
+ * 重开教程那一半只归「维护」,别的分组不必接它。 */
export interface ConfigurationGroupProps extends Pick<ConfigurationProps, 'receipt'> {
data: ConfigurationData;
}
diff --git a/frontend/src/react/settings/access-settings.tsx b/frontend/src/react/settings/access-settings.tsx
index bf03637af..c81f1811c 100644
--- a/frontend/src/react/settings/access-settings.tsx
+++ b/frontend/src/react/settings/access-settings.tsx
@@ -88,7 +88,7 @@ export function AccessSettings({ initial, receipt }: AccessSettingsProps) {
</Stack>
</div>
{editable
- ? <Footer status="保存后立即生效。"><Button type="submit" {...busyProps(action.busy === 'save')}>保存配置</Button></Footer>
+ ? <Footer><Button type="submit" {...busyProps(action.busy === 'save')}>保存配置</Button></Footer>
: null}
</Section>
);
diff --git a/frontend/src/react/settings/clouddrive-guide.tsx b/frontend/src/react/settings/clouddrive-guide.tsx
index 7edf4f56e..0d2f62726 100644
--- a/frontend/src/react/settings/clouddrive-guide.tsx
+++ b/frontend/src/react/settings/clouddrive-guide.tsx
@@ -15,12 +15,12 @@ const READINGS = [['cache', '缓存上限'], ['read', '读取长度(默认 /
export function CloudDriveGuide() {
return (
<div className="@container flex flex-col gap-3">
- <Help>
- 先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。
- <ExternalLink href="https://www.clouddrive2.com/help.html">挂载帮助</ExternalLink>
- </Help>
- <Disclosure summary="CloudDrive 缓存建议">
- <Help>按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。</Help>
+ <Disclosure summary="CloudDrive 设置帮助">
+ <Help>
+ 先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。
+ <ExternalLink href="https://www.clouddrive2.com/help.html">挂载帮助</ExternalLink>
+ </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 c965bce4e..63e575838 100644
--- a/frontend/src/react/settings/configuration-page.tsx
+++ b/frontend/src/react/settings/configuration-page.tsx
@@ -1,5 +1,5 @@
/* 配置页(`/configuration`):这台运行 Peach 的电脑上那些要「保存配置」的多字段表单。
- * 四个分区排成一条窄列,每组一个小标题。服务端按两道门放行,不能编辑时「媒体」那一组只留
+ * 五个分区排成一条窄列,每组一个小标题。服务端按两道门放行,不能编辑时「媒体」那一组只留
* 一句原因。设置弹层里只有一张摘要卡指到这里(ADR-0050)。
*
* 遗留壳按 `.configgroup` 小标题把后面那一个兄弟节点切进页签(`web/app.js` 的
@@ -11,6 +11,7 @@ import { errorMessage } from '../../api';
import type { ConfigurationGroupProps, ConfigurationProps } from '../bundle';
import { Note } from '../components/note';
import { CONFIGURATION_KEY, fetchConfiguration } from './configuration';
+import { DownloadGroup } from './download-settings';
import { GeneralSettings } from './general-settings';
import { MaintenanceSettings } from './maintenance-settings';
import { MediaSettings } from './media-settings';
@@ -31,17 +32,19 @@ export function ConfigurationPage({ receipt, reopenTutorial }: ConfigurationProp
);
}
const group: ConfigurationGroupProps = { data, receipt };
- const general = Boolean(data.startup || data.entry_links);
- const network = Boolean(data.peach_proxy || data.access || data.tunnel);
+ const general = Boolean(data.startup || data.automatic_updates || data.updates);
+ const network = Boolean(data.peach_proxy || data.entry_links || data.access || data.tunnel);
return (
<div className="configpage">
{general ? <h2 className="configgroup">通用</h2> : null}
{general ? <GeneralSettings {...group} /> : null}
<h2 className="configgroup">媒体</h2>
<MediaSettings {...group} />
+ {data.downloads ? <h2 className="configgroup">下载</h2> : null}
+ {data.downloads ? <DownloadGroup initial={data.downloads} receipt={receipt} /> : null}
{network ? <h2 className="configgroup">网络与访问</h2> : null}
{network ? <NetworkSettings {...group} /> : null}
- <h2 className="configgroup">更新与维护</h2>
+ <h2 className="configgroup">维护</h2>
<MaintenanceSettings {...group} reopenTutorial={reopenTutorial} />
</div>
);
diff --git a/frontend/src/react/settings/download-settings.tsx b/frontend/src/react/settings/download-settings.tsx
index 486625a37..98c7e5127 100644
--- a/frontend/src/react/settings/download-settings.tsx
+++ b/frontend/src/react/settings/download-settings.tsx
@@ -25,6 +25,7 @@ import type {
} from '../bundle';
import { LoadingDots } from '../components/loading-dots';
import { Note } from '../components/note';
+import { IndexerSettings } from './indexer-settings';
import {
Disclosure, ErrorText, ExternalLink, Fact, FactList, FieldLabel, Footer, Help, Section, Stack,
} from './section';
@@ -38,6 +39,19 @@ const LOGOUT_URL = '/api/configuration/downloads/pikpak/logout';
const BROWSER_URL = '/api/configuration/downloads/pikpak/browser-login';
const POLL_MS = 2000;
+/** 「下载」分组:云下载、PikPak 账号与资源索引器。 */
+export function DownloadGroup({ initial, receipt }: {
+ initial: DownloadSettingsState;
+ receipt(message: string): void;
+}) {
+ return (
+ <div className="flex flex-col gap-6">
+ <DownloadSettings initial={initial} receipt={receipt} />
+ <IndexerSettings receipt={receipt} />
+ </div>
+ );
+}
+
export function DownloadSettings({ initial, receipt }: {
initial: DownloadSettingsState;
receipt(message: string): void;
@@ -161,21 +175,20 @@ function DownloadForm({ state, settle, receipt, pikpakAccount }: CardProps & { p
return (
<Section title="云下载" onSubmit={submit}>
<Stack>
- <Help>把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。
- 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。</Help>
+ <Help>把磁力交给 115 或 PikPak 离线下载,下完由推送发现自动入库。</Help>
<Input label="CloudDrive2 地址" placeholder="留空自动探测本机 19798 / 29798" autoComplete="off" maxLength={200}
value={config.clouddrive_address} isDisabled={!state.available}
onChange={(value) => setConfig({ ...config, clouddrive_address: value })} />
<Input label="CloudDrive2 API 令牌" type="password" autoComplete="off" maxLength={400}
placeholder={state.token_set ? '已保存,留空不改' : '在 CloudDrive2「设置 → API 令牌」中生成'}
- hint="令牌需要「提交离线任务」「查看离线任务与配额」两项权限;要在 Peach 里取消任务,再勾上「取消离线任务」;要在 Peach 里新建目标目录,再勾上新建文件夹权限(allow_create_folder)。"
+ hint="生成时勾选离线任务相关权限,缺哪项「检查」会列出来。"
value={token} isDisabled={!state.available} onChange={setToken} />
<Input label="115 目标目录" placeholder="留空时按推送发现自动填写" autoComplete="off" maxLength={300}
validationBehavior="aria" isInvalid={missing}
- hint={missing ? (saveBlocked ? '这个目录还不存在,保存前先在下方新建它,或改成 CloudDrive2 里已有的目录。' : 'CloudDrive2 里还没有这个目录。') : 'CloudDrive2 挂载树里的路径,要落在「推送发现」的某个云端路径前缀下面,下载完才找得到。留空保存时按推送发现里 115 那条前缀填上「前缀/云下载」。'}
+ hint={missing ? (saveBlocked ? '这个目录还不存在,保存前先在下方新建它,或改成 CloudDrive2 里已有的目录。' : 'CloudDrive2 里还没有这个目录。') : '要在推送发现的云端路径前缀下面,留空自动填写。'}
value={target('115')} isDisabled={!state.available} onChange={(value) => setTarget('115', value)} />
<Input label="PikPak 目标目录" placeholder="以 / 开头的网盘路径" autoComplete="off" maxLength={300}
- hint="PikPak 网盘里的路径,目录要已经存在。"
+ hint="目录要已经存在。"
value={target('pikpak')} isDisabled={!state.available} onChange={(value) => setTarget('pikpak', value)} />
<div className="flex flex-col gap-1">
<FieldLabel>PikPak 根目录对应的媒体文件夹</FieldLabel>
@@ -190,7 +203,7 @@ function DownloadForm({ state, settle, receipt, pikpakAccount }: CardProps & { p
)}
</div>
<Input label="等待上限(小时)" type="number" inputMode="numeric" autoComplete="off"
- hint={`远端超过这么久还没下完就标为停滞,多半是没有人做种。1 到 ${state.max_wait_hours} 小时。`}
+ hint={`超过这么久还没下完就标为停滞,1 到 ${state.max_wait_hours} 小时。`}
value={hours} isDisabled={!state.available} onChange={setHours} />
</Stack>
{action.busy === 'auto' ? <Stack divided><LoadingDots label="正在检查 CloudDrive2" /></Stack> : null}
@@ -377,8 +390,7 @@ function PikPakAccount({ state, settle, receipt, username, setUsername }: CardPr
</FactList>
) : browser.available ? (
<Stack>
- <Help>「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。</Help>
- <Help>PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。</Help>
+ <Help>在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。</Help>
{outcome ? (outcomeFailed ? <ErrorText>{outcome}</ErrorText> : <Help role="status">{outcome}</Help>) : null}
<Disclosure summary="用账号密码登录">
<div className="flex flex-col gap-4">
@@ -390,7 +402,7 @@ function PikPakAccount({ state, settle, receipt, username, setUsername }: CardPr
</Stack>
) : (
<Stack>
- <Help>PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。</Help>
+ <Help>账号密码只用来换登录令牌,令牌存在这台电脑上。</Help>
{passwordForm}
</Stack>
)}
diff --git a/frontend/src/react/settings/folder-rows.tsx b/frontend/src/react/settings/folder-rows.tsx
index 0fe19c413..940161507 100644
--- a/frontend/src/react/settings/folder-rows.tsx
+++ b/frontend/src/react/settings/folder-rows.tsx
@@ -103,8 +103,9 @@ export function useFolderRows<T extends FolderRowValue>({ initial, blank, pickFo
}
/** 一行描边卡。`label` 是路径框的无障碍名,`children` 排进路径下面那一格。`error` 原样放进路径框
- * 下的提示,调用方可以传一段带 `role="alert"` 的节点让读屏播报。 */
-export function FolderRow({ label, path, onPath, error, inputRef, picking, onPick, onRemove, children }: {
+ * 下的提示,调用方可以传一段带 `role="alert"` 的节点让读屏播报。`status` 排在路径框右侧,
+ * 配置页用它标这个文件夹此刻在不在线。 */
+export function FolderRow({ label, path, onPath, error, inputRef, picking, onPick, onRemove, status, children }: {
label: string;
path: string;
onPath: (path: string) => void;
@@ -113,6 +114,7 @@ export function FolderRow({ label, path, onPath, error, inputRef, picking, onPic
picking: boolean;
onPick: () => void;
onRemove?: () => void;
+ status?: ReactNode;
children: ReactNode;
}) {
return (
@@ -121,6 +123,7 @@ export function FolderRow({ label, path, onPath, error, inputRef, picking, onPic
<Input className="min-w-0 flex-1" aria-label={label} placeholder="本机文件夹路径"
value={path} onChange={onPath} ref={inputRef}
validationBehavior="aria" isInvalid={Boolean(error)} hint={error || undefined} />
+ {status ? <div className="flex h-10 shrink-0 items-center">{status}</div> : null}
<IconButton icon={FolderSearchIcon} aria-label="选择文件夹" onClick={onPick} {...busyProps(picking)} />
{onRemove ? <IconButton icon={RiCloseLine} aria-label="移除这个文件夹" onClick={onRemove} /> : null}
</div>
diff --git a/frontend/src/react/settings/general-settings.tsx b/frontend/src/react/settings/general-settings.tsx
index e226f88f3..e79409651 100644
--- a/frontend/src/react/settings/general-settings.tsx
+++ b/frontend/src/react/settings/general-settings.tsx
@@ -1,4 +1,4 @@
-/* 「通用」分组:开机自启与桌面快捷方式,人物资料页那三枚外部入口。 */
+/* 「通用」分组:开机自启与桌面快捷方式,自动更新与检查更新。 */
import { useState, type FormEvent } from 'react';
import { SettingsRow } from '@/components/application/settings/settings-rows';
@@ -7,7 +7,8 @@ import { Switch } from '@/components/base/switch/switch';
import { apiSend } from '../../api';
import type { ConfigurationGroupProps, StartupState } from '../bundle';
-import { EntryLinksForm } from './entry-links-settings';
+import { AutomaticUpdates } from './maintenance-settings';
+import { ReleaseUpdates } from './release-updates';
import { ErrorText, Footer, Help, Rows, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
@@ -15,7 +16,8 @@ export function GeneralSettings({ data, receipt }: ConfigurationGroupProps) {
return (
<div className="flex flex-col gap-6">
{data.startup ? <StartupSettings startup={data.startup} receipt={receipt} /> : null}
- {data.entry_links ? <EntryLinksForm initial={data.entry_links} receipt={receipt} /> : null}
+ {data.automatic_updates ? <AutomaticUpdates initial={data.automatic_updates} receipt={receipt} /> : null}
+ {data.updates ? <ReleaseUpdates initial={data.updates} initialJob={data.update_job} /> : null}
</div>
);
}
@@ -42,10 +44,10 @@ export function StartupSettings({ startup, receipt }: { startup: StartupState; r
<SettingsRow label="开机后启动 Peach">
<Switch aria-label="开机后启动 Peach" isSelected={enabled} isDisabled={!startup.available} onChange={setEnabled} />
</SettingsRow>
- <SettingsRow label="静默启动" description="开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。">
+ <SettingsRow label="静默启动" description="开机后只显示托盘图标,不打开网页。">
<Switch aria-label="静默启动" isSelected={silent} isDisabled={!startup.available || !enabled} onChange={setSilent} />
</SettingsRow>
- <SettingsRow label="在桌面创建快捷方式" description={startup.desktop_message || '双击图标打开 Peach 网页;卸载时一并移除。'}>
+ <SettingsRow label="在桌面创建快捷方式" description={startup.desktop_message || '双击图标打开 Peach 网页。'}>
<Switch aria-label="在桌面创建快捷方式" isSelected={desktop} isDisabled={!desktopReady} onChange={setDesktop} />
</SettingsRow>
</Rows>
diff --git a/frontend/src/react/settings/indexer-settings.tsx b/frontend/src/react/settings/indexer-settings.tsx
index 31538be31..040083047 100644
--- a/frontend/src/react/settings/indexer-settings.tsx
+++ b/frontend/src/react/settings/indexer-settings.tsx
@@ -37,19 +37,20 @@ function IndexerForm({ initial, receipt }: { initial: State; receipt(message: st
return (
<Section title="资源索引器" onSubmit={save}>
<Stack>
- <Help>用户自配索引器。填写 Prowlarr 或 Jackett 提供的 Torznab API 地址,在活动页「云下载」中按番号搜索。</Help>
+ <Help>接入 Prowlarr 或 Jackett 后,活动页「云下载」可以按番号搜磁力。
+ Prowlarr 的 Torznab 地址在索引器列表里每个索引器的详情中复制,API key 在 Settings → General。</Help>
{rows.map((row, index) => (
<div key={row.key} className="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">
<Input label={`索引器 ${index + 1} 名称`} value={row.name} maxLength={80}
isDisabled={Boolean(action.busy)} onChange={(name) => update(row.key, { name })} />
- <Input label={`索引器 ${index + 1} API 地址`} value={row.url} type="url" autoComplete="off"
- hint="不带 apikey 或其他查询参数。" isDisabled={Boolean(action.busy)}
+ <Input label={`索引器 ${index + 1} Torznab 地址`} value={row.url} type="url" autoComplete="off"
+ placeholder="http://127.0.0.1:9696/1/api" isDisabled={Boolean(action.busy)}
onChange={(url) => update(row.key, { url })} />
<Input label={`索引器 ${index + 1} API key`} type="password" autoComplete="new-password"
- value={row.api_key || ''} hint={row.api_key_set ? '已保存;地址不变时留空保留。' : '仅保存在这台电脑。'}
+ value={row.api_key || ''} placeholder={row.api_key_set ? '已保存,留空不改' : undefined}
isDisabled={Boolean(action.busy)} onChange={(api_key) => update(row.key, { api_key })} />
<Checkbox isSelected={row.enabled} isDisabled={Boolean(action.busy)}
- onChange={(enabled) => update(row.key, { enabled })}>启用 · 用户自配索引器</Checkbox>
+ onChange={(enabled) => update(row.key, { enabled })}>启用</Checkbox>
{row.api_key_set ? <Checkbox isSelected={Boolean(row.clear_api_key)}
isDisabled={Boolean(action.busy)} onChange={(clear_api_key) => update(row.key, { clear_api_key })}>
清除已保存的 API key
@@ -60,9 +61,9 @@ function IndexerForm({ initial, receipt }: { initial: State; receipt(message: st
))}
{action.error ? <ErrorText>{action.error}</ErrorText> : null}
</Stack>
- <Footer status="保存后生效;关闭或移除索引器会停止向它查询。">
+ <Footer>
<Button type="button" disabled={Boolean(action.busy) || rows.length >= initial.max_indexers}
- onClick={() => setRows([...rows, { key: crypto.randomUUID(), name: '', url: '', enabled: false, api_key_set: false }])}>
+ onClick={() => setRows([...rows, { key: crypto.randomUUID(), name: '', url: '', enabled: true, api_key_set: false }])}>
添加索引器
</Button>
<Button type="submit" {...busyProps(action.busy === 'save')}>保存配置</Button>
diff --git a/frontend/src/react/settings/maintenance-settings.tsx b/frontend/src/react/settings/maintenance-settings.tsx
index ae68fca5c..d11a03fad 100644
--- a/frontend/src/react/settings/maintenance-settings.tsx
+++ b/frontend/src/react/settings/maintenance-settings.tsx
@@ -1,4 +1,5 @@
-/* 「更新与维护」分组:自动更新、检查更新、运行信息、重开安装教程,卸载排在最后。 */
+/* 「维护」分组:运行信息与系统诊断、重开安装教程,卸载排在最后。自动更新卡定义在这里,
+ * 摆在「通用」分组。 */
import { useState, type FormEvent } from 'react';
import { confirmModal } from '@peach/legacy/ui';
@@ -14,7 +15,6 @@ import type {
AutomaticUpdateState, ConfigurationFact, ConfigurationGroupProps, ConfigurationProps, UninstallState,
} from '../bundle';
import { PathLine } from '../components/path-line';
-import { ReleaseUpdates } from './release-updates';
import { Disclosure, ErrorText, ExternalLink, Fact, FactList, Footer, Help, Rows, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
@@ -25,10 +25,7 @@ export function MaintenanceSettings(
) {
return (
<div className="flex flex-col gap-6">
- {data.automatic_updates ? <AutomaticUpdates initial={data.automatic_updates} receipt={receipt} /> : null}
- {data.updates ? <ReleaseUpdates initial={data.updates} initialJob={data.update_job} /> : null}
<Facts facts={data.facts} />
- <Section title="系统诊断"><Stack><div><LinkButton href="/diagnostics">打开系统诊断</LinkButton></div></Stack></Section>
<TutorialSettings receipt={receipt} reopenTutorial={reopenTutorial} />
{data.uninstall ? <UninstallSettings uninstall={data.uninstall} receipt={receipt} /> : null}
</div>
@@ -68,8 +65,8 @@ export function AutomaticUpdates({ initial, receipt }: { initial: AutomaticUpdat
const help = !initial.available
? '自动更新需要由托盘管理的服务。'
: initial.download_available
- ? '开启后一分钟内开始检查。下载完成后,在此确认重启安装。'
- : '开启后一分钟内开始检查。源码运行时在发布页获取新版本。';
+ ? '下载完成后在这里确认重启安装。'
+ : undefined;
return (
<Section title="自动更新" onSubmit={submit}>
<Rows>
@@ -108,6 +105,9 @@ function Facts({ facts }: { facts: ConfigurationFact[] }) {
</Fact>
))}
</FactList>
+ <Footer>
+ <LinkButton href="/diagnostics">打开系统诊断</LinkButton>
+ </Footer>
</Section>
);
}
diff --git a/frontend/src/react/settings/media-settings.tsx b/frontend/src/react/settings/media-settings.tsx
index 0e02c8583..7b5e7be2b 100644
--- a/frontend/src/react/settings/media-settings.tsx
+++ b/frontend/src/react/settings/media-settings.tsx
@@ -1,4 +1,4 @@
-/* 「媒体」分组:这台电脑的媒体文件夹与本机端口,加各来源的挂载状态。
+/* 「媒体」分组:这台电脑的媒体文件夹、本机端口与推送发现,每个文件夹标着挂载状态。
*
* 服务端按两道门放行:托盘管理的服务、且从运行 Peach 的这台电脑打开时 `editable` 才为真;
* 其它情况表单不画,只留一句为什么。保存成功后 Peach 会重启,这里给一句持久提示、一条新地址
@@ -20,9 +20,7 @@ import { queryClient } from '../query';
import { RESTART_REDIRECT_MS } from '../restart-redirect';
import { CloudDriveGuide } from './clouddrive-guide';
import { CONFIGURATION_KEY, fetchConfiguration } from './configuration';
-import { DownloadSettings } from './download-settings';
import { FolderRow, isCloudSource, MEDIA_SOURCES, SourceSelect, sourceMark, useFolderRows, WindowsRootInput } from './folder-rows';
-import { IndexerSettings } from './indexer-settings';
import { LibraryIconPicker } from './library-icon-picker';
import { PushDiscoveryForm } from './push-discovery-settings';
import {
@@ -55,16 +53,15 @@ const fieldErrorsOf = (cause: unknown): FieldErrors | null => {
return (cause.body as { errors?: FieldErrors } | null)?.errors ?? null;
};
+/* 能编辑时挂载状态标在每个文件夹行上;只读时没有那张表,单列一块。 */
export function MediaSettings({ data, receipt }: ConfigurationGroupProps) {
return (
<div className="flex flex-col gap-6">
{data.editable ? <MediaForm data={data} receipt={receipt} /> : <Note tone="neutral" title="只读">{data.notice}</Note>}
- <MountStatus data={data} />
+ {data.editable ? null : <MountStatus data={data} />}
{data.push_discovery
? <PushDiscoveryForm initial={data.push_discovery} receipt={receipt} />
: null}
- {data.downloads ? <DownloadSettings initial={data.downloads} receipt={receipt} /> : null}
- {data.downloads ? <IndexerSettings receipt={receipt} /> : null}
</div>
);
}
@@ -122,6 +119,8 @@ function MediaForm({ data, receipt }: ConfigurationGroupProps) {
);
}
+ // 挂载状态是已保存的那份配置的读数,只标在路径没改过的行上。
+ const mountOf = (path: string) => (path ? data.media_sources?.find((source) => source.path === path) : undefined);
const cloud = rows.some((row) => isCloudSource(row.location));
const missing = cloud ? (data.mount_dependencies ?? []).filter((dependency) => !dependency.available) : [];
return (
@@ -134,7 +133,8 @@ function MediaForm({ data, receipt }: ConfigurationGroupProps) {
<FolderRow key={index} label={`媒体文件夹 ${index + 1}`} path={row.path}
onPath={(path) => edit(index, { path })} error={rowErrors[index]} inputRef={inputRef(index)}
picking={picking === index} onPick={() => void pick(index)}
- onRemove={rows.length > 1 ? () => remove(index) : undefined}>
+ onRemove={rows.length > 1 ? () => remove(index) : undefined}
+ status={mountOf(row.path) ? <MountBadge online={mountOf(row.path)?.online} /> : null}>
<Input label="媒体库名称" maxLength={80} placeholder="同名文件夹归入同一个媒体库"
value={row.library} onChange={(library) => edit(index, { library })} />
<div className="flex flex-col gap-1.5">
@@ -167,7 +167,7 @@ function MediaForm({ data, receipt }: ConfigurationGroupProps) {
<Checkbox isSelected={scanNow} onChange={setScanNow}>保存后扫描并补全资料</Checkbox>
{failure ? <Note tone="error" title="没有保存">{failure}</Note> : null}
</Stack>
- <Footer status={data.port_editable === false ? '保存后 Peach 会重新载入配置。' : '保存后 Peach 会重新启动,端口改了就用新地址打开。'}>
+ <Footer status={data.port_editable === false ? undefined : '保存后 Peach 会重新启动,端口改了就用新地址打开。'}>
<Button type="submit" {...busyProps(action.busy === 'save')}>保存配置</Button>
</Footer>
</Section>
diff --git a/frontend/src/react/settings/network-settings.tsx b/frontend/src/react/settings/network-settings.tsx
index a65a558b6..8bef869ee 100644
--- a/frontend/src/react/settings/network-settings.tsx
+++ b/frontend/src/react/settings/network-settings.tsx
@@ -1,4 +1,4 @@
-/* 「网络与访问」分组:Peach 代理与本机访问密码。 */
+/* 「网络与访问」分组:Peach 代理、外部入口镜像、本机访问密码与公网入口。 */
import { useState, type FormEvent } from 'react';
import { SettingsRow } from '@/components/application/settings/settings-rows';
@@ -10,6 +10,7 @@ import { apiSend } from '../../api';
import type { ConfigurationGroupProps, PeachProxyState } from '../bundle';
import { Note } from '../components/note';
import { AccessSettings } from './access-settings';
+import { EntryLinksForm } from './entry-links-settings';
import { TunnelSettings } from './tunnel-settings';
import { ErrorText, Footer, Rows, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
@@ -20,6 +21,7 @@ export function NetworkSettings({ data, receipt }: ConfigurationGroupProps) {
return (
<div className="flex flex-col gap-6">
{data.peach_proxy ? <PeachProxy initial={data.peach_proxy} receipt={receipt} /> : null}
+ {data.entry_links ? <EntryLinksForm initial={data.entry_links} receipt={receipt} /> : null}
{data.access ? <AccessSettings initial={data.access} receipt={receipt} /> : null}
{data.tunnel ? <TunnelSettings revision={data.revision} initial={data.tunnel} receipt={receipt} /> : null}
</div>
diff --git a/frontend/src/react/settings/push-discovery-settings.tsx b/frontend/src/react/settings/push-discovery-settings.tsx
index c504d0544..5f4d485ea 100644
--- a/frontend/src/react/settings/push-discovery-settings.tsx
+++ b/frontend/src/react/settings/push-discovery-settings.tsx
@@ -80,19 +80,18 @@ export function PushDiscoveryForm({ initial, receipt }: {
return (
<Section title="推送发现" onSubmit={submit}>
<Rows>
- <SettingsRow label="新文件落地就入库"
- description="打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。">
+ <SettingsRow label="新文件落地就入库">
<Switch aria-label="新文件落地就入库" isSelected={state.enabled} isDisabled={!state.available}
onChange={(enabled) => setState({ ...state, enabled })} />
</SettingsRow>
<SettingsRow label="监视本机文件夹"
- description="订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。">
+ description="只监视本地磁盘,网盘由下面的 CloudDrive2 通知负责。">
<Switch aria-label="监视本机文件夹" isSelected={state.watch_local}
isDisabled={!state.available || !state.enabled}
onChange={(watchLocal) => setState({ ...state, watch_local: watchLocal })} />
</SettingsRow>
<SettingsRow label="接收 CloudDrive2 通知"
- description="由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。">
+ description="网盘里有新文件时由 CloudDrive2 通知 Peach。">
<Switch aria-label="接收 CloudDrive2 通知" isSelected={state.cloud}
isDisabled={!state.available || !state.enabled}
onChange={(cloud) => setState({ ...state, cloud })} />
@@ -114,10 +113,7 @@ export function PushDiscoveryForm({ initial, receipt }: {
<Stack divided>
<div className="flex flex-col gap-3">
<FieldLabel>CloudDrive2 配置内容</FieldLabel>
- <Help>Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。
- 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。
- Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml
- 文件,放入 %LOCALAPPDATA%\CloudDrive.WinUI\webhooks\ 目录。</Help>
+ <Help>在 CloudDrive2「设置 → Webhooks」里新建一条,粘贴这段配置。Webhook 需要 CloudDrive2 会员。</Help>
{live.config_toml ? (
<>
<div>
@@ -137,6 +133,8 @@ export function PushDiscoveryForm({ initial, receipt }: {
{live.config_toml}
</pre>
</div>
+ <Help>Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进
+ %LOCALAPPDATA%\CloudDrive.WinUI\webhooks\ 目录。</Help>
</Disclosure>
</>
) : (
@@ -151,8 +149,7 @@ export function PushDiscoveryForm({ initial, receipt }: {
<Stack divided>
<div className="flex flex-col gap-3">
<FieldLabel>云端路径前缀</FieldLabel>
- <Help>左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。
- Peach 按此对应关系定位通知中的文件。</Help>
+ <Help>左边填 CloudDrive2 里的目录,右边选它对应的媒体文件夹。</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">
@@ -182,7 +179,7 @@ export function PushDiscoveryForm({ initial, receipt }: {
{failure || action.error
? <Stack divided><ErrorText>{failure || action.error}</ErrorText></Stack> : null}
<Footer status={live.enabled && live.cloud
- ? '换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。' : undefined}>
+ ? '更换密钥后要在 CloudDrive2 重新粘贴配置。' : undefined}>
{live.enabled && live.cloud ? (
<Button onClick={rotate} disabled={!state.available}
{...busyProps(action.busy === 'secret')}>更换密钥</Button>
diff --git a/frontend/src/react/settings/release-updates.tsx b/frontend/src/react/settings/release-updates.tsx
index 7c6a29b4d..78e966783 100644
--- a/frontend/src/react/settings/release-updates.tsx
+++ b/frontend/src/react/settings/release-updates.tsx
@@ -93,13 +93,14 @@ export function ReleaseUpdates({ initial, initialJob }: { initial: ReleaseState;
<Fact term="更新通道">{data.channel}</Fact>
<Fact term="最新版本">{data.latest_version || (data.state === 'unchecked' ? '尚未检查' : '未取得')}</Fact>
</FactList>
- <Stack divided>
+ {/* 还没检查过时「最新版本」那一行已经写着「尚未检查」,下面不再说一遍。 */}
+ {data.state === 'unchecked' && !data.checked_at && !error && job.state === 'idle' ? null : <Stack divided>
{data.checked_at ? <Help>检查于 {new Date(data.checked_at * 1000).toLocaleString()}</Help> : null}
{data.state === 'available' && !error
? <Note tone="info" title="有可用更新">{data.message}</Note>
: error || data.state === 'error'
? <ErrorText>{error || data.message}</ErrorText>
- : <Help role="status">{data.message}</Help>}
+ : data.state === 'unchecked' ? null : <Help role="status">{data.message}</Help>}
{job.state === 'error' ? <ErrorText>{job.message}</ErrorText> : null}
{job.state !== 'idle' && job.state !== 'error' ? (
<div aria-live="polite" className="flex flex-col gap-2">
@@ -108,7 +109,7 @@ export function ReleaseUpdates({ initial, initialJob }: { initial: ReleaseState;
<Help>{reading}</Help>
</div>
) : null}
- </Stack>
+ </Stack>}
<Footer status={<ExternalLink href={data.release_url}>查看发布页</ExternalLink>}>
{job.state === 'ready' ? <Button onClick={confirmRestart}>重启安装</Button> : null}
{data.state === 'available' && data.installation === '独立测试包' && job.state !== 'ready'
diff --git a/frontend/src/react/settings/tunnel-settings.tsx b/frontend/src/react/settings/tunnel-settings.tsx
index 12b663383..13b2a3070 100644
--- a/frontend/src/react/settings/tunnel-settings.tsx
+++ b/frontend/src/react/settings/tunnel-settings.tsx
@@ -24,9 +24,8 @@ const POLL_INTERVAL = 2000;
const MODES: [TunnelState['mode'], string][] = [['quick', '临时链接'], ['named', '命名隧道']];
const HELP: Record<TunnelState['mode'], string> = {
- quick: '只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。',
- named: '地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,'
- + '身份策略在 Cloudflare Access 里配置。',
+ quick: '临时预览用,地址随机,重启后会变。启动前要先设置访问密码。',
+ named: '使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。',
};
type FieldErrors = Partial<Record<'hostname' | 'mode', string>>;
@@ -113,11 +112,11 @@ export function TunnelSettings({ revision: initialRevision, initial, receipt }:
<Input id="tunnel-hostname" label="公开主机名" autoComplete="off" maxLength={253}
value={hostname} onChange={setHostname} isDisabled={active} validationBehavior="aria"
isInvalid={Boolean(fields.hostname)}
- hint={fields.hostname || '在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。'} />
+ hint={fields.hostname || 'Cloudflare Zero Trust 里指向这台电脑的主机名。'} />
<Input id="tunnel-token" type="password" label="隧道令牌" autoComplete="off" maxLength={2048}
value={token} onChange={setToken} isDisabled={active} validationBehavior="aria"
hint={state.token_set
- ? '已保存。留空表示沿用已保存的令牌。'
+ ? '已保存,留空不改。'
: '在 Cloudflare Zero Trust 的隧道详情页复制。'} />
</> : null}
{!state.available
@@ -130,7 +129,7 @@ export function TunnelSettings({ revision: initialRevision, initial, receipt }:
{state.error ? <ErrorText>{state.error}</ErrorText> : null}
{action.error ? <ErrorText>{action.error}</ErrorText> : null}
</Stack>
- <Footer status={state.enabled ? '服务重启时会按设置尝试恢复。' : '服务重启后保持关闭。'}>
+ <Footer status={state.enabled ? 'Peach 重启后自动恢复。' : undefined}>
<Button onClick={toggle} {...busyProps(action.busy === 'toggle')}>
{active ? '停止公网入口' : '启动公网入口'}
</Button>
diff --git a/frontend/src/ui-kit/skeleton.ts b/frontend/src/ui-kit/skeleton.ts
index eaffb73e7..1faea0c72 100644
--- a/frontend/src/ui-kit/skeleton.ts
+++ b/frontend/src/ui-kit/skeleton.ts
@@ -31,7 +31,7 @@ export function revealSkeleton(container:any,write:()=>void):void{
}
export function configurationSkeletonHtml():string{
- const groups:[string,number][]=[['通用',1],['媒体',2],['网络与访问',2],['更新与维护',3]];
+ const groups:[string,number][]=[['通用',2],['媒体',2],['下载',2],['网络与访问',3],['维护',3]];
return `<div class="configpage" data-skeleton="configuration" role="status" aria-label="正在读取配置">${groups.map(([label,count])=>`<h2 class="configgroup" aria-hidden="true">${label}</h2>${Array.from({length:count},()=>`<div class="configfieldset config-skeleton-card" aria-hidden="true"><div class="geist-fieldset-content"><span class="skeleton"></span><span class="skeleton"></span><span class="skeleton"></span></div><footer class="geist-fieldset-footer"><span class="skeleton"></span></footer></div>`).join('')}`).join('')}</div>`;
}
diff --git a/frontend/test/feedback.test.ts b/frontend/test/feedback.test.ts
index c82e7225b..01a7a48ff 100644
--- a/frontend/test/feedback.test.ts
+++ b/frontend/test/feedback.test.ts
@@ -17,8 +17,8 @@ describe('持久提示控件',()=>{
it('配置骨架标题和卡片共用真实页面网格与正文底栏',()=>{
const host=document.createElement('div');host.innerHTML=configurationSkeletonHtml();
const page=host.querySelector('.configpage')!;
- expect(page.querySelectorAll(':scope > .configgroup')).toHaveLength(4);
- expect(page.querySelectorAll(':scope > .configfieldset')).toHaveLength(8);
+ expect(page.querySelectorAll(':scope > .configgroup')).toHaveLength(5);
+ expect(page.querySelectorAll(':scope > .configfieldset')).toHaveLength(12);
for(const card of page.querySelectorAll('.configfieldset')){
expect(card.querySelector(':scope > .geist-fieldset-content')).not.toBeNull();
expect(card.querySelector(':scope > .geist-fieldset-footer')).not.toBeNull();
diff --git a/frontend/test/react/configuration.test.tsx b/frontend/test/react/configuration.test.tsx
index df680f33a..394bfbb78 100644
--- a/frontend/test/react/configuration.test.tsx
+++ b/frontend/test/react/configuration.test.tsx
@@ -1,4 +1,4 @@
-/* 配置页整页:四个分区怎么排,取不到配置时说什么,以及「一份数据一个读者」。
+/* 配置页整页:五个分区怎么排,取不到配置时说什么,以及「一份数据一个读者」。
*
* 分区的小标题是遗留壳拆左栏页签的依据(`web/app.js` 的 `configTabItems` 按 `.configgroup`
* 切后面的兄弟节点),所以这里量的是结构,不是外观。各分区内部的行为在
@@ -7,7 +7,7 @@ import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
import { afterEach, expect, it, vi } from 'vitest';
import { CONFIGURATION_URL } from '../../src/configuration-endpoints';
-import type { ConfigurationData } from '../../src/react/bundle';
+import type { ConfigurationData, DownloadSettingsState } from '../../src/react/bundle';
import { queryClient } from '../../src/react/query';
import { CONFIGURATION_KEY, prefetchConfiguration } from '../../src/react/settings/configuration';
import { ConfigurationPage } from '../../src/react/settings/configuration-page';
@@ -29,12 +29,26 @@ const startup = {
available: true, enabled: false, silent: true, message: '', desktop: false, desktop_message: '',
};
+const downloadState: DownloadSettingsState = {
+ available: true,
+ config: { clouddrive_address: '', targets: {}, pikpak_root: '', wait_hours: 168 },
+ token_set: false,
+ pikpak: { logged_in: false, username: '', remember: false, method: 'password' },
+ pikpak_browser: { available: true, state: 'idle', message: '' },
+ pikpak_roots: [],
+ providers: [{ key: '115', label: '115' }, { key: 'pikpak', label: 'PikPak' }],
+ max_wait_hours: 1440,
+};
+
/** 按路径应答:配置快照照给,别的路径回一份空闲状态,不让哪一块的自取拖住断言。 */
function serve(config: ConfigurationData) {
const calls: string[] = [];
const fetcher = vi.fn(async (path: string) => {
calls.push(path);
if (path === CONFIGURATION_URL) return { ok: true, status: 200, json: async () => config };
+ if (path === '/api/configuration/indexers') {
+ return { ok: true, status: 200, json: async () => ({ indexers: [], max_indexers: 4 }) };
+ }
return { ok: true, status: 200, json: async () => ({ status: 'idle' }) };
});
vi.stubGlobal('fetch', fetcher);
@@ -55,19 +69,20 @@ async function open(config: ConfigurationData, receipt = vi.fn()) {
const groups = (host: ParentNode) => [...host.querySelectorAll('.configgroup')].map((title) => title.textContent);
-it('四个分区各有小标题,标题和分区交替排在 `.configpage` 的第一层', async () => {
+it('五个分区各有小标题,标题和分区交替排在 `.configpage` 的第一层', async () => {
const host = await open(data({
startup, peach_proxy: { mode: 'environment', proxy_saved: false, needs_selection: false },
+ downloads: downloadState,
}));
- expect(groups(host)).toEqual(['通用', '媒体', '网络与访问', '更新与维护']);
+ expect(groups(host)).toEqual(['通用', '媒体', '下载', '网络与访问', '维护']);
const page = host.querySelector('.configpage')!;
expect([...page.children].map((node) => node.classList.contains('configgroup')))
- .toEqual([true, false, true, false, true, false, true, false]);
+ .toEqual([true, false, true, false, true, false, true, false, true, false]);
});
it('没有内容的组连标题一起省略', async () => {
const host = await open(data());
- expect(groups(host)).toEqual(['媒体', '更新与维护']);
+ expect(groups(host)).toEqual(['媒体', '维护']);
expect(host.textContent).not.toContain('开机自启');
expect(host.textContent).not.toContain('订阅源');
expect(host.textContent).not.toContain('媒体修复');
@@ -90,18 +105,27 @@ it('取不到配置就说打不开,连同服务端给的那句原因', async (
expect(host.querySelector('.configgroup')).toBeNull();
});
-/* 刷新挂载状态重取的是整份配置。它换进整页那一个 `queryKey`:屏幕上只有一份真相,
- 另存一份的话,挂载点在那一块是新的、在上面那张表单里还是旧的。 */
-it('刷新挂载状态换掉整页那一份配置,不动没保存的路径', async () => {
+/* 能编辑时挂载状态标在每个文件夹行上,路径改过的行不标:那是上一次保存的读数。 */
+it('挂载状态标在文件夹行上,改过路径的行不再标', async () => {
const offline = { location: '115', path: 'B:/', root: 'B:/', online: false };
const host = await open(data({ windows: true, media_sources: [offline] }));
- serve(data({ windows: true, media_sources: [{ ...offline, online: true }], revision: 'rev-2' }));
+ const row = host.querySelector('[data-folder-row]')!;
+
+ expect(row.querySelector('[data-mount="offline"]')?.textContent).toBe('离线');
+ expect(section(host, '挂载状态')).toBeNull();
+ await type(row.querySelector<HTMLInputElement>('input[aria-label^="媒体文件夹 "]'), 'B:/Movies');
+ expect(row.querySelector('[data-mount]')).toBeNull();
+});
+
+/* 只读时没有文件夹表单,挂载状态单列一块;刷新重取的是整份配置,换进整页那一个 `queryKey`。 */
+it('只读时挂载状态单列一块,刷新换掉整页那一份配置', async () => {
+ const offline = { location: '115', path: 'B:/', root: 'B:/', online: false };
+ const host = await open(data({ editable: false, notice: '只在本机可改', media_sources: [offline] }));
+ serve(data({ editable: false, notice: '只在本机可改', media_sources: [{ ...offline, online: true }], revision: 'rev-2' }));
- await type(host.querySelector<HTMLInputElement>('input[aria-label^="媒体文件夹 "]'), 'B:/Movies');
await click(buttonNamed('刷新挂载状态', host));
await settle();
expect(section(host, '挂载状态')?.textContent).toContain('在线');
- expect(host.querySelector<HTMLInputElement>('input[aria-label^="媒体文件夹 "]')?.value).toBe('B:/Movies');
expect(queryClient.getQueryData<ConfigurationData>(CONFIGURATION_KEY)?.revision).toBe('rev-2');
});
diff --git a/frontend/test/react/entry-links.test.tsx b/frontend/test/react/entry-links.test.tsx
index 04195d11f..9780543fb 100644
--- a/frontend/test/react/entry-links.test.tsx
+++ b/frontend/test/react/entry-links.test.tsx
@@ -1,6 +1,6 @@
import { expect, it, vi } from 'vitest';
-import { GeneralSettings } from '../../src/react/settings/general-settings';
+import { NetworkSettings } from '../../src/react/settings/network-settings';
import type { ConfigurationData, EntryLinksState } from '../../src/react/bundle';
import { buttonNamed, fetchMock, mount, sentBody, settle, submit, switches, type } from './render';
@@ -19,7 +19,7 @@ it('外部入口:能换镜像的两站各一个地址框,默认留空,保
const fetcher = fetchMock(200, state);
vi.stubGlobal('fetch', fetcher);
const receipt = vi.fn();
- const host = await mount(<GeneralSettings data={data({ entry_links: state })} receipt={receipt} />);
+ const host = await mount(<NetworkSettings data={data({ entry_links: state })} receipt={receipt} />);
// 入口出不出现由账本里有没有站点 id 决定,三枚按钮自己就在资料页上,这里没有开关。
expect(switches(host)).toEqual([]);
// みんなのAV 只此一家,没有域名可换,它不出现在这一页上。
@@ -42,9 +42,9 @@ it('外部入口:能换镜像的两站各一个地址框,默认留空,保
});
it('外部入口:说明就是卡里的头一块,它上面不画线', async () => {
- const host = await mount(<GeneralSettings data={data({ entry_links: state })} receipt={vi.fn()} />);
+ const host = await mount(<NetworkSettings data={data({ entry_links: state })} receipt={vi.fn()} />);
const help = [...host.querySelectorAll('p')]
- .find((node) => node.textContent?.startsWith('JavDB 或 MISSAV 无法访问时'));
+ .find((node) => node.textContent?.startsWith('JavDB 或 MISSAV 打不开时'));
const block = help?.parentElement;
// 那道线是给排在设置行后面的块用的,分隔的是它和上面那组行。这张卡里它自己就是头一块,
// 线画出来上面什么也没有,读成分区标题自带一条下边线。
@@ -52,9 +52,9 @@ it('外部入口:说明就是卡里的头一块,它上面不画线', async (
expect(block?.className).not.toContain('border-t');
});
-it('服务端没下发外部入口时通用组里不画这一节', async () => {
+it('服务端没下发外部入口时网络组里不画这一节', async () => {
// 站点清单由服务端给。前端自己兜一份默认的话,那份迟早和 `peach.entry_links` 分叉。
- const host = await mount(<GeneralSettings data={data()} receipt={vi.fn()} />);
+ const host = await mount(<NetworkSettings data={data()} receipt={vi.fn()} />);
expect(host.textContent).not.toContain('外部入口');
expect(buttonNamed('保存配置', host)).toBeNull();
});
diff --git a/frontend/test/react/maintenance-settings.test.tsx b/frontend/test/react/maintenance-settings.test.tsx
index 3b3aac29c..a0741692c 100644
--- a/frontend/test/react/maintenance-settings.test.tsx
+++ b/frontend/test/react/maintenance-settings.test.tsx
@@ -16,7 +16,7 @@ const release: ReleaseState = {
};
const uninstall = { available: true, full_available: true, message: '', data_root: 'fixture', directories: ['fixture', 'fixture/cache'] };
-it('分区依次是自动更新、检查更新、运行信息、安装教程、卸载;缺依赖的那条运行信息带下载链接', async () => {
+it('分区依次是运行信息、安装教程、卸载;缺依赖的那条运行信息带下载链接,系统诊断入口在运行信息底栏', async () => {
const data: ConfigurationData = {
editable: true, notice: '', revision: 'r', media_dirs: [], library_count: 0, port: 9123,
automatic_updates: automatic, updates: release, uninstall,
@@ -27,8 +27,9 @@ it('分区依次是自动更新、检查更新、运行信息、安装教程、
};
const host = await mount(<MaintenanceSettings data={data} receipt={vi.fn()} reopenTutorial={vi.fn()} />);
expect([...host.firstElementChild!.children].map((node) => node.getAttribute('aria-label')))
- .toEqual(['自动更新', '检查更新', '运行信息', '系统诊断', '安装教程', '卸载 Peach']);
+ .toEqual(['运行信息', '安装教程', '卸载 Peach']);
const facts = section(host, '运行信息')!;
+ expect(facts.querySelector('a[href="/diagnostics"]')?.textContent).toBe('打开系统诊断');
expect([...facts.querySelectorAll('dt')].map((dt) => dt.textContent)).toEqual(['版本', 'FFmpeg']);
const link = facts.querySelector('a[href="https://ffmpeg.org/download.html"]');
expect(link?.getAttribute('target')).toBe('_blank');
@@ -57,13 +58,13 @@ describe('自动更新', () => {
expect(receipt).toHaveBeenCalledTimes(2);
});
- it('源码运行锁住自动下载,说明写在检查频率那一行里,失败原因留在分区里且不报成功', async () => {
+ it('源码运行锁住自动下载,检查频率那一行不带说明,失败原因留在分区里且不报成功', async () => {
vi.stubGlobal('fetch', fetchMock(400, { detail: '设置正在保存' }));
const receipt = vi.fn();
const host = await mount(<AutomaticUpdates initial={{ ...automatic, mode: 'check', download_available: false }} receipt={receipt} />);
expect(switches(host)[1]!.disabled).toBe(true);
const interval = [...host.querySelectorAll('p')].find((p) => p.textContent === '检查频率');
- expect(interval?.nextElementSibling?.textContent).toBe('开启后一分钟内开始检查。源码运行时在发布页获取新版本。');
+ expect(interval?.nextElementSibling).toBeNull();
await submit(host.querySelector('form'));
await settle();
expect(host.querySelector('[role="alert"]')?.textContent).toContain('设置正在保存');
@@ -72,6 +73,12 @@ describe('自动更新', () => {
});
describe('检查更新', () => {
+ it('还没检查过时「尚未检查」只在最新版本那一行出现一次', async () => {
+ vi.stubGlobal('fetch', fetchMock(200, { state: 'idle', progress: 0 }));
+ const host = await mount(<ReleaseUpdates initial={release} />);
+ expect(host.textContent?.split('尚未检查')).toHaveLength(2);
+ });
+
it('刷新后接着已准备好的更新,弹一次重启确认,确认前不发重启', async () => {
vi.useFakeTimers();
const modal = vi.spyOn(legacyUi, 'confirmModal');
diff --git a/frontend/test/react/managed-routes.test.tsx b/frontend/test/react/managed-routes.test.tsx
index dc151be81..ea0484b0b 100644
--- a/frontend/test/react/managed-routes.test.tsx
+++ b/frontend/test/react/managed-routes.test.tsx
@@ -317,7 +317,7 @@ it('配置页打开返回的那一刻,小标题和它的分区已经在容器
await act(async () => {
expect(await r.openManagedRoute('/configuration', {}, { container: stats, isCurrent: () => true })).toBe(true);
const titles = [...stats.querySelectorAll('.configgroup')].map((title) => title.textContent);
- expect(titles, '标题还没落到 DOM 上,壳那一刻就拆不出分区').toEqual(['通用', '媒体', '网络与访问', '更新与维护']);
+ expect(titles, '标题还没落到 DOM 上,壳那一刻就拆不出分区').toEqual(['通用', '媒体', '网络与访问', '维护']);
expect(stats.querySelector('.configpage')?.parentElement?.classList.contains('peach-react')).toBe(true);
});
});
diff --git a/frontend/test/react/media-settings.test.tsx b/frontend/test/react/media-settings.test.tsx
index 5d2d31f61..d53bc14da 100644
--- a/frontend/test/react/media-settings.test.tsx
+++ b/frontend/test/react/media-settings.test.tsx
@@ -16,10 +16,10 @@ const open = (over: Partial<ConfigurationData> = {}, receipt = vi.fn()) =>
const rows = (root: ParentNode) => [...root.querySelectorAll('[data-folder-row]')];
const paths = (root: ParentNode) => [...root.querySelectorAll<HTMLInputElement>('input[aria-label^="媒体文件夹 "]')];
-it('托盘管理访问端口时不画端口字段,底栏说保存后重新载入', async () => {
+it('托盘管理访问端口时不画端口字段,底栏不带说明', async () => {
const host = await open({ port_editable: false });
expect(host.querySelector('#configPort')).toBeNull();
- expect(host.textContent).toContain('保存后 Peach 会重新载入配置。');
+ expect(host.textContent).not.toContain('保存后 Peach');
expect(host.querySelector('form')).not.toBeNull();
});
@@ -52,7 +52,7 @@ describe('媒体文件夹', () => {
expect(host.textContent).toContain('挂载帮助');
});
- it('其它系统每行带 Windows 对应路径,挂载状态同时给文字和来源标识', async () => {
+ it('其它系统每行带 Windows 对应路径,挂载状态标在各自那一行', async () => {
const host = await open({ windows: false, media_sources: [
{ location: '115', root: 'B:/', path: '/Volumes/115', online: true },
{ location: 'pikpak', root: 'A:/', path: '/Volumes/PikPak', online: false },
@@ -60,15 +60,13 @@ describe('媒体文件夹', () => {
] });
expect(rows(host)).toHaveLength(3);
expect(rows(host).every((row) => row.textContent?.includes('Windows 中的对应路径'))).toBe(true);
- const mounts = section(host, '挂载状态')!;
- expect([...mounts.querySelectorAll('[data-mount]')].map((node) => [node.getAttribute('data-mount'), node.textContent]))
+ expect(rows(host).map((row) => [row.querySelector('[data-mount]')?.getAttribute('data-mount'), row.querySelector('[data-mount]')?.textContent]))
.toEqual([['online', '在线'], ['offline', '离线'], ['unknown', '未检测']]);
- expect([...mounts.querySelectorAll('dt use')].map((node) => node.getAttribute('href')))
- .toEqual(['#i-fixture-115', '#i-fixture-pikpak', '#i-hard-drive']);
+ expect(section(host, '挂载状态')).toBeNull();
});
- /* 「刷新挂载状态」重取的是整份配置、换进整页那一个 `queryKey`,那条用例在
- `configuration.test.tsx` 里:只挂这一个分区,看不出换进去之后谁读到了新的。 */
+ /* 只读时单列的「挂载状态」与它的刷新键在 `configuration.test.tsx` 里:刷新换进的是整页那一个
+ `queryKey`,只挂这一个分区看不出换进去之后谁读到了新的。 */
it('按来源回填全部挂载点,提交带上盘符映射与媒体库', async () => {
const fetcher = fetchMock(200, { saved: true, url: '/', revision: 'rev-2' });
diff --git a/frontend/test/react/resource-search.test.tsx b/frontend/test/react/resource-search.test.tsx
index e3c7a0310..d1d815670 100644
--- a/frontend/test/react/resource-search.test.tsx
+++ b/frontend/test/react/resource-search.test.tsx
@@ -82,7 +82,6 @@ it('设置保存后清空 API key,移除需再保存才生效', async () => {
}));
const host = await mount(<QueryClientProvider client={queryClient}><IndexerSettings receipt={vi.fn()} /></QueryClientProvider>);
await vi.waitFor(async () => { await settle(); expect(section(host, '资源索引器')).not.toBeNull() });
- expect(host.textContent).toContain('启用 · 用户自配索引器');
expect(host.textContent).toContain('清除已保存的 API key');
await type(field(host, '索引器 1 API key'), 'private-test-key');
await submit(section(host, '资源索引器'));
@@ -93,4 +92,8 @@ it('设置保存后清空 API key,移除需再保存才生效', async () => {
expect(posts).toHaveLength(1);
await submit(section(host, '资源索引器'));
expect(posts[1]).toEqual({ indexers: [] });
+ // 新添的一行默认启用:填完地址就能搜,不必再记得去勾一下。
+ await click(buttonNamed('添加索引器', host));
+ await submit(section(host, '资源索引器'));
+ expect((posts[2] as { indexers: { enabled: boolean }[] }).indexers[0]?.enabled).toBe(true);
});
diff --git a/src/peach/resource_search.py b/src/peach/resource_search.py
index 256aa2129..020558036 100644
--- a/src/peach/resource_search.py
+++ b/src/peach/resource_search.py
@@ -64,7 +64,7 @@ class Indexers:
endpoint(row.get("url"))
return rows
except (CredentialError, ValueError, TypeError):
- raise ValueError("索引器配置读不出来,请在本机「配置 → 媒体」中重新保存") from None
+ raise ValueError("索引器配置读不出来,请在本机「配置 → 下载」中重新保存") from None
def public(self) -> dict:
return {"indexers": [
diff --git a/src/peach/web_entry.py b/src/peach/web_entry.py
index ab0a519c9..da49760e4 100644
--- a/src/peach/web_entry.py
+++ b/src/peach/web_entry.py
@@ -74,7 +74,7 @@ def runtime_facts(config) -> tuple[tuple[str, str], ...]:
def runtime_fact_entries(config) -> list[dict[str, str]]:
- """运行信息中的缺失依赖附带官方下载入口。"""
+ """运行信息中的缺失依赖附带官方下载入口;依赖可用时不占一行。"""
from .ffmpeg import FFmpegResolver
entries = [{"term": term, "value": value} for term, value in runtime_facts(config)]
resolver = FFmpegResolver(config.directory("tools") / "ffmpeg")
@@ -89,4 +89,4 @@ def runtime_fact_entries(config) -> list[dict[str, str]]:
untrunc.update(value=untrunc["value"] + f"解压到 {config.directory('tools') / 'untrunc'}。",
download_url="https://github.com/anthwlock/untrunc/releases",
download_label="下载 untrunc")
- return entries
+ return [row for row in entries if not (row["term"] in ("FFmpeg", "untrunc") and row["value"] == "可用")]
diff --git a/tests/test_configuration_sources.py b/tests/test_configuration_sources.py
index d7f5f5857..5a5f179cb 100644
--- a/tests/test_configuration_sources.py
+++ b/tests/test_configuration_sources.py
@@ -17,6 +17,24 @@ class MediaConfigurationTests(unittest.TestCase):
self.assertIn('操作系统', facts)
self.assertIn('设置文件', facts)
+ def test_runtime_fact_entries_list_dependencies_only_when_missing(self):
+ from peach import web_entry
+ with tempfile.TemporaryDirectory() as directory:
+ config = settings_file.load_config(environ={"PEACH_DATA_ROOT": str(Path(directory).resolve())})
+ with patch("peach.ffmpeg.FFmpegResolver.ffmpeg", return_value=Path("ffmpeg")), \
+ patch("peach.ffmpeg.FFmpegResolver.ffprobe", return_value=Path("ffprobe")), \
+ patch("peach.mp4recover.untrunc_path", return_value=Path("untrunc")):
+ present = [row["term"] for row in web_entry.runtime_fact_entries(config)]
+ with patch("peach.ffmpeg.FFmpegResolver.ffmpeg", return_value=None), \
+ patch("peach.ffmpeg.FFmpegResolver.ffprobe", return_value=None), \
+ patch("peach.mp4recover.untrunc_path", return_value=None):
+ missing = {row["term"]: row for row in web_entry.runtime_fact_entries(config)}
+ self.assertNotIn("FFmpeg", present)
+ self.assertNotIn("untrunc", present)
+ self.assertIn("版本", present)
+ self.assertEqual(missing["FFmpeg"]["download_label"], "下载 FFmpeg")
+ self.assertEqual(missing["untrunc"]["download_label"], "下载 untrunc")
+
def test_windows_cloud_sources_keep_policy_ids_and_offline_roots(self):
roots, mounts, errors = media_config.validate([
{"location": "115", "path": "B:/"}, {"location": "pikpak", "path": "A:/"},
diff --git a/tests/test_onboarding.py b/tests/test_onboarding.py
index b1b4b386f..6bff183ad 100644
--- a/tests/test_onboarding.py
+++ b/tests/test_onboarding.py
@@ -738,7 +738,8 @@ class StandaloneConfigurationTests(_Case):
with self.subTest(ffmpeg=missing_ffmpeg, probe=missing_probe), mock.patch(
"peach.ffmpeg.FFmpegResolver.ffmpeg", return_value=None if missing_ffmpeg else object()), mock.patch(
"peach.ffmpeg.FFmpegResolver.ffprobe", return_value=None if missing_probe else object()):
- fact = next(row for row in runtime_fact_entries(self.config) if row['term'] == 'FFmpeg')
+ # 两样都在时 FFmpeg 不占一行,取不到就按没有下载入口算。
+ fact = next((row for row in runtime_fact_entries(self.config) if row['term'] == 'FFmpeg'), {})
self.assertEqual(fact.get('download_url') == 'https://ffmpeg.org/download.html',
missing_ffmpeg or missing_probe)
@@ -874,7 +875,7 @@ class StandaloneConfigurationTests(_Case):
self.assertEqual(snapshot["media_dirs"], [str(self.media)])
self.assertEqual(snapshot["port"], 9123)
# 运行信息和首启完成页共用同一份 `runtime_facts`,不再各写一份。
- self.assertIn("FFmpeg", [fact["term"] for fact in snapshot["facts"]])
+ self.assertIn("版本", [fact["term"] for fact in snapshot["facts"]])
self.config.directory("state").mkdir(parents=True, exist_ok=True)
response = client.post("/api/configuration", headers=headers, json={
"revision": snapshot["revision"], "media_dirs": [str(self.media)], "port": "9124"})
diff --git a/web/app.js b/web/app.js
index 362ee7cc9..4a7100b05 100644
--- a/web/app.js
+++ b/web/app.js
@@ -891,7 +891,7 @@ const openTutorialTarget=task=>{
route(task.href);void restoreRoute();
};
/** 重新打开安装教程:本地三个键归位,服务端标记同时撤回。
- * 重开键在配置页的「更新与维护」里,忙态、失败原因和回执都由那一侧给;教程卡是固定定位的,
+ * 重开键在配置页的「维护」里,忙态、失败原因和回执都由那一侧给;教程卡是固定定位的,
* 在配置页上就露出来。写入失败就把原因抛回去。 */
async function reopenPostSetupTutorial(){
resetPostSetupTutorialState();
diff --git a/web/css/09-skeleton.css b/web/css/09-skeleton.css
index fc8519551..b9c18532c 100644
--- a/web/css/09-skeleton.css
+++ b/web/css/09-skeleton.css
@@ -208,4 +208,4 @@ img.cover:not([data-frame]),img[data-facebox]:not([data-face-framed]){visibility
.config-skeleton-card .geist-fieldset-content>.skeleton:last-child{height:var(--control-h);width:100%}
.config-skeleton-card .geist-fieldset-footer>.skeleton{width:100px;height:var(--control-h);margin:0}
.peach-react .configuration-skeleton-toggle{width:42px;height:24px;flex:none;border-radius:var(--pill-radius)}
-.configuration-skeleton-input{width:100%;height:36px;border-radius:var(--control-radius)}
+.peach-react .configuration-skeleton-select{width:128px;height:36px;flex:none;border-radius:var(--control-radius)}
diff --git a/web/dist/peach-entry.js b/web/dist/peach-entry.js
index 4793106aa..edab32687 100644
--- a/web/dist/peach-entry.js
+++ b/web/dist/peach-entry.js
@@ -917,10 +917,11 @@ function vt(e, t) {
}
function yt() {
return `<div class="configpage" data-skeleton="configuration" role="status" aria-label="正在读取配置">${[
- ["通用", 1],
+ ["通用", 2],
["媒体", 2],
- ["网络与访问", 2],
- ["更新与维护", 3]
+ ["下载", 2],
+ ["网络与访问", 3],
+ ["维护", 3]
].map(([e, t]) => `<h2 class="configgroup" aria-hidden="true">${e}</h2>${Array.from({ length: t }, () => "<div class=\"configfieldset config-skeleton-card\" aria-hidden=\"true\"><div class=\"geist-fieldset-content\"><span class=\"skeleton\"></span><span class=\"skeleton\"></span><span class=\"skeleton\"></span></div><footer class=\"geist-fieldset-footer\"><span class=\"skeleton\"></span></footer></div>").join("")}`).join("")}</div>`;
}
function bt(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {
diff --git a/web/dist/peach-pages.css b/web/dist/peach-pages.css
index c5ca24ded..679a34c49 100644
--- a/web/dist/peach-pages.css
+++ b/web/dist/peach-pages.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mr-auto{margin-right:auto}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-7\.5{width:calc(var(--spacing) * 7.5);height:calc(var(--spacing) * 7.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-140{max-width:calc(var(--spacing) * 140)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-separator-border{border-color:var(--color-separator-border)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--card-footer,transparent)}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-px{padding-top:1px}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-\(--glass-text\):hover{color:var(--glass-text)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media not all and (width>=40rem){.max-sm\:p-5{padding:calc(var(--spacing) * 5)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-6{padding-block:calc(var(--spacing) * 6)}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-surface-host]{isolation:isolate;position:relative}.peach-react [data-moving-surface]{pointer-events:none;transform-origin:0 0;z-index:-1;position:absolute;top:0;left:0}.peach-react [data-moving-surface=selection]{border-radius:var(--radius-md);background:var(--color-background-primary-default);box-shadow:var(--shadow-card)}.dark .peach-react [data-moving-surface=selection]{background:var(--color-background-primary-hover)}.peach-react [data-surface-host=selection][data-surface-ready] :is([data-selected],[aria-selected=true]){--tw-shadow:0 0 transparent;background:0 0}.peach-react [data-moving-surface=hover]{border-radius:var(--radius-2lg);background:var(--color-dropdown-item-hover-background)}@media (hover:hover) and (pointer:fine){.peach-react [data-surface-host=hover][data-surface-ready] button:is(:hover,:focus-visible){background:0 0}}.peach-react [data-modal-motion]{transition:opacity .2s var(--ease-out)}.peach-react [data-modal-surface]{transition:transform .2s var(--ease-out), opacity .2s var(--ease-out)}.peach-react [data-modal-motion]:is([data-entering],[data-exiting]){opacity:0}.peach-react [data-modal-surface]:is([data-entering],[data-exiting]){opacity:0;transform:scale(.98)}.peach-react [data-modal-motion][data-exiting],.peach-react [data-modal-surface][data-exiting]{transition-duration:.12s}.peach-react [data-modal-motion][data-motion-instant],.peach-react [data-modal-motion][data-motion-instant] [data-modal-surface]{transition:none}@media (prefers-reduced-motion:reduce){.peach-react [data-modal-motion],.peach-react [data-modal-surface]{transition:none}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000029;--elevation-xs:0 1px 2px 0 #0000002e;--elevation-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--elevation-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--elevation-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--elevation-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--elevation-card:0 1px 1px 0 #00000024;--elevation-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--elevation-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--elevation-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}body.peach-react{background-color:var(--color-background-full);min-height:100dvh}.fcollapse{transition:height .2s ease-in-out;overflow:hidden}.fcollapse.fcollapse-settled{overflow:visible}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mr-auto{margin-right:auto}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-7\.5{width:calc(var(--spacing) * 7.5);height:calc(var(--spacing) * 7.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-140{max-width:calc(var(--spacing) * 140)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-separator-border{border-color:var(--color-separator-border)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--card-footer,transparent)}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-px{padding-top:1px}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-\(--glass-text\):hover{color:var(--glass-text)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media not all and (width>=40rem){.max-sm\:p-5{padding:calc(var(--spacing) * 5)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-6{padding-block:calc(var(--spacing) * 6)}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-surface-host]{isolation:isolate;position:relative}.peach-react [data-moving-surface]{pointer-events:none;transform-origin:0 0;z-index:-1;position:absolute;top:0;left:0}.peach-react [data-moving-surface=selection]{border-radius:var(--radius-md);background:var(--color-background-primary-default);box-shadow:var(--shadow-card)}.dark .peach-react [data-moving-surface=selection]{background:var(--color-background-primary-hover)}.peach-react [data-surface-host=selection][data-surface-ready] :is([data-selected],[aria-selected=true]){--tw-shadow:0 0 transparent;background:0 0}.peach-react [data-moving-surface=hover]{border-radius:var(--radius-2lg);background:var(--color-dropdown-item-hover-background)}@media (hover:hover) and (pointer:fine){.peach-react [data-surface-host=hover][data-surface-ready] button:is(:hover,:focus-visible){background:0 0}}.peach-react [data-modal-motion]{transition:opacity .2s var(--ease-out)}.peach-react [data-modal-surface]{transition:transform .2s var(--ease-out), opacity .2s var(--ease-out)}.peach-react [data-modal-motion]:is([data-entering],[data-exiting]){opacity:0}.peach-react [data-modal-surface]:is([data-entering],[data-exiting]){opacity:0;transform:scale(.98)}.peach-react [data-modal-motion][data-exiting],.peach-react [data-modal-surface][data-exiting]{transition-duration:.12s}.peach-react [data-modal-motion][data-motion-instant],.peach-react [data-modal-motion][data-motion-instant] [data-modal-surface]{transition:none}@media (prefers-reduced-motion:reduce){.peach-react [data-modal-motion],.peach-react [data-modal-surface]{transition:none}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000029;--elevation-xs:0 1px 2px 0 #0000002e;--elevation-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--elevation-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--elevation-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--elevation-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--elevation-card:0 1px 1px 0 #00000024;--elevation-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--elevation-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--elevation-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}body.peach-react{background-color:var(--color-background-full);min-height:100dvh}.fcollapse{transition:height .2s ease-in-out;overflow:hidden}.fcollapse.fcollapse-settled{overflow:visible}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
/*$vite$:1*/
\ No newline at end of file
diff --git a/web/dist/peach-pages.js b/web/dist/peach-pages.js
index 2f1a93444..69b4c8a4f 100644
--- a/web/dist/peach-pages.js
+++ b/web/dist/peach-pages.js
@@ -20460,7 +20460,7 @@ function _h({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function vh({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, children: c }) {
+function vh({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border bg-background-primary-default p-3",
@@ -20478,6 +20478,10 @@ function vh({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, o
isInvalid: !!r,
hint: r || void 0
}),
+ c ? /* @__PURE__ */ (0, B.jsx)("div", {
+ className: "flex h-10 shrink-0 items-center",
+ children: c
+ }) : null,
/* @__PURE__ */ (0, B.jsx)(nh, {
icon: ph,
"aria-label": "选择文件夹",
@@ -20492,7 +20496,7 @@ function vh({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, o
]
}), /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
- children: c
+ children: l
})]
});
}
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 706947581..cc894c3f3 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -19813,14 +19813,14 @@ function eb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Tte(e) {
+function tb(e) {
return e && e.__esModule ? e.default : e;
}
-function Ete(e, t) {
+function Tte(e, t) {
let { key: n } = e, r = t.selectionManager, i = gh(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": kg(Tte(Jy), "@react-aria/grid").format("select"),
+ "aria-label": kg(tb(Jy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -19828,7 +19828,7 @@ function Ete(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Dte(e, t, n) {
+function Ete(e, t, n) {
let r = jg(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
let { listProps: s } = Zy({
@@ -19869,7 +19869,7 @@ function Dte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ote(e) {
+function Dte(e) {
let { heading: t, "aria-label": n } = e, r = gh();
return {
itemProps: { role: "presentation" },
@@ -19889,7 +19889,7 @@ function Ote(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function kte(e, t, n) {
+function Ote(e, t, n) {
let { key: r } = e, i = Q_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = vh(), f = vh(), p = {
role: "option",
"aria-disabled": a || void 0,
@@ -19942,10 +19942,10 @@ function kte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var tb = /* @__PURE__ */ new WeakMap();
+var nb = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Ate(e, t, n) {
+function kte(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
let s = jg(e, { labelable: !0 }), { listProps: c } = Zy({
@@ -19957,7 +19957,7 @@ function Ate(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return tb.set(t, {
+ return nb.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -19974,8 +19974,8 @@ function Ate(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function jte(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = tb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = mm(), M = () => {
+function Ate(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = nb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = mm(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -20087,7 +20087,7 @@ function jte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Mte(e) {
+function jte(e) {
let { heading: t, "aria-label": n } = e, r = gh();
return {
itemProps: { role: "presentation" },
@@ -20104,15 +20104,15 @@ function Mte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Nte() {
+function Mte() {
return window.ResizeObserver !== void 0;
}
-function nb(e) {
+function rb(e) {
let { ref: t, box: n, onResize: r } = e, i = hg(r);
(0, R.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Nte()) {
+ if (Mte()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -20128,186 +20128,186 @@ function nb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var rb = {};
-rb = { dismiss: "تجاهل" };
+var ib = {};
+ib = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var ib = {};
-ib = { dismiss: "Отхвърляне" };
+var ab = {};
+ab = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var ab = {};
-ab = { dismiss: "Odstranit" };
+var ob = {};
+ob = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var ob = {};
-ob = { dismiss: "Luk" };
+var sb = {};
+sb = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var sb = {};
-sb = { dismiss: "Schließen" };
+var cb = {};
+cb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var cb = {};
-cb = { dismiss: "Απόρριψη" };
+var lb = {};
+lb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var lb = {};
-lb = { dismiss: "Dismiss" };
+var ub = {};
+ub = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var ub = {};
-ub = { dismiss: "Descartar" };
+var db = {};
+db = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var db = {};
-db = { dismiss: "Lõpeta" };
+var fb = {};
+fb = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var fb = {};
-fb = { dismiss: "Hylkää" };
+var pb = {};
+pb = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var pb = {};
-pb = { dismiss: "Rejeter" };
+var mb = {};
+mb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var mb = {};
-mb = { dismiss: "התעלם" };
+var hb = {};
+hb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var hb = {};
-hb = { dismiss: "Odbaci" };
+var gb = {};
+gb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var gb = {};
-gb = { dismiss: "Elutasítás" };
+var _b = {};
+_b = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var _b = {};
-_b = { dismiss: "Ignora" };
+var vb = {};
+vb = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var vb = {};
-vb = { dismiss: "閉じる" };
+var yb = {};
+yb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var yb = {};
-yb = { dismiss: "무시" };
+var bb = {};
+bb = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var bb = {};
-bb = { dismiss: "Atmesti" };
+var xb = {};
+xb = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var xb = {};
-xb = { dismiss: "Nerādīt" };
+var Sb = {};
+Sb = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Sb = {};
-Sb = { dismiss: "Lukk" };
+var Cb = {};
+Cb = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Cb = {};
-Cb = { dismiss: "Negeren" };
+var wb = {};
+wb = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var wb = {};
-wb = { dismiss: "Zignoruj" };
+var Tb = {};
+Tb = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Tb = {};
-Tb = { dismiss: "Descartar" };
+var Eb = {};
+Eb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Eb = {};
-Eb = { dismiss: "Dispensar" };
+var Db = {};
+Db = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Db = {};
-Db = { dismiss: "Revocare" };
+var Ob = {};
+Ob = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Ob = {};
-Ob = { dismiss: "Пропустить" };
+var kb = {};
+kb = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var kb = {};
-kb = { dismiss: "Zrušiť" };
+var Ab = {};
+Ab = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Ab = {};
-Ab = { dismiss: "Opusti" };
+var jb = {};
+jb = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var jb = {};
-jb = { dismiss: "Odbaci" };
+var Mb = {};
+Mb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Mb = {};
-Mb = { dismiss: "Avvisa" };
+var Nb = {};
+Nb = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Nb = {};
-Nb = { dismiss: "Kapat" };
+var Pb = {};
+Pb = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Pb = {};
-Pb = { dismiss: "Скасувати" };
+var Fb = {};
+Fb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Fb = {};
-Fb = { dismiss: "取消" };
+var Ib = {};
+Ib = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Ib = {};
-Ib = { dismiss: "關閉" };
+var Lb = {};
+Lb = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Lb = {};
-Lb = {
- "ar-AE": rb,
- "bg-BG": ib,
- "cs-CZ": ab,
- "da-DK": ob,
- "de-DE": sb,
- "el-GR": cb,
- "en-US": lb,
- "es-ES": ub,
- "et-EE": db,
- "fi-FI": fb,
- "fr-FR": pb,
- "he-IL": mb,
- "hr-HR": hb,
- "hu-HU": gb,
- "it-IT": _b,
- "ja-JP": vb,
- "ko-KR": yb,
- "lt-LT": bb,
- "lv-LV": xb,
- "nb-NO": Sb,
- "nl-NL": Cb,
- "pl-PL": wb,
- "pt-BR": Tb,
- "pt-PT": Eb,
- "ro-RO": Db,
- "ru-RU": Ob,
- "sk-SK": kb,
- "sl-SI": Ab,
- "sr-SP": jb,
- "sv-SE": Mb,
- "tr-TR": Nb,
- "uk-UA": Pb,
- "zh-CN": Fb,
- "zh-TW": Ib
+var Rb = {};
+Rb = {
+ "ar-AE": ib,
+ "bg-BG": ab,
+ "cs-CZ": ob,
+ "da-DK": sb,
+ "de-DE": cb,
+ "el-GR": lb,
+ "en-US": ub,
+ "es-ES": db,
+ "et-EE": fb,
+ "fi-FI": pb,
+ "fr-FR": mb,
+ "he-IL": hb,
+ "hr-HR": gb,
+ "hu-HU": _b,
+ "it-IT": vb,
+ "ja-JP": yb,
+ "ko-KR": bb,
+ "lt-LT": xb,
+ "lv-LV": Sb,
+ "nb-NO": Cb,
+ "nl-NL": wb,
+ "pl-PL": Tb,
+ "pt-BR": Eb,
+ "pt-PT": Db,
+ "ro-RO": Ob,
+ "ru-RU": kb,
+ "sk-SK": Ab,
+ "sl-SI": jb,
+ "sr-SP": Mb,
+ "sv-SE": Nb,
+ "tr-TR": Pb,
+ "uk-UA": Fb,
+ "zh-CN": Ib,
+ "zh-TW": Lb
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Pte(e) {
+function Nte(e) {
return e && e.__esModule ? e.default : e;
}
-function Rb(e) {
- let { onDismiss: t, ...n } = e, r = _g(n, kg(Pte(Lb), "@react-aria/overlays").format("dismiss")), i = () => {
+function zb(e) {
+ let { onDismiss: t, ...n } = e, r = _g(n, kg(Nte(Rb), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
return /*#__PURE__*/ R.createElement(q_, null, /*#__PURE__*/ R.createElement("button", {
@@ -20322,22 +20322,22 @@ function Rb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var zb = [];
-function Bb(e, t) {
+var Bb = [];
+function Vb(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, R.useRef)(void 0);
(0, R.useEffect)(() => {
- if (i && !zb.includes(t)) return zb.push(t), () => {
- let e = zb.indexOf(t);
- e >= 0 && zb.splice(e, 1);
+ if (i && !Bb.includes(t)) return Bb.push(t), () => {
+ let e = Bb.indexOf(t);
+ e >= 0 && Bb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- zb[zb.length - 1] === t && n && n();
+ Bb[Bb.length - 1] === t && n && n();
}, u = (e) => {
- let n = zb[zb.length - 1];
+ let n = Bb[Bb.length - 1];
c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(V(e))) && (zb[zb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(V(e))) && (Bb[Bb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = Lh({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -20366,20 +20366,20 @@ function Bb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Vb = typeof document < "u" && window.visualViewport, Hb = 0, Ub;
-function Wb(e = {}) {
+var Hb = typeof document < "u" && window.visualViewport, Ub = 0, Wb;
+function Gb(e = {}) {
let { isDisabled: t } = e;
qp(() => {
- if (!t) return Hb++, Hb === 1 && (Ub = am() && sm() ? Ite() : Fte()), () => {
- Hb--, Hb === 0 && Ub();
+ if (!t) return Ub++, Ub === 1 && (Wb = am() && sm() ? Fte() : Pte()), () => {
+ Ub--, Ub === 0 && Wb();
};
}, [t]);
}
-function Fte() {
+function Pte() {
let e = window.innerWidth - document.documentElement.clientWidth;
return uh(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Ap(document.documentElement, "scrollbar-gutter", "stable") : Ap(document.documentElement, "padding-right", `${e}px`)), Ap(document.documentElement, "overflow", "hidden"));
}
-function Ite() {
+function Fte() {
let e = Ap(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = V(e);
t = y_(r) ? r : b_(r, !0), n = !1;
@@ -20397,7 +20397,7 @@ function Ite() {
}
}, s = (e) => {
let t = V(e), n = e.relatedTarget;
- n && mg(n) ? (n.focus({ preventScroll: !0 }), Gb(n, mg(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && mg(n) ? (n.focus({ preventScroll: !0 }), Kb(n, mg(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -20407,7 +20407,7 @@ function Ite() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Gb(this, n);
+ }), (!e || !e.preventScroll) && Kb(this, n);
}
});
let l = uh(kp(document, "touchstart", r, {
@@ -20425,10 +20425,10 @@ function Ite() {
});
};
}
-function Gb(e, t) {
- t || !Vb ? Kb(e) : Vb.addEventListener("resize", () => Kb(e), { once: !0 });
+function Kb(e, t) {
+ t || !Hb ? qb(e) : Hb.addEventListener("resize", () => qb(e), { once: !0 });
}
-function Kb(e) {
+function qb(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
let e = b_(n);
@@ -20436,7 +20436,7 @@ function Kb(e) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Vb && (n = Math.min(n, Vb.offsetTop + Vb.height));
+ Hb && (n = Math.min(n, Hb.offsetTop + Hb.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -20449,13 +20449,13 @@ function Kb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Lte(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Bb({
+function Ite(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Vb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Wb({ isDisabled: !t.isOpen }), sy(), (0, R.useEffect)(() => {
+ return Gb({ isDisabled: !t.isOpen }), sy(), (0, R.useEffect)(() => {
if (t.isOpen && n.current) return Z_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
@@ -20464,32 +20464,32 @@ function Lte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var qb = {
+var Jb = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Jb = {
+}, Yb = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Rte = {
+}, Lte = {
top: "left",
left: "top"
-}, Yb = {
+}, Xb = {
top: "height",
left: "width"
-}, Xb = {
+}, Zb = {
width: "totalWidth",
height: "totalHeight"
-}, Zb = {}, zte = () => typeof document < "u" ? window.visualViewport : null;
-function Qb(e, t) {
+}, Qb = {}, Rte = () => typeof document < "u" ? window.visualViewport : null;
+function $b(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = ix(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = ax(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return sm() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
@@ -20500,7 +20500,7 @@ function Qb(e, t) {
left: s
};
}
-function Bte(e) {
+function zte(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -20508,11 +20508,11 @@ function Bte(e) {
height: e.scrollHeight
};
}
-function $b(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Yb[e]], l = o[e] + r.scroll[qb[e]] + a, u = o[e] + r.scroll[qb[e]] + c - a, d = t - s + r.scroll[qb[e]] + o[e] - r[qb[e]], f = t - s + n + r.scroll[qb[e]] + o[e] - r[qb[e]];
+function ex(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Xb[e]], l = o[e] + r.scroll[Jb[e]] + a, u = o[e] + r.scroll[Jb[e]] + c - a, d = t - s + r.scroll[Jb[e]] + o[e] - r[Jb[e]], f = t - s + n + r.scroll[Jb[e]] + o[e] - r[Jb[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Vte(e) {
+function Bte(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -20521,55 +20521,55 @@ function Vte(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function ex(e) {
- if (Zb[e]) return Zb[e];
- let [t, n] = e.split(" "), r = qb[t] || "right", i = Rte[r];
- qb[n] || (n = "center");
- let a = Yb[r], o = Yb[i];
- return Zb[e] = {
+function tx(e) {
+ if (Qb[e]) return Qb[e];
+ let [t, n] = e.split(" "), r = Jb[t] || "right", i = Lte[r];
+ Jb[n] || (n = "center");
+ let a = Xb[r], o = Xb[i];
+ return Qb[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Zb[e];
+ }, Qb[e];
}
-function tx(e, t, n, r, i, a, o, s, c, l, u) {
+function nx(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
if (_[m] = W_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Xb[h]];
- _[Jb[p]] = Math.floor(t - e[p] + i);
+ let t = s ? u[h] : u[Zb[h]];
+ _[Yb[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Hte(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Xb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Vte(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Zb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function nx(e, t, n, r, i, a, o, s) {
+function rx(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Jb[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Jb[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Yb[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Yb[l]] - i);
}
-function Ute(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = ex(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = tx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = nx(s, l, t, i, a + u, v, c, g);
+function Hte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = tx(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = nx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = rx(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = ex(`${Jb[S]} ${C}`), r = tx(t, s, n, e, u, d, l, f, m, h, c);
- nx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = tx(`${Yb[S]} ${C}`), r = nx(t, s, n, e, u, d, l, f, m, h, c);
+ rx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = $b(b, w[b], n[x], s, c, a, l);
+ let O = ex(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Hte(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = tx(t, s, n, v, T, d, l, f, m, h, c), O = $b(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[qb[b]], M = j + .5 * t[x], N = m / 2 + h, ee = qb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
- A[b] = W_(W_(M, t[b] + m / 2 - (w[b] + i[qb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[qb[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = Vte(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = nx(t, s, n, v, T, d, l, f, m, h, c), O = ex(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Jb[b]], M = j + .5 * t[x], N = m / 2 + h, ee = Jb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
+ A[b] = W_(W_(M, t[b] + m / 2 - (w[b] + i[Jb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Jb[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, F = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -20583,17 +20583,17 @@ function Ute(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: F
};
}
-function Wte(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = zte(), h = r instanceof HTMLElement ? Gte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ix(n, !1, p) : ax(n, h, !1, p);
+function Ute(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = Rte(), h = r instanceof HTMLElement ? Wte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ax(n, !1, p) : ox(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = ix(r, !0), x = Vte(r);
+ let b = ax(r, !0), x = Bte(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Bte(i), C = Qb(s, m), w = Qb(h, m), T;
+ let S = zte(i), C = $b(s, m), w = $b(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = rx(h, !1);
+ let e = ix(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -20605,11 +20605,11 @@ function Wte(e) {
left: 0,
width: 0,
height: 0
- } : ax(s, h, !1);
+ } : ox(s, h, !1);
let E = Np(s, h);
- return Ute(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return Hte(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function rx(e, t) {
+function ix(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -20618,8 +20618,8 @@ function rx(e, t) {
height: a
};
}
-function ix(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || rx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function ax(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || ix(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -20627,29 +20627,29 @@ function ix(e, t, n) {
height: o
};
}
-function ax(e, t, n, r) {
+function ox(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || rx(e, n);
+ if (i.position === "fixed") a = r || ix(e, n);
else {
- a = ix(e, n, r);
- let i = ix(t, n), o = window.getComputedStyle(t);
+ a = ax(e, n, r);
+ let i = ax(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function Gte(e) {
+function Wte(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !ox(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !ox(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !sx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !sx(t);) t = t.parentElement;
return t || document.documentElement;
}
-function ox(e) {
+function sx(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var sx = typeof document < "u" ? window.visualViewport : null;
-function Kte(e) {
+var cx = typeof document < "u" ? window.visualViewport : null;
+function Gte(e) {
let { direction: t } = Cg(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
p,
s,
@@ -20667,12 +20667,12 @@ function Kte(e) {
g,
_,
n
- ], S = (0, R.useRef)(sx?.scale);
+ ], S = (0, R.useRef)(cx?.scale);
(0, R.useEffect)(() => {
- m && (S.current = sx?.scale);
+ m && (S.current = cx?.scale);
}, [m]);
let C = (0, R.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || sx?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || cx?.scale !== S.current) return;
let e = null;
if (o.current && Ip(o.current)) {
let t = Pp()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -20683,8 +20683,8 @@ function Kte(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = Wte({
- placement: Jte(s, t),
+ let y = Ute({
+ placement: qte(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -20694,7 +20694,7 @@ function Kte(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? rx(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? ix(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -20707,10 +20707,10 @@ function Kte(e) {
}
b(y);
}, x);
- qp(C, x), qte(C), nb({
+ qp(C, x), Kte(C), rb({
ref: i,
onResize: C
- }), nb({
+ }), rb({
ref: r,
onResize: C
});
@@ -20723,10 +20723,10 @@ function Kte(e) {
}, n = () => {
w.current && t();
};
- sx?.addEventListener("resize", t), sx?.addEventListener("scroll", n);
+ cx?.addEventListener("resize", t), cx?.addEventListener("scroll", n);
let r = kp(Fp(window), "scroll", n);
return () => {
- sx?.removeEventListener("resize", t), sx?.removeEventListener("scroll", n), r();
+ cx?.removeEventListener("resize", t), cx?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, R.useCallback)(() => {
@@ -20758,25 +20758,25 @@ function Kte(e) {
updatePosition: C
};
}
-function qte(e) {
+function Kte(e) {
qp(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Jte(e, t) {
+function qte(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Yte(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Bb({
+function Jte(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Vb({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Kte({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Gte({
...c,
targetRef: n,
overlayRef: r,
@@ -20784,7 +20784,7 @@ function Yte(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Wb({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
+ Gb({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
if (t.isOpen && r.current) return a ? rte(i?.current ?? r.current) : Z_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
@@ -20803,10 +20803,10 @@ function Yte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var cx = /* @__PURE__ */ new WeakMap();
+var lx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Xte(e, t, n) {
+function Yte(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
}, { pressProps: g, isPressed: _ } = Wg({
@@ -20829,7 +20829,7 @@ function Xte(e, t, n) {
}
}), { focusableProps: b } = Hh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = jg(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = cx.get(t);
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = lx.get(t);
E_(n, t.defaultSelectedValue, t.setSelectedValue), D_({ validationBehavior: O }, t, n);
let k = O_();
return {
@@ -20863,7 +20863,7 @@ function Xte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Zte(e, t) {
+function Xte(e, t) {
let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Cg(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = B_({
...e,
labelElementType: "span",
@@ -20892,7 +20892,7 @@ function Zte(e, t) {
},
allowRepeats: !0
}), x = gh(n);
- return cx.set(t, {
+ return lx.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -20921,8 +20921,8 @@ function Zte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var lx = /* @__PURE__ */ new WeakMap();
-function Qte(e, t, n) {
+var ux = /* @__PURE__ */ new WeakMap();
+function Zte(e, t, n) {
let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ty({
usage: "search",
sensitivity: "base"
@@ -20965,7 +20965,7 @@ function Qte(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let S = jg(e, { labelable: !0 }), C = H(m, d, y), w = gh();
- return lx.set(t, {
+ return ux.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -21026,8 +21026,8 @@ function Qte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function $te(e, t, n) {
- let r = lx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = K_({ style: {
+function Qte(e, t, n) {
+ let r = ux.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = K_({ style: {
position: "fixed",
top: 0,
left: 0
@@ -21062,8 +21062,8 @@ function $te(e, t, n) {
}
};
}
-function ene(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = $te({
+function $te(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = Qte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -21087,7 +21087,7 @@ function ene(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = lx.get(t) || {};
+ let { validationBehavior: e } = ux.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -21118,7 +21118,7 @@ function ene(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function tne(e) {
+function ene(e) {
let t = jg(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
@@ -21128,7 +21128,7 @@ function tne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ux(e, t, n) {
+function dx(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = L_(e, t, n);
return {
labelProps: r,
@@ -21143,10 +21143,10 @@ function ux(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var dx = class {
+var fx = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new nne(e.layout) : new nv(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new tne(e.layout) : new nv(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -21312,7 +21312,7 @@ var dx = class {
}
return null;
}
-}, nne = class {
+}, tne = class {
constructor(e) {
this.layout = e;
}
@@ -21325,16 +21325,16 @@ var dx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, fx = /* @__PURE__ */ new WeakMap();
+}, px = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function rne(e, t, n) {
+function nne(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
let h = ty({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Cg(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new dx({
+ }), { direction: g } = Cg(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new fx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -21360,7 +21360,7 @@ function rne(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = gh(e.id);
- fx.set(t, {
+ px.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -21390,27 +21390,27 @@ function rne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var px = /* @__PURE__ */ new WeakMap();
-function mx(e) {
+var mx = /* @__PURE__ */ new WeakMap();
+function hx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function ine(e, t) {
- let n = px.get(e);
+function rne(e, t) {
+ let n = mx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${mx(t)}`;
+ return `${n}-${hx(t)}`;
}
-function hx(e, t, n) {
- let r = px.get(e);
+function gx(e, t, n) {
+ let r = mx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${mx(t)}-${mx(n)}`;
+ return `${r}-${hx(t)}-${hx(n)}`;
}
-function gx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => hx(e, t, n)).join(" ");
+function _x(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => gx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var _x = {};
-_x = {
+var vx = {};
+vx = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -21425,8 +21425,8 @@ _x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var vx = {};
-vx = {
+var yx = {};
+yx = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -21441,8 +21441,8 @@ vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var yx = {};
-yx = {
+var bx = {};
+bx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -21457,8 +21457,8 @@ yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var bx = {};
-bx = {
+var xx = {};
+xx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -21473,8 +21473,8 @@ bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var xx = {};
-xx = {
+var Sx = {};
+Sx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -21489,8 +21489,8 @@ xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Sx = {};
-Sx = {
+var Cx = {};
+Cx = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -21505,8 +21505,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Cx = {};
-Cx = {
+var wx = {};
+wx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -21521,8 +21521,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var wx = {};
-wx = {
+var Tx = {};
+Tx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -21537,8 +21537,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Tx = {};
-Tx = {
+var Ex = {};
+Ex = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -21553,8 +21553,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Ex = {};
-Ex = {
+var Dx = {};
+Dx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -21569,8 +21569,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Dx = {};
-Dx = {
+var Ox = {};
+Ox = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -21585,8 +21585,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Ox = {};
-Ox = {
+var kx = {};
+kx = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -21601,8 +21601,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var kx = {};
-kx = {
+var Ax = {};
+Ax = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -21617,8 +21617,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Ax = {};
-Ax = {
+var jx = {};
+jx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -21633,8 +21633,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var jx = {};
-jx = {
+var Mx = {};
+Mx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -21649,8 +21649,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Mx = {};
-Mx = {
+var Nx = {};
+Nx = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -21665,8 +21665,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Nx = {};
-Nx = {
+var Px = {};
+Px = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -21681,8 +21681,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Px = {};
-Px = {
+var Fx = {};
+Fx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -21697,8 +21697,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Fx = {};
-Fx = {
+var Ix = {};
+Ix = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -21713,8 +21713,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Ix = {};
-Ix = {
+var Lx = {};
+Lx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -21729,8 +21729,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Lx = {};
-Lx = {
+var Rx = {};
+Rx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -21745,8 +21745,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Rx = {};
-Rx = {
+var zx = {};
+zx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -21761,8 +21761,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var zx = {};
-zx = {
+var Bx = {};
+Bx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -21777,8 +21777,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Bx = {};
-Bx = {
+var Vx = {};
+Vx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -21793,8 +21793,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Vx = {};
-Vx = {
+var Hx = {};
+Hx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -21809,8 +21809,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Hx = {};
-Hx = {
+var Ux = {};
+Ux = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -21825,8 +21825,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Ux = {};
-Ux = {
+var Wx = {};
+Wx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -21841,8 +21841,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Wx = {};
-Wx = {
+var Gx = {};
+Gx = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -21857,8 +21857,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Gx = {};
-Gx = {
+var Kx = {};
+Kx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -21873,8 +21873,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Kx = {};
-Kx = {
+var qx = {};
+qx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -21889,8 +21889,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var qx = {};
-qx = {
+var Jx = {};
+Jx = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -21905,8 +21905,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Jx = {};
-Jx = {
+var Yx = {};
+Yx = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -21921,8 +21921,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Yx = {};
-Yx = {
+var Xx = {};
+Xx = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -21937,8 +21937,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var Xx = {};
-Xx = {
+var Zx = {};
+Zx = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -21953,46 +21953,46 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var Zx = {};
-Zx = {
- "ar-AE": _x,
- "bg-BG": vx,
- "cs-CZ": yx,
- "da-DK": bx,
- "de-DE": xx,
- "el-GR": Sx,
- "en-US": Cx,
- "es-ES": wx,
- "et-EE": Tx,
- "fi-FI": Ex,
- "fr-FR": Dx,
- "he-IL": Ox,
- "hr-HR": kx,
- "hu-HU": Ax,
- "it-IT": jx,
- "ja-JP": Mx,
- "ko-KR": Nx,
- "lt-LT": Px,
- "lv-LV": Fx,
- "nb-NO": Ix,
- "nl-NL": Lx,
- "pl-PL": Rx,
- "pt-BR": zx,
- "pt-PT": Bx,
- "ro-RO": Vx,
- "ru-RU": Hx,
- "sk-SK": Ux,
- "sl-SI": Wx,
- "sr-SP": Gx,
- "sv-SE": Kx,
- "tr-TR": qx,
- "uk-UA": Jx,
- "zh-CN": Yx,
- "zh-TW": Xx
+var Qx = {};
+Qx = {
+ "ar-AE": vx,
+ "bg-BG": yx,
+ "cs-CZ": bx,
+ "da-DK": xx,
+ "de-DE": Sx,
+ "el-GR": Cx,
+ "en-US": wx,
+ "es-ES": Tx,
+ "et-EE": Ex,
+ "fi-FI": Dx,
+ "fr-FR": Ox,
+ "he-IL": kx,
+ "hr-HR": Ax,
+ "hu-HU": jx,
+ "it-IT": Mx,
+ "ja-JP": Nx,
+ "ko-KR": Px,
+ "lt-LT": Fx,
+ "lv-LV": Ix,
+ "nb-NO": Lx,
+ "nl-NL": Rx,
+ "pl-PL": zx,
+ "pt-BR": Bx,
+ "pt-PT": Vx,
+ "ro-RO": Hx,
+ "ru-RU": Ux,
+ "sk-SK": Wx,
+ "sl-SI": Gx,
+ "sr-SP": Kx,
+ "sv-SE": qx,
+ "tr-TR": Jx,
+ "uk-UA": Yx,
+ "zh-CN": Xx,
+ "zh-TW": Zx
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var ane = class extends dx {
+var ine = class extends fx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -22070,14 +22070,14 @@ var ane = class extends dx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function one(e) {
+function ane(e) {
return e && e.__esModule ? e.default : e;
}
-function sne(e, t, n) {
+function one(e, t, n) {
let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ty({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Cg(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new ane({
+ }), { direction: c } = Cg(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new ine({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -22097,14 +22097,14 @@ function sne(e, t, n) {
a,
o
]), d = gh(e.id);
- px.set(t, d);
- let { gridProps: f } = rne({
+ mx.set(t, d);
+ let { gridProps: f } = nne({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = kg(one(Zx), "@react-aria/table"), g = (0, R.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = kg(ane(Qx), "@react-aria/table"), g = (0, R.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
@@ -22118,13 +22118,13 @@ function sne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function Qx(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Cg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = fx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
+function $x(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Cg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = px.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
if (n.current) {
let e = f_(n.current);
if (p === "child") {
if (Ip(n.current) && n.current !== Pp(Cp(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? $x(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? eS(e) : e.firstChild();
if (r) {
lh(r);
return;
@@ -22156,7 +22156,7 @@ function Qx(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : $x(a), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
+ p === "cell" && l === "rtl" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : eS(a), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
}
break;
}
@@ -22168,7 +22168,7 @@ function Qx(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? $x(a) : a.firstChild(), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
+ p === "cell" && l === "ltr" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? eS(a) : a.firstChild(), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
}
break;
}
@@ -22213,7 +22213,7 @@ function Qx(e, t, n) {
isPressed: _
};
}
-function $x(e) {
+function eS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -22222,20 +22222,20 @@ function $x(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function cne(e, t, n) {
- let { gridCellProps: r, isPressed: i } = Qx(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = hx(t, e.node.parentKey, a)), {
+function sne(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = $x(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = gx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function lne(e) {
+function cne(e) {
return e && e.__esModule ? e.default : e;
}
-function une(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Qx({
+function lne(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = $x({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Wg({
@@ -22246,7 +22246,7 @@ function une(e, t, n) {
ref: n
}), { focusableProps: l } = Hh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !lm() && (u = d ? f : "none");
- let p = kg(lne(Zx), "@react-aria/table"), m;
+ let p = kg(cne(Qx), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && lm() && (m = `${m}, ${p.format(f)}`));
let h = T_(m), g = t.collection.size === 0;
return (0, R.useEffect)(() => {
@@ -22259,7 +22259,7 @@ function une(e, t, n) {
columnHeaderProps: {
...H(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: ine(t, r.key),
+ id: rne(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -22268,14 +22268,14 @@ function une(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function dne(e, t, n) {
+function une(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function fne(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = fx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Qy({
+function dne(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = px.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Qy({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -22296,10 +22296,10 @@ function fne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function pne(e) {
+function fne(e) {
return e && e.__esModule ? e.default : e;
}
-var eS = {
+var tS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -22309,21 +22309,21 @@ var eS = {
rtl: "ArrowRight"
}
};
-function mne(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = fne(e, t, n), { direction: s } = Cg();
+function pne(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = dne(e, t, n), { direction: s } = Cg();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = kg(pne(Zx), "@react-aria/table"), u = _g({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = kg(fne(Qx), "@react-aria/table"), u = _g({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": gx(t, r.key)
+ "aria-labelledby": _x(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = tS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = tS(t.collection, a);
+ let n = nS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = nS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === eS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === eS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === tS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === tS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -22345,41 +22345,41 @@ function mne(e, t, n) {
return {
rowProps: {
...H(a, d, m),
- "aria-labelledby": gx(t, r.key)
+ "aria-labelledby": _x(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function tS(e, t) {
+function nS(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function hne() {
+function mne() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function nS() {
- return hne();
+function rS() {
+ return mne();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function gne(e) {
+function hne(e) {
return e && e.__esModule ? e.default : e;
}
-function _ne(e, t) {
- let { key: n } = e, { checkboxProps: r } = Ete(e, t);
+function gne(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Tte(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${gx(t, n)}`
+ "aria-labelledby": `${r.id} ${_x(t, n)}`
} };
}
-function vne(e) {
+function _ne(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": kg(gne(Zx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": kg(hne(Qx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -22388,13 +22388,13 @@ function vne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var rS = /* @__PURE__ */ new WeakMap();
-function iS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${rS.get(e)}-${n}-${t}`) : "";
+var iS = /* @__PURE__ */ new WeakMap();
+function aS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${iS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function yne(e, t, n) {
+function vne(e, t, n) {
let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = Qy({
selectionManager: o,
key: r,
@@ -22402,7 +22402,7 @@ function yne(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = iS(t, r, "tab"), m = iS(t, r, "tabpanel"), { tabIndex: h } = d, g = jg(u?.props, { labelable: !0 });
+ }), p = aS(t, r, "tab"), m = aS(t, r, "tabpanel"), { tabIndex: h } = d, g = jg(u?.props, { labelable: !0 });
delete g.id;
let _ = bm(u?.props), { focusableProps: v } = Hh({
...u?.props,
@@ -22424,7 +22424,7 @@ function yne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var bne = class {
+var yne = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -22468,11 +22468,11 @@ var bne = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function xne(e, t, n) {
+function bne(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Cg(), { collectionProps: l } = Gv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, R.useMemo)(() => new bne(a, c, r, s), [
+ keyboardDelegate: (0, R.useMemo)(() => new yne(a, c, r, s), [
a,
s,
r,
@@ -22483,7 +22483,7 @@ function xne(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = gh();
- return rS.set(t, u), { tabListProps: {
+ return iS.set(t, u), { tabListProps: {
...H(l, _g({
...e,
id: u
@@ -22495,12 +22495,12 @@ function xne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Sne(e, t, n) {
- let r = Xy(n) ? void 0 : 0, i = iS(t, e.id ?? t?.selectedKey, "tabpanel");
+function xne(e, t, n) {
+ let r = Xy(n) ? void 0 : 0, i = aS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: H(_g({
...e,
id: i,
- "aria-labelledby": iS(t, t?.selectedKey, "tab")
+ "aria-labelledby": aS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -22510,12 +22510,12 @@ function Sne(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var aS = "(prefers-reduced-motion: reduce)", Cne = () => matchMedia(aS).matches, wne = (e) => {
- let t = matchMedia(aS);
+var oS = "(prefers-reduced-motion: reduce)", Sne = () => matchMedia(oS).matches, Cne = (e) => {
+ let t = matchMedia(oS);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function Tne({ children: e, count: t, label: n }) {
- let r = Hu(), i = (0, R.useSyncExternalStore)(wne, Cne, () => !1), { isFocusVisible: a } = nh(), o = i || a, s = {
+function wne({ children: e, count: t, label: n }) {
+ let r = Hu(), i = (0, R.useSyncExternalStore)(Cne, Sne, () => !1), { isFocusVisible: a } = nh(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -22551,23 +22551,23 @@ function Tne({ children: e, count: t, label: n }) {
}), e]
});
}
-function oS({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, B.jsx)(Ku, { children: e ? /* @__PURE__ */ (0, B.jsx)(Tne, { ...t }, "selection") : null });
+function sS({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, B.jsx)(Ku, { children: e ? /* @__PURE__ */ (0, B.jsx)(wne, { ...t }, "selection") : null });
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
-var sS = R.createContext(void 0), cS = (e) => {
- let t = R.useContext(sS);
+var cS = R.createContext(void 0), lS = (e) => {
+ let t = R.useContext(cS);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, lS = ({ client: e, children: t }) => (R.useEffect(() => (e.mount(), () => {
+}, uS = ({ client: e, children: t }) => (R.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, B.jsx)(sS.Provider, {
+}), [e]), /* @__PURE__ */ (0, B.jsx)(cS.Provider, {
value: e,
children: t
-})), Ene = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
- let a = cS(r), o = R.useRef(t);
+})), Tne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
+ let a = lS(r), o = R.useRef(t);
R.useEffect(() => {
o.current = t;
});
@@ -22585,10 +22585,10 @@ var sS = R.createContext(void 0), cS = (e) => {
return R.useEffect(() => {
s && i(a, { queries: s }, o.current);
}, [a, s]), e;
-}, uS = R.createContext(!1), dS = () => R.useContext(uS), Dne = uS.Provider;
+}, dS = R.createContext(!1), fS = () => R.useContext(dS), Ene = dS.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function fS() {
+function pS() {
let e = !1;
return {
clearReset: () => {
@@ -22600,31 +22600,31 @@ function fS() {
isReset: () => e
};
}
-var pS = R.createContext(fS()), mS = () => R.useContext(pS), One = ({ children: e }) => {
- let [t] = R.useState(() => fS());
- return /* @__PURE__ */ (0, B.jsx)(pS.Provider, {
+var mS = R.createContext(pS()), hS = () => R.useContext(mS), Dne = ({ children: e }) => {
+ let [t] = R.useState(() => pS());
+ return /* @__PURE__ */ (0, B.jsx)(mS.Provider, {
value: t,
children: typeof e == "function" ? e(t) : e
});
-}, hS = (e, t, n) => {
+}, gS = (e, t, n) => {
let r = n?.state.error && typeof e.throwOnError == "function" ? c(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, gS = (e) => {
+}, _S = (e) => {
R.useEffect(() => {
e.clearReset();
}, [e]);
-}, _S = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || c(n, [e.error, r])), vS = (e, t) => t.state.data === void 0, yS = (e) => {
+}, vS = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || c(n, [e.error, r])), yS = (e, t) => t.state.data === void 0, bS = (e) => {
if (e.suspense) {
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
}
-}, bS = (e, t) => e?.suspense && t.isPending, xS = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, xS = (e, t) => e?.suspense && t.isPending, SS = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQueries.js
-function SS({ queries: e, ...t }, i) {
- let s = cS(i), c = dS(), l = mS(), u = t.subscribed !== !1, d = R.useMemo(() => e.map((e) => {
+function CS({ queries: e, ...t }, i) {
+ let s = lS(i), c = fS(), l = hS(), u = t.subscribed !== !1, d = R.useMemo(() => e.map((e) => {
let t = s.defaultQueryOptions(e);
return t._optimisticResults = c ? "isRestoring" : u ? "optimistic" : void 0, t;
}), [
@@ -22634,10 +22634,10 @@ function SS({ queries: e, ...t }, i) {
u
]);
d.forEach((e) => {
- yS(e);
+ bS(e);
let t = s.getQueryCache().get(e.queryHash);
- hS(e, l, t);
- }), gS(l);
+ gS(e, l, t);
+ }), _S(l);
let [f] = R.useState(() => new n(s, d, t)), [p, m, h] = f.getOptimisticResult(d, t.combine), g = !c && u;
R.useSyncExternalStore(R.useCallback((e) => g ? f.subscribe(o.batchCalls(e)) : a, [f, g]), () => f.getCurrentResult(), () => f.getCurrentResult()), R.useEffect(() => {
f.setQueries(d, t);
@@ -22646,14 +22646,14 @@ function SS({ queries: e, ...t }, i) {
t,
f
]);
- let _ = p.some((e, t) => bS(d[t], e)) ? p.flatMap((e, t) => {
+ let _ = p.some((e, t) => xS(d[t], e)) ? p.flatMap((e, t) => {
let n = d[t];
- return n && bS(n, e) ? xS(n, new r(s, n), l) : [];
+ return n && xS(n, e) ? SS(n, new r(s, n), l) : [];
}) : [];
if (_.length > 0) throw Promise.all(_);
let v = p.find((e, t) => {
let n = d[t];
- return n && _S({
+ return n && vS({
result: e,
errorResetBoundary: l,
throwOnError: n.throwOnError,
@@ -22666,17 +22666,17 @@ function SS({ queries: e, ...t }, i) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function CS(e, t, n) {
- let r = dS(), i = mS(), s = cS(n), c = s.defaultQueryOptions(e), l = s.getQueryCache().get(c.queryHash), u = e.subscribed !== !1;
- c._optimisticResults = r ? "isRestoring" : u ? "optimistic" : void 0, yS(c), hS(c, i, l), gS(i);
+function wS(e, t, n) {
+ let r = fS(), i = hS(), s = lS(n), c = s.defaultQueryOptions(e), l = s.getQueryCache().get(c.queryHash), u = e.subscribed !== !1;
+ c._optimisticResults = r ? "isRestoring" : u ? "optimistic" : void 0, bS(c), gS(c, i, l), _S(i);
let [d] = R.useState(() => new t(s, c)), f = d.getOptimisticResult(c), p = !r && u;
if (R.useSyncExternalStore(R.useCallback((e) => {
let t = p ? d.subscribe(o.batchCalls(e)) : a;
return d.updateResult(), t;
}, [d, p]), () => d.getCurrentResult(), () => d.getCurrentResult()), R.useEffect(() => {
d.setOptions(c);
- }, [c, d]), bS(c, f)) throw xS(c, d, i);
- if (_S({
+ }, [c, d]), xS(c, f)) throw SS(c, d, i);
+ if (vS({
result: f,
errorResetBoundary: i,
throwOnError: c.throwOnError,
@@ -22687,40 +22687,40 @@ function CS(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function wS(e, t) {
- return CS(e, r, t);
+function TS(e, t) {
+ return wS(e, r, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
-function kne(e, t) {
- return CS({
+function One(e, t) {
+ return wS({
...e,
enabled: !0,
suspense: !0,
- throwOnError: vS,
+ throwOnError: yS,
placeholderData: void 0
}, r, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js
-function Ane(t, n) {
- return CS({
+function kne(t, n) {
+ return wS({
...t,
enabled: !0,
suspense: !0,
- throwOnError: vS,
+ throwOnError: yS,
placeholderData: void 0
}, e, n);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js
-function jne(e, t) {
- return SS({
+function Ane(e, t) {
+ return CS({
...e,
queries: e.queries.map((e) => ({
...e,
suspense: !0,
- throwOnError: vS,
+ throwOnError: yS,
enabled: !0,
placeholderData: void 0
}))
@@ -22728,57 +22728,57 @@ function jne(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js
-function Mne(e, t) {
- let n = cS(t);
+function jne(e, t) {
+ let n = lS(t);
n.getQueryState(e.queryKey) || n.query(e).catch(a);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js
-function Nne(e, t) {
- let n = cS(t);
+function Mne(e, t) {
+ let n = lS(t);
n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(a);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js
-function Pne(e) {
+function Nne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js
-function Fne(e) {
+function Pne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js
-function Ine(e, t) {
- let n = cS(t), r = n.getQueryCache();
+function Fne(e, t) {
+ let n = lS(t), r = n.getQueryCache();
return R.useSyncExternalStore(R.useCallback((e) => r.subscribe(o.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js
-function Lne(e, t) {
- let n = cS(t);
- return ES({ filters: {
+function Ine(e, t) {
+ let n = lS(t);
+ return DS({ filters: {
...e,
status: "pending"
} }, n).length;
}
-function TS(e, t) {
+function ES(e, t) {
return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);
}
-function ES(e = {}, t) {
- let n = cS(t).getMutationCache(), r = R.useRef(e), i = R.useRef(null);
- return i.current === null && (i.current = TS(n, e)), R.useEffect(() => {
+function DS(e = {}, t) {
+ let n = lS(t).getMutationCache(), r = R.useRef(e), i = R.useRef(null);
+ return i.current === null && (i.current = ES(n, e)), R.useEffect(() => {
r.current = e;
}), R.useSyncExternalStore(R.useCallback((e) => n.subscribe(() => {
- let t = s(i.current, TS(n, r.current));
+ let t = s(i.current, ES(n, r.current));
i.current !== t && (i.current = t, o.schedule(e));
}), [n]), () => i.current, () => i.current);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function DS(e, n) {
- let r = cS(n), [i] = R.useState(() => new t(r, e));
+function OS(e, n) {
+ let r = lS(n), [i] = R.useState(() => new t(r, e));
R.useEffect(() => {
i.setOptions(e);
}, [i, e]);
@@ -22794,57 +22794,57 @@ function DS(e, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js
-function Rne(e) {
+function Lne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js
-function OS(t, n) {
- return CS(t, e, n);
+function kS(t, n) {
+ return wS(t, e, n);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/index.js
-var kS = /* @__PURE__ */ wt({
- HydrationBoundary: () => Ene,
- IsRestoringProvider: () => Dne,
- QueryClientContext: () => sS,
- QueryClientProvider: () => lS,
- QueryErrorResetBoundary: () => One,
- infiniteQueryOptions: () => Fne,
- mutationOptions: () => Rne,
- queryOptions: () => Pne,
- useInfiniteQuery: () => OS,
- useIsFetching: () => Ine,
- useIsMutating: () => Lne,
- useIsRestoring: () => dS,
- useMutation: () => DS,
- useMutationState: () => ES,
- usePrefetchInfiniteQuery: () => Nne,
- usePrefetchQuery: () => Mne,
- useQueries: () => SS,
- useQuery: () => wS,
- useQueryClient: () => cS,
- useQueryErrorResetBoundary: () => mS,
- useSuspenseInfiniteQuery: () => Ane,
- useSuspenseQueries: () => jne,
- useSuspenseQuery: () => kne
+var AS = /* @__PURE__ */ wt({
+ HydrationBoundary: () => Tne,
+ IsRestoringProvider: () => Ene,
+ QueryClientContext: () => cS,
+ QueryClientProvider: () => uS,
+ QueryErrorResetBoundary: () => Dne,
+ infiniteQueryOptions: () => Pne,
+ mutationOptions: () => Lne,
+ queryOptions: () => Nne,
+ useInfiniteQuery: () => kS,
+ useIsFetching: () => Fne,
+ useIsMutating: () => Ine,
+ useIsRestoring: () => fS,
+ useMutation: () => OS,
+ useMutationState: () => DS,
+ usePrefetchInfiniteQuery: () => Mne,
+ usePrefetchQuery: () => jne,
+ useQueries: () => CS,
+ useQuery: () => TS,
+ useQueryClient: () => lS,
+ useQueryErrorResetBoundary: () => hS,
+ useSuspenseInfiniteQuery: () => kne,
+ useSuspenseQueries: () => Ane,
+ useSuspenseQuery: () => One
});
-import * as zne from "/dist/peach-ui.js";
-Et(kS, zne);
+import * as Rne from "/dist/peach-ui.js";
+Et(AS, Rne);
/* istanbul ignore file */
//#endregion
//#region src/react/providers.tsx
-var AS = null;
-function Bne() {
- return AS?.isConnected || (AS = document.createElement("div"), AS.className = "peach-react", AS.dataset.reactOverlays = "", document.body.append(AS)), AS;
+var jS = null;
+function zne() {
+ return jS?.isConnected || (jS = document.createElement("div"), jS.className = "peach-react", jS.dataset.reactOverlays = "", document.body.append(jS)), jS;
}
-function jS({ children: e }) {
- return /* @__PURE__ */ (0, B.jsx)(lS, {
+function MS({ children: e }) {
+ return /* @__PURE__ */ (0, B.jsx)(uS, {
client: p,
children: /* @__PURE__ */ (0, B.jsx)(sd, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, B.jsx)(ry, {
- getContainer: Bne,
+ getContainer: zne,
children: e
})
})
@@ -22852,13 +22852,13 @@ function jS({ children: e }) {
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var MS = {
+var NS = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Vne(e, t = !1) {
+function Bne(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -22874,7 +22874,7 @@ function Vne(e, t = !1) {
glyph: "trash",
danger: !0
},
- MS
+ NS
];
case "junk": return [
t ? {
@@ -22895,7 +22895,7 @@ function Vne(e, t = !1) {
glyph: "trash",
danger: !0
},
- MS
+ NS
];
case "follow": return [
{
@@ -22916,7 +22916,7 @@ function Vne(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- MS
+ NS
];
default: return [
{
@@ -22950,42 +22950,42 @@ function Vne(e, t = !1) {
glyph: "trash",
danger: !0
},
- MS
+ NS
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var NS = null, PS = null, FS = {
+var PS = null, FS = null, IS = {
count: 0,
context: "catalog",
junkDismissed: !1
};
-function IS() {
- let e = NS;
- if (!e || !PS) return;
- let t = FS;
- (0, rp.flushSync)(() => PS.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(Wne, {
+function LS() {
+ let e = PS;
+ if (!e || !FS) return;
+ let t = IS;
+ (0, rp.flushSync)(() => FS.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Une, {
host: e,
props: t
}) })));
}
-var Hne = { render(e) {
- FS = e, IS();
+var Vne = { render(e) {
+ IS = e, LS();
} };
-function Une(e) {
- return NS = e, PS = (0, ip.createRoot)(e.root), IS(), Hne;
+function Hne(e) {
+ return PS = e, FS = (0, ip.createRoot)(e.root), LS(), Vne;
}
-function Wne({ host: e, props: t }) {
+function Une({ host: e, props: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, B.jsx)(oS, {
+ children: /* @__PURE__ */ (0, B.jsx)(sS, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count} 项`,
- children: Vne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: Bne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -23002,7 +23002,7 @@ function Wne({ host: e, props: t }) {
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function LS({ store: e, label: t, hidden: n }) {
+function RS({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-glow-grid": "",
@@ -23028,11 +23028,11 @@ function LS({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-function Gne(e) {
+function Wne(e) {
let t = (0, ip.createRoot)(e.root);
- (0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(Kne, { host: e })));
+ (0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(Gne, { host: e })));
}
-function Kne({ host: e }) {
+function Gne({ host: e }) {
let { store: t } = e;
(0, R.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -23048,7 +23048,7 @@ function Kne({ host: e }) {
children: "重置"
})]
}),
- /* @__PURE__ */ (0, B.jsx)(LS, {
+ /* @__PURE__ */ (0, B.jsx)(RS, {
store: t,
label: "光晕",
hidden: !n.on
@@ -23088,13 +23088,13 @@ function Kne({ host: e }) {
}
//#endregion
//#region src/api.ts
-var RS = class extends Error {
+var zS = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(Te(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, zS = (e) => {
+}, BS = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -23116,7 +23116,7 @@ async function W(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new RS(zS(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new zS(BS(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function G(e, t, n = "POST", r) {
@@ -23133,37 +23133,37 @@ async function G(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new RS(zS(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new zS(BS(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/player/host.ts
-var BS = null;
-function qne(e) {
- BS = e;
+var VS = null;
+function Kne(e) {
+ VS = e;
}
-function VS() {
- if (!BS) throw Error("播放器还没有接上宿主(configurePlayer)");
- return BS;
+function HS() {
+ if (!VS) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return VS;
}
//#endregion
//#region src/player/menu.ts
-var HS = null;
-function Jne(e) {
- HS = e;
+var US = null;
+function qne(e) {
+ US = e;
}
-function Yne() {
+function Jne() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var US = null, WS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function GS() {
+var WS = null, GS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function KS() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && Ne(e, () => {
e.innerHTML = "";
- }), US &&= (US(), null);
+ }), WS &&= (WS(), null);
}
-async function Xne(e) {
+async function Yne(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -23176,12 +23176,12 @@ async function Xne(e) {
return t.remove(), n;
}
}
-function Zne(e) {
- let t = !!HS?.inMiniplayer(e), n = e.peachItem, r = HS?.kind(e) ?? "item", i = (t) => {
+function Xne(e) {
+ let t = !!US?.inMiniplayer(e), n = e.peachItem, r = US?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Xne(i(e)).then((e) => VS().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Yne(i(e)).then((e) => HS().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -23193,11 +23193,11 @@ function Zne(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => HS?.expand()
+ run: () => US?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => HS?.toMiniplayer()
+ run: () => US?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -23220,29 +23220,29 @@ function Zne(e) {
run: () => s.click()
}), o;
}
-function Qne(e, t, n) {
- let r = Yne();
- GS();
- let i = VS().stage();
+function Zne(e, t, n) {
+ let r = Jne();
+ KS();
+ let i = HS().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Zne(e);
+ let a = Xne(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${WS(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${ge(e.label)}</span>${n ? WS(L("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${GS(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${ge(e.label)}</span>${n ? GS(L("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), Ge(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- GS(), n?.run();
+ KS(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || GS();
+ r.contains(e.target) || KS();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), GS();
+ e.preventDefault(), e.stopPropagation(), KS();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -23250,51 +23250,51 @@ function Qne(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- qe(t, e.el()) && GS();
+ qe(t, e.el()) && KS();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), US = () => {
+ }, 0), WS = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function $ne(e) {
+function Qne(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Qne(e, t.clientX, t.clientY));
- }), e.on("dispose", GS);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Zne(e, t.clientX, t.clientY));
+ }), e.on("dispose", KS);
}
//#endregion
//#region src/player/registry.ts
-var KS = null, qS = () => KS;
-function JS(e) {
- KS = e;
-}
+var qS = null, JS = () => qS;
function YS(e) {
+ qS = e;
+}
+function XS(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function XS(e) {
+function ZS(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function ere(e) {
+function $ne(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var ZS = 3e3;
-function QS(e, t) {
+var QS = 3e3;
+function $S(e, t) {
let n = Number(e) || 0, r = we(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function tre(e) {
+function ere(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -23309,10 +23309,10 @@ function tre(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = ere(e), s = e.currentTime || 0;
+ let a = performance.now(), o = $ne(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > ZS * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > QS * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -23321,56 +23321,56 @@ function tre(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > ZS;) t.shift();
+ }); t.length > 2 && a - t[0].at > QS;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var $S = 24;
-function eC(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > $S && e.splice(0, e.length - $S);
+var eC = 24;
+function tC(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > eC && e.splice(0, e.length - eC);
}
-var tC = "peach-player-panel";
-function nC(e, t, n, r) {
- let i = [...Array(Math.max(0, $S - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var nC = "peach-player-panel";
+function rC(e, t, n, r) {
+ let i = [...Array(Math.max(0, eC - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${ge(r)}">${o}</span>`;
}
-function nre() {
+function tre() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${L("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function rC(e, t = "") {
+function iC(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function iC(e, t = "") {
- let n = rC(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function aC(e, t = "") {
+ let n = iC(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function aC(e, t, n = "", r = null) {
+function oC(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : iC(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : aC(t, n);
}
-function oC(e) {
+function sC(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function rre(e, t) {
- return e > 0 ? oC(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : oC(0);
+function nre(e, t) {
+ return e > 0 ? sC(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : sC(0);
}
//#endregion
//#region src/player/controls.ts
-function sC(e, t, n = "") {
+function cC(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -23381,24 +23381,24 @@ function sC(e, t, n = "") {
};
return o(), o;
}
-function ire(e, t = !0) {
- let n = VS(), r = n.settings();
+function rre(e, t = !0) {
+ let n = HS(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var cC = /* @__PURE__ */ new WeakMap();
-function lC(e) {
+var lC = /* @__PURE__ */ new WeakMap();
+function uC(e) {
if (!e) return;
- let t = VS().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), cC.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = HS().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), lC.get(e)?.(t ? "默认视图" : "影院模式");
}
-function uC(e, t = !0) {
- let n = VS(), r = n.settings();
+function dC(e, t = !0) {
+ let n = HS(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), lC(i?.querySelector("[data-player-theater]")), YS(qS());
+ i?.toggleAttribute("data-theater", r.theaterMode), uC(i?.querySelector("[data-player-theater]")), XS(JS());
}
-function are(e) {
- let t = VS().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function ire(e) {
+ let t = HS().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -23422,14 +23422,14 @@ function are(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
if (!(i || t !== o)) {
- if (!VS().settings().ambientMode) {
+ if (!HS().settings().ambientMode) {
c();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t));
}
}, f = () => {
- i || !VS().settings().ambientMode || (l(), e.paused || u(++o));
+ i || !HS().settings().ambientMode || (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -23438,7 +23438,7 @@ function are(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function ore(e, t, n = 0, r = null) {
+function are(e, t, n = 0, r = null) {
let i = e.getChild("controlBar")?.el();
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -23448,7 +23448,7 @@ function ore(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- sC(s, "设置");
+ cC(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -23488,11 +23488,11 @@ function ore(e, t, n = 0, r = null) {
active: n
};
}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(tC, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(nC, { detail: "settings" }));
}, v = () => _(!1), y = (e) => {
e.detail !== "settings" && v();
};
- document.addEventListener(tC, y);
+ document.addEventListener(nC, y);
let b = null, x = (e, t) => {
let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;
@@ -23506,12 +23506,12 @@ function ore(e, t, n = 0, r = null) {
}, 250);
}), r;
}, S = (e, t) => e.querySelector(t), C = (t = 0) => {
- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${VS().settings().ambientMode}">
+ let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${HS().settings().ambientMode}">
${L("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${L("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${L("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${L("player-quality")}<span>清晰度</span><b>${ge(n.label)}</b>${L("player-menu-next")}</button></div>`, t);
S(i, "[data-player-ambient]").onclick = () => {
- ire(!VS().settings().ambientMode), C();
+ rre(!HS().settings().ambientMode), C();
}, S(i, "[data-player-speed]").onclick = () => D(), S(i, "[data-player-quality-view]").onclick = () => O();
}, w = .05, T = [
1,
@@ -23574,22 +23574,22 @@ function ore(e, t, n = 0, r = null) {
], () => {
g() ? C() : h();
}), e.on("dispose", () => {
- document.removeEventListener("pointerdown", k), document.removeEventListener(tC, y), b && clearTimeout(b);
- }), h(), sre(e, a), cre(e), (e) => {
+ document.removeEventListener("pointerdown", k), document.removeEventListener(nC, y), b && clearTimeout(b);
+ }), h(), ore(e, a), sre(e), (e) => {
d = e?.length ? e : null, g() ? C() : h();
};
}
-function sre(e, t) {
+function ore(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = VS().settings().theaterMode, i = document.createElement("div");
+ let r = HS().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${L(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- cC.set(a, sC(a, "影院模式", "T")), lC(a), a.onclick = (e) => {
- e.stopPropagation(), uC(!VS().settings().theaterMode);
+ lC.set(a, cC(a, "影院模式", "T")), uC(a), a.onclick = (e) => {
+ e.stopPropagation(), dC(!HS().settings().theaterMode);
};
}
-function cre(e) {
+function sre(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -23601,7 +23601,7 @@ function cre(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = sC(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = cC(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -23612,7 +23612,7 @@ function cre(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = sC(p, "静音", "M"), g = () => {
+ let h = cC(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -23638,7 +23638,7 @@ function cre(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = sC(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = cC(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = _e(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : _e(t)} / ${_e(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${_e(n)};点击显示已播放时间` : `已播放 ${_e(t)},总时长 ${_e(n)};点击显示剩余时间`);
};
@@ -23651,11 +23651,11 @@ function cre(e) {
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(E, "player-pip");
- let D = sC(E, "画中画");
+ let D = cC(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = sC(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = cC(O, "全屏", "F"), j = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), YS(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), XS(e);
};
e.on([
"fullscreenchange",
@@ -23675,7 +23675,7 @@ function cre(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${L("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(ee);
- let te = ee.querySelector("button"), P = sC(te, "展开控件"), F = (t) => {
+ let te = ee.querySelector("button"), P = cC(te, "展开控件"), F = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), P(t ? "收起控件" : "展开控件");
};
te.onclick = (t) => {
@@ -23687,7 +23687,7 @@ function cre(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), F(!1), ne();
}
-function lre(e, t, n = {}) {
+function cre(e, t, n = {}) {
let r = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = n.thumbnail !== !1, a = document.createElement("div");
@@ -23720,13 +23720,13 @@ function lre(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function ure(e, t) {
+function lre(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => we(e.duration()) || we(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(VS().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(HS().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -23767,11 +23767,11 @@ function ure(e, t) {
} catch {}
});
}
-function dre(e) {
+function ure(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
!t || t.querySelector(".vjs-peach-spinner-container") || (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function fre(e, t) {
+function dre(e, t) {
pe(`/api/assets/${t}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -23786,7 +23786,7 @@ function fre(e, t) {
}
//#endregion
//#region src/player/dispose.ts
-function dC(e) {
+function fC(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -23804,23 +23804,23 @@ function dC(e) {
}
//#endregion
//#region src/player/stream.ts
-function fC() {
+function pC() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function pC(e, t) {
+function mC(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function pre(e) {
+function fre(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function mC(e, t) {
- let n = pre(e);
+async function hC(e, t) {
+ let n = fre(e);
if (n) return n;
try {
let n = await pe(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -23829,9 +23829,9 @@ async function mC(e, t) {
type: n.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return pC(e, t);
+ return mC(e, t);
}
-function hC(e) {
+function gC(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -23840,17 +23840,17 @@ function hC(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var gC = "";
-function _C() {
- return gC;
-}
+var _C = "";
function vC() {
- return gC ||= fC(), gC;
+ return _C;
+}
+function yC() {
+ return _C ||= pC(), _C;
}
-var yC = (e) => pC(e, vC()), mre = (e) => mC(e, vC());
+var pre = (e) => mC(e, yC()), mre = (e) => hC(e, yC());
function bC() {
- let e = gC;
- e && (gC = "", hC(e));
+ let e = _C;
+ e && (_C = "", gC(e));
}
//#endregion
//#region src/player/telemetry.ts
@@ -23977,9 +23977,9 @@ var gre = {
};
function _re(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([mC(n, r), EC().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([hC(n, r), EC().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = pC(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = mC(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
let t = s(e, gre);
@@ -23989,7 +23989,7 @@ function _re(e, t) {
}
xC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, hC(r), i ? dC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, gC(r), i ? fC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
@@ -23999,9 +23999,9 @@ function jC() {
OC &&= (clearInterval(OC), null), kC &&= (clearInterval(kC), null), AC &&= (clearTimeout(AC), null);
}
async function vre(e, t, n, r = {}) {
- let i = qS();
+ let i = JS();
if (i && !i.isDisposed()) return i;
- let a = VS(), o = r.resume ?? null;
+ let a = HS(), o = r.resume ?? null;
o?.autoplay && (n = !0);
let s = () => r.source ? Promise.resolve(r.source) : mre(e), c;
try {
@@ -24029,7 +24029,7 @@ async function vre(e, t, n, r = {}) {
} }
}
});
- JS(l), l.peachItem = e, $ne(l), l.on("loadedmetadata", () => {
+ YS(l), l.peachItem = e, Qne(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -24037,7 +24037,7 @@ async function vre(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = tre(QS(f, e.duration)), m = 0, h = !1, g = () => qS() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = ere($S(f, e.duration)), m = 0, h = !1, g = () => JS() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -24051,12 +24051,12 @@ async function vre(e, t, n, r = {}) {
DC.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = _C(), h = s ? rC(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = vC(), h = s ? iC(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = aC(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = oC(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = XS(t);
- eC(d.speed, x), eC(d.activity, C), eC(d.buffer, w);
+ let w = ZS(t);
+ tC(d.speed, x), tC(d.activity, C), tC(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? ye(_) : "—"} · ${h.length} 请求`,
@@ -24074,17 +24074,17 @@ async function vre(e, t, n, r = {}) {
[
"连接速度",
D,
- nC(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ rC(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- nC(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ rC(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- nC(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ rC(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${_e(t.currentTime)} / ${_e(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -24100,7 +24100,7 @@ async function vre(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = aC(l, e.id, _C(), r ? null : p), a = r ? oC(i) : rre(i, XS(t));
+ let i = oC(l, e.id, vC(), r ? null : p), a = r ? sC(i) : nre(i, ZS(t));
n.innerHTML = `${L("gauge")}<span class="sr-only">加载速度</span><span>${ge(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
@@ -24120,7 +24120,7 @@ async function vre(e, t, n, r = {}) {
S(), w();
}), l.on("error", () => {
if (b && !x && !l.isDisposed()) {
- x = !0, b = !1, l.src(yC(e)), n && l.play()?.catch(() => {});
+ x = !0, b = !1, l.src(pre(e)), n && l.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
@@ -24131,13 +24131,13 @@ async function vre(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = ore(l, t, e.height, r.qualities ?? null);
+ let n = are(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = QS(r, e.duration));
- }).catch(() => {}), lre(l, e, { thumbnail: !r.source }), ure(l, e), dre(l), r.source || fre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = $S(r, e.duration));
+ }).catch(() => {}), cre(l, e, { thumbnail: !r.source }), lre(l, e), ure(l), r.source || dre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), o && o.time > 0 && l.one("loadedmetadata", () => {
l.isDisposed() || l.currentTime(o.time);
@@ -24148,7 +24148,7 @@ var yre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>
function MC(e, t = null) {
if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", yre), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = nre(), e.insertBefore(n.content, t);
+ n.innerHTML = tre(), e.insertBefore(n.content, t);
}
function NC(e, t) {
let n = DC.get(e);
@@ -24170,21 +24170,21 @@ function NC(e, t) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(tC, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), OC && clearInterval(OC), OC = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(nC, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), OC && clearInterval(OC), OC = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(tC, t), s = () => document.removeEventListener(tC, t);
+ document.addEventListener(nC, t), s = () => document.removeEventListener(nC, t);
}
- let c = e.el().querySelector("video"), l = c ? are(c) : () => {}, u = !0, d = () => {
+ let c = e.el().querySelector("video"), l = c ? ire(c) : () => {}, u = !0, d = () => {
u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, jC()));
};
return e.one("dispose", d), d;
}
function PC(e, t) {
if (t.kind === "immerse") return _re(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = VS(), c = t.chrome === !1 ? null : e.parentElement;
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = HS(), c = t.chrome === !1 ? null : e.parentElement;
c && MC(c, e);
let l = { resume: t.resume ?? null };
if (n === "follow") l = {
@@ -24212,7 +24212,7 @@ function PC(e, t) {
});
}
let u = null, d = !1, f = () => {}, p = () => {
- f(), !(!u || a?.(u)) && (qS() === u && (JS(null), jC()), dC(u));
+ f(), !(!u || a?.(u)) && (JS() === u && (YS(null), jC()), fC(u));
};
return vre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
if (u = t, d) {
@@ -24667,11 +24667,11 @@ function uie() {
}
function Fw() {
let e = uie();
- (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(Oie, { view: vw }) })));
+ (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Oie, { view: vw }) })));
}
function Iw() {
- let e = Aw ? iC(Aw.id) : 0;
- return e ? `${kw} · ${oC(e)}` : kw;
+ let e = Aw ? aC(Aw.id) : 0;
+ return e ? `${kw} · ${sC(e)}` : kw;
}
function Lw(e, t = null) {
if (clearInterval(jw), jw = 0, e === null) {
@@ -24696,11 +24696,11 @@ function die(e) {
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), _w.track.append(t);
- let r = fC(), i = () => {}, a = {
+ let r = pC(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => hC(r),
+ release: () => gC(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
@@ -24985,7 +24985,7 @@ var wie = [
}
];
function cT(e) {
- return wS({
+ return TS({
queryKey: UC(e ?? 0),
queryFn: ({ signal: t }) => QC(e, t),
enabled: e != null,
@@ -24993,7 +24993,7 @@ function cT(e) {
}).data;
}
function Tie({ kind: e, glyph: t, label: n, id: r }) {
- let i = cT(r), a = DS({
+ let i = cT(r), a = OS({
mutationFn: async (t) => {
let n = p.getQueryData(UC(t))?.feedback || null;
return {
@@ -25159,7 +25159,7 @@ function jie(e) {
return mw = e, Fw(), t && (document.addEventListener("keydown", Aie), addEventListener("resize", () => {
vw.open && Vw();
}), addEventListener("pagehide", () => {
- Ow.forEach((e) => hC(e.session));
+ Ow.forEach((e) => gC(e.session));
})), kie;
}
//#endregion
@@ -28624,7 +28624,7 @@ var $D = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), eO = /*#__PURE_
[e, t] = VE(e, t, eO);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = GE[c], { separatorProps: u } = tne({
+ let l = GE[c], { separatorProps: u } = ene({
...s,
elementType: n,
orientation: r
@@ -29227,7 +29227,7 @@ function hO({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Dte({
+ ]), { listBoxProps: x } = Ete({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -29311,7 +29311,7 @@ function hO({ state: e, props: t, listBoxRef: n }) {
}))), ee, E));
}
function Voe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, R.useContext)(mO), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(qD), { CollectionBranch: s } = (0, R.useContext)(ZE), [c, l] = HE(), { headingProps: u, groupProps: d } = Ote({
+ let i = (0, R.useContext)(mO), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(qD), { CollectionBranch: s } = (0, R.useContext)(ZE), [c, l] = HE(), { headingProps: u, groupProps: d } = Dte({
heading: l,
"aria-label": e["aria-label"] ?? void 0
}), f = zE({
@@ -29334,7 +29334,7 @@ function Voe(e, t, n, r = "react-aria-ListBoxSection") {
})));
}
var Hoe = /*#__PURE__*/ og(lp, function(e, t, n) {
- let r = Rh(t), i = (0, R.useContext)(mO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kte({
+ let r = Rh(t), i = (0, R.useContext)(mO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = fy({
@@ -29554,7 +29554,7 @@ var bO = /*#__PURE__*/ (0, R.createContext)(null), xO = /*#__PURE__*/ (0, R.crea
});
});
function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(xO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Yte({
+ let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(xO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({
...i,
offset: i.offset ?? 8,
arrowRef: a,
@@ -29585,7 +29585,7 @@ function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, R.useState)(null), w = (0, R.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- qp(w, [w]), nb({
+ qp(w, [w]), rb({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -29610,11 +29610,11 @@ function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ R.createElement(Rb, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Koe.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ R.createElement(zb, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Koe.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ R.createElement(Rb, { onDismiss: e.close }));
+ } }, x), /*#__PURE__*/ R.createElement(zb, { onDismiss: e.close }));
return c ? /*#__PURE__*/ R.createElement(oy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
@@ -29788,7 +29788,7 @@ function tse({ props: e, collection: t, menuRef: n }) {
...e,
collection: a,
children: void 0
- }), s = (0, R.useContext)(EO), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(ZE), { menuProps: u } = Ate({
+ }), s = (0, R.useContext)(EO), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(ZE), { menuProps: u } = kte({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
@@ -29852,7 +29852,7 @@ var nse = class extends oO {
}
};
function OO(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, R.useContext)(TO), { CollectionBranch: a } = (0, R.useContext)(ZE), [o, s] = HE(), { headingProps: c, groupProps: l } = Mte({
+ let i = (0, R.useContext)(TO), { CollectionBranch: a } = (0, R.useContext)(ZE), [o, s] = HE(), { headingProps: c, groupProps: l } = jte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
}), u = zE({
@@ -29881,7 +29881,7 @@ function OO(e, t, n, r = "react-aria-MenuSection") {
}
var kO = /*#__PURE__*/ sg(up, OO), AO = /*#__PURE__*/ (0, R.createContext)(null), jO = /*#__PURE__*/ og(lp, function(e, t, n) {
[e, t] = VE(e, t, AO);
- let r = BE(AO)?.id, i = (0, R.useContext)(TO), a = Rh(t), o = (0, R.useContext)(DO), { isVirtualized: s } = (0, R.useContext)(ZE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = jte({
+ let r = BE(AO)?.id, i = (0, R.useContext)(TO), a = Rh(t), o = (0, R.useContext)(DO), { isVirtualized: s } = (0, R.useContext)(ZE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({
...e,
id: r,
key: n.key,
@@ -30071,7 +30071,7 @@ function sse(e, t) {
}
var LO = /*#__PURE__*/ (0, R.forwardRef)(sse);
function cse({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Lte(t, r, n), o = _O(t.overlayRef) || t.isEntering || !1, s = zE({
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = _O(t.overlayRef) || t.isEntering || !1, s = zE({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -30124,7 +30124,7 @@ function RO(e) {
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ R.createElement(Rb, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ R.createElement(zb, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
@@ -30158,7 +30158,7 @@ var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.cr
let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = dse({
...e,
validationBehavior: r
- }), [a, o] = HE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Zte({
+ }), [a, o] = HE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
...e,
label: o,
validationBehavior: r
@@ -30199,7 +30199,7 @@ var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.cr
}), VO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = VE(r, t, pse);
- let i = R.useContext(zO), a = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Xte({
+ let i = R.useContext(zO), a = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
...UE(e),
children: typeof e.children == "function" || e.children
}, i, a);
@@ -30348,7 +30348,7 @@ function bse({ props: e, selectRef: t, collection: n }) {
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = cy({ within: !0 }), c = (0, R.useRef)(null), [l, u] = HE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Qte({
+ }), { isFocusVisible: o, focusProps: s } = cy({ within: !0 }), c = (0, R.useRef)(null), [l, u] = HE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
...UE(e),
label: u,
validationBehavior: i
@@ -30417,7 +30417,7 @@ function bse({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ R.createElement(ene, {
+ }, b.children, /*#__PURE__*/ R.createElement($te, {
..._,
autoComplete: e.autoComplete
})));
@@ -30472,7 +30472,7 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
}), Sse = /*#__PURE__*/ (0, R.createContext)(null), KO = /*#__PURE__*/ (0, R.createContext)(null), Cse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = VE(r, t, Sse);
- let i = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = U_(e), o = ux({
+ let i = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = U_(e), o = dx({
...UE(e),
children: typeof e.children == "function" || e.children
}, a, i);
@@ -31176,7 +31176,7 @@ function Lse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = jse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(ZE), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({
+ }), f = jse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(ZE), { dragAndDropHooks: _ } = e, { gridProps: v } = one({
...s,
layoutDelegate: m,
isVirtualized: p
@@ -31288,7 +31288,7 @@ var Rse = /*#__PURE__*/ (0, R.createContext)(null), nk = class extends op {
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = nS(), { hoverProps: a, isHovered: o } = fy({
+ }), { rowGroupProps: i } = rS(), { hoverProps: a, isHovered: o } = fy({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -31318,10 +31318,10 @@ var Rse = /*#__PURE__*/ (0, R.createContext)(null), nk = class extends op {
});
});
function Vse({ item: e }) {
- let t = (0, R.useRef)(null), n = (0, R.useContext)($O), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(ZE), { rowProps: a } = dne({
+ let t = (0, R.useRef)(null), n = (0, R.useContext)($O), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(ZE), { rowProps: a } = une({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = vne(n);
+ }, n, t), { checkboxProps: o } = _ne(n);
return /*#__PURE__*/ R.createElement(Bse, {
...a,
ref: t
@@ -31344,7 +31344,7 @@ var Hse = class extends op {
ref: t
});
}), ik = /*#__PURE__*/ og(Hse, (e, t, n) => {
- let r = Rh(t), i = (0, R.useContext)($O), { isVirtualized: a } = (0, R.useContext)(ZE), { columnHeaderProps: o, isPressed: s } = une({
+ let r = Rh(t), i = (0, R.useContext)($O), { isVirtualized: a } = (0, R.useContext)(ZE), { columnHeaderProps: o, isPressed: s } = lne({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
@@ -31430,7 +31430,7 @@ var Hse = class extends op {
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = nS(), _ = jg(e, { global: !0 });
+ let { rowGroupProps: g } = rS(), _ = jg(e, { global: !0 });
return /*#__PURE__*/ R.createElement(Gse, {
...H(_, p, g),
ref: t,
@@ -31468,7 +31468,7 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
ref: t
});
}), lk = /*#__PURE__*/ sg(Kse, (e, t, n) => {
- let r = Rh(t), i = (0, R.useContext)($O), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(ZE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({
+ let r = Rh(t), i = (0, R.useContext)($O), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(ZE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = pne({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -31477,7 +31477,7 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = _ne({ key: n.key }, i), S;
+ }), { checkboxProps: x } = gne({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -31590,7 +31590,7 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
}), dk = /*#__PURE__*/ og(qse, (e, t, n) => {
let r = Rh(t), i = (0, R.useContext)($O), { dragState: a } = (0, R.useContext)(qD), { isVirtualized: o } = (0, R.useContext)(ZE);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = cne({
+ let { gridCellProps: s, isPressed: c } = sne({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
@@ -31855,7 +31855,7 @@ var gk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
}) : /*#__PURE__*/ R.createElement(ug, e);
});
function rce({ props: e, forwardedRef: t }) {
- let n = (0, R.useContext)(mk), { CollectionRoot: r } = (0, R.useContext)(ZE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = BE(pk), o = Rh(t), { tabListProps: s } = xne({
+ let n = (0, R.useContext)(mk), { CollectionRoot: r } = (0, R.useContext)(ZE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = BE(pk), o = Rh(t), { tabListProps: s } = bne({
...e,
orientation: i,
keyboardActivation: a
@@ -31882,7 +31882,7 @@ var _k = /*#__PURE__*/ og(class extends op {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, R.useContext)(mk), i = Rh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({
+ let r = (0, R.useContext)(mk), i = Rh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vne({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = cy(), { hoverProps: f, isHovered: p } = fy({
@@ -31926,7 +31926,7 @@ var _k = /*#__PURE__*/ og(class extends op {
});
});
function ice(e) {
- let t = (0, R.useContext)(mk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = cy(), d = t.selectedKey === e.id, f = _O(r) && !i, p = zE({
+ let t = (0, R.useContext)(mk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = cy(), d = t.selectedKey === e.id, f = _O(r) && !i, p = zE({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -32764,7 +32764,7 @@ var nA = "/api/downloads", rA = ["downloads"], Nce = "/api/downloads/cancel", Pc
failed: "提交没有成功。"
}, Lce = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, iA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
function Rce({ prefill: e }) {
- let t = wS({
+ let t = TS({
queryKey: rA,
queryFn: ({ signal: e }) => W(`${nA}?limit=50`, e),
refetchInterval: (e) => Pce(e.state.data)
@@ -32800,7 +32800,7 @@ function Rce({ prefill: e }) {
] });
}
function zce({ snapshot: e, prefill: t }) {
- let n = cS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, R.useState)(r[0].key), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(t?.code ?? ""), [u, d] = (0, R.useState)(r[0].target), [f, p] = (0, R.useState)(null), m = IE(), h = (0, R.useRef)(null);
+ let n = lS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, R.useState)(r[0].key), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(t?.code ?? ""), [u, d] = (0, R.useState)(r[0].target), [f, p] = (0, R.useState)(null), m = IE(), h = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && h.current?.focus();
}, [t]);
@@ -32903,7 +32903,7 @@ function Bce({ result: e }) {
});
}
function Vce({ task: e, writable: t }) {
- let n = cS(), r = IE(), [i, a] = (0, R.useState)(!1), o = iA(e), s = e.state === "failed", c = [
+ let n = lS(), r = IE(), [i, a] = (0, R.useState)(!1), o = iA(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
@@ -33139,13 +33139,13 @@ function lA({ live: e = !1, children: t }) {
});
}
function Gce({ prefill: e }) {
- let t = wS({
+ let t = TS({
queryKey: Jk,
queryFn: ({ signal: e }) => Xk(e),
refetchInterval: (e) => bce(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, R.useState)([]), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(r);
r !== c && (l(r), i.length && c && a(Yk(i, c)));
- let u = DS({
+ let u = OS({
mutationFn: ({ oldest: e }) => _ce(e),
onSuccess: (e, { shown: t }) => {
a((n) => Yk(n, t, e.finished || [])), s(!!e.finished_has_more);
@@ -34762,7 +34762,7 @@ function Ale(e) {
offset: 0
}],
pageParams: [0]
- } : void 0, c = OS({
+ } : void 0, c = kS({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -35303,17 +35303,17 @@ function Ej(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var bue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Dj = (e) => W(iue, e), Oj = (e) => G(aue, e), kj = (e, t) => G(oue, {
+var bue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Dj = (e) => W(iue, e), Oj = (e) => G(aue, e), xue = (e, t) => G(oue, {
genre: e,
tag: t
});
-async function Aj(e) {
+async function kj(e) {
await p.fetchQuery({
queryKey: yj,
queryFn: () => Dj(e)
});
}
-function jj(e, t) {
+function Aj(e, t) {
let n = new Set(t);
n.size && p.setQueryData(yj, (t) => {
if (!t) return t;
@@ -35331,207 +35331,207 @@ function jj(e, t) {
};
});
}
-var xue = () => p.invalidateQueries({
+var Sue = () => p.invalidateQueries({
queryKey: yj,
exact: !0
});
-function Sue(e, t) {
+function Cue(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${vj(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Cue = "/api/links", Mj = "/api/links/check", Nj = "/api/links/prune", Pj = ["links"], Fj = ["links", "check"], Ij = ["links", "prune"], Lj = {
+var wue = "/api/links", jj = "/api/links/check", Mj = "/api/links/prune", Nj = ["links"], Pj = ["links", "check"], Fj = ["links", "prune"], Ij = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function Rj(e) {
+async function Lj(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var zj = (e) => W(Cue, e), Bj = (e) => G(Mj, { status_only: !0 }, "POST", e), wue = ({ retry: e, checkId: t }) => Rj(G(Mj, e ? {
+var Rj = (e) => W(wue, e), zj = (e) => G(jj, { status_only: !0 }, "POST", e), Tue = ({ retry: e, checkId: t }) => Lj(G(jj, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Vj = (e) => W(Nj, e), Tue = (e) => Rj(G(Nj, {
+} : { restart: !0 })), Bj = (e) => W(Mj, e), Eue = (e) => Lj(G(Mj, {
confirm: !0,
check_id: e,
background: !0
-})), Hj = (e) => Number(e || 0).toLocaleString(), Eue = (e) => `已删除 ${Hj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Hj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Hj(e.recovered)} 条未确认失效的链接。`;
-function Due(e) {
+})), Vj = (e) => Number(e || 0).toLocaleString(), Due = (e) => `已删除 ${Vj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Vj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Vj(e.recovered)} 条未确认失效的链接。`;
+function Oue(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Hj(e.checked)} / ${Hj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${Vj(e.checked)} / ${Vj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var Uj = "/api/settings", Wj = "/api/follow/schedule", Gj = "/api/thumbnail-jobs", Kj = ["settings"], qj = ["follow-schedule"], Jj = ["thumbnail-jobs"], Oue = (e) => W(Uj, e), Yj = (e) => W(Wj, e), Xj = (e) => W(Gj, e);
-function kue(e = p) {
+var Hj = "/api/settings", Uj = "/api/follow/schedule", Wj = "/api/thumbnail-jobs", Gj = ["settings"], Kj = ["follow-schedule"], qj = ["thumbnail-jobs"], kue = (e) => W(Hj, e), Jj = (e) => W(Uj, e), Yj = (e) => W(Wj, e);
+function Aue(e = p) {
return e.fetchQuery({
- queryKey: qj,
- queryFn: ({ signal: e }) => Yj(e),
+ queryKey: Kj,
+ queryFn: ({ signal: e }) => Jj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Jj,
- queryFn: ({ signal: e }) => Xj(e),
+ queryKey: qj,
+ queryFn: ({ signal: e }) => Yj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Kj,
- queryFn: ({ signal: e }) => Oue(e),
+ queryKey: Gj,
+ queryFn: ({ signal: e }) => kue(e),
staleTime: 0
}).catch(() => null);
}
-function Zj() {
- return DS({
- mutationFn: (e) => G(Uj, e),
- onSuccess: (e) => p.setQueryData(Kj, e)
+function Xj() {
+ return OS({
+ mutationFn: (e) => G(Hj, e),
+ onSuccess: (e) => p.setQueryData(Gj, e)
});
}
-function Aue() {
- return DS({
- mutationFn: (e) => G(Wj, {
+function jue() {
+ return OS({
+ mutationFn: (e) => G(Uj, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => p.setQueryData(qj, e)
+ onSuccess: (e) => p.setQueryData(Kj, e)
});
}
-function jue() {
- return DS({
- mutationFn: (e) => G(Gj, { mode: e }),
- onSuccess: (e) => p.setQueryData(Jj, e)
+function Mue() {
+ return OS({
+ mutationFn: (e) => G(Wj, { mode: e }),
+ onSuccess: (e) => p.setQueryData(qj, e)
});
}
-function Mue(e) {
+function Nue(e) {
return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${vj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${vj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
}
-function Nue(e) {
+function Pue(e) {
return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Pue = "/api/organize", Fue = "/api/organize/preview", Iue = "/api/organize/apply", Lue = "/api/organize/rollback", Qj = ["organize"], $j = (e) => W(Pue, e);
-async function Rue(e) {
+var Fue = "/api/organize", Iue = "/api/organize/preview", Lue = "/api/organize/apply", Rue = "/api/organize/rollback", Zj = ["organize"], Qj = (e) => W(Fue, e);
+async function zue(e) {
await p.fetchQuery({
- queryKey: Qj,
- queryFn: () => $j(e)
+ queryKey: Zj,
+ queryFn: () => Qj(e)
});
}
-var zue = (e) => G(Fue, e), Bue = (e) => e.kind === "apply" ? G(Iue, {
+var Bue = (e) => G(Iue, e), Vue = (e) => e.kind === "apply" ? G(Lue, {
...e.request,
confirm: !0
-}) : G(Lue, { confirm: !0 });
-async function Vue(e) {
- p.setQueryData(Qj, (t) => t && {
+}) : G(Rue, { confirm: !0 });
+async function Hue(e) {
+ p.setQueryData(Zj, (t) => t && {
...t,
templates: e
});
try {
- await G(Uj, { organizeTemplates: e });
+ await G(Hj, { organizeTemplates: e });
} catch {}
}
-var Hue = (e, t) => e && {
+var Uue = (e, t) => e && {
...e,
...t
-}, Uue = /目录模板|分隔符|盘符|`\.`/;
-function eM(e) {
+}, Wue = /目录模板|分隔符|盘符|`\.`/;
+function $j(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var tM = (e) => Number(e || 0).toLocaleString();
-function Wue(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${tM(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${tM(e.counts.change)} 个文件会改名或移动,${tM(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var eM = (e) => Number(e || 0).toLocaleString();
+function Gue(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${eM(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${eM(e.counts.change)} 个文件会改名或移动,${eM(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function nM(e) {
+function tM(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${tM(r)} 个文件${n ? `,${tM(n)} 行未能退回` : ""}。` : `已整理 ${tM(r)} 个文件${n ? `,${tM(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${eM(r)} 个文件${n ? `,${eM(n)} 行未能退回` : ""}。` : `已整理 ${eM(r)} 个文件${n ? `,${eM(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var rM = "/api/resource-sync/scan", iM = "/api/resource-sync/apply", aM = ["resource-sync", "scan"], oM = ["resource-sync", "apply"], sM = (e) => G(rM, {
+var nM = "/api/resource-sync/scan", rM = "/api/resource-sync/apply", iM = ["resource-sync", "scan"], aM = ["resource-sync", "apply"], oM = (e) => G(nM, {
background: !0,
status_only: !0
-}, "POST", e), Gue = () => G(rM, {
+}, "POST", e), Kue = () => G(nM, {
background: !0,
restart: !0
-}), cM = (e) => W(iM, e), Kue = (e) => G(iM, {
+}), sM = (e) => W(rM, e), que = (e) => G(rM, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), lM = (e) => (e?.sources ?? []).some((e) => Ple.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function que(e) {
- lM(p.getQueryData(u)) && await Promise.all([p.fetchQuery({
+}), cM = (e) => (e?.sources ?? []).some((e) => Ple.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Jue(e) {
+ cM(p.getQueryData(u)) && await Promise.all([p.fetchQuery({
+ queryKey: iM,
+ queryFn: () => oM(e)
+ }), p.fetchQuery({
queryKey: aM,
queryFn: () => sM(e)
- }), p.fetchQuery({
- queryKey: oM,
- queryFn: () => cM(e)
})]);
}
-var Jue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Yue = {
+var Yue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Xue = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, uM = (e) => Number(e || 0).toLocaleString(), Xue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", dM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), fM = (e) => e.vanish ? `${uM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", pM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Zue = (e) => `将永久删除文件已不在盘上的 ${uM(dM(e))} 条记录和 ${uM(e.empty)} 个空文件夹,并清理 ${uM(e.cache?.files)} 个闲置缓存。${pM(e)}${fM(e)}`, Que = (e) => `将永久删除文件已不在盘上的 ${uM(dM(e))} 条记录(含回收站里的)、${uM(e.empty)} 个空文件夹,并清理 ${uM(e.cache?.files)} 个闲置缓存。来源根目录保留。${pM(e)}${fM(e)}`, $ue = (e) => e.online ? [
- `找不到文件 · 共 ${uM(e.total)} 项`,
- e.vanish ? `${uM(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${uM(e.empty)} 个` : "",
- e.unreadable ? `${uM(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${uM(e.total)} 项`;
-function mM(e) {
+}, lM = (e) => Number(e || 0).toLocaleString(), Zue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", uM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), dM = (e) => e.vanish ? `${lM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", fM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Que = (e) => `将永久删除文件已不在盘上的 ${lM(uM(e))} 条记录和 ${lM(e.empty)} 个空文件夹,并清理 ${lM(e.cache?.files)} 个闲置缓存。${fM(e)}${dM(e)}`, $ue = (e) => `将永久删除文件已不在盘上的 ${lM(uM(e))} 条记录(含回收站里的)、${lM(e.empty)} 个空文件夹,并清理 ${lM(e.cache?.files)} 个闲置缓存。来源根目录保留。${fM(e)}${dM(e)}`, ede = (e) => e.online ? [
+ `找不到文件 · 共 ${lM(e.total)} 项`,
+ e.vanish ? `${lM(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${lM(e.empty)} 个` : "",
+ e.unreadable ? `${lM(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${lM(e.total)} 项`;
+function pM(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 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 ? `${uM(t.length)} 条记录没有删除(${o})` : "",
- n ? `${uM(n)} 个文件夹没有删除` : "",
- r.length ? `${uM(r.length)} 个缓存没有清理` : ""
+ t.length ? `${lM(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${lM(n)} 个文件夹没有删除` : "",
+ r.length ? `${lM(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var ede = (e, t) => {
- let { rest: n } = mM(e), r = `已永久删除 ${uM(e.purged)} 条失效记录和 ${uM(e.dirs_removed)} 个空文件夹,清理 ${uM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${uM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${uM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var tde = (e, t) => {
+ let { rest: n } = pM(e), r = `已永久删除 ${lM(e.purged)} 条失效记录和 ${lM(e.dirs_removed)} 个空文件夹,清理 ${lM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${lM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${lM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, tde = "/api/review?counts=1", hM = ["review", "counts"], nde = "/api/ads?limit=1", gM = ["junk-summary"], _M = "/api/items?state=trash&limit=1", vM = ["trash-summary"], rde = [
+}, nde = "/api/review?counts=1", mM = ["review", "counts"], rde = "/api/ads?limit=1", hM = ["junk-summary"], gM = "/api/items?state=trash&limit=1", _M = ["trash-summary"], ide = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], yM = (e) => W(tde, e), bM = (e) => W(nde, e), xM = (e) => {
+], vM = (e) => W(nde, e), yM = (e) => W(rde, e), bM = (e) => {
let t = sessionStorage.getItem("peach.library");
- return W(t ? `${_M}&library=${encodeURIComponent(t)}` : _M, e);
-}, SM = (e) => Number(e || 0).toLocaleString();
-function ide(e) {
+ return W(t ? `${gM}&library=${encodeURIComponent(t)}` : gM, e);
+}, xM = (e) => Number(e || 0).toLocaleString();
+function ade(e) {
let t = bj, 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 ade(e) {
+function ode(e) {
if (!e) return "";
- let t = rde.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${SM(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${SM(e.dismissed_total)}`), t.join(" · ");
+ let t = ide.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${xM(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${xM(e.dismissed_total)}`), t.join(" · ");
}
-var ode = [
- [hM, ({ signal: e }) => yM(e)],
+var sde = [
+ [mM, ({ signal: e }) => vM(e)],
[pj, ({ signal: e }) => mj(e)],
- [vM, ({ signal: e }) => xM(e)],
+ [_M, ({ signal: e }) => bM(e)],
+ [Nj, ({ signal: e }) => Rj(e)],
[Pj, ({ signal: e }) => zj(e)],
- [Fj, ({ signal: e }) => Bj(e)],
- [Ij, ({ signal: e }) => Vj(e)]
+ [Fj, ({ signal: e }) => Bj(e)]
];
-async function sde(e) {
- let t = location.hash === "#resource-sync", n = ode.map(([n, r]) => {
+async function cde(e) {
+ let t = location.hash === "#resource-sync", n = sde.map(([n, r]) => {
if (t) return p.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -35544,40 +35544,40 @@ async function sde(e) {
await Promise.all([
...n,
p.fetchQuery({
- queryKey: gM,
- queryFn: () => bM(e)
+ queryKey: hM,
+ queryFn: () => yM(e)
}),
p.fetchQuery({
queryKey: qA,
queryFn: () => YA(e)
}),
- KA(e).then(() => que(e)),
+ KA(e).then(() => Jue(e)),
nj(e),
Zle(e),
- Rue(e)
+ zue(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var cde = [
+var lde = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], lde = [
+], ude = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function CM(e = {}) {
+function SM(e = {}) {
return `${AE({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var wM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ude = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function TM({ interactive: e = !1 } = {}) {
+var CM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", dde = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function wM({ interactive: e = !1 } = {}) {
return AE({
padding: "none",
radius: "plain",
@@ -35585,8 +35585,8 @@ function TM({ interactive: e = !1 } = {}) {
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var dde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function EM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var fde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function TM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -35619,13 +35619,13 @@ function EM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function DM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function EM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.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, B.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${cde[n % 4]} ${lde[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${lde[n % 4]} ${ude[n % 4]}`,
children: /* @__PURE__ */ (0, B.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -35647,7 +35647,7 @@ function DM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function OM(e) {
+function DM(e) {
let t = hA("hover");
return /* @__PURE__ */ (0, B.jsx)(NO, {
...e,
@@ -35660,67 +35660,67 @@ function OM(e) {
}).medium;
//#endregion
//#region src/management.ts
-var fde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", pde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", mde = AE({
+var pde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", mde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", hde = AE({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), hde = {
+}), gde = {
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"
-}, gde = {
+}, _de = {
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"
-}, _de = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", vde = {
+}, vde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", yde = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, yde = AE({
+}, bde = AE({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), kM = "border-t border-border-button-default p-4 first:border-t-0";
-function AM({ tone: e = "neutral", status: t, children: n }) {
+}), OM = "border-t border-border-button-default p-4 first:border-t-0";
+function kM({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `${_de} ${vde[e]}`,
+ className: `${vde} ${yde[e]}`,
children: [t ? /* @__PURE__ */ (0, B.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 jM({ id: e, children: t }) {
+function AM({ id: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function MM({ id: e, gap: t = "none", children: n }) {
+function jM({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, B.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function NM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function MM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, B.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${mde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${hde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: hde[e],
+ className: gde[e],
children: a
}), i ? /* @__PURE__ */ (0, B.jsx)("footer", {
- className: gde[e],
+ className: _de[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function PM() {
+function NM() {
let e = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
ke(e.current);
@@ -35728,7 +35728,7 @@ function PM() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var FM = TE({
+var PM = TE({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -35749,21 +35749,21 @@ var FM = TE({
small: "size-4 shrink-0"
}
});
-function IM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function FM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
ref: i,
type: r,
- className: wE(FM.base, FM.size[t], n),
+ className: wE(PM.base, PM.size[t], n),
...a,
children: /* @__PURE__ */ (0, B.jsx)(e, {
- className: FM.icon[t],
+ className: PM.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function bde({ className: e }) {
+function xde({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -35776,8 +35776,8 @@ function bde({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-folder-open" })
});
}
-var xde = "打开文件管理器失败,请重试";
-function LM({ path: e, prefix: t, className: n, onRevealed: r }) {
+var Sde = "打开文件管理器失败,请重试";
+function IM({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(""), c = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
c.current = !1;
@@ -35788,7 +35788,7 @@ function LM({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await G("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof RS ? e.message : xde);
+ c.current && s(e instanceof zS ? e.message : Sde);
} finally {
c.current && a(!1);
}
@@ -35801,8 +35801,8 @@ function LM({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, B.jsxs)("p", {
className: wE("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, B.jsx)(IM, {
- icon: bde,
+ }), /* @__PURE__ */ (0, B.jsx)(FM, {
+ icon: xde,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -35817,7 +35817,7 @@ function LM({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function RM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function LM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-task-progress": !0,
className: r ? "flex flex-col gap-1.5" : AE({
@@ -35837,8 +35837,8 @@ function RM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function zM({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = wS({
+function RM({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = TS({
queryKey: ej,
queryFn: ({ signal: e }) => tj(e),
refetchInterval: (e) => Wle(e.state.data, r)
@@ -35861,7 +35861,7 @@ function zM({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var Sde = [
+var Cde = [
{
label: "扫描并补全资料",
icon: CT,
@@ -35877,13 +35877,13 @@ var Sde = [
icon: rae,
command: { stage: "collect" }
}
-], Cde = wE(Tk, Ek, "text-body-2-medium"), wde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Tde = (e) => {
+], wde = wE(Tk, Ek, "text-body-2-medium"), Tde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Ede = (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(",")}。`;
-}, Ede = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Tde(e);
-function Dde({ busy: e, onRun: t }) {
+}, Dde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Ede(e);
+function Ode({ busy: e, onRun: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -35915,12 +35915,12 @@ function Dde({ busy: e, onRun: t }) {
placement: "bottom end",
offset: 4,
className: wk,
- children: /* @__PURE__ */ (0, B.jsx)(OM, {
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: Sde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: Cde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: Cde,
+ className: wde,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, B.jsx)(t, {
"aria-hidden": !0,
@@ -35930,8 +35930,8 @@ function Dde({ busy: e, onRun: t }) {
})
})] });
}
-function Ode({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = qle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Kle(e.notes || {}), c = PM();
+function kde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = qle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Kle(e.notes || {}), c = NM();
return /* @__PURE__ */ (0, B.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -35939,7 +35939,7 @@ function Ode({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "处理较慢",
- children: wde
+ children: Tde
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -35982,7 +35982,7 @@ function Ode({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, B.jsx)(LM, {
+ children: /* @__PURE__ */ (0, B.jsx)(IM, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -35996,13 +35996,13 @@ function Ode({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "success",
title: "处理完成",
- children: Ede(n)
+ children: Dde(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, B.jsx)(LM, {
+ children: /* @__PURE__ */ (0, B.jsx)(IM, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -36014,8 +36014,8 @@ function Ode({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function BM(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = zM(e), o = DS({
+function zM(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = RM(e), o = OS({
mutationFn: (e) => G($A, e),
onSuccess: (e) => {
a(), p.setQueryData(ej, e), p.invalidateQueries({ queryKey: ej });
@@ -36029,7 +36029,7 @@ function BM(e) {
};
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(NM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(MM, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
@@ -36045,7 +36045,7 @@ function BM(e) {
trailingIcon: gT,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Dde, {
+ /* @__PURE__ */ (0, B.jsx)(Ode, {
busy: l,
onRun: d
})
@@ -36053,12 +36053,12 @@ function BM(e) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(MM, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, B.jsx)(jM, { children: "扫描与采集" }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: fde
+ children: pde
}),
- s.status === "running" ? /* @__PURE__ */ (0, B.jsx)(RM, {
+ s.status === "running" ? /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
label: u,
value: s.checked,
@@ -36066,7 +36066,7 @@ function BM(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, B.jsx)(Ode, {
+ }), /* @__PURE__ */ (0, B.jsx)(kde, {
state: s,
problem: c,
settled: i,
@@ -36082,20 +36082,20 @@ function BM(e) {
}
//#endregion
//#region src/react/background-job.ts
-var VM = 2e3, kde = (e) => e, Ade = (e, t) => t;
-function HM(e) {
- let { queryKey: t, jobOf: n = kde, withJob: r = Ade, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
+var BM = 2e3, Ade = (e) => e, jde = (e, t) => t;
+function VM(e) {
+ let { queryKey: t, jobOf: n = Ade, withJob: r = jde, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
(0, R.useEffect)(() => {
l.current = e;
});
- let u = wS({
+ let u = TS({
queryKey: t,
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? VM : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? BM : i ?? !1;
}
- }), d = DS({
+ }), d = OS({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
o(!0), c(null), l.current.onStarted?.(e), p.setQueryData(t, (t) => r(t, e)), p.invalidateQueries({
@@ -36124,13 +36124,13 @@ function HM(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var jde = (e) => Oe[e] || e, UM = (e) => p.setQueryData(cj, e);
-function Mde() {
- let e = wS({
+var Mde = (e) => Oe[e] || e, HM = (e) => p.setQueryData(cj, e);
+function Nde() {
+ let e = TS({
queryKey: cj,
queryFn: ({ signal: e }) => uj(e),
- refetchInterval: (e) => e.state.data?.status === "running" && VM
- }), t = wS({
+ refetchInterval: (e) => e.state.data?.status === "running" && BM
+ }), t = TS({
queryKey: lj,
queryFn: ({ signal: e }) => dj(e)
}), [n, r] = (0, R.useState)(""), i = IE(), a = e.data ?? Xle, 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 = () => {
@@ -36138,15 +36138,15 @@ function Mde() {
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => UM(await G(sj, {
+ onConfirm: async () => HM(await G(sj, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => G(sj, { stop: !0 }, "POST", e), UM), d = Qle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => G(sj, { stop: !0 }, "POST", e), HM), d = Qle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(NM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(MM, {
layout: "split",
label: "媒体修复",
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ok, {
@@ -36160,7 +36160,7 @@ function Mde() {
children: o.map((e) => /* @__PURE__ */ (0, B.jsxs)(kk, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: jde(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Mde(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, B.jsx)(J, {
onClick: u,
@@ -36174,10 +36174,10 @@ function Mde() {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(MM, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, B.jsx)(jM, { children: "媒体修复" }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: pde
+ children: mde
}),
s && a.total ? /* @__PURE__ */ (0, B.jsx)(FE, {
label: "修复进度",
@@ -36215,7 +36215,7 @@ function Mde() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var WM = {
+var UM = {
md: {
box: "size-4",
glyph: "size-4",
@@ -36229,8 +36229,8 @@ var WM = {
gap: "gap-1.5"
}
};
-function GM({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = WM[t], c = n || r, l = o && !a;
+function WM({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = UM[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
className: wE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? wE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : wE("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"),
@@ -36257,13 +36257,13 @@ function GM({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function KM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = WM[n];
+function GM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = UM[n];
return /* @__PURE__ */ (0, B.jsx)(Doe, {
ref: r,
...i,
className: (t) => wE("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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(GM, {
+ children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(WM, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, B.jsx)("span", {
@@ -36274,7 +36274,7 @@ function KM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function qM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function KM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
className: wE("w-full overflow-x-auto", n),
children: /* @__PURE__ */ (0, B.jsx)(Fse, {
@@ -36286,7 +36286,7 @@ function qM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/row-click.ts
-var Nde = [
+var Pde = [
"a",
"button",
"input",
@@ -36299,15 +36299,15 @@ var Nde = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function JM(e, t) {
+function qM(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Nde);
+ let r = n.closest(Pde);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function YM({ children: e, follow: t = !1, onRowClick: n }) {
+function JM({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -36315,15 +36315,15 @@ function YM({ 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 && JM(e, r) && n(r.dataset.key);
+ r && qM(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Pde = CA("unlink"), XM = CA("rotate-cw"), Fde = "站点返回 404 或 410,确认这个地址不存在。", Ide = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Lde = "删除前会逐条重验一次;此操作不可撤销。", Rde = "暂时无法读取进度,正在重新连接…", ZM = (e) => Number(e || 0).toLocaleString();
-function QM({ label: e, value: t, note: n }) {
+var Fde = CA("unlink"), YM = CA("rotate-cw"), Ide = "站点返回 404 或 410,确认这个地址不存在。", Lde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Rde = "删除前会逐条重验一次;此操作不可撤销。", zde = "暂时无法读取进度,正在重新连接…", XM = (e) => Number(e || 0).toLocaleString();
+function ZM({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -36342,11 +36342,11 @@ function QM({ label: e, value: t, note: n }) {
]
});
}
-function $M({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function QM({ 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, B.jsxs)("div", {
- className: kM,
+ className: OM,
children: [
/* @__PURE__ */ (0, B.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -36359,13 +36359,13 @@ function $M({ 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, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {
+ /* @__PURE__ */ (0, B.jsx)(JM, { children: /* @__PURE__ */ (0, B.jsxs)(KM, {
"aria-label": e,
size: "sm",
children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
i ? /* @__PURE__ */ (0, B.jsx)(ik, {
id: "pick",
- children: /* @__PURE__ */ (0, B.jsx)(KM, {
+ children: /* @__PURE__ */ (0, B.jsx)(GM, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -36397,14 +36397,14 @@ function $M({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(lk, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(KM, {
+ i ? /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(GM, {
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, B.jsx)(dk, { children: e.entity }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: Lj[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: Ij[e.link_kind] || e.link_kind }),
/* @__PURE__ */ (0, B.jsx)(dk, { children: e.label || "" }),
/* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "tabular-nums text-text-error-primary",
@@ -36432,27 +36432,27 @@ function $M({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function zde() {
- let e = wS({
- queryKey: Pj,
- queryFn: ({ signal: e }) => zj(e)
- }), [t, n] = (0, R.useState)([]), r = HM({
- queryKey: Ij,
- queryFn: ({ signal: e }) => Vj(e),
- start: Tue,
+function Bde() {
+ let e = TS({
+ queryKey: Nj,
+ queryFn: ({ signal: e }) => Rj(e)
+ }), [t, n] = (0, R.useState)([]), r = VM({
+ queryKey: Fj,
+ queryFn: ({ signal: e }) => Bj(e),
+ start: Eue,
onFinish: () => {
p.invalidateQueries({
- queryKey: Pj,
+ queryKey: Nj,
exact: !0
}), p.invalidateQueries({
- queryKey: Fj,
+ queryKey: Pj,
exact: !0
});
}
- }), i = HM({
- queryKey: Fj,
- queryFn: ({ signal: e }) => Bj(e),
- start: wue,
+ }), i = VM({
+ queryKey: Pj,
+ queryFn: ({ signal: e }) => zj(e),
+ start: Tue,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -36482,7 +36482,7 @@ function zde() {
else if (v) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "success",
title: "完成",
- children: Eue(v)
+ children: Due(v)
});
else if (y) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -36492,7 +36492,7 @@ function zde() {
else if (i.query.isError && a) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: Rde
+ children: zde
});
else if (a?.status === "failed") x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -36500,12 +36500,12 @@ function zde() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- b = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, B.jsx)(RM, {
+ b = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
- label: Due(a),
+ label: Oue(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, B.jsx)(RM, {
+ }) : null, c ? /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -36513,38 +36513,38 @@ function zde() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
x = l || u.length || d.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
- className: yde,
+ className: bde,
children: [
- /* @__PURE__ */ (0, B.jsx)($M, {
+ /* @__PURE__ */ (0, B.jsx)(QM, {
title: "地址已失效",
items: u,
- hint: Fde
+ hint: Ide
}),
- /* @__PURE__ */ (0, B.jsx)($M, {
+ /* @__PURE__ */ (0, B.jsx)(QM, {
title: "本次未访问成功",
items: d,
- hint: Ide,
+ hint: Lde,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, B.jsxs)(AM, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: XM,
+ children: /* @__PURE__ */ (0, B.jsxs)(kM, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
+ leadingIcon: YM,
disabled: !t.length,
...X(s),
onClick: () => g(t),
children: e
}), /* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: XM,
+ leadingIcon: YM,
...X(s),
onClick: () => g(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, B.jsx)(AM, {
+ l && u.length ? /* @__PURE__ */ (0, B.jsx)(kM, {
tone: "error",
- status: Lde,
+ status: Rde,
children: /* @__PURE__ */ (0, B.jsx)(J, {
variant: "danger",
...X(c),
@@ -36553,7 +36553,7 @@ function zde() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, B.jsx)("p", {
- className: `${kM} text-body-regular text-notification-success-foreground`,
+ className: `${OM} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -36564,21 +36564,21 @@ function zde() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(jM, {
+ /* @__PURE__ */ (0, B.jsx)(AM, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, B.jsxs)(NM, {
+ /* @__PURE__ */ (0, B.jsxs)(MM, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: Pde,
+ leadingIcon: Fde,
...X(s),
onClick: () => g(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, B.jsx)(MM, {
+ /* @__PURE__ */ (0, B.jsx)(jM, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -36589,13 +36589,13 @@ function zde() {
children: U(e.error)
}) : m ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, B.jsx)(QM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(ZM, {
label: "链接总数",
- value: ZM(m.total),
- note: `分布在 ${ZM(m.entities)} 个女优、厂牌与系列`
- }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(QM, {
- label: Lj[e] || e,
- value: ZM(t)
+ value: XM(m.total),
+ note: `分布在 ${XM(m.entities)} 个女优、厂牌与系列`
+ }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(ZM, {
+ label: Ij[e] || e,
+ value: XM(t)
}, e))]
}), h ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -36624,18 +36624,18 @@ function zde() {
}
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Bde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Vde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Hde = 8;
-function Ude({ plan: e }) {
+var Vde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Hde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Ude = 8;
+function Wde({ plan: e }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Hde).map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
+ children: e.rows.slice(0, Ude).map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: eM(e.current_path)
+ children: $j(e.current_path)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
@@ -36645,7 +36645,7 @@ function Ude({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: eM(e.target_path)
+ children: $j(e.target_path)
})
]
}, e.current_path))
@@ -36654,10 +36654,10 @@ function Ude({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Wde({ toast: e, failure: t }) {
- let n = wS({
- queryKey: Qj,
- queryFn: ({ signal: e }) => $j(e)
+function Gde({ toast: e, failure: t }) {
+ let n = TS({
+ queryKey: Zj,
+ queryFn: ({ signal: e }) => Qj(e)
}), r = n.data, i = r?.locations ?? [], [a, o] = (0, R.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, R.useState)(null), d = l?.location === s ? l : {
location: s,
file: c?.file ?? "",
@@ -36669,9 +36669,9 @@ function Wde({ toast: e, failure: t }) {
location: s,
file_template: d.file.trim(),
dir_template: d.dir.trim()
- }), y = DS({
- mutationFn: zue,
- onSuccess: (e, t) => void Vue({
+ }), y = OS({
+ mutationFn: Bue,
+ onSuccess: (e, t) => void Hue({
...r?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -36679,29 +36679,29 @@ function Wde({ toast: e, failure: t }) {
}
}),
onError: (e) => {
- let t = Uue.test(U(e)) ? "dir" : "file";
+ let t = Wue.test(U(e)) ? "dir" : "file";
h(t), (t === "dir" ? _ : g).current?.focus();
}
- }), b = HM({
- queryKey: Qj,
- queryFn: ({ signal: e }) => $j(e),
- start: Bue,
+ }), b = VM({
+ queryKey: Zj,
+ queryFn: ({ signal: e }) => Qj(e),
+ start: Vue,
jobOf: (e) => e,
- withJob: Hue,
+ withJob: Uue,
onStarted: () => y.reset(),
onFinish: (n) => {
if (p.invalidateQueries({
- queryKey: Qj,
+ queryKey: Zj,
exact: !0
}), n.status !== "complete") return;
- let { text: r, failed: i } = nM(n);
+ let { text: r, failed: i } = tM(n);
i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));
}
}), x = b.running || b.start.isPending, S = y.data, C = Number(S?.counts?.change || 0), w = I[s] || s, T = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), E = () => {
y.isPending || !s || (h(null), y.mutate(v()));
}, D = () => void je({
title: "按模板整理文件",
- body: Bde(w),
+ body: Vde(w),
confirmLabel: "整理文件",
onConfirm: () => b.start.mutateAsync({
kind: "apply",
@@ -36709,13 +36709,13 @@ function Wde({ toast: e, failure: t }) {
})
}), O = () => void je({
title: "回滚上一批整理",
- body: Vde,
+ body: Hde,
confirmLabel: "回滚整理",
onConfirm: () => b.start.mutateAsync({ kind: "rollback" })
}), k = null, A = b.job, j = b.outcome;
if (A?.status === "running") {
let e = A.message || A.stage || "正在整理文件…";
- k = /* @__PURE__ */ (0, B.jsx)(RM, {
+ k = /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
label: e,
value: A.checked,
@@ -36727,7 +36727,7 @@ function Wde({ toast: e, failure: t }) {
children: j.error || "请查看任务记录,核对已处理的文件。"
});
else if (j) {
- let { text: e, failed: t } = nM(j);
+ let { text: e, failed: t } = tM(j);
k = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -36737,7 +36737,7 @@ function Wde({ toast: e, failure: t }) {
tone: "error",
title: "整理失败",
children: U(b.start.error)
- }) : y.isPending ? k = /* @__PURE__ */ (0, B.jsx)(RM, {
+ }) : y.isPending ? k = /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
label: "正在按模板算计划…"
}) : y.isError ? k = /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -36747,9 +36747,9 @@ function Wde({ toast: e, failure: t }) {
}) : S && (k = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "预览结果",
- children: Wue(S)
- }), C ? /* @__PURE__ */ (0, B.jsx)(Ude, { plan: S }) : null] }));
- return /* @__PURE__ */ (0, B.jsxs)(NM, {
+ children: Gue(S)
+ }), C ? /* @__PURE__ */ (0, B.jsx)(Wde, { plan: S }) : null] }));
+ return /* @__PURE__ */ (0, B.jsxs)(MM, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -36773,7 +36773,7 @@ function Wde({ toast: e, failure: t }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, B.jsx)(MM, {
+ /* @__PURE__ */ (0, B.jsx)(jM, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -36857,43 +36857,43 @@ function Wde({ toast: e, failure: t }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var Gde = "/api/orphan-records", Kde = "/api/orphan-records/attach", eN = ["orphan-records"], qde = [
+var Kde = "/api/orphan-records", qde = "/api/orphan-records/attach", $M = ["orphan-records"], Jde = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], Jde = (e) => W(Gde, e), Yde = (e, t) => G(Kde, {
+], Yde = (e) => W(Kde, e), Xde = (e, t) => G(qde, {
id: e,
target: t
-}), Xde = (e) => G(JA, {
+}), Zde = (e) => G(JA, {
ids: [e],
operation: "delete"
-}), Zde = (e) => [
+}), Qde = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], tN = (e) => [...qde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Zde(e)].filter(Boolean).join(" · "), Qde = (e) => e ? `${Math.round(e / 60)} 分钟` : "", nN = (e) => [e.name, Qde(e.duration)].filter(Boolean).join(" · "), $de = CA("play"), rN = () => p.invalidateQueries({
- queryKey: eN,
+], eN = (e) => [...Jde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Qde(e)].filter(Boolean).join(" · "), $de = (e) => e ? `${Math.round(e / 60)} 分钟` : "", tN = (e) => [e.name, $de(e.duration)].filter(Boolean).join(" · "), efe = CA("play"), nN = () => p.invalidateQueries({
+ queryKey: $M,
exact: !0
});
-function efe({ item: e, toast: t }) {
- let [n, r] = (0, R.useState)(e.candidates[0]?.id ?? null), i = DS({
- mutationFn: () => Yde(e.id, Number(n)),
+function tfe({ item: e, toast: t }) {
+ let [n, r] = (0, R.useState)(e.candidates[0]?.id ?? null), i = OS({
+ mutationFn: () => Xde(e.id, Number(n)),
onSuccess: (e) => {
- t(`记录已接到新文件,批次 ${e.batch}`), rN();
+ t(`记录已接到新文件,批次 ${e.batch}`), nN();
},
onError: (e) => t(U(e))
- }), a = DS({
- mutationFn: () => Xde(e.id),
+ }), a = OS({
+ mutationFn: () => Zde(e.id),
onSuccess: (n) => {
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), rN();
+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), nN();
}
}), o = () => {
je({
title: "彻底删除",
- body: `将删除「${e.name}」这一条和它带的记录(${tN(e.records)})。此操作不可撤销。`,
+ body: `将删除「${e.name}」这一条和它带的记录(${eN(e.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => a.mutateAsync()
@@ -36906,7 +36906,7 @@ function efe({ item: e, toast: t }) {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
- children: [/* @__PURE__ */ (0, B.jsx)($de, {
+ children: [/* @__PURE__ */ (0, B.jsx)(efe, {
"aria-hidden": !0,
className: "size-5"
}), e.has_thumb ? /* @__PURE__ */ (0, B.jsx)("img", {
@@ -36930,7 +36930,7 @@ function efe({ item: e, toast: t }) {
}) }),
/* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "block min-w-44",
- children: tN(e.records)
+ children: eN(e.records)
}) }),
/* @__PURE__ */ (0, B.jsx)(dk, { children: e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
@@ -36941,8 +36941,8 @@ function efe({ item: e, toast: t }) {
},
children: e.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e.id,
- textValue: nN(e),
- children: nN(e)
+ textValue: tN(e),
+ children: tN(e)
}, e.id))
}) : /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-text-secondary",
@@ -36968,23 +36968,23 @@ function efe({ item: e, toast: t }) {
]
});
}
-function tfe({ toast: e }) {
- let t = wS({
- queryKey: eN,
- queryFn: ({ signal: e }) => Jde(e)
+function nfe({ toast: e }) {
+ let t = TS({
+ queryKey: $M,
+ queryFn: ({ signal: e }) => Yde(e)
}), n = t.data?.items ?? [];
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, B.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(jM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(AM, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, B.jsxs)(NM, {
+ }), /* @__PURE__ */ (0, B.jsxs)(MM, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, B.jsx)(MM, {
+ /* @__PURE__ */ (0, B.jsx)(jM, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -36997,7 +36997,7 @@ function tfe({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: U(t.error)
- }) : /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {
+ }) : /* @__PURE__ */ (0, B.jsx)(JM, { children: /* @__PURE__ */ (0, B.jsxs)(KM, {
"aria-label": "文件已消失的作品",
size: "sm",
children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
@@ -37018,7 +37018,7 @@ function tfe({ toast: e }) {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: n.map((t) => /* @__PURE__ */ (0, B.jsx)(efe, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: n.map((t) => /* @__PURE__ */ (0, B.jsx)(tfe, {
item: t,
toast: e
}, t.id)) })]
@@ -37029,99 +37029,99 @@ function tfe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var nfe = CA("git-compare"), rfe = CA("rotate-cw"), ife = "暂时无法读取进度,正在重新连接…", iN = "清理失效条目", aN = "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", oN = (e) => Number(e || 0).toLocaleString();
-function afe({ scan: e }) {
+var rfe = CA("git-compare"), ife = CA("rotate-cw"), afe = "暂时无法读取进度,正在重新连接…", rN = "清理失效条目", iN = "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", aN = (e) => Number(e || 0).toLocaleString();
+function ofe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: aN,
+ className: iN,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, B.jsx)("article", {
- className: TM(),
- children: /* @__PURE__ */ (0, B.jsx)(EM, {
- label: Yue[e.location] || "媒体来源",
+ className: wM(),
+ children: /* @__PURE__ */ (0, B.jsx)(TM, {
+ label: Xue[e.location] || "媒体来源",
mark: /* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, B.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${oN(e.missing)} 项` : "—",
- meta: $ue(e),
+ figure: e.online ? `${aN(e.missing)} 项` : "—",
+ meta: ede(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, B.jsxs)("div", {
- className: aN,
+ className: iN,
children: [
/* @__PURE__ */ (0, B.jsx)("article", {
- className: TM(),
- children: /* @__PURE__ */ (0, B.jsx)(EM, {
+ className: wM(),
+ children: /* @__PURE__ */ (0, B.jsx)(TM, {
label: "待永久删除",
- figure: `${oN(dM(e))} 项`,
+ figure: `${aN(uM(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: TM(),
- children: /* @__PURE__ */ (0, B.jsx)(EM, {
+ className: wM(),
+ children: /* @__PURE__ */ (0, B.jsx)(TM, {
label: "将标为已消失",
- figure: `${oN(e.vanish)} 项`,
+ figure: `${aN(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: TM(),
- children: /* @__PURE__ */ (0, B.jsx)(EM, {
+ className: wM(),
+ children: /* @__PURE__ */ (0, B.jsx)(TM, {
label: "空文件夹",
- figure: `${oN(e.empty)} 个`,
+ figure: `${aN(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: TM(),
- children: /* @__PURE__ */ (0, B.jsx)(EM, {
+ className: wM(),
+ children: /* @__PURE__ */ (0, B.jsx)(TM, {
label: "可清理的缓存",
- figure: `${oN(t.files)} 个`,
+ figure: `${aN(t.files)} 个`,
meta: t.files ? ye(t.bytes) : ""
})
})
]
})] });
}
-function ofe({ toast: e }) {
- let t = HM({
- queryKey: oM,
- queryFn: ({ signal: e }) => cM(e),
- start: Kue,
+function sfe({ toast: e }) {
+ let t = VM({
+ queryKey: aM,
+ queryFn: ({ signal: e }) => sM(e),
+ start: que,
onFinish: (t) => {
if (p.invalidateQueries({
- queryKey: vM,
+ queryKey: _M,
exact: !0
}), p.invalidateQueries({
- queryKey: aM,
+ queryKey: iM,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = mM(t);
- r ? e(`已完成 ${oN(n)} 项,${oN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = pM(t);
+ r ? e(`已完成 ${aN(n)} 项,${aN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = HM({
- queryKey: aM,
- queryFn: ({ signal: e }) => sM(e),
- start: Gue,
+ }), n = VM({
+ queryKey: iM,
+ queryFn: ({ signal: e }) => oM(e),
+ start: Kue,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void je({
- title: iN,
- body: Que(e),
- confirmLabel: iN,
+ title: rN,
+ body: $ue(e),
+ confirmLabel: rN,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), l = t.outcome, u = (e) => {
- let t = mM(e).left > 0;
+ let t = pM(e).left > 0;
return /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: ede(e, ye)
+ children: tde(e, ye)
});
}, d = null, f = null;
if (l?.status === "failed") f = /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -37130,7 +37130,7 @@ function ofe({ toast: e }) {
children: l.error || "请查看任务记录,核对已处理的文件。"
});
else if (l) f = u(l);
- else if (t.running) d = /* @__PURE__ */ (0, B.jsx)(RM, {
+ else if (t.running) d = /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -37142,11 +37142,11 @@ function ofe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: ife
+ children: afe
});
else if (r?.status === "running") {
- let e = Xue(r);
- d = /* @__PURE__ */ (0, B.jsx)(RM, {
+ let e = Zue(r);
+ d = /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -37163,13 +37163,13 @@ function ofe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Jue(r);
+ let e = Yue(r);
f = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(afe, { scan: r }),
+ /* @__PURE__ */ (0, B.jsx)(ofe, { scan: r }),
e ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "清理内容",
- children: Zue(r)
+ children: Que(r)
}) : null,
/* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -37177,7 +37177,7 @@ function ofe({ toast: e }) {
variant: "danger",
...X(a),
onClick: () => c(r),
- children: a ? "正在复核并清理…" : iN
+ children: a ? "正在复核并清理…" : rN
}) : /* @__PURE__ */ (0, B.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -37194,16 +37194,16 @@ function ofe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(jM, {
+ /* @__PURE__ */ (0, B.jsx)(AM, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, B.jsxs)(NM, {
+ /* @__PURE__ */ (0, B.jsxs)(MM, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, B.jsx)(J, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? rfe : nfe,
+ leadingIcon: o && !i ? ife : rfe,
...X(i),
onClick: () => {
i || n.start.mutate();
@@ -37211,7 +37211,7 @@ function ofe({ toast: e }) {
children: s
}),
children: [
- /* @__PURE__ */ (0, B.jsx)(MM, {
+ /* @__PURE__ */ (0, B.jsx)(jM, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -37237,16 +37237,16 @@ function ofe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function sN(e, t) {
+function oN(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function cN({ section: e, label: t, icon: n, value: r, open: i }) {
+function sN({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
- className: TM({ interactive: !0 }),
+ className: wM({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, B.jsx)(EM, {
+ children: /* @__PURE__ */ (0, B.jsx)(TM, {
label: t,
icon: n,
figure: r.figure,
@@ -37254,80 +37254,80 @@ function cN({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var sfe = CA("square-check-big"), cfe = CA("sparkles"), lfe = CA("file-stack"), ufe = CA("file-archive"), dfe = CA("trash"), ffe = [
- hM,
+var cfe = CA("square-check-big"), lfe = CA("sparkles"), ufe = CA("file-stack"), dfe = CA("file-archive"), ffe = CA("trash"), pfe = [
+ mM,
pj,
qA
-], pfe = () => {
- for (let e of ffe) p.invalidateQueries({
+], mfe = () => {
+ for (let e of pfe) p.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function mfe({ toast: e, failure: t, open: n }) {
- let r = wS({
- queryKey: hM,
- queryFn: ({ signal: e }) => yM(e)
- }), i = wS({
+function hfe({ toast: e, failure: t, open: n }) {
+ let r = TS({
+ queryKey: mM,
+ queryFn: ({ signal: e }) => vM(e)
+ }), i = TS({
queryKey: pj,
queryFn: ({ signal: e }) => mj(e)
- }), a = wS({
+ }), a = TS({
queryKey: qA,
queryFn: ({ signal: e }) => YA(e)
- }), o = wS({
- queryKey: gM,
+ }), o = TS({
+ queryKey: hM,
+ queryFn: ({ signal: e }) => yM(e)
+ }), s = TS({
+ queryKey: _M,
queryFn: ({ signal: e }) => bM(e)
- }), s = wS({
- queryKey: vM,
- queryFn: ({ signal: e }) => xM(e)
- }), c = wS({
+ }), c = TS({
queryKey: u,
queryFn: ({ signal: e }) => f(e)
}), l = (t) => e(t);
return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: dde,
+ className: fde,
children: [
- /* @__PURE__ */ (0, B.jsx)(cN, {
+ /* @__PURE__ */ (0, B.jsx)(sN, {
section: "review",
label: "人工复核",
- icon: sfe,
+ icon: cfe,
open: n,
- value: sN(r, ide)
+ value: oN(r, ade)
}),
- /* @__PURE__ */ (0, B.jsx)(cN, {
+ /* @__PURE__ */ (0, B.jsx)(sN, {
section: "quality",
label: "高清版",
- icon: cfe,
+ icon: lfe,
open: n,
- value: sN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: oN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, B.jsx)(cN, {
+ /* @__PURE__ */ (0, B.jsx)(sN, {
section: "duplicates",
label: "重复文件",
- icon: lfe,
+ icon: ufe,
open: n,
- value: sN(a, (e) => Number(e.total || 0) ? {
+ value: oN(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${ye(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, B.jsx)(cN, {
+ /* @__PURE__ */ (0, B.jsx)(sN, {
section: "ads",
label: "垃圾文件",
- icon: ufe,
+ icon: dfe,
open: n,
- value: sN(o, (e) => ({
+ value: oN(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: ade(e)
+ meta: ode(e)
}))
}),
- /* @__PURE__ */ (0, B.jsx)(cN, {
+ /* @__PURE__ */ (0, B.jsx)(sN, {
section: "trash",
label: "回收站",
- icon: dfe,
+ icon: ffe,
open: n,
- value: sN(s, (e) => ({
+ value: oN(s, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${ye(e.bytes || 0)}` : ""
}))
@@ -37340,31 +37340,31 @@ function mfe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, B.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, B.jsx)(BM, {
+ children: /* @__PURE__ */ (0, B.jsx)(zM, {
toast: l,
monitor: !0,
- onComplete: pfe
+ onComplete: mfe
})
}),
/* @__PURE__ */ (0, B.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, B.jsx)(Mde, {})
+ children: /* @__PURE__ */ (0, B.jsx)(Nde, {})
}),
- /* @__PURE__ */ (0, B.jsx)(Wde, {
+ /* @__PURE__ */ (0, B.jsx)(Gde, {
toast: l,
failure: t
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(zde, {}),
- /* @__PURE__ */ (0, B.jsx)(tfe, { toast: l }),
- lM(c.data) ? /* @__PURE__ */ (0, B.jsx)(ofe, { toast: e }) : null
+ /* @__PURE__ */ (0, B.jsx)(Bde, {}),
+ /* @__PURE__ */ (0, B.jsx)(nfe, { toast: l }),
+ cM(c.data) ? /* @__PURE__ */ (0, B.jsx)(sfe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var lN = (e) => ["feed-new", e ?? "home"], hfe = 8, gfe = 1500;
-function _fe(e, t, n) {
+var cN = (e) => ["feed-new", e ?? "home"], gfe = 8, _fe = 1500;
+function vfe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -37375,32 +37375,32 @@ function _fe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function vfe(e, t, n) {
+async function yfe(e, t, n) {
let r = new URLSearchParams({ limit: "12" });
e && r.set("entity", String(e));
let i = await pe(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await _fe(s, hfe, gfe), {
+ return n && o.length && await vfe(s, gfe, _fe), {
items: o,
html: s
};
}
-var uN = (e, t, n = !1) => ({
- queryKey: lN(e),
- queryFn: () => vfe(e, t, n),
+var lN = (e, t, n = !1) => ({
+ queryKey: cN(e),
+ queryFn: () => yfe(e, t, n),
staleTime: Infinity
-}), dN = (e, t) => pe("/api/feeds/discovery", {
+}), uN = (e, t) => pe("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function yfe(e) {
- p.removeQueries({ queryKey: lN(null) }), await p.fetchQuery(uN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function bfe(e) {
+ p.removeQueries({ queryKey: cN(null) }), await p.fetchQuery(lN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var bfe = [
+var xfe = [
"loc",
"creator",
"tag",
@@ -37410,51 +37410,51 @@ var bfe = [
"orient",
"sort",
"dir"
-], fN = {
+], dN = {
media: "videos",
set: 0
-}, pN = (e, t) => [
+}, fN = (e, t) => [
"entity",
e,
t
-], xfe = (e, t, n, r) => [
+], Sfe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], mN = (e, t, n, r) => [
+], pN = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], hN = (e) => String(e || "").split(",").filter(Boolean), Sfe = (e, t) => hN(e).includes(t);
-function gN(e, t, n, r, i = 0) {
+], mN = (e) => String(e || "").split(",").filter(Boolean), Cfe = (e, t) => mN(e).includes(t);
+function hN(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of bfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of xfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function _N(e, t, n, r, i, a) {
- return await pe(`/api/items?${gN(e, t, n, r, i)}`, a ? { signal: a } : {});
+async function gN(e, t, n, r, i, a) {
+ return await pe(`/api/items?${hN(e, t, n, r, i)}`, a ? { signal: a } : {});
}
-var vN = (e) => {
+var _N = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = gN(e.kind, e.name, e.filters, t).toString();
+ }, n = hN(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: xfe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => _N(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: Sfe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => gN(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, yN = (e, t) => ({
- queryKey: pN(e, t),
+}, vN = (e, t) => ({
+ queryKey: fN(e, t),
queryFn: ({ signal: n }) => pe(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function Cfe(e, t, n, r, i, a) {
+function wfe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -37463,10 +37463,10 @@ function Cfe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var bN = (e, t, n, r) => ({
- queryKey: mN(e, t, n, r),
+var yN = (e, t, n, r) => ({
+ queryKey: pN(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await pe(Cfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await pe(wfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -37479,8 +37479,8 @@ var bN = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), xN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function wfe(e) {
+}), bN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function Tfe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -37492,51 +37492,51 @@ async function wfe(e) {
n
] });
await Promise.all([
- p.fetchQuery(yN(t, n)).then((t) => !t || t.error || !t.id ? null : (p.removeQueries({ queryKey: lN(Number(t.id)) }), p.fetchQuery(uN(Number(t.id), e.helpers.feedRowHtml, !0)))),
- p.fetchQuery(vN(e)),
- p.fetchInfiniteQuery(bN(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? p.fetchInfiniteQuery(bN(t, n, e.media.set, "")) : null
+ p.fetchQuery(vN(t, n)).then((t) => !t || t.error || !t.id ? null : (p.removeQueries({ queryKey: cN(Number(t.id)) }), p.fetchQuery(lN(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ p.fetchQuery(_N(e)),
+ p.fetchInfiniteQuery(yN(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? p.fetchInfiniteQuery(yN(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var Tfe = "/api/follow/authors", Efe = "/api/follow/tags", Dfe = (e) => [
+var Efe = "/api/follow/authors", Dfe = "/api/follow/tags", Ofe = (e) => [
"follow",
"authors",
e
-], Ofe = (e, t) => [
+], kfe = (e, t) => [
"follow",
"tags",
e,
t
];
-function kfe(e, t, n) {
+function Afe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${Tfe}?${r}`;
+ return e && r.set("q", e), `${Efe}?${r}`;
}
-function Afe(e, t, n, r) {
+function jfe(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), `${Efe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Dfe}?${i}`;
}
-var jfe = (e, t, n, r) => W(kfe(e, t, n), r), Mfe = (e, t, n, r, i) => W(Afe(e, t, n, r), i), Nfe = "/api/index", SN = {
+var Mfe = (e, t, n, r) => W(Afe(e, t, n), r), Nfe = (e, t, n, r, i) => W(jfe(e, t, n, r), i), Pfe = "/api/index", xN = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Pfe = {
+}, Ffe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, CN = [
+}, SN = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -37546,14 +37546,14 @@ var jfe = (e, t, n, r) => W(kfe(e, t, n), r), Mfe = (e, t, n, r, i) => W(Afe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], wN = [
+], CN = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], TN = {
+], wN = {
performers: [
["all", "全部"],
["japanese_av", "女优"],
@@ -37563,24 +37563,24 @@ var jfe = (e, t, n, r) => W(kfe(e, t, n), r), Mfe = (e, t, n, r, i) => W(Afe(e,
["animation", "动画作者"]
],
creators: [["all", "全部"]]
-}, EN = {
+}, TN = {
people: 120,
tags: 180
-}, DN = (e) => e !== "tags", ON = (e) => e === "studios" || e === "agencies";
-function kN(e) {
- if (e.kind === "creators" && e.category === "animation") return kN({
+}, EN = (e) => e !== "tags", DN = (e) => e === "studios" || e === "agencies";
+function ON(e) {
+ if (e.kind === "creators" && e.category === "animation") return ON({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = e.kind === "tags" ? t === "online" ? wN : CN : e.kind === "performers" || e.kind === "creators" ? TN[e.kind] : [], r = t === "local" && (e.kind === "creators" || e.kind === "performers"), i = n.some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = e.kind === "tags" ? t === "online" ? CN : SN : e.kind === "performers" || e.kind === "creators" ? wN[e.kind] : [], r = t === "local" && (e.kind === "creators" || e.kind === "performers"), i = n.some(([t]) => t === e.category);
return {
...e,
scope: t,
category: (e.kind === "tags" || r) && i ? e.category : "all"
};
}
-function AN(e) {
+function kN(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -37600,50 +37600,50 @@ function AN(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var jN = (e, t, n = "all") => [
+var AN = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function MN(e, t, n, r, i) {
+function jN(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${Nfe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Pfe}?${a}`;
}
-function NN(e) {
- let t = e.what === "people" || e.what === "online-authors" ? EN.people : EN.tags, n = {
+function MN(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? TN.people : TN.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: jN(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: n, signal: r }) => W(MN(e.kind, e.q, e.category || "all", t, n), r)
+ queryKey: AN(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: n, signal: r }) => W(jN(e.kind, e.q, e.category || "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: jN("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => W(MN("tags", e.q, e.category, t, n), r)
+ queryKey: AN("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => W(jN("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: Dfe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => jfe(e.q, t, n, r)
+ queryKey: Ofe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Mfe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: Ofe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Mfe(e.q, e.category, t, n, r)
+ queryKey: kfe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Nfe(e.q, e.category, t, n, r)
};
}
}
-async function Ffe(e, t) {
- let n = NN(AN(kN(e)));
+async function Ife(e, t) {
+ let n = MN(kN(ON(e)));
p.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -37657,13 +37657,13 @@ async function Ffe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Ife = (e) => e ? e.pages.flatMap((e) => e.items) : [], Lfe = (e, t) => `${e}${t ? "+" : ""} 项`, PN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Rfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), zfe = {
+var Lfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Rfe = (e, t) => `${e}${t ? "+" : ""} 项`, NN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", zfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Bfe = {
numeric: !0,
sensitivity: "base"
};
-function Bfe(e, t) {
+function Vfe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", zfe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Bfe))) {
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]);
}
@@ -37671,7 +37671,7 @@ function Bfe(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function FN({ html: e, face: t, company: n, big: r }) {
+function PN({ html: e, face: t, company: n, big: r }) {
let i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -37683,8 +37683,8 @@ function FN({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Vfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function IN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Hfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function FN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
...a,
@@ -37694,7 +37694,7 @@ function IN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Vfe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Hfe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -37711,23 +37711,23 @@ function IN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function LN({ kind: e, items: t, layout: n, props: r }) {
- let i = ON(e), a = n === "big";
+function IN({ kind: e, items: t, layout: n, props: r }) {
+ let i = DN(e), a = n === "big";
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || Pfe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, B.jsx)(IN, {
+ let n = t.entity_kind || Ffe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, B.jsx)(FN, {
"data-k": t.k,
"data-kind": n,
name: t.k,
- readout: `${Rfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${zfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, B.jsx)(FN, {
+ children: /* @__PURE__ */ (0, B.jsx)(PN, {
html: o.html,
face: o.face,
company: i,
@@ -37737,21 +37737,21 @@ function LN({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Hfe({ items: e, layout: t, props: n }) {
+function Ufe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(IN, {
+ children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(FN, {
"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, B.jsx)(FN, {
+ children: /* @__PURE__ */ (0, B.jsx)(PN, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -37761,14 +37761,14 @@ function Hfe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function Ufe(e) {
+function Wfe(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}%`);
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var RN = "/vendor/swiper/14.2.0/", zN = null, Wfe = () => zN ??= Promise.all([new Promise((e, t) => {
- let n = `${RN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var LN = "/vendor/swiper/14.2.0/", RN = null, Gfe = () => RN ??= Promise.all([new Promise((e, t) => {
+ let n = `${LN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -37782,11 +37782,11 @@ var RN = "/vendor/swiper/14.2.0/", zN = null, Wfe = () => zN ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${RN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${LN}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 zN = null, e;
+ throw RN = null, e;
});
-function Gfe(e, t, n) {
+function Kfe(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);
@@ -37807,48 +37807,48 @@ function Gfe(e, t, n) {
}
};
}
-var BN = (e) => {
+var zN = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : ye(t)).replace(" ", "\xA0") : "大小未知";
-}, Kfe = (e) => e.asset?.name || e.name || "未命名图片";
-function qfe(e, t) {
+}, qfe = (e) => e.asset?.name || e.name || "未命名图片";
+function Jfe(e, t) {
let n = e.asset;
- if (n) return [I[n.location ?? ""] || n.location || "来源未知", BN(n.size)].join(" · ");
+ if (n) return [I[n.location ?? ""] || n.location || "来源未知", zN(n.size)].join(" · ");
let r = (e.total ?? 0) > 1 ? `第 ${e.position} / ${e.total} 张` : "", i = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
i,
- e.size ? BN(e.size) : ""
+ e.size ? zN(e.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var VN = null, HN = null, Jfe = 0;
-function Yfe() {
- return (!HN || !VN?.isConnected) && (HN?.unmount(), VN = document.createElement("div"), VN.className = "peach-react", VN.dataset.photoLightboxHost = "", document.body.append(VN), HN = (0, ip.createRoot)(VN)), HN;
+var BN = null, VN = null, Yfe = 0;
+function Xfe() {
+ return (!VN || !BN?.isConnected) && (VN?.unmount(), BN = document.createElement("div"), BN.className = "peach-react", BN.dataset.photoLightboxHost = "", document.body.append(BN), VN = (0, ip.createRoot)(BN)), VN;
}
-async function UN(e, t, n) {
+async function HN(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Wfe();
+ r = await Gfe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = Yfe();
- (0, rp.flushSync)(() => i.render(/* @__PURE__ */ (0, B.jsx)(Xfe, {
+ let i = Xfe();
+ (0, rp.flushSync)(() => i.render(/* @__PURE__ */ (0, B.jsx)(Zfe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++Jfe)));
+ }, ++Yfe)));
}
-function WN() {
- HN && (0, rp.flushSync)(() => HN.render(null));
+function UN() {
+ VN && (0, rp.flushSync)(() => VN.render(null));
}
-function Xfe({ slides: e, index: t, Swiper: n, host: r }) {
+function Zfe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, R.useId)(), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), [_, v] = (0, R.useState)(t), [y, b] = (0, R.useState)(100), [x, S] = (0, R.useState)({}), [C, w] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, R.useState)(!1), [D, O] = (0, R.useState)({
at: t,
text: ""
@@ -37891,7 +37891,7 @@ function Xfe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = Gfe(e, a, b);
+ i(t, 0), h.current = Kfe(e, a, b);
let m = tt(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -37908,13 +37908,13 @@ function Xfe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : WN());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : UN());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, R.useLayoutEffect)(() => {
- m.current && Ufe(m.current);
+ m.current && Wfe(m.current);
}, [y]);
let k = e[_], A = k.asset ?? null, j = async (e) => {
if (!A || !r || e.getAttribute("aria-busy") === "true") return;
@@ -37945,18 +37945,18 @@ function Xfe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), WN();
+ e.preventDefault(), UN();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && WN();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && UN();
},
children: [
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: WN,
+ onClick: UN,
dangerouslySetInnerHTML: { __html: L("x") }
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -38089,10 +38089,10 @@ function Xfe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Kfe(k)
+ children: qfe(k)
}, _), /* @__PURE__ */ (0, B.jsx)("span", {
"data-photo-detail-meta": "",
- children: qfe(k, x[_])
+ children: Jfe(k, x[_])
})]
}),
/* @__PURE__ */ (0, B.jsx)("button", {
@@ -38131,28 +38131,28 @@ function Xfe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function Zfe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, B.jsx)(Qfe, {
+function Qfe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, B.jsx)($fe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, B.jsx)($fe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, B.jsx)(npe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, B.jsx)(epe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, B.jsx)(rpe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function Qfe({ roster: e, props: t }) {
+function $fe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, R.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, B.jsx)(LN, {
+ return /* @__PURE__ */ (0, B.jsx)(IN, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function $fe(e) {
+function epe(e) {
let t = MA(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-grid": "",
@@ -38176,16 +38176,16 @@ function $fe(e) {
}) : null]
});
}
-var epe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var tpe = (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 || "官方样张"
-})), GN = (e) => e.sample === !0, KN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, qN = (e) => GN(e) ? `/sample-thumb?${KN(e)}` : `/photo-thumb?id=${e.id}`, tpe = (e) => GN(e) ? {
- src: `/sample-image?${KN(e)}`,
- thumb: qN(e),
+})), WN = (e) => e.sample === !0, GN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, KN = (e) => WN(e) ? `/sample-thumb?${GN(e)}` : `/photo-thumb?id=${e.id}`, npe = (e) => WN(e) ? {
+ src: `/sample-image?${GN(e)}`,
+ thumb: KN(e),
name: e.name,
asset: null,
source: e.source,
@@ -38193,18 +38193,18 @@ var epe = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: qN(e),
+ thumb: KN(e),
name: e.name || "",
asset: e
};
-function npe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(epe), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
+function rpe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(tpe), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, R.useCallback)((e) => {
- UN(e, o.map(tpe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, B.jsx)(rpe, {
+ HN(e, o.map(npe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, B.jsx)(ipe, {
item: e,
index: t,
lost: s.has(t),
@@ -38222,7 +38222,7 @@ function npe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(JN, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(qN, {
label: e.code,
title: e.name,
meta: [
@@ -38234,7 +38234,7 @@ function npe({ 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, B.jsx)(JN, {
+ m.length && e.total ? /* @__PURE__ */ (0, B.jsx)(qN, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -38250,7 +38250,7 @@ function npe({ photos: e, props: t }) {
}, e.items.length) : null
] });
}
-function JN({ label: e, title: t, meta: n }) {
+function qN({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -38267,7 +38267,7 @@ function JN({ label: e, title: t, meta: n }) {
]
});
}
-function rpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function ipe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -38276,7 +38276,7 @@ function rpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, B.jsx)("img", {
- src: qN(e),
+ src: KN(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -38285,7 +38285,7 @@ function rpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
})
});
}
-function YN(e) {
+function JN(e) {
return {
x0: 0,
y0: 0,
@@ -38293,7 +38293,7 @@ function YN(e) {
y1: e.height
};
}
-function XN(e) {
+function YN(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -38301,40 +38301,40 @@ function XN(e) {
y1: Math.round(e.y1)
};
}
-function ZN(e) {
+function XN(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function QN(e, t) {
- if (!ZN(e)) return {
+function ZN(e, t) {
+ if (!XN(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return YN(e);
+ if (t == null || !(t > 0)) return JN(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 XN({
+ return YN({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function ipe(e, t) {
- if (!ZN(e) || !(t > 0)) return YN(e);
+function ape(e, t) {
+ if (!XN(e) || !(t > 0)) return JN(e);
let n = Math.min(e.width, e.height * t);
- return XN({
+ return YN({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function ape(e, t, n) {
- if (!ZN(t) || !(n > 0)) return YN(t);
- let r = $N(e, t), i = QN({
+function ope(e, t, n) {
+ if (!XN(t) || !(n > 0)) return JN(t);
+ let r = QN(e, t), i = ZN({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -38345,8 +38345,8 @@ function ape(e, t, n) {
y1: r.y0 + i.y1
};
}
-function $N(e, t, n = null, r = "width") {
- if (!ZN(t)) return {
+function QN(e, t, n = null, r = "width") {
+ if (!XN(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -38355,43 +38355,43 @@ function $N(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 XN({
+ return YN({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function eP(e, t, n, r) {
+function $N(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 XN({
+ return YN({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function tP(e, t, n, r = null) {
- if (!ZN(n) || !(t > 0)) return e;
+function eP(e, t, n, r = null) {
+ if (!XN(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 $N({
+ return QN({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function ope(e, t, n, r, i = null) {
+function spe(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 $N(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return QN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function spe(e, t) {
- return ZN(t) ? {
+function cpe(e, t) {
+ return XN(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -38403,8 +38403,8 @@ function spe(e, t) {
height: 0
};
}
-function cpe(e, t) {
- if (!ZN(t)) return {
+function lpe(e, t) {
+ if (!XN(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -38414,7 +38414,7 @@ function cpe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function lpe(e, t) {
+function upe(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}%`,
@@ -38423,17 +38423,17 @@ function lpe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function nP(e, t, n) {
+function tP(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var upe = {
+var dpe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function rP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function nP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = nh();
return /* @__PURE__ */ (0, B.jsx)(LO, {
isOpen: e,
@@ -38444,7 +38444,7 @@ function rP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
children: /* @__PURE__ */ (0, B.jsx)(ose, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${upe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ className: `flex max-h-full w-full ${dpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
children: /* @__PURE__ */ (0, B.jsx)(NO, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
@@ -38453,7 +38453,7 @@ function rP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function iP({ children: e }) {
+function rP({ children: e }) {
return /* @__PURE__ */ (0, B.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",
@@ -38462,8 +38462,8 @@ function iP({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var dpe = .02, aP = 1.08;
-function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var fpe = .02, iP = 1.08;
+function aP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
u(!1);
@@ -38474,8 +38474,8 @@ function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: nP(e, n.clientWidth, r.width),
- dy: nP(t, n.clientHeight, r.height)
+ dx: tP(e, n.clientWidth, r.width),
+ dy: tP(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -38493,29 +38493,29 @@ function oP({ 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(eP(n.box, o.dx, o.dy, r));
+ i($N(n.box, o.dx, o.dy, r));
return;
}
- i(ope(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(spe(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) * dpe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * fpe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(eP(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i($N(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(tP(n, e.key === "-" ? 1 / aP : aP, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(eP(n, e.key === "-" ? 1 / iP : iP, r, t)));
}
- let g = n && r ? spe($N(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? cpe(QN(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -38534,7 +38534,7 @@ function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- ZN({
+ XN({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -38573,7 +38573,7 @@ function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(tP(n, e.deltaY > 0 ? aP : 1 / aP, r, t));
+ !n || !r || i(eP(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, B.jsx)("span", {
@@ -38595,61 +38595,61 @@ function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var fpe = "/api/avatar-choices", sP = "/api/avatar-pick", ppe = "/api/avatar-code-cover", mpe = "/avatar-choice", cP = (e, t) => [
+var ppe = "/api/avatar-choices", oP = "/api/avatar-pick", mpe = "/api/avatar-code-cover", hpe = "/avatar-choice", sP = (e, t) => [
"avatar-choices",
e,
t
-], lP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, uP = (e, t, n, r = "") => `${mpe}${lP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), dP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", hpe = (e, t, n) => W(fpe + lP(e, t), n), gpe = (e) => G(ppe, { code: e });
-function fP(e, t, n) {
+], cP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, lP = (e, t, n, r = "") => `${hpe}${cP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), uP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", gpe = (e, t, n) => W(ppe + cP(e, t), n), _pe = (e) => G(mpe, { code: e });
+function dP(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? ape(e.focus, t, n) : QN(t, n);
+ return e.focus && r ? ope(e.focus, t, n) : ZN(t, n);
}
-var _pe = (e) => e.crop && ZN({
+var vpe = (e) => e.crop && XN({
width: e.width,
height: e.height
});
-async function vpe(e, t, n) {
+async function ype(e, t, n) {
if (!("file" in n)) {
- await G(sP, {
+ await G(oP, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${sP}${lP(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${oP}${cP(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new RS(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new zS(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function ype(e, t) {
+function bpe(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 bpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function xpe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${bpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var xpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function Spe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${xpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var pP = (e) => e.cast > 1, Spe = (e) => pP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Cpe = {
+var fP = (e) => e.cast > 1, Cpe = (e) => fP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, wpe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function wpe(e) {
+function Tpe(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 Tpe = (e) => `${Cpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (pP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Epe = 8, Dpe = 3 / 4;
-function Ope({ kind: e, entityId: t, name: n, onPicked: r }) {
+var Epe = (e) => `${wpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (fP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Dpe = 8, Ope = 3 / 4;
+function kpe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -38664,12 +38664,12 @@ function Ope({ kind: e, entityId: t, name: n, onPicked: r }) {
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, B.jsx)(rP, {
+ }), /* @__PURE__ */ (0, B.jsx)(nP, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, B.jsx)(kpe, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ape, {
kind: e,
entityId: t,
name: n,
@@ -38678,33 +38678,33 @@ function Ope({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, R.useRef)(null), o = PM(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), g = cP(e, t), _ = (0, R.useRef)(!1), v = wS({
+function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, R.useRef)(null), o = NM(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), g = sP(e, t), _ = (0, R.useRef)(!1), v = TS({
queryKey: g,
- queryFn: ({ signal: n }) => hpe(e, t, n),
+ queryFn: ({ signal: n }) => gpe(e, t, n),
retryOnMount: !0
});
(0, R.useEffect)(() => () => {
- _.current && p.removeQueries({ queryKey: cP(e, t) });
+ _.current && p.removeQueries({ queryKey: sP(e, t) });
}, [e, t]);
- let y = DS({
- mutationFn: (n) => vpe(e, t, n),
+ let y = OS({
+ mutationFn: (n) => ype(e, t, n),
onSuccess: () => {
_.current = !0, i(), r();
}
- }), b = DS({
- mutationFn: (e) => gpe(e),
+ }), b = OS({
+ mutationFn: (e) => _pe(e),
onSuccess: (e) => h(e)
});
function x(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && y.mutate({ file: n });
}
- let S = v.data, C = S?.choices ?? [], w = d || (y.error ? U(y.error) : "") || (!m && b.error ? U(b.error) : "") || (v.error ? U(v.error) : ""), T = y.isPending || b.isPending, E = m ? "" : xpe(S);
+ let S = v.data, C = S?.choices ?? [], w = d || (y.error ? U(y.error) : "") || (!m && b.error ? U(b.error) : "") || (v.error ? U(v.error) : ""), T = y.isPending || b.isPending, E = m ? "" : Spe(S);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, B.jsx)(iP, { children: /* @__PURE__ */ (0, B.jsx)(FT, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, B.jsx)(rP, { children: /* @__PURE__ */ (0, B.jsx)(FT, { className: "size-6" }) }),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -38721,7 +38721,7 @@ function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: m ? Spe(m) : ype(n, S)
+ children: m ? Cpe(m) : bpe(n, S)
}),
E ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
@@ -38733,14 +38733,14 @@ function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(IM, {
+ /* @__PURE__ */ (0, B.jsx)(FM, {
icon: bT,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), m ? /* @__PURE__ */ (0, B.jsx)(jpe, {
+ }), m ? /* @__PURE__ */ (0, B.jsx)(Mpe, {
kind: e,
entityId: t,
choice: m,
@@ -38764,7 +38764,7 @@ function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": v.isPending || void 0,
"data-skeleton": v.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: v.isPending ? Array.from({ length: Epe }, (e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: v.isPending ? Array.from({ length: Dpe }, (e, t) => /* @__PURE__ */ (0, B.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",
@@ -38777,15 +38777,15 @@ function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Tpe(n),
+ title: Epe(n),
...X(T),
onClick: () => {
T || (n.crop ? h(n) : y.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, B.jsx)(Ape, {
- src: uP(e, t, n.ref, dP(n, n.ref)),
+ /* @__PURE__ */ (0, B.jsx)(jpe, {
+ src: lP(e, t, n.ref, uP(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, B.jsx)("span", {
@@ -38800,7 +38800,7 @@ function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- pP(n) ? /* @__PURE__ */ (0, B.jsx)("span", {
+ fP(n) ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, B.jsxs)(DE, {
variant: "caption",
@@ -38876,7 +38876,7 @@ function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Ape({ src: e, choice: t }) {
+function jpe({ src: e, choice: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -38884,7 +38884,7 @@ function Ape({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = _pe(t) ? lpe(fP(t, a, Dpe), a) : null, s = r ? !0 : void 0;
+ }, o = vpe(t) ? upe(dP(t, a, Ope), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, B.jsx)("img", {
@@ -38909,23 +38909,23 @@ function Ape({ src: e, choice: t }) {
})]
});
}
-function jpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = dP(n, s), m = uP(e, t, s, p), h = PM();
+function Mpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = uP(n, s), m = lP(e, t, s, p), h = NM();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? cpe(d, l) : null;
+ let _ = d && l ? lpe(d, l) : null;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
ref: h,
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, B.jsx)(oP, {
+ children: [/* @__PURE__ */ (0, B.jsx)(aP, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), ZN(e) && f(s === n.ref ? fP(n, e, 1) : QN(e, 1));
+ u(e), XN(e) && f(s === n.ref ? dP(n, e, 1) : ZN(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -38939,7 +38939,7 @@ function jpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => g(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: wpe(e)
+ children: Tpe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -38973,7 +38973,7 @@ function jpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function mP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+function pP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
let a = (0, R.useRef)(null), o = e?.items.length ? e.html : "";
(0, R.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);
@@ -39007,12 +39007,12 @@ function mP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var Mpe = {
+var Npe = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function hP({ name: e }) {
- let t = Mpe[e];
+function mP({ name: e }) {
+ let t = Npe[e];
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -39022,19 +39022,19 @@ function hP({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function gP(e, t) {
+function hP(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 _P = (e) => !!e?.isConnected && e.matches(":popover-open");
-function vP(e, t, n, r) {
+var gP = (e) => !!e?.isConnected && e.matches(":popover-open");
+function _P(e, t, n, r) {
let i = (0, R.useRef)(r);
i.current = r, (0, R.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && _P(n.current) ? gP(t.current, n.current) : i.current();
+ t.current && gP(n.current) ? hP(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -39048,17 +39048,17 @@ function vP(e, t, n, r) {
n
]);
}
-function yP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function vP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(!1), u = (0, R.useRef)(!1), d = (0, R.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, _P(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, gP(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || _P(s.current)) && (s.current.showPopover(), gP(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || gP(s.current)) && (s.current.showPopover(), hP(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 vP(c, o, s, f), (0, R.useEffect)(() => {
+ return _P(c, o, s, f), (0, R.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -39084,7 +39084,7 @@ function yP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && _P(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && gP(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -39102,16 +39102,16 @@ function yP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function Npe({ following: e, busy: t, onToggle: n, tip: r }) {
+function Ppe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = (0, R.useRef)(!1), u = () => {
- _P(o.current) && o.current.hidePopover(), c(!1);
+ gP(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || _P(o.current) || (o.current.showPopover(), gP(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || gP(o.current) || (o.current.showPopover(), hP(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return vP(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
- i.current && _P(o.current) && gP(i.current, o.current);
+ return _P(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
+ i.current && gP(o.current) && hP(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, B.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -39120,7 +39120,7 @@ function Npe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, B.jsx)(hP, { name: "rss" }),
+ /* @__PURE__ */ (0, B.jsx)(mP, { name: "rss" }),
/* @__PURE__ */ (0, B.jsx)("input", {
ref: a,
type: "checkbox",
@@ -39155,7 +39155,7 @@ function Npe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function Ppe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function Fpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
@@ -39166,7 +39166,7 @@ function Ppe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, B.jsx)(hP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, B.jsx)(mP, { name: "chevron-down" })
}), /* @__PURE__ */ (0, B.jsx)(SO, {
placement: "bottom start",
offset: 8,
@@ -39189,7 +39189,7 @@ function Ppe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
}, e))
}),
/* @__PURE__ */ (0, B.jsx)(Poe, { "data-namepick-rule": "" }),
@@ -39198,18 +39198,18 @@ function Ppe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "plus" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "plus" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var Fpe = (e) => e === "studio" || e === "agency", bP = (e) => e === "performer" || e === "creator", Ipe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function Lpe(e) {
+var Ipe = (e) => e === "studio" || e === "agency", yP = (e) => e === "performer" || e === "creator", Lpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function Rpe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function xP(e) {
+function bP(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -39220,13 +39220,13 @@ function xP(e) {
linked: !1
} : null;
}
-function SP(e, t) {
+function xP(e, t) {
let n = Ce(e, "performer"), r = be(t);
return r && [e.label, n].map(be).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var CP = (e) => ({ site: xe(e) });
-function Rpe(e, t) {
- let n = xP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var SP = (e) => ({ site: xe(e) });
+function zpe(e, t) {
+ let n = bP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -39236,7 +39236,7 @@ function Rpe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${SP(e, n)} · ${t}`
+ title: `${xP(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -39244,11 +39244,11 @@ function Rpe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (bP(t) && e.link_kind !== "social") return {
+ if (yP(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: SP(e, n),
- mark: CP(e)
+ title: xP(e, n),
+ mark: SP(e)
};
if (e.link_kind === "social") {
let t = me(r);
@@ -39256,7 +39256,7 @@ function Rpe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : CP(e)
+ mark: t ? { brand: t } : SP(e)
};
}
return {
@@ -39264,13 +39264,13 @@ function Rpe(e, t) {
url: r,
title: e.label || "",
text: Ce(e, t, i),
- mark: CP(e)
+ mark: SP(e)
};
});
return [...r, ...a];
}
-var wP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function zpe(e) {
+var CP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function Bpe(e) {
return [
[
"legal_name",
@@ -39326,7 +39326,7 @@ function zpe(e) {
}]
}] : []);
}
-function Bpe(e) {
+function Vpe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -39383,14 +39383,14 @@ function Bpe(e) {
tags: e.tags
}), t;
}
-function Vpe(e) {
+function Hpe(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function Hpe(e) {
+function Upe(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -39401,7 +39401,7 @@ function Hpe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function Upe(e) {
+function Wpe(e) {
return te({
id: e.id,
hasImage: e.has_image,
@@ -39411,8 +39411,8 @@ function Upe(e) {
focus: e.avatar_focus
});
}
-function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = bP(e), c = Fpe(e), l = s ? Bpe(n.profile) : c ? zpe(n.company_profile) : [], u = Rpe(n, e), d = wP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, R.useRef)(null), m = (0, R.useRef)(null);
+function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = yP(e), c = Ipe(e), l = s ? Vpe(n.profile) : c ? Bpe(n.company_profile) : [], u = zpe(n, e), d = CP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, R.useRef)(null), m = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, R.useEffect)(() => {
@@ -39425,7 +39425,7 @@ function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, B.jsx)(Gpe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Kpe, {
kind: e,
name: t,
helpers: o,
@@ -39433,7 +39433,7 @@ function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: c
}), s && n.id ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, B.jsx)(Ope, {
+ children: /* @__PURE__ */ (0, B.jsx)(kpe, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -39446,14 +39446,14 @@ function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, B.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, B.jsx)(Ppe, {
+ children: [/* @__PURE__ */ (0, B.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, B.jsx)(Fpe, {
current: n.canonical_name,
- choices: Lpe(n),
+ choices: Rpe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Kpe, {
+ /* @__PURE__ */ (0, B.jsx)(qpe, {
kind: e,
entity: n,
actions: a
@@ -39474,9 +39474,9 @@ function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
u.length ? /* @__PURE__ */ (0, B.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Xpe, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Zpe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, B.jsx)(Zpe, {
+ d.length || n.feed ? /* @__PURE__ */ (0, B.jsx)(Qpe, {
entity: n,
actions: a,
helpers: o
@@ -39485,11 +39485,11 @@ function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
l.length ? /* @__PURE__ */ (0, B.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, B.jsx)(Jpe, {
+ children: l.map((e) => /* @__PURE__ */ (0, B.jsx)(Ype, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, B.jsx)(Ype, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, B.jsx)(Xpe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -39508,7 +39508,7 @@ function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, B.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${ge(e.k.slice(0, 1))}</span>${Upe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${ge(e.k.slice(0, 1))}</span>${Wpe(e)}` }
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -39516,14 +39516,14 @@ function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(mP, {
+ }), i ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(pP, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function Gpe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function Kpe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let [a] = (0, R.useState)(() => `${n.portraitImg()}<span>${ge(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -39532,8 +39532,8 @@ function Gpe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function Kpe({ kind: e, entity: t, actions: n }) {
- let r = xP(t), i = (e, t) => (r) => {
+function qpe({ kind: e, entity: t, actions: n }) {
+ let r = bP(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, B.jsx)("a", {
href: he("agency", r.name),
@@ -39542,37 +39542,37 @@ function Kpe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = Hpe(t.name_groups);
+ let e = Upe(t.name_groups);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, B.jsx)(TP, { entity: t }),
+ /* @__PURE__ */ (0, B.jsx)(wP, { entity: t }),
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "film" }), /* @__PURE__ */ (0, B.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "film" }), /* @__PURE__ */ (0, B.jsx)("span", { children: o })]
}),
a ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, B.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, B.jsx)(hP, { name: "id-card" }),
+ /* @__PURE__ */ (0, B.jsx)(mP, { name: "id-card" }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, B.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, B.jsx)(yP, {
+ e.rest > 0 ? /* @__PURE__ */ (0, B.jsx)(vP, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, B.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, B.jsx)(qpe, {
+ children: /* @__PURE__ */ (0, B.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, B.jsx)(Jpe, {
label: e.label,
names: e.names
}, t)) })
@@ -39594,21 +39594,21 @@ function Kpe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, B.jsx)(TP, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, B.jsx)(wP, { entity: t }) : null,
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "film" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "film" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "clapperboard" }), /* @__PURE__ */ (0, B.jsx)("a", {
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "clapperboard" }), /* @__PURE__ */ (0, B.jsx)("a", {
href: he("studio", l.name),
"data-studio-link": l.name,
onClick: i("studio", l.name),
@@ -39618,7 +39618,7 @@ function Kpe({ kind: e, entity: t, actions: n }) {
s.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": e === "studio" || e === "agency" ? "" : void 0,
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "id-card" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "id-card" }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: s.map((e, t) => /* @__PURE__ */ (0, B.jsx)("span", { children: e }, t))
@@ -39627,32 +39627,32 @@ function Kpe({ kind: e, entity: t, actions: n }) {
]
});
}
-function TP({ entity: e }) {
+function wP({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "user-round" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "user-round" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function qpe({ label: e, names: t }) {
+function Jpe({ label: e, names: t }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, B.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, B.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function Jpe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("dt", { children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: e }), t] }), /* @__PURE__ */ (0, B.jsx)("dd", {
+function Ype({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("dt", { children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: e }), t] }), /* @__PURE__ */ (0, B.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function Ype({ tags: e }) {
- let { shown: t, rest: n } = Vpe(e);
+function Xpe({ tags: e }) {
+ let { shown: t, rest: n } = Hpe(e);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, B.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, B.jsx)(yP, {
+ }, e)), n ? /* @__PURE__ */ (0, B.jsx)(vP, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -39667,10 +39667,10 @@ function Ype({ tags: e }) {
})
}) : null] });
}
-function EP({ mark: e }) {
+function TP({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, B.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, B.jsx)(hP, { name: e.brand })
+ children: /* @__PURE__ */ (0, B.jsx)(mP, { name: e.brand })
});
let t = L("globe") + ("site" in e ? `<img src="${ge(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, B.jsx)("span", {
@@ -39678,7 +39678,7 @@ function EP({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function Xpe({ link: e }) {
+function Zpe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, B.jsx)("a", {
"data-link": "icon",
@@ -39687,19 +39687,19 @@ function Xpe({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, B.jsx)(EP, { mark: e.mark })
+ children: /* @__PURE__ */ (0, B.jsx)(TP, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, B.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, B.jsx)(EP, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, B.jsx)(TP, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, B.jsxs)("span", {
"data-link": "private",
title: e.label,
- children: [/* @__PURE__ */ (0, B.jsx)(EP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(TP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -39710,14 +39710,14 @@ function Xpe({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, B.jsx)(EP, { mark: e.mark }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(TP, { mark: e.mark }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function Zpe({ entity: e, actions: t, helpers: n }) {
+function Qpe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, R.useState)(!!e.feed?.following), [a, o] = (0, R.useState)(!1), s = (0, R.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -39735,34 +39735,34 @@ function Zpe({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entry-marks": "",
- children: [wP(e).map((e, t) => /* @__PURE__ */ (0, B.jsxs)("a", {
+ children: [CP(e).map((e, t) => /* @__PURE__ */ (0, B.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, B.jsx)(hP, { name: e.mark }) : /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, B.jsx)(mP, { name: e.mark }) : /* @__PURE__ */ (0, B.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, B.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, B.jsx)(Npe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, B.jsx)(Ppe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: Ipe(r)
+ tip: Lpe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function Qpe(e) {
- let { kind: t, name: n } = e, r = wS(yN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
+function $pe(e) {
+ let { kind: t, name: n } = e, r = TS(vN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
return (0, R.useLayoutEffect)(() => {
i && o.missing();
}, [o, i]), (0, R.useLayoutEffect)(() => {
@@ -39776,12 +39776,12 @@ function Qpe(e) {
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || a ? null : /* @__PURE__ */ (0, B.jsx)(tme, {
+ }) : !r.data || i || a ? null : /* @__PURE__ */ (0, B.jsx)(nme, {
...e,
entity: r.data
});
}
-function DP(e) {
+function EP(e) {
let [t, n] = (0, R.useState)({
key: e,
n: 1
@@ -39793,14 +39793,14 @@ function DP(e) {
};
return n(r), r.n;
}
-var $pe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function eme(e, t) {
+var eme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function tme(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function tme(e) {
- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = OS(bN(t, n, 0, "")).data?.pages[0], m = f && !f.error ? f : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || xN(m).length > 0, _ = a.media === "photos" && g ? a : fN, [v, y] = (0, R.useState)("people"), b = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [x, S] = (0, R.useState)(b);
+function nme(e) {
+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = kS(yN(t, n, 0, "")).data?.pages[0], m = f && !f.error ? f : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || bN(m).length > 0, _ = a.media === "photos" && g ? a : dN, [v, y] = (0, R.useState)("people"), b = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [x, S] = (0, R.useState)(b);
x !== b && (S(b), y("videos"));
- let C = l && v === "people" && u.length ? "people" : _.media, [w, T] = (0, R.useState)(0), E = vN(e), D = wS(E), O = DP(JSON.stringify([E.queryKey, w])), [k] = (0, R.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));
+ let C = l && v === "people" && u.length ? "people" : _.media, [w, T] = (0, R.useState)(0), E = _N(e), D = TS(E), O = EP(JSON.stringify([E.queryKey, w])), [k] = (0, R.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));
(0, R.useLayoutEffect)(() => {
s.javContext(k);
}, [s, k]);
@@ -39810,26 +39810,26 @@ function tme(e) {
}, [e.layout, k]), j = {
jav: e.jav,
seed: e.seed
- }, M = (0, R.useCallback)((e, r) => _N(t, n, i, j, e, r), [O]), [N, ee] = (0, R.useState)({}), te = _.set, P = N[te] || "", F = OS({
- ...bN(t, n, te, P),
+ }, M = (0, R.useCallback)((e, r) => gN(t, n, i, j, e, r), [O]), [N, ee] = (0, R.useState)({}), te = _.set, P = N[te] || "", F = kS({
+ ...yN(t, n, te, P),
enabled: C === "photos"
- }), ne = F.data?.pages[0], re = DP(JSON.stringify(mN(t, n, te, P))), ie = (0, R.useMemo)(() => {
+ }), ne = F.data?.pages[0], re = EP(JSON.stringify(pN(t, n, te, P))), ie = (0, R.useMemo)(() => {
let e = F.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: re,
- codeSets: t.id ? [] : xN(t),
+ codeSets: t.id ? [] : bN(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [F.data, re]), ae = F.refetch, oe = F.fetchNextPage, se = wS({
- ...uN(d, o.feedRowHtml),
+ }, [F.data, re]), ae = F.refetch, oe = F.fetchNextPage, se = TS({
+ ...lN(d, o.feedRowHtml),
enabled: !!d
}), ce = (0, R.useRef)(e.feedRevision);
(0, R.useEffect)(() => {
- ce.current !== e.feedRevision && (ce.current = e.feedRevision, p.invalidateQueries({ queryKey: lN(d) }));
+ ce.current !== e.feedRevision && (ce.current = e.feedRevision, p.invalidateQueries({ queryKey: cN(d) }));
}, [d, e.feedRevision]);
let le = !!D.data;
(0, R.useEffect)(() => {
@@ -39846,12 +39846,12 @@ function tme(e) {
ue.current = !1;
}, []);
let de = (0, R.useCallback)(async () => {
- await p.invalidateQueries({ queryKey: pN(t, n) }), await p.invalidateQueries({ queryKey: [
+ await p.invalidateQueries({ queryKey: fN(t, n) }), await p.invalidateQueries({ queryKey: [
"entity-items",
t,
n
] });
- }, [t, n]), fe = DS({
+ }, [t, n]), fe = OS({
mutationFn: (e) => pe("/api/entity-alias", {
method: "POST",
body: JSON.stringify({
@@ -39861,14 +39861,14 @@ function tme(e) {
})
}),
onSuccess: () => de()
- }), I = DS({ mutationFn: ({ from: e, to: n }) => pe("/api/entity-name", {
+ }), I = OS({ mutationFn: ({ from: e, to: n }) => pe("/api/entity-name", {
method: "POST",
body: JSON.stringify({
kind: t,
name: e,
canonical: n
})
- }) }), me = DS({
+ }) }), me = OS({
mutationFn: (e) => pe("/api/feeds/source", {
method: "POST",
body: JSON.stringify({
@@ -39877,7 +39877,7 @@ function tme(e) {
enabled: e
})
}),
- onSuccess: (e, r) => p.setQueryData(pN(t, n), (e) => e && {
+ onSuccess: (e, r) => p.setQueryData(fN(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -39925,10 +39925,10 @@ function tme(e) {
let e = await pe("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- ue.current && await p.invalidateQueries({ queryKey: lN(d) });
+ ue.current && await p.invalidateQueries({ queryKey: cN(d) });
})();
},
- feedAction: dN,
+ feedAction: uN,
avatarPicked: () => {
s.avatarChanged(), de().then(() => {
ue.current && T((e) => e + 1);
@@ -39959,19 +39959,19 @@ function tme(e) {
e === C && !_.set || (y(e === "people" ? "people" : "videos"), s.route(i, e === "photos" ? {
media: "photos",
set: 0
- } : fN));
+ } : dN));
},
setState: (e) => s.route({
...i,
state: e
- }, fN),
+ }, dN),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (C !== "photos") {
- let r = s.reshuffleVideos(), a = vN({
+ let r = s.reshuffleVideos(), a = _N({
kind: t,
name: n,
filters: {
@@ -39985,7 +39985,7 @@ function tme(e) {
await p.fetchQuery(a).catch(() => null);
return;
}
- let r = $pe(), a = await p.fetchInfiniteQuery(bN(t, n, te, r)).catch(() => null);
+ let r = eme(), a = await p.fetchInfiniteQuery(yN(t, n, te, r)).catch(() => null);
!ue.current || !a?.pages[0] || a.pages[0].error || ee((e) => ({
...e,
[te]: r
@@ -40018,7 +40018,7 @@ function tme(e) {
k: e.k,
label: ct(e.k),
n: e.n,
- selected: Sfe(i.tag, e.k)
+ selected: Cfe(i.tag, e.k)
})), be = h || u.length ? {
label: u.length ? "页面视图" : "媒体类型",
people: u.length ? {
@@ -40044,9 +40044,9 @@ function tme(e) {
if (C === "people") Ce = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (C === "videos") {
we = !D.data;
- let e = hN(i.tag).map((e) => ct(e));
+ let e = mN(i.tag).map((e) => ct(e));
Ce = `视频 · ${(D.data?.work_total ?? D.data?.total ?? 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else ne && !ne.error ? Ce = xe ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : eme(ne, xN(ne).length) : we = F.isPending;
+ } else ne && !ne.error ? Ce = xe ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : tme(ne, bN(ne).length) : we = F.isPending;
let Te = (0, R.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -40063,7 +40063,7 @@ function tme(e) {
u
]);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(Wpe, {
+ /* @__PURE__ */ (0, B.jsx)(Gpe, {
kind: t,
name: n,
entity: r,
@@ -40094,7 +40094,7 @@ function tme(e) {
onRetry: () => {
D.refetch();
}
- }) : /* @__PURE__ */ (0, B.jsx)(Zfe, {
+ }) : /* @__PURE__ */ (0, B.jsx)(Qfe, {
kind: t,
name: n,
view: C,
@@ -40120,7 +40120,7 @@ function tme(e) {
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function OP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function DP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, B.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
@@ -40147,29 +40147,29 @@ function OP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var nme = CA("play"), rme = CA("file-stack"), ime = AE({
+var rme = CA("play"), ime = CA("file-stack"), ame = AE({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), kP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", AP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", jP = "font-mono text-caption-1-regular leading-5 text-text-secondary", MP = () => {
+}), OP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", kP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", AP = "font-mono text-caption-1-regular leading-5 text-text-secondary", jP = () => {
p.invalidateQueries({
queryKey: qA,
exact: !0
}), p.invalidateQueries({
- queryKey: vM,
+ queryKey: _M,
exact: !0
});
};
-function ame(e) {
+function ome(e) {
return e.identical ? /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${AP} text-(--keep)`,
+ className: `${kP} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${AP} text-text-secondary`,
+ className: `${kP} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function ome({ file: e, openItem: t }) {
+function sme({ file: e, openItem: t }) {
let n = () => t(e.id);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -40179,7 +40179,7 @@ function ome({ file: e, openItem: t }) {
onClick: n,
"aria-label": `预览 ${e.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, B.jsx)(nme, {
+ children: [/* @__PURE__ */ (0, B.jsx)(rme, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, B.jsx)("img", {
@@ -40203,55 +40203,55 @@ function ome({ file: e, openItem: t }) {
}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex flex-none gap-1",
children: [e.is_largest ? /* @__PURE__ */ (0, B.jsx)("i", {
- className: `${kP} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${OP} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, e.is_longest ? /* @__PURE__ */ (0, B.jsx)("i", {
- className: `${kP} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${OP} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
- className: `${jP} flex min-w-0 items-center gap-1.5`,
+ className: `${AP} flex min-w-0 items-center gap-1.5`,
children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] || "database" }), /* @__PURE__ */ (0, B.jsx)("span", {
className: "whitespace-nowrap",
children: I[e.location] || e.location || e.drive
})]
}),
/* @__PURE__ */ (0, B.jsx)("span", {
- className: jP,
+ className: AP,
children: ye(e.size || 0)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
- className: jP,
+ className: AP,
children: ve(e.duration)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-middle-truncate": !0,
title: e.path ?? "",
- className: `${jP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${AP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: e.path ?? ""
})
]
});
}
-function sme({ openItem: e, toast: t, failure: n }) {
- let r = wS({
+function cme({ openItem: e, toast: t, failure: n }) {
+ let r = TS({
queryKey: qA,
queryFn: ({ signal: e }) => YA(e)
- }), i = wS({
+ }), i = TS({
queryKey: u,
queryFn: ({ signal: e }) => f(e)
- }), [a, o] = (0, R.useState)(""), s = DS({
+ }), [a, o] = (0, R.useState)(""), s = OS({
mutationFn: (e) => QA(e, "dispose"),
onSuccess: (e, r) => {
- MP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
+ jP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
await QA(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
- MP();
+ jP();
}
} });
},
@@ -40278,7 +40278,7 @@ function sme({ openItem: e, toast: t, failure: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(OP, {
+ /* @__PURE__ */ (0, B.jsx)(DP, {
label: "重复内容",
figure: `${Number(c.total || 0).toLocaleString()} 组`,
detail: `${c.files} 个文件 · 可回收 ${ye(c.reclaimable)}`
@@ -40327,7 +40327,7 @@ function sme({ openItem: e, toast: t, failure: n }) {
let r = [t], i = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": t.code,
- className: ime,
+ className: ame,
children: [/* @__PURE__ */ (0, B.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: [
@@ -40339,9 +40339,9 @@ function sme({ openItem: e, toast: t, failure: n }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${t.count} 个 · 可回收 ${ye(t.reclaimable)}`
}),
- ame(t),
+ ome(t),
t.cross_drive ? /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${AP} text-text-secondary`,
+ className: `${kP} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, B.jsxs)("span", {
@@ -40394,13 +40394,13 @@ function sme({ openItem: e, toast: t, failure: n }) {
]
})
]
- }), /* @__PURE__ */ (0, B.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, B.jsx)(ome, {
+ }), /* @__PURE__ */ (0, B.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, B.jsx)(sme, {
file: t,
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
}) : /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: rme,
+ icon: ime,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -40409,23 +40409,23 @@ function sme({ openItem: e, toast: t, failure: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var NP = ["diagnostics"], PP = (e) => W("/api/diagnostics", e);
-async function cme(e) {
+var MP = ["diagnostics"], NP = (e) => W("/api/diagnostics", e);
+async function lme(e) {
await p.fetchQuery({
- queryKey: NP,
- queryFn: () => PP(e),
+ queryKey: MP,
+ queryFn: () => NP(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/diagnostics/diagnostics-page.tsx
-var FP = {
+var PP = {
ok: "正常",
warning: "需检查",
failed: "需处理",
unknown: "未取得",
disabled: "未配置"
-}, lme = [
+}, ume = [
["媒体库与挂载", ["media_mounts", "data_root"]],
["数据库与迁移", ["database", "schema"]],
["工具", ["ffmpeg"]],
@@ -40436,8 +40436,8 @@ var FP = {
"version"
]],
["后台任务", ["tasks"]]
-], IP = (e) => new Date(e).toLocaleString();
-function ume({ name: e, check: t, navigate: n, configure: r }) {
+], FP = (e) => new Date(e).toLocaleString();
+function dme({ name: e, check: t, navigate: n, configure: r }) {
let i = e === "security" ? "网络与访问" : e === "configured" ? "通用" : "媒体";
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",
@@ -40449,7 +40449,7 @@ function ume({ name: e, check: t, navigate: n, configure: r }) {
children: t.label
}), /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: FP[t.status] ?? "未取得"
+ children: PP[t.status] ?? "未取得"
})]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
@@ -40469,8 +40469,8 @@ function ume({ name: e, check: t, navigate: n, configure: r }) {
]
});
}
-function dme({ group: e, openItem: t, receipt: n }) {
- let r = IE(), i = PM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
+function fme({ group: e, openItem: t, receipt: n }) {
+ let r = IE(), i = NM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
return /* @__PURE__ */ (0, B.jsx)(Gk, {
summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count} 项`}`,
children: e.count === null ? /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -40519,10 +40519,10 @@ function dme({ group: e, openItem: t, receipt: n }) {
})
});
}
-function fme(e) {
- let t = wS({
- queryKey: NP,
- queryFn: ({ signal: e }) => PP(e),
+function pme(e) {
+ let t = TS({
+ queryKey: MP,
+ queryFn: ({ signal: e }) => NP(e),
staleTime: 1e4
}), n = IE(), [r, i] = (0, R.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
@@ -40549,15 +40549,15 @@ function fme(e) {
title: "库健康",
children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, B.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ["处理记录 · ", IP(o.library.issue_at)]
- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(dme, {
+ children: ["处理记录 · ", FP(o.library.issue_at)]
+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(fme, {
group: n,
...e
}, t))] })
}),
- lme.map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(Fk, {
+ ume.map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(Fk, {
title: t,
- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, B.jsx)(ume, {
+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, B.jsx)(dme, {
name: t,
check: o.checks[t],
...e
@@ -40573,7 +40573,7 @@ function fme(e) {
children: [
e.label,
" · ",
- FP[e.status]
+ PP[e.status]
]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
@@ -40582,10 +40582,10 @@ function fme(e) {
}),
/* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {
term: "上次解析成功",
- children: e.last_success_at ? IP(e.last_success_at) : "未取得"
+ children: e.last_success_at ? FP(e.last_success_at) : "未取得"
}), /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "冷却截止",
- children: e.cooldown_until ? IP(e.cooldown_until) : "未在冷却"
+ children: e.cooldown_until ? FP(e.cooldown_until) : "未在冷却"
})] })
]
}, e.source)), /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(J, {
@@ -40613,21 +40613,21 @@ function fme(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function pme({ host: e, revision: t, helpers: n, actions: r }) {
- let i = wS(uN(null, n.feedRowHtml)), a = (0, R.useRef)(t);
+function mme({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = TS(lN(null, n.feedRowHtml)), a = (0, R.useRef)(t);
return (0, R.useEffect)(() => {
- a.current !== t && (a.current = t, p.invalidateQueries({ queryKey: lN(null) }));
- }, [t]), (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(mP, {
+ a.current !== t && (a.current = t, p.invalidateQueries({ queryKey: cN(null) }));
+ }, [t]), (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(pP, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: dN,
+ act: uN,
settled: r.settled
}), e);
}
//#endregion
//#region src/follow-sort.ts
-var LP = [
+var IP = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -40635,7 +40635,7 @@ var LP = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], mme = "checked", RP = {
+], hme = "checked", LP = {
checked: "desc",
added: "desc",
name: "asc",
@@ -40643,32 +40643,32 @@ var LP = [
source: "asc",
provider: "asc",
status: "asc"
-}, hme = (e) => LP.some(([t]) => t === e);
-function zP(e, t) {
- let n = hme(e) ? e : mme;
+}, gme = (e) => IP.some(([t]) => t === e);
+function RP(e, t) {
+ let n = gme(e) ? e : hme;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : RP[n]
+ dir: t === "asc" || t === "desc" ? t : LP[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var BP = "/api/follow", VP = "/api/follow/credentials", HP = "/api/follow/check", UP = "/api/follow/source", WP = "/api/follow/resolve", gme = "/api/follow/suggest", GP = "/api/follow/author-alias", _me = "/api/follow/credential", KP = "/api/follow/status", vme = "/api/feeds", qP = "/api/feeds/source", yme = "/api/feeds/check", bme = "/api/feeds/lookup", JP = ["follow-manage"], YP = ["follow-manage", "credentials"], xme = ["follow-manage", "check"], Sme = ["follow-manage", "resolve"], XP = ["follow-manage", "feeds"], Cme = (e) => [
+var zP = "/api/follow", BP = "/api/follow/credentials", VP = "/api/follow/check", HP = "/api/follow/source", UP = "/api/follow/resolve", _me = "/api/follow/suggest", WP = "/api/follow/author-alias", vme = "/api/follow/credential", GP = "/api/follow/status", yme = "/api/feeds", KP = "/api/feeds/source", bme = "/api/feeds/check", xme = "/api/feeds/lookup", qP = ["follow-manage"], JP = ["follow-manage", "credentials"], Sme = ["follow-manage", "check"], Cme = ["follow-manage", "resolve"], YP = ["follow-manage", "feeds"], wme = (e) => [
"follow-manage",
"suggest",
e
-], ZP = [["default", "默认视图"], ["table", "表格视图"]], QP = [
+], XP = [["default", "默认视图"], ["table", "表格视图"]], ZP = [
10,
20,
50,
100
-], wme = Object.fromEntries(LP), $P = {
+], Tme = Object.fromEntries(IP), QP = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Tme = (e) => ZP.some(([t]) => t === e), Eme = (e) => QP.includes(Number(e)) ? Number(e) : 20, Dme = {
+}, Eme = (e) => XP.some(([t]) => t === e), Dme = (e) => ZP.includes(Number(e)) ? Number(e) : 20, Ome = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -40676,25 +40676,25 @@ var BP = "/api/follow", VP = "/api/follow/credentials", HP = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Ome = (e, t) => `按${wme[e]}${Dme[e][t === "asc" ? 0 : 1]}排序`;
-function eF(e) {
+}, kme = (e, t) => `按${Tme[e]}${Ome[e][t === "asc" ? 0 : 1]}排序`;
+function $P(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function kme(e) {
+function Ame(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var tF = (e) => e.last_status === "error" || e.last_status === "unauthorized", nF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), rF = {
- source: nF,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || nF(e, t),
- status: (e, t) => eF(e) - eF(t) || nF(e, t)
-}, iF = (e) => Date.parse(e || "") || 0, aF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function oF(e, t = []) {
+var eF = (e) => e.last_status === "error" || e.last_status === "unauthorized", tF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), nF = {
+ source: tF,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || tF(e, t),
+ status: (e, t) => $P(e) - $P(t) || tF(e, t)
+}, rF = (e) => Date.parse(e || "") || 0, iF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function aF(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || aF(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || iF(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return aF(i.canonical_name);
+ if (i) return iF(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -40702,18 +40702,18 @@ function oF(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function sF(e) {
+function oF(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function cF(e) {
+function sF(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function lF(e) {
+function cF(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -40721,31 +40721,31 @@ function lF(e) {
}
return t.map((e) => n.get(e));
}
-function Ame(e, t, n, r = []) {
- let i = lF(e), a = n === RP[t] ? 1 : -1, o = (e) => oF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = rF[t];
+function jme(e, t, n, r = []) {
+ let i = cF(e), a = n === LP[t] ? 1 : -1, o = (e) => aF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = nF[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => iF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => iF(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => rF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => rF(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function jme(e, t, n, r = []) {
+function Mme(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = oF(e, r);
+ let t = aF(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = rF[t];
+ }), a = nF[t];
if (a) {
- let e = n === RP[t] ? 1 : -1;
+ let e = n === LP[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function uF(e, t, n) {
+function lF(e, t, n) {
let r = gj(e, t), i = _j(n, r), a = (i - 1) * t;
return {
page: i,
@@ -40755,91 +40755,91 @@ function uF(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Mme(e, t) {
+function Nme(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function dF(e, t) {
+function uF(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function fF(e, t, n) {
+function dF(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var pF = (e) => W(`${BP}?summary=1`, e), mF = (e) => W(VP, e), Nme = (e) => W(HP, e), Pme = (e) => W(WP, e), Fme = (e, t) => W(`${gme}?q=${encodeURIComponent(e)}`, t), hF = (e) => G(HP, {
+var fF = (e) => W(`${zP}?summary=1`, e), pF = (e) => W(BP, e), Pme = (e) => W(VP, e), Fme = (e) => W(UP, e), Ime = (e, t) => W(`${_me}?q=${encodeURIComponent(e)}`, t), mF = (e) => G(VP, {
...e?.length ? { sources: e } : {},
background: !0
-}), Ime = (e) => G(WP, {
+}), Lme = (e) => G(UP, {
lines: e,
background: !0
-}), gF = (e, t) => G(UP, {
+}), hF = (e, t) => G(HP, {
action: "enabled",
id: e,
enabled: t
-}), _F = (e) => G(UP, {
+}), gF = (e) => G(HP, {
action: "remove",
id: e
-}), Lme = (e) => G(UP, {
+}), Rme = (e) => G(HP, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), vF = (e, t) => G(GP, {
+}), _F = (e, t) => G(WP, {
action: "add",
canonical: e,
alias: t
-}), Rme = (e) => G(GP, {
+}), zme = (e) => G(WP, {
action: "remove",
alias: e
-}), zme = (e, t) => G(_me, {
+}), Bme = (e, t) => G(vme, {
provider: e,
values: t
-}), Bme = (e, t) => G(KP, {
+}), Vme = (e, t) => G(GP, {
item: e,
to: t
-}), Vme = () => W(`${BP}?status=new&limit=1000`);
-async function yF(e) {
- let t = await W(vme, e);
+}), Hme = () => W(`${zP}?status=new&limit=1000`);
+async function vF(e) {
+ let t = await W(yme, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var bF = (e, t, n) => G(qP, {
+var yF = (e, t, n) => G(KP, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), xF = (e, t) => G(qP, {
+}, "POST", n), bF = (e, t) => G(KP, {
action: "remove",
id: e
-}, "POST", t), SF = (e, t) => G(yme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Hme = (e, t) => W(`${bme}?q=${encodeURIComponent(e)}`, t), Ume = (e, t, n) => G(qP, {
+}, "POST", t), xF = (e, t) => G(bme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Ume = (e, t) => W(`${xme}?q=${encodeURIComponent(e)}`, t), Wme = (e, t, n) => G(KP, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Wme(e, t = "") {
+async function Gme(e, t = "") {
await Promise.all([
p.fetchQuery({
- queryKey: JP,
- queryFn: () => pF(e)
+ queryKey: qP,
+ queryFn: () => fF(e)
}),
p.fetchQuery({
- queryKey: YP,
- queryFn: () => mF(e)
+ queryKey: JP,
+ queryFn: () => pF(e)
}),
t === "feeds" ? p.fetchQuery({
- queryKey: XP,
- queryFn: () => yF(e)
+ queryKey: YP,
+ queryFn: () => vF(e)
}) : null
]);
}
-function CF(e, t) {
- p.setQueryData(JP, (n) => n && {
+function SF(e, t) {
+ p.setQueryData(qP, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -40847,24 +40847,24 @@ function CF(e, t) {
} : n)
});
}
-function wF(e) {
+function CF(e) {
let t = new Set(e);
- p.setQueryData(JP, (e) => e && {
+ p.setQueryData(qP, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var TF = () => p.invalidateQueries({
- queryKey: JP,
+var wF = () => p.invalidateQueries({
+ queryKey: qP,
exact: !0
});
-function Gme(e) {
+function Kme(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Kme = (e) => (e?.results || []).filter((e) => !e.ok), qme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", EF = (e) => e.last_checked_at ? vj(e.last_checked_at) : "未检查", Jme = /* @__PURE__ */ new Set([
+var qme = (e) => (e?.results || []).filter((e) => !e.ok), Jme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", TF = (e) => e.last_checked_at ? vj(e.last_checked_at) : "未检查", Yme = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -40877,50 +40877,50 @@ var Kme = (e) => (e?.results || []).filter((e) => !e.ok), qme = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), DF = (e) => Jme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Yme = {
+]), EF = (e) => Yme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Xme = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, OF = (e) => !!e.present && !e.missing.length, Xme = [
+}, DF = (e) => !!e.present && !e.missing.length, Zme = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], Zme = [
+], Qme = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], kF = {
+], OF = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function AF(e, t) {
+function kF(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-function jF(e, t) {
+function AF(e, t) {
return {
queryKey: [
"follow-feed",
- AF(e, 0),
+ kF(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => W(AF(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => W(kF(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
- placeholderData: kS.keepPreviousData
+ placeholderData: AS.keepPreviousData
};
}
-var MF = ["follow-feed", "credentials"], NF = (e) => W(VP, e).catch(() => ({ providers: [] }));
-async function Qme(e, t) {
- let n = jF(e.view, e.revision);
+var jF = ["follow-feed", "credentials"], MF = (e) => W(BP, e).catch(() => ({ providers: [] }));
+async function $me(e, t) {
+ let n = AF(e.view, e.revision);
p.removeQueries({
queryKey: n.queryKey,
exact: !0
}), p.removeQueries({
- queryKey: MF,
+ queryKey: jF,
exact: !0
}), await Promise.all([p.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -40931,11 +40931,11 @@ async function Qme(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), p.fetchQuery({
- queryKey: MF,
- queryFn: () => NF(t)
+ queryKey: jF,
+ queryFn: () => MF(t)
})]);
}
-function PF(e) {
+function NF(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -40944,10 +40944,10 @@ function PF(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function FF(e, t, n) {
+function PF(e, t, n) {
return [...e].sort((e, r) => Ee(n, t(e)) - Ee(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function IF(e) {
+function FF(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -40955,14 +40955,14 @@ function IF(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function $me(e) {
+function ehe(e) {
let t = p.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);
for (let n of t) {
let t = n.state.data;
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let r = t.pages[t.pages.length - 1];
for (let n of t.pages) for (let t of n.groups || []) {
- let n = IF(t).find((t) => t.id === e);
+ let n = FF(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -40973,7 +40973,7 @@ function $me(e) {
}
return null;
}
-function ehe(e) {
+function the(e) {
p.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -40983,7 +40983,7 @@ function ehe(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return IF(t).some((t) => t.id === e.id) ? {
+ return FF(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -40993,39 +40993,39 @@ function ehe(e) {
}))
});
}
-function the(e, t) {
+function nhe(e, t) {
p.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && WF(n, null, e, t));
+ }, (n) => n && UF(n, null, e, t));
}
-function LF(e) {
- return IF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function IF(e) {
+ return FF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function RF(e) {
+function LF(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function zF(e) {
+function RF(e) {
let t = /* @__PURE__ */ new Set();
- return IF(e).forEach((e) => RF(e).forEach((e) => t.add(e))), t;
+ return FF(e).forEach((e) => LF(e).forEach((e) => t.add(e))), t;
}
-function BF(e, t) {
+function zF(e, t) {
let n = t === "images" ? "image" : "video";
- return LF(e).find((e) => RF(e).has(n)) || e.primary;
+ return IF(e).find((e) => LF(e).has(n)) || e.primary;
}
-function VF(e) {
- return LF(e).filter((e) => e.playable && e.media_kind === "video");
+function BF(e) {
+ return IF(e).filter((e) => e.playable && e.media_kind === "video");
}
-var HF = {
+var VF = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function nhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${HF[s] || HF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function rhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${VF[s] || VF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));
return {
isMix: !!c,
@@ -41034,14 +41034,14 @@ function nhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function rhe(e) {
+function ihe(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function UF(e, t, n) {
- return e === t ? kF[e] ? {
+function HF(e, t, n) {
+ return e === t ? OF[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -41049,13 +41049,13 @@ function UF(e, t, n) {
dir: "desc"
};
}
-function ihe(e, t, n, r) {
- let i = UF(e, n, r);
+function ahe(e, t, n, r) {
+ let i = HF(e, n, r);
if (!i) return "";
- let a = kF[i.sort];
+ let a = OF[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function WF(e, t, n, r) {
+function UF(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -41085,7 +41085,7 @@ function WF(e, t, n, r) {
})
};
}
-function ahe(e, t) {
+function ohe(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -41105,7 +41105,7 @@ function ahe(e, t) {
label: e
})), n;
}
-function ohe(e, t) {
+function she(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -41120,7 +41120,7 @@ function ohe(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function she(e, t) {
+function che(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -41129,7 +41129,7 @@ function she(e, t) {
}
//#endregion
//#region src/sidebar.ts
-var che = [
+var lhe = [
"",
"follow",
"jav",
@@ -41138,7 +41138,7 @@ var che = [
"studios",
"flagged",
"manage"
-], lhe = [
+], uhe = [
"playlists",
"immerse",
"stats",
@@ -41148,77 +41148,77 @@ var che = [
"follow-manage",
"quality"
];
-[...che, ...lhe];
-function uhe(e) {
+[...lhe, ...uhe];
+function dhe(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/react/follow-feed/follow-marks.ts
-var GF = (e) => typeof e == "string" ? e : "", KF = (e) => e.aliases;
-function qF(e, t = "") {
- let n = DF(e);
+var WF = (e) => typeof e == "string" ? e : "", GF = (e) => e.aliases;
+function KF(e, t = "") {
+ let n = EF(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${ge(t)}"${t ? ` title="${ge(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-var JF = (e, t) => oF(e, KF(t));
-function YF(e, t) {
- let { src: n, fallback: r } = cF(e), i = sF(t);
+var qF = (e, t) => aF(e, GF(t));
+function JF(e, t) {
+ let { src: n, fallback: r } = sF(e), i = oF(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${ge(i)}</span>`;
let a = r ? ` data-fallbacks="${ge(r)}"` : "";
return `<img class="favatar" src="${ge(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${ge(i)}" data-drop-class="favatar none">`;
}
-function XF(e, t, n) {
- let r = KF(n), i = e.credit, a = i?.poster;
+function YF(e, t, n) {
+ let r = GF(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = oF(t, r);
+ let n = aF(t, r);
return {
- author: n || GF(e.author) || GF(e.source_label) || "创作者未取得",
- avatar: YF(t, n),
+ author: n || WF(e.author) || WF(e.source_label) || "创作者未取得",
+ avatar: JF(t, n),
credited: ""
};
}
- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && oF(c, r) || a;
+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && aF(c, r) || a;
return {
author: l,
- avatar: YF(c, l),
+ avatar: JF(c, l),
credited: i.credited || ""
};
}
-function ZF(e, t = e.primary) {
+function XF(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = GF(e.primary.version);
+ let i = WF(e.primary.version);
i && n.push(r("version", ge(i)));
- let a = GF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = WF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function QF(e, t = e.primary) {
+function ZF(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => qF(e, t) || `<span>${ge(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => KF(e, t) || `<span>${ge(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${ge([...n.values()].join("、"))}">另见 ${r}</span>`;
}
-function $F(e, t) {
- let n = GF(e.media_error);
+function QF(e, t) {
+ let n = WF(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var eI = (e) => e.published_at ? vj(e.published_at) : "时间未取得", tI = /* @__PURE__ */ new Set(), nI = [], rI = null;
-function iI() {
- if (rI = null, !nI.length) return;
- let e = nI.splice(0, 200);
+var $F = (e) => e.published_at ? vj(e.published_at) : "时间未取得", eI = /* @__PURE__ */ new Set(), tI = [], nI = null;
+function rI() {
+ if (nI = null, !tI.length) return;
+ let e = tI.splice(0, 200);
pe("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), nI.length && (rI = setTimeout(iI, 800));
+ }).catch(() => {}), tI.length && (nI = setTimeout(rI, 800));
}
-function dhe(e, t, n, r) {
+function fhe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- tI.has(i) || (tI.add(i), nI.push(t === null ? {
+ eI.has(i) || (eI.add(i), tI.push(t === null ? {
item: e,
width: n,
height: r
@@ -41227,15 +41227,15 @@ function dhe(e, t, n, r) {
width: n,
height: r,
media: t
- }), rI ||= setTimeout(iI, 800));
+ }), nI ||= setTimeout(rI, 800));
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var fhe = (e) => Number(e) > 0;
-function phe(e) {
+var phe = (e) => Number(e) > 0;
+function mhe(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function mhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
+function hhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
let [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(!1);
return a ? null : /* @__PURE__ */ (0, B.jsx)("img", {
src: s ? t : e,
@@ -41253,8 +41253,8 @@ function mhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
} : void 0
});
}
-function hhe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = BF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => dhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? VF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = nhe({
+function ghe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = zF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => fhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? BF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = rhe({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -41270,7 +41270,7 @@ function hhe(e) {
w.current = C.onPointerLeave;
let T = (0, R.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = XF(u, n, i), D = eI(u), O = (u.tags || []).slice(0, 3), k = $F(u, i), A = QF(t, u), j = u.status === "saved", M = (e) => {
+ }, []), E = YF(u, n, i), D = $F(u), O = (u.tags || []).slice(0, 3), k = QF(u, i), A = ZF(t, u), j = u.status === "saved", M = (e) => {
if (!e.target.closest("[data-media-tag]")) {
if (o || e.shiftKey || e.ctrlKey || e.metaKey) {
e.preventDefault(), l.toggleSelection(u.id, e.shiftKey);
@@ -41303,7 +41303,7 @@ function hhe(e) {
}), /* @__PURE__ */ (0, B.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, B.jsx)(mhe, {
+ p ? /* @__PURE__ */ (0, B.jsx)(hhe, {
src: p,
fallback: m,
width: _?.width,
@@ -41311,7 +41311,7 @@ function hhe(e) {
onLearn: v
}, p) : /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: qF(u.resource_provider || u.provider) }
+ dangerouslySetInnerHTML: { __html: KF(u.resource_provider || u.provider) }
}),
x.faces.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
"data-mix-faces": "",
@@ -41330,7 +41330,7 @@ function hhe(e) {
"data-media-badge": "",
title: u.provider_label,
"aria-label": `来源:${u.provider_label || ""}`,
- dangerouslySetInnerHTML: { __html: qF(u.provider) }
+ dangerouslySetInnerHTML: { __html: KF(u.provider) }
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
@@ -41339,7 +41339,7 @@ function hhe(e) {
},
dangerouslySetInnerHTML: { __html: L("check") }
}),
- fhe(u.duration) ? /* @__PURE__ */ (0, B.jsx)("span", {
+ phe(u.duration) ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-duration": "",
children: ve(u.duration)
}) : null,
@@ -41421,7 +41421,7 @@ function hhe(e) {
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: ZF(t, u) + ge(u.title) }
+ dangerouslySetInnerHTML: { __html: XF(t, u) + ge(u.title) }
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-follow-byline": "",
@@ -41432,7 +41432,7 @@ function hhe(e) {
}), /* @__PURE__ */ (0, B.jsx)("time", {
dateTime: u.published_at || "",
title: D,
- children: phe(D)
+ children: mhe(D)
})]
}),
E.credited ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -41468,10 +41468,10 @@ function hhe(e) {
]
});
}
-var ghe = (0, R.memo)(hhe), aI = () => /* @__PURE__ */ (0, B.jsx)("span", {
+var _he = (0, R.memo)(ghe), iI = () => /* @__PURE__ */ (0, B.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), _he = CA("settings"), vhe = CA("chevron-down"), yhe = CA("history"), bhe = [[
+}), vhe = CA("settings"), yhe = CA("chevron-down"), bhe = CA("history"), xhe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -41480,19 +41480,19 @@ var ghe = (0, R.memo)(hhe), aI = () => /* @__PURE__ */ (0, B.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function xhe(e, t, n) {
+function She(e, t, n) {
return (0, R.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = FF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = FF(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = PF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = PF(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = FF([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = PF([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -41500,7 +41500,7 @@ function xhe(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => zF(e).forEach((e) => {
+ r.forEach((e) => RF(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -41515,7 +41515,7 @@ function xhe(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => zF(e).has(_)),
+ visible: r.filter((e) => RF(e).has(_)),
author: d.has(t.author) && s.has(t.author) ? t.author : "",
provider: l.has(t.provider) ? t.provider : "",
workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),
@@ -41528,15 +41528,15 @@ function xhe(e, t, n) {
n
]);
}
-function She(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = jF(t, r), o = OS(a), s = wS({
- queryKey: MF,
- queryFn: ({ signal: e }) => NF(e)
- }), c = (0, R.useMemo)(() => PF(o.data), [o.data]), l = (0, R.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, R.useMemo)(() => ({
+function Che(e) {
+ let { view: t, seed: n, revision: r, actions: i } = e, a = AF(t, r), o = kS(a), s = TS({
+ queryKey: jF,
+ queryFn: ({ signal: e }) => MF(e)
+ }), c = (0, R.useMemo)(() => NF(o.data), [o.data]), l = (0, R.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, R.useMemo)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = xhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, R.useMemo)(() => uhe(d.visible.flatMap(IF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
+ }), [c, l]), d = She(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, R.useMemo)(() => dhe(d.visible.flatMap(FF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
(0, R.useEffect)(() => {
p && i.loaded(m);
}, [
@@ -41544,7 +41544,7 @@ function She(e) {
m,
i
]);
- let h = Che(e, !!c);
+ let h = whe(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, B.jsx)(NA, {
message: Te(o.error),
onRetry: () => void o.refetch()
@@ -41552,12 +41552,12 @@ function She(e) {
let g = (e) => i.route({
...t,
...e
- }), _ = ahe({
+ }), _ = ohe({
...t,
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, JF(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, qF(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@ -41577,7 +41577,7 @@ function She(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
- leadingIcon: _he,
+ leadingIcon: vhe,
"data-follow-manage": "",
onClick: i.openManage,
children: "管理关注"
@@ -41594,20 +41594,20 @@ function She(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, B.jsx)(whe, {
+ /* @__PURE__ */ (0, B.jsx)(The, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, B.jsx)(The, {
+ /* @__PURE__ */ (0, B.jsx)(Ehe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, B.jsx)(Ehe, {
+ /* @__PURE__ */ (0, B.jsx)(Dhe, {
facets: d,
view: t,
total: v,
@@ -41615,9 +41615,9 @@ function She(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, B.jsx)(Dhe, {
+ /* @__PURE__ */ (0, B.jsx)(Ohe, {
conditions: _,
- onDrop: (e) => i.route(ohe(t, e)),
+ onDrop: (e) => i.route(she(t, e)),
onClear: () => g({
author: "",
provider: "",
@@ -41625,11 +41625,11 @@ function She(e) {
tags: []
})
}),
- d.broken.length ? /* @__PURE__ */ (0, B.jsx)(Ohe, {
+ d.broken.length ? /* @__PURE__ */ (0, B.jsx)(khe, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, B.jsx)(khe, {
+ /* @__PURE__ */ (0, B.jsx)(Ahe, {
pending: f,
facets: d,
data: c,
@@ -41646,13 +41646,13 @@ function She(e) {
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, B.jsx)(vhe, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, B.jsx)(yhe, { className: "size-3.5" }), "加载更多"]
}, o.data?.pages.length)
}) : null, y ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : yhe,
+ leadingIcon: h.olderBusy ? void 0 : bhe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -41662,14 +41662,14 @@ function She(e) {
}), /* @__PURE__ */ (0, B.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-backfill": "",
- children: rhe(d.sources)
+ children: ihe(d.sources)
})]
}) : null]
}) : null
]
})] });
}
-function Che(e, t) {
+function whe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, R.useState)(0), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), f = (0, R.useRef)(!1), m = (0, R.useRef)(null), h = (0, R.useRef)({
helpers: n,
actions: r
@@ -41684,7 +41684,7 @@ function Che(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => W(HP, e),
+ read: (e) => W(VP, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -41709,7 +41709,7 @@ function Che(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await G(HP, e ? {
+ let n = await G(VP, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -41727,7 +41727,7 @@ function Che(e, t) {
olderBusy: c === "older" || u && o
};
}
-function whe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function The({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -41744,16 +41744,16 @@ function whe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
onClick: () => i(r),
children: [/* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: YF(a, JF(a, n)) }
+ dangerouslySetInnerHTML: { __html: JF(a, qF(a, n)) }
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-name": "",
- children: JF(a, n)
+ children: qF(a, n)
})]
}, r);
})
}) : null;
}
-function The({ rows: e, pressed: t, props: n, onPick: r }) {
+function Ehe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -41774,7 +41774,7 @@ function The({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = mA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = mA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, R.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
@@ -41832,7 +41832,7 @@ function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: L(i) }
}, e);
})
- }), /* @__PURE__ */ (0, B.jsx)(aI, {})] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
+ }), /* @__PURE__ */ (0, B.jsx)(iI, {})] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -41841,7 +41841,7 @@ function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [Xme.map(([e, n]) => /* @__PURE__ */ (0, B.jsx)("button", {
+ children: [Zme.map(([e, n]) => /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -41852,7 +41852,7 @@ function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, B.jsx)(aI, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, B.jsx)(iI, {}) : null]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -41865,13 +41865,13 @@ function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: qF(t) }
+ dangerouslySetInnerHTML: { __html: KF(t) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, B.jsx)(aI, {}) : null,
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, B.jsx)(iI, {}) : null,
e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, B.jsxs)(fA, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${she(e.groups, n)}`,
+ "data-tag-cat": `r34-${che(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
children: [ct(n), r ? /* @__PURE__ */ (0, B.jsx)("span", {
@@ -41893,7 +41893,7 @@ function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
y ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(EA, {
label: "图片布局",
value: i.photoLayout,
- options: bhe,
+ options: xhe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
@@ -41910,7 +41910,7 @@ function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: L("captions-off") }
})]
})] }) : null,
- Zme.map(([e, n]) => {
+ Qme.map(([e, n]) => {
let r = t.sort === e, i = CA(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
@@ -41918,9 +41918,9 @@ function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": ihe(e, n, t.sort, t.dir) || void 0,
+ "aria-label": ahe(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = UF(e, t.sort, t.dir);
+ let n = HF(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, B.jsx)(i, { className: "size-3.5" }) : null]
@@ -41930,7 +41930,7 @@ function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function Dhe({ conditions: e, onDrop: t, onClear: n }) {
+function Ohe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -41955,7 +41955,7 @@ function Dhe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Ohe({ count: e, onManage: t }) {
+function khe({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -41964,12 +41964,12 @@ function Ohe({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${L("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function khe({ pending: e, facets: t, data: n, context: r, props: i }) {
+function Ahe({ pending: e, facets: t, data: n, context: r, props: i }) {
let { view: a, helpers: o } = i, s = a.media === "images", c = MA(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, B.jsx)(Ahe, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, B.jsx)(jhe, {
facets: t,
data: n,
context: r,
@@ -41978,38 +41978,38 @@ function khe({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function Ahe({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, actions: o } = r, s = Nhe(r), c = i ? {
+function jhe({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, actions: o } = r, s = Phe(r), c = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, l;
return l = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), c = i?.author_key && e.authorSources.get(i.author_key) || [], l = t.primary.id;
- return /* @__PURE__ */ (0, B.jsx)(ghe, {
+ return /* @__PURE__ */ (0, B.jsx)(_he, {
group: t,
authorSources: c,
media: a.media,
context: n,
- selected: r.selected.has(oI(t, a)),
+ selected: r.selected.has(aI(t, a)),
selectMode: r.selectMode,
- busy: s.busy.get(oI(t, a)) || "",
- failure: s.failures.get(oI(t, a)) || "",
+ busy: s.busy.get(aI(t, a)) || "",
+ failure: s.failures.get(aI(t, a)) || "",
actions: o,
onStatus: s.status,
onSave: s.save
}, `${l}:${a.media}`);
- }) : /* @__PURE__ */ (0, B.jsx)(jhe, { data: t }), /* @__PURE__ */ (0, B.jsx)("div", {
+ }) : /* @__PURE__ */ (0, B.jsx)(Mhe, { data: t }), /* @__PURE__ */ (0, B.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...c,
children: l
});
}
-function oI(e, t) {
- return BF(e, t.media).id;
+function aI(e, t) {
+ return zF(e, t.media).id;
}
-function jhe({ data: e }) {
+function Mhe({ data: e }) {
let t = (e.groups || []).length ? Pe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? Pe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Pe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-follow-empty": "",
@@ -42017,36 +42017,36 @@ function jhe({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var Mhe = {
+var Nhe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function Nhe(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = jF(t, n).queryKey, l = (e, t, n) => n((n) => {
+function Phe(e) {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = AF(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- p.setQueryData(c, (r) => r && WF(r, t, e, n));
+ p.setQueryData(c, (r) => r && UF(r, t, e, n));
}, d = () => void p.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = PF(p.getQueryData(c));
+ let t = NF(p.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
...n.duplicates
]) if (t.id === e) return t.status;
return "new";
- }, m = DS({
- mutationFn: ({ id: e, to: t }) => G(KP, {
+ }, m = OS({
+ mutationFn: ({ id: e, to: t }) => G(GP, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Mhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await G(KP, {
+ u(t, n), d(), r.toast(Nhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await G(GP, {
item: t,
to: i
}), u(t, i), d();
@@ -42056,7 +42056,7 @@ function Nhe(e) {
l(t, Te(e), s), r.failure("更新关注状态", e);
},
onSettled: (e, t, { id: n }) => l(n, "", a)
- }), h = DS({
+ }), h = OS({
mutationFn: (e) => G("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到账本");
@@ -42091,8 +42091,8 @@ function Nhe(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function sI({ provider: e, label: t }) {
- let n = DF(e), [r, i] = (0, R.useState)(!1);
+function oI({ provider: e, label: t }) {
+ let n = EF(e), [r, i] = (0, R.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: t }) : null : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("img", {
src: n,
alt: "",
@@ -42103,8 +42103,8 @@ function sI({ provider: e, label: t }) {
className: "size-3.5 shrink-0 rounded-sm object-contain"
}), t ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : null] });
}
-function cI({ group: e, name: t }) {
- let { src: n, fallback: r } = cF(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
+function sI({ group: e, name: t }) {
+ let { src: n, fallback: r } = sF(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, B.jsx)("img", {
src: o,
alt: "",
@@ -42117,18 +42117,18 @@ function cI({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, B.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: sF(t)
+ children: oF(t)
});
}
-function lI({ source: e }) {
- let t = tF(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+function cI({ source: e }) {
+ let t = eF(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
return /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: t,
- children: kme(e)
+ children: Ame(e)
});
}
-function uI({ source: e }) {
+function lI({ source: e }) {
return /* @__PURE__ */ (0, B.jsxs)("a", {
href: e.url,
target: "_blank",
@@ -42143,8 +42143,8 @@ function uI({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var dI = wE(Tk, Ek, "text-body-2-medium"), Phe = "粘贴来源链接,或输入创作者名、id…", Fhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Ihe = "识别中…", Lhe = "站内没有查到来源", fI = (e, t) => `${e}:${t.url}`;
-function Rhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var uI = wE(Tk, Ek, "text-body-2-medium"), Fhe = "粘贴来源链接,或输入创作者名、id…", Ihe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Lhe = "识别中…", Rhe = "站内没有查到来源", dI = (e, t) => `${e}:${t.url}`;
+function zhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, R.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
}, [t, r]), /* @__PURE__ */ (0, B.jsxs)(SO, {
@@ -42169,7 +42169,7 @@ function Rhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? wE(dI, "bg-background-secondary-default") : dI,
+ className: t === r ? wE(uI, "bg-background-secondary-default") : uI,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -42189,7 +42189,7 @@ function Rhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function Bhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -42230,12 +42230,12 @@ function zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(KM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(sI, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "ghost",
@@ -42251,7 +42251,7 @@ function zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Bhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Vhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: e.line,
@@ -42270,15 +42270,15 @@ function Bhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = fI(t, e);
- return /* @__PURE__ */ (0, B.jsx)(KM, {
+ let n = dI(t, e);
+ return /* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(sI, { provider: e.provider }),
+ /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }),
/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -42294,7 +42294,7 @@ function Bhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: Lhe }),
+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: Rhe }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("small", {
@@ -42309,7 +42309,7 @@ function Bhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
});
}
-function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(!1), [p, m] = (0, R.useState)(null), [h, g] = (0, R.useState)(-1), _ = (0, R.useRef)(null), v = (0, R.useRef)(null), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, R.useState)(""), [T, E] = (0, R.useState)(0);
(0, R.useEffect)(() => {
let e = a.trim();
@@ -42320,19 +42320,19 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = setTimeout(() => u(e), 250);
return () => clearTimeout(t);
}, [a]);
- let D = wS({
- queryKey: Cme(l),
- queryFn: ({ signal: e }) => Fme(l, e),
+ let D = TS({
+ queryKey: wme(l),
+ queryFn: ({ signal: e }) => Ime(l, e),
enabled: l.length > 0 && d
}), O = (0, R.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = HM({
- queryKey: Sme,
- queryFn: ({ signal: e }) => Pme(e),
- start: (e) => Ime([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = VM({
+ queryKey: Cme,
+ queryFn: ({ signal: e }) => Fme(e),
+ start: (e) => Lme([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(U(e)),
onFinish: (e) => {
@@ -42366,14 +42366,14 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: fI(t, e)
- })).filter((e) => !x.has(e.key))), ae = DS({
+ key: dI(t, e)
+ })).filter((e) => !x.has(e.key))), ae = OS({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await Lme(r.candidate);
+ let e = await Rme(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${U(e)}`);
@@ -42381,7 +42381,7 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await hF(n);
+ await mF(n);
} catch (e) {
t.push(U(e));
}
@@ -42391,7 +42391,7 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (TF(), e.failures.length) {
+ if (wF(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -42422,13 +42422,13 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
},
children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "来源链接、名字或 id",
- placeholder: Phe,
+ placeholder: Fhe,
value: a,
leadingIcon: NT,
isDisabled: n,
onChange: o,
onKeyDown: ne
- }), P ? /* @__PURE__ */ (0, B.jsx)(Rhe, {
+ }), P ? /* @__PURE__ */ (0, B.jsx)(zhe, {
field: _,
menu: v,
options: O,
@@ -42438,7 +42438,7 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: F
}) : null]
}),
- /* @__PURE__ */ (0, B.jsx)(zhe, {
+ /* @__PURE__ */ (0, B.jsx)(Bhe, {
credentials: t,
hidden: y,
onHidden: b,
@@ -42456,9 +42456,9 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, B.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, B.jsx)(RM, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Fhe : Ihe),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Ihe : Lhe),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -42471,7 +42471,7 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
className: "flex flex-col gap-3",
children: [
/* @__PURE__ */ (0, B.jsx)(Vk, { children: "查找结果" }),
- re.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Bhe, {
+ re.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Vhe, {
row: e,
at: t,
hidden: y,
@@ -42526,16 +42526,16 @@ function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Hhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, pI = (e) => e.alias;
-function Uhe(e, t, n) {
+var Uhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, fI = (e) => e.alias;
+function Whe(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function mI({ sources: e, name: t, canonicalKey: n }) {
+function pI({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(cI, {
- group: Uhe(e, t, n),
+ children: [/* @__PURE__ */ (0, B.jsx)(sI, {
+ group: Whe(e, t, n),
name: t
}), /* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium",
@@ -42543,15 +42543,15 @@ function mI({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = DS({
+function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+ let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = OS({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await vF(n.canonical, n.alias);
+ await _F(n.canonical, n.alias);
} catch (n) {
- throw t && TF(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && wF(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -42561,19 +42561,19 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), TF(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), wF(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(U(e))
- }), m = DS({
- mutationFn: (e) => vF(e.canonical, e.alias),
+ }), m = OS({
+ mutationFn: (e) => _F(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), TF(), i("已保存创作者别名");
+ c(""), u(""), f(""), wF(), i("已保存创作者别名");
},
onError: (e) => c(U(e))
- }), h = DS({
- mutationFn: (e) => Rme(e),
+ }), h = OS({
+ mutationFn: (e) => zme(e),
onSuccess: () => {
- c(""), TF(), i("已移除创作者别名");
+ c(""), wF(), i("已移除创作者别名");
},
onError: (e) => c(U(e))
}), g = (e, t) => {
@@ -42583,7 +42583,7 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(pI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
+ }, _ = t.filter((e) => a.has(fI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: AE({
padding: "none",
@@ -42656,18 +42656,18 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {
+ }), /* @__PURE__ */ (0, B.jsx)(JM, { children: /* @__PURE__ */ (0, B.jsxs)(KM, {
"aria-label": "待合并创作者别名",
size: "sm",
children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
/* @__PURE__ */ (0, B.jsx)(ik, {
id: "select",
- children: /* @__PURE__ */ (0, B.jsx)(KM, {
+ children: /* @__PURE__ */ (0, B.jsx)(GM, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(pI)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(fI)) : /* @__PURE__ */ new Set())
})
}),
/* @__PURE__ */ (0, B.jsx)(ik, {
@@ -42688,12 +42688,12 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: "操作"
})
] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: t.map((e) => {
- let t = pI(e);
+ let t = fI(e);
return /* @__PURE__ */ (0, B.jsxs)(lk, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(KM, {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(GM, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -42702,7 +42702,7 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(mI, {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(pI, {
sources: n,
name: e.canonical
}) }),
@@ -42732,7 +42732,7 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {
+ }), e.length ? /* @__PURE__ */ (0, B.jsx)(JM, { children: /* @__PURE__ */ (0, B.jsxs)(KM, {
"aria-label": "已保存创作者别名",
size: "sm",
children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [/* @__PURE__ */ (0, B.jsx)(ik, {
@@ -42744,7 +42744,7 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: "平台别名"
})] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(lk, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(mI, {
+ children: [/* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(pI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
@@ -42762,7 +42762,7 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
...X(h.isPending),
onClick: () => void je({
title: "移除创作者别名",
- body: Hhe(e.name),
+ body: Uhe(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -42782,12 +42782,12 @@ function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var Ghe = "这些账号信息存在哪里", Khe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", qhe = "将清除这个来源在本机和共享副本中的登录凭据。", Jhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function Yhe(e, t) {
+var Khe = "这些账号信息存在哪里", qhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Jhe = "将清除这个来源在本机和共享副本中的登录凭据。", Yhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function Xhe(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function Xhe({ row: e }) {
- if (OF(e)) return /* @__PURE__ */ (0, B.jsx)(DE, {
+function Zhe({ row: e }) {
+ if (DF(e)) return /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "lime",
children: "已配置"
@@ -42796,19 +42796,19 @@ function Xhe({ row: e }) {
return /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: t,
- children: Yme[e.requirement] || ""
+ children: Xme[e.requirement] || ""
});
}
-function Zhe({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = OF(e), c = DS({
- mutationFn: (t) => zme(e.provider, t),
+function Qhe({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = DF(e), c = OS({
+ mutationFn: (t) => Bme(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), p.invalidateQueries({
- queryKey: YP,
+ queryKey: JP,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -42834,7 +42834,7 @@ function Zhe({ row: e, readOnly: t, toast: n }) {
children: (e.needs || []).map((n) => /* @__PURE__ */ (0, B.jsx)(Ck, {
type: "password",
label: n,
- placeholder: Yhe(e, n),
+ placeholder: Xhe(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -42862,7 +42862,7 @@ function Zhe({ row: e, readOnly: t, toast: n }) {
...X(c.isPending),
onClick: () => void je({
title: "清除来源凭据",
- body: qhe,
+ body: Jhe,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -42872,7 +42872,7 @@ function Zhe({ row: e, readOnly: t, toast: n }) {
}),
a ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: a }) : null,
(e.shared_fields || []).length ? /* @__PURE__ */ (0, B.jsx)(zk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, B.jsx)(LM, {
+ e.path ? /* @__PURE__ */ (0, B.jsx)(IM, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -42880,18 +42880,18 @@ function Zhe({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "凭据文件权限过宽",
- children: Jhe
+ children: Yhe
}) : null
]
});
}
-function Qhe({ row: e, readOnly: t, toast: n }) {
+function $he({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, B.jsx)(sI, { provider: e.provider })
+ children: /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider })
}),
/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium text-text-primary",
@@ -42901,7 +42901,7 @@ function Qhe({ row: e, readOnly: t, toast: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.nature
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Xhe, { row: e }),
+ /* @__PURE__ */ (0, B.jsx)(Zhe, { row: e }),
e.missing.length ? /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "rose",
@@ -42915,9 +42915,9 @@ function Qhe({ row: e, readOnly: t, toast: n }) {
}) : /* @__PURE__ */ (0, B.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, B.jsx)(Gk, {
- summary: OF(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !OF(e),
- children: /* @__PURE__ */ (0, B.jsx)(Zhe, {
+ summary: DF(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !DF(e),
+ children: /* @__PURE__ */ (0, B.jsx)(Qhe, {
row: e,
readOnly: t,
toast: n
@@ -42925,8 +42925,8 @@ function Qhe({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function $he({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !OF(e));
+function ege({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !DF(e));
return r.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: AE({
padding: "none",
@@ -42968,7 +42968,7 @@ function $he({ data: e, readOnly: t, toast: n }) {
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)(Qhe, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)($he, {
row: e,
readOnly: t,
toast: n
@@ -42980,13 +42980,13 @@ function $he({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: Ghe
+ children: Khe
}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Khe
+ children: qhe
}),
- /* @__PURE__ */ (0, B.jsx)(LM, {
+ /* @__PURE__ */ (0, B.jsx)(IM, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -43004,7 +43004,7 @@ function $he({ data: e, readOnly: t, toast: n }) {
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function hI() {
+function mI() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -43017,24 +43017,24 @@ function hI() {
group: (e) => e
};
}
-function gI(e, t) {
+function hI(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function _I(e, t) {
+function gI(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: gI(n, t[e])
+ [e]: hI(n, t[e])
}));
};
}
-function vI(e) {
+function _I(e) {
return e instanceof Function;
}
-function ege(e) {
+function tge(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function tge(e, t) {
+function nge(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -43044,7 +43044,7 @@ function tge(e, t) {
};
return r(e), n;
}
-function yI(e, t, n) {
+function vI(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -43066,21 +43066,21 @@ function yI(e, t, n) {
return i;
};
}
-function bI(e, t, n, r) {
+function yI(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function nge(e, t, n, r) {
+function rge(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: yI(() => [
+ getContext: vI(() => [
e,
n,
t,
@@ -43092,13 +43092,13 @@ function nge(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), bI(e.options, "debugCells", "cell.getContext"))
+ }), yI(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function rge(e, t, n, r) {
+function ige(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -43115,17 +43115,17 @@ function rge(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: yI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], bI(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: yI(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: vI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], yI(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: vI(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, bI(e.options, "debugColumns", "column.getLeafColumns"))
+ }, yI(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var xI = "debugHeaders";
-function SI(e, t, n) {
+var bI = "debugHeaders";
+function xI(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -43153,42 +43153,42 @@ function SI(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var ige = { createTable: (e) => {
- e.getHeaderGroups = yI(() => [
+var age = { createTable: (e) => {
+ e.getHeaderGroups = vI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return CI(t, [
+ return SI(t, [
...a,
...s,
...o
], e);
- }, bI(e.options, xI, "getHeaderGroups")), e.getCenterHeaderGroups = yI(() => [
+ }, yI(e.options, bI, "getHeaderGroups")), e.getCenterHeaderGroups = vI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), CI(t, n, e, "center")), bI(e.options, xI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = yI(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), SI(t, n, e, "center")), yI(e.options, bI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = vI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => CI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), bI(e.options, xI, "getLeftHeaderGroups")), e.getRightHeaderGroups = yI(() => [
+ ], (t, n, r) => SI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), yI(e.options, bI, "getLeftHeaderGroups")), e.getRightHeaderGroups = vI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => CI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), bI(e.options, xI, "getRightHeaderGroups")), e.getFooterGroups = yI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), bI(e.options, xI, "getFooterGroups")), e.getLeftFooterGroups = yI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), bI(e.options, xI, "getLeftFooterGroups")), e.getCenterFooterGroups = yI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), bI(e.options, xI, "getCenterFooterGroups")), e.getRightFooterGroups = yI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), bI(e.options, xI, "getRightFooterGroups")), e.getFlatHeaders = yI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), bI(e.options, xI, "getFlatHeaders")), e.getLeftFlatHeaders = yI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), bI(e.options, xI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = yI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), bI(e.options, xI, "getCenterFlatHeaders")), e.getRightFlatHeaders = yI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), bI(e.options, xI, "getRightFlatHeaders")), e.getCenterLeafHeaders = yI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => SI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), yI(e.options, bI, "getRightHeaderGroups")), e.getFooterGroups = vI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getFooterGroups")), e.getLeftFooterGroups = vI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getLeftFooterGroups")), e.getCenterFooterGroups = vI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getCenterFooterGroups")), e.getRightFooterGroups = vI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getRightFooterGroups")), e.getFlatHeaders = vI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getFlatHeaders")), e.getLeftFlatHeaders = vI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = vI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getCenterFlatHeaders")), e.getRightFlatHeaders = vI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getRightFlatHeaders")), e.getCenterLeafHeaders = vI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), bI(e.options, xI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = yI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), yI(e.options, bI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = vI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), bI(e.options, xI, "getLeftLeafHeaders")), e.getRightLeafHeaders = yI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), yI(e.options, bI, "getLeftLeafHeaders")), e.getRightLeafHeaders = vI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), bI(e.options, xI, "getRightLeafHeaders")), e.getLeafHeaders = yI(() => [
+ }), yI(e.options, bI, "getRightLeafHeaders")), e.getLeafHeaders = vI(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -43196,9 +43196,9 @@ var ige = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), bI(e.options, xI, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), yI(e.options, bI, "getLeafHeaders"));
} };
-function CI(e, t, n, r) {
+function SI(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -43216,7 +43216,7 @@ function CI(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = SI(n, c, {
+ let i = xI(n, c, {
id: [
r,
t,
@@ -43233,7 +43233,7 @@ function CI(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => SI(n, e, {
+ s(t.map((e, t) => xI(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -43251,7 +43251,7 @@ function CI(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var age = (e, t, n, r, i, a, o) => {
+var oge = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -43272,7 +43272,7 @@ var age = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => tge(s.subRows, (e) => e.subRows),
+ getLeafRows: () => nge(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -43283,95 +43283,95 @@ var age = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: yI(() => [e.getAllLeafColumns()], (t) => t.map((t) => nge(e, s, t, t.id)), bI(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: yI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), bI(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: vI(() => [e.getAllLeafColumns()], (t) => t.map((t) => rge(e, s, t, t.id)), yI(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: vI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), yI(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, oge = { createColumn: (e, t) => {
+}, sge = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, wI = (e, t, n) => {
+} }, CI = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-wI.autoRemove = (e) => PI(e);
-var TI = (e, t, n) => {
+CI.autoRemove = (e) => NI(e);
+var wI = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-TI.autoRemove = (e) => PI(e);
-var EI = (e, t, n) => {
+wI.autoRemove = (e) => NI(e);
+var TI = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-EI.autoRemove = (e) => PI(e);
-var DI = (e, t, n) => e.getValue(t)?.includes(n);
-DI.autoRemove = (e) => PI(e);
-var OI = (e, t, n) => !n.some((n) => {
+TI.autoRemove = (e) => NI(e);
+var EI = (e, t, n) => e.getValue(t)?.includes(n);
+EI.autoRemove = (e) => NI(e);
+var DI = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-OI.autoRemove = (e) => PI(e) || !(e != null && e.length);
-var kI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-kI.autoRemove = (e) => PI(e) || !(e != null && e.length);
-var AI = (e, t, n) => e.getValue(t) === n;
-AI.autoRemove = (e) => PI(e);
-var jI = (e, t, n) => e.getValue(t) == n;
-jI.autoRemove = (e) => PI(e);
-var MI = (e, t, n) => {
+DI.autoRemove = (e) => NI(e) || !(e != null && e.length);
+var OI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+OI.autoRemove = (e) => NI(e) || !(e != null && e.length);
+var kI = (e, t, n) => e.getValue(t) === n;
+kI.autoRemove = (e) => NI(e);
+var AI = (e, t, n) => e.getValue(t) == n;
+AI.autoRemove = (e) => NI(e);
+var jI = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-MI.resolveFilterValue = (e) => {
+jI.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, MI.autoRemove = (e) => PI(e) || PI(e[0]) && PI(e[1]);
-var NI = {
- includesString: wI,
- includesStringSensitive: TI,
- equalsString: EI,
- arrIncludes: DI,
- arrIncludesAll: OI,
- arrIncludesSome: kI,
- equals: AI,
- weakEquals: jI,
- inNumberRange: MI
+}, jI.autoRemove = (e) => NI(e) || NI(e[0]) && NI(e[1]);
+var MI = {
+ includesString: CI,
+ includesStringSensitive: wI,
+ equalsString: TI,
+ arrIncludes: EI,
+ arrIncludesAll: DI,
+ arrIncludesSome: OI,
+ equals: kI,
+ weakEquals: AI,
+ inNumberRange: jI
};
-function PI(e) {
+function NI(e) {
return e == null || e === "";
}
-var sge = {
+var cge = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: _I("columnFilters", e),
+ onColumnFiltersChange: gI("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? NI.includesString : typeof n == "number" ? NI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? NI.equals : Array.isArray(n) ? NI.arrIncludes : NI.weakEquals;
- }, e.getFilterFn = () => vI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? NI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? MI.includesString : typeof n == "number" ? MI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? MI.equals : Array.isArray(n) ? MI.arrIncludes : MI.weakEquals;
+ }, e.getFilterFn = () => _I(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? MI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = gI(n, i ? i.value : void 0);
- if (FI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = hI(n, i ? i.value : void 0);
+ if (PI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -43386,19 +43386,19 @@ var sge = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => gI(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => hI(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && FI(t.getFilterFn(), e.value, t));
+ return !(t && PI(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function FI(e, t, n) {
+function PI(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var II = {
+var FI = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -43434,7 +43434,7 @@ var II = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!ege(n)) return;
+ if (!tge(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -43442,7 +43442,7 @@ var II = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, cge = {
+}, lge = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -43455,7 +43455,7 @@ var II = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: _I("grouping", e),
+ onGroupingChange: gI("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -43468,11 +43468,11 @@ var II = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return II.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return II.extent;
+ if (typeof n == "number") return FI.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return FI.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return vI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? II[e.columnDef.aggregationFn];
+ return _I(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? FI[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -43494,27 +43494,27 @@ var II = {
};
}
};
-function lge(e, t, n) {
+function uge(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var uge = {
+var dge = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: _I("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: gI("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = yI((e) => [HI(t, e)], (t) => t.findIndex((t) => t.id === e.id), bI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => HI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = HI(t, n);
+ e.getIndex = vI((e) => [VI(t, e)], (t) => t.findIndex((t) => t.id === e.id), yI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => VI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = VI(t, n);
return r[r.length - 1]?.id === e.id;
};
},
createTable: (e) => {
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
- }, e._getOrderColumnsFn = yI(() => [
+ }, e._getOrderColumnsFn = vI(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -43529,18 +43529,18 @@ var uge = {
}
i = [...i, ...n];
}
- return lge(i, t, n);
- }, bI(e.options, "debugTable", "_getOrderColumnsFn"));
+ return uge(i, t, n);
+ }, yI(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, LI = () => ({
+}, II = () => ({
left: [],
right: []
-}), dge = {
+}), fge = {
getInitialState: (e) => ({
- columnPinning: LI(),
+ columnPinning: II(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: _I("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: gI("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -43564,75 +43564,75 @@ var uge = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = yI(() => [
+ e.getCenterVisibleCells = vI(() => [
e._getAllVisibleCells(),
t.getState().columnPinning.left,
t.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.column.id));
- }, bI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = yI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, yI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = vI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), bI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = yI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), yI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = vI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), bI(t.options, "debugRows", "getRightVisibleCells"));
+ })), yI(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? LI() : e.initialState?.columnPinning ?? LI()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? II() : e.initialState?.columnPinning ?? II()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = yI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), bI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = yI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), bI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = yI(() => [
+ }, e.getLeftLeafColumns = vI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = vI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = vI(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, bI(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, yI(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function fge(e) {
+function pge(e) {
return e || (typeof document < "u" ? document : null);
}
-var RI = {
+var LI = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, zI = () => ({
+}, RI = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), pge = {
- getDefaultColumnDef: () => RI,
+}), mge = {
+ getDefaultColumnDef: () => LI,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: zI(),
+ columnSizingInfo: RI(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: _I("columnSizing", e),
- onColumnSizingInfoChange: _I("columnSizingInfo", e)
+ onColumnSizingChange: gI("columnSizing", e),
+ onColumnSizingInfoChange: gI("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? RI.minSize, n ?? e.columnDef.size ?? RI.size), e.columnDef.maxSize ?? RI.maxSize);
- }, e.getStart = yI((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? LI.minSize, n ?? e.columnDef.size ?? LI.size), e.columnDef.maxSize ?? LI.maxSize);
+ }, e.getStart = vI((e) => [
e,
- HI(t, e),
+ VI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), bI(t.options, "debugColumns", "getStart")), e.getAfter = yI((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), yI(t.options, "debugColumns", "getStart")), e.getAfter = vI((e) => [
e,
- HI(t, e),
+ VI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), bI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), yI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -43654,8 +43654,8 @@ var RI = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), VI(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = VI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), BI(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = BI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -43680,7 +43680,7 @@ var RI = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = fge(n), m = {
+ }, p = pge(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -43690,8 +43690,8 @@ var RI = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = mge() ? { passive: !1 } : !1;
- VI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = hge() ? { passive: !1 } : !1;
+ BI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -43707,12 +43707,12 @@ var RI = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? zI() : e.initialState.columnSizingInfo ?? zI());
+ e.setColumnSizingInfo(t ? RI() : e.initialState.columnSizingInfo ?? RI());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, BI = null;
-function mge() {
- if (typeof BI == "boolean") return BI;
+}, zI = null;
+function hge() {
+ if (typeof zI == "boolean") return zI;
let e = !1;
try {
let t = { get passive() {
@@ -43722,17 +43722,17 @@ function mge() {
} catch {
e = !1;
}
- return BI = e, BI;
+ return zI = e, zI;
}
-function VI(e) {
+function BI(e) {
return e.type === "touchstart";
}
-var hge = {
+var gge = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: _I("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: gI("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -43747,7 +43747,7 @@ var hge = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = yI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), bI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = yI(() => [
+ e._getAllVisibleCells = vI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), yI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = vI(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -43755,10 +43755,10 @@ var hge = {
...e,
...t,
...n
- ], bI(t.options, "debugRows", "getVisibleCells"));
+ ], yI(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => yI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), bI(e.options, "debugColumns", t));
+ let t = (t, n) => vI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), yI(e.options, "debugColumns", t));
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
}, e.toggleAllColumnsVisible = (t) => {
@@ -43771,20 +43771,20 @@ var hge = {
};
}
};
-function HI(e, t) {
+function VI(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var gge = { createTable: (e) => {
+var _ge = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, _ge = {
+} }, vge = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: _I("globalFilter", e),
+ onGlobalFilterChange: gI("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -43796,22 +43796,22 @@ var gge = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => NI.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => MI.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return vI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? NI[t];
+ return _I(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? MI[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, vge = {
+}, yge = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: _I("expanded", e),
+ onExpandedChange: gI("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -43882,18 +43882,18 @@ var gge = { createTable: (e) => {
};
};
}
-}, UI = 0, WI = 10, GI = () => ({
- pageIndex: UI,
- pageSize: WI
-}), yge = {
+}, HI = 0, UI = 10, WI = () => ({
+ pageIndex: HI,
+ pageSize: UI
+}), bge = {
getInitialState: (e) => ({
...e,
pagination: {
- ...GI(),
+ ...WI(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: _I("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: gI("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -43909,11 +43909,11 @@ var gge = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => gI(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? GI() : e.initialState.pagination ?? GI());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => hI(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? WI() : e.initialState.pagination ?? WI());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = gI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = hI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -43921,13 +43921,13 @@ var gge = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? UI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? UI);
+ e.setPageIndex(t ? HI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? HI);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? WI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? WI);
+ e.setPageSize(t ? UI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? UI);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, gI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, hI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -43935,28 +43935,28 @@ var gge = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = gI(t, e.options.pageCount ?? -1);
+ let r = hI(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = yI(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = vI(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, bI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, yI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, KI = () => ({
+}, GI = () => ({
top: [],
bottom: []
-}), bge = {
+}), xge = {
getInitialState: (e) => ({
- rowPinning: KI(),
+ rowPinning: GI(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: _I("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: gI("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -43995,7 +43995,7 @@ var gge = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? KI() : e.initialState?.rowPinning ?? KI()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? GI() : e.initialState?.rowPinning ?? GI()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -44004,22 +44004,22 @@ var gge = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = yI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), bI(e.options, "debugRows", "getTopRows")), e.getBottomRows = yI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), bI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = yI(() => [
+ })), e.getTopRows = vI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), yI(e.options, "debugRows", "getTopRows")), e.getBottomRows = vI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), yI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = vI(() => [
e.getRowModel().rows,
e.getState().rowPinning.top,
e.getState().rowPinning.bottom
], (e, t, n) => {
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
return e.filter((e) => !r.has(e.id));
- }, bI(e.options, "debugRows", "getCenterRows"));
+ }, yI(e.options, "debugRows", "getCenterRows"));
}
-}, xge = {
+}, Sge = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: _I("rowSelection", e),
+ onRowSelectionChange: gI("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -44038,21 +44038,21 @@ var gge = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- qI(i, t.id, r, !0, e);
+ KI(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = yI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? JI(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = vI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, bI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = yI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? JI(e, n) : {
+ }, yI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = vI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, bI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = yI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? JI(e, n) : {
+ }, yI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = vI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, bI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, yI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
}, e.getIsAllPageRowsSelected = () => {
@@ -44076,17 +44076,17 @@ var gge = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return qI(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return KI(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return YI(e, n);
+ return JI(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return XI(e, n) === "some";
+ return YI(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return XI(e, n) === "all";
+ return YI(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -44094,16 +44094,16 @@ var gge = { createTable: (e) => {
};
};
}
-}, qI = (e, t, n, r, i) => {
+}, KI = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => qI(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => KI(e, t.id, n, r, i));
};
-function JI(e, t) {
+function qI(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = YI(e, n);
+ let o = JI(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -44116,32 +44116,32 @@ function JI(e, t) {
rowsById: i
};
}
-function YI(e, t) {
+function JI(e, t) {
return t[e.id] ?? !1;
}
-function XI(e, t, n) {
+function YI(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (YI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = XI(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (JI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = YI(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var ZI = /([0-9]+)/gm, Sge = (e, t, n) => eL($I(e.getValue(n)).toLowerCase(), $I(t.getValue(n)).toLowerCase()), Cge = (e, t, n) => eL($I(e.getValue(n)), $I(t.getValue(n))), wge = (e, t, n) => QI($I(e.getValue(n)).toLowerCase(), $I(t.getValue(n)).toLowerCase()), Tge = (e, t, n) => QI($I(e.getValue(n)), $I(t.getValue(n))), Ege = (e, t, n) => {
+var XI = /([0-9]+)/gm, Cge = (e, t, n) => $I(QI(e.getValue(n)).toLowerCase(), QI(t.getValue(n)).toLowerCase()), wge = (e, t, n) => $I(QI(e.getValue(n)), QI(t.getValue(n))), Tge = (e, t, n) => ZI(QI(e.getValue(n)).toLowerCase(), QI(t.getValue(n)).toLowerCase()), Ege = (e, t, n) => ZI(QI(e.getValue(n)), QI(t.getValue(n))), Dge = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, Dge = (e, t, n) => QI(e.getValue(n), t.getValue(n));
-function QI(e, t) {
+}, Oge = (e, t, n) => ZI(e.getValue(n), t.getValue(n));
+function ZI(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function $I(e) {
+function QI(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function eL(e, t) {
- let n = e.split(ZI).filter(Boolean), r = t.split(ZI).filter(Boolean);
+function $I(e, t) {
+ let n = e.split(XI).filter(Boolean), r = t.split(XI).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -44155,22 +44155,22 @@ function eL(e, t) {
}
return n.length - r.length;
}
-var tL = {
- alphanumeric: Sge,
- alphanumericCaseSensitive: Cge,
- text: wge,
- textCaseSensitive: Tge,
- datetime: Ege,
- basic: Dge
-}, Oge = [
- ige,
- hge,
- uge,
+var eL = {
+ alphanumeric: Cge,
+ alphanumericCaseSensitive: wge,
+ text: Tge,
+ textCaseSensitive: Ege,
+ datetime: Dge,
+ basic: Oge
+}, kge = [
+ age,
+ gge,
dge,
- oge,
+ fge,
sge,
- gge,
+ cge,
_ge,
+ vge,
{
getInitialState: (e) => ({
sorting: [],
@@ -44181,7 +44181,7 @@ var tL = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: _I("sorting", e),
+ onSortingChange: gI("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -44189,13 +44189,13 @@ var tL = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return tL.datetime;
- if (typeof n == "string" && (r = !0, n.split(ZI).length > 1)) return tL.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return eL.datetime;
+ if (typeof n == "string" && (r = !0, n.split(XI).length > 1)) return eL.alphanumeric;
}
- return r ? tL.text : tL.basic;
+ return r ? eL.text : eL.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return vI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? tL[e.columnDef.sortingFn];
+ return _I(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? eL[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -44232,15 +44232,15 @@ var tL = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- cge,
- vge,
+ lge,
yge,
bge,
xge,
- pge
+ Sge,
+ mge
];
-function kge(e) {
- let t = [...Oge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function Age(e) {
+ let t = [...kge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -44266,7 +44266,7 @@ function kge(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = gI(e, n.options);
+ let t = hI(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -44281,7 +44281,7 @@ function kge(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: yI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: vI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -44292,20 +44292,20 @@ function kge(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), bI(e, "debugColumns", "_getDefaultColumnDef")),
+ }), yI(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: yI(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: vI(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = rge(n, e, i, r), o = e;
+ let a = ige(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, bI(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: yI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), bI(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: yI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), bI(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: yI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), bI(e, "debugColumns", "getAllLeafColumns")),
+ }, yI(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: vI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), yI(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: vI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), yI(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: vI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), yI(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -44315,8 +44315,8 @@ function kge(e) {
}
return n;
}
-function nL() {
- return (e) => yI(() => [e.options.data], (t) => {
+function tL() {
+ return (e) => vI(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -44325,7 +44325,7 @@ function nL() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = age(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = oge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -44334,9 +44334,9 @@ function nL() {
return o;
};
return n.rows = r(t), n;
- }, bI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, yI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function Age(e) {
+function jge(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -44347,8 +44347,8 @@ function Age(e) {
rowsById: e.rowsById
};
}
-function rL(e) {
- return (e) => yI(() => [
+function nL(e) {
+ return (e) => vI(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -44361,7 +44361,7 @@ function rL(e) {
rows: a,
flatRows: o,
rowsById: s
- } : Age({
+ } : jge({
rows: a,
flatRows: o,
rowsById: s
@@ -44370,32 +44370,32 @@ function rL(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, bI(e.options, "debugTable", "getPaginationRowModel"));
+ }, yI(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function iL(e, t) {
- return e ? jge(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
-}
-function jge(e) {
- return Mge(e) || typeof e == "function" || Nge(e);
+function rL(e, t) {
+ return e ? Mge(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
}
function Mge(e) {
+ return Nge(e) || typeof e == "function" || Pge(e);
+}
+function Nge(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Nge(e) {
+function Pge(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function aL(e) {
+function iL(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = R.useState(() => ({ current: kge(t) })), [r, i] = R.useState(() => n.current.initialState);
+ }, [n] = R.useState(() => ({ current: Age(t) })), [r, i] = R.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -44410,7 +44410,7 @@ function aL(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Pge = TE({
+var Fge = TE({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -44472,8 +44472,8 @@ var Pge = TE({
}
}
});
-function Fge({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Pge[t];
+function Ige({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Fge[t];
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
className: wE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? wE("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -44483,12 +44483,12 @@ function Fge({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function oL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+function aL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
return /* @__PURE__ */ (0, B.jsx)(Cse, {
ref: i,
...a,
className: (t) => wE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Fge, {
+ children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ige, {
state: e,
size: n,
shape: r
@@ -44500,8 +44500,8 @@ function oL({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var sL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Ige = "输入女优名,到 JavDB 找她的演员页";
-function Lge(e, t) {
+var oL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Lge = "输入女优名,到 JavDB 找她的演员页";
+function Rge(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
if (n.size > 1) return {
@@ -44520,10 +44520,10 @@ function Lge(e, t) {
blocked: !1
};
}
-function Rge({ card: e, picked: t, onPick: n }) {
+function zge({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(KM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -44550,10 +44550,10 @@ function Rge({ card: e, picked: t, onPick: n }) {
})]
});
}
-function zge({ readOnly: e, toast: t, onAdded: n }) {
+function Bge({ readOnly: e, toast: t, onAdded: n }) {
let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = IE(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => Hme(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => Ume(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -44561,10 +44561,10 @@ function zge({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => Ume(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => Wme(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? Lge(a, s) : null;
+ }, m = a ? Rge(a, s) : null;
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: AE({
padding: "none",
@@ -44581,7 +44581,7 @@ function zge({ readOnly: e, toast: t, onAdded: n }) {
className: "min-w-64 grow",
children: /* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "女优名",
- placeholder: Ige,
+ placeholder: Lge,
value: r,
leadingIcon: NT,
isDisabled: e,
@@ -44605,7 +44605,7 @@ function zge({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-col gap-3",
children: [
/* @__PURE__ */ (0, B.jsx)(Vk, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(Rge, {
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(zge, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
@@ -44640,19 +44640,19 @@ function zge({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Bge = Object.fromEntries(Object.entries($P).map(([e, t]) => [t, e])), cL = 740;
-function Vge() {
+var Vge = Object.fromEntries(Object.entries(QP).map(([e, t]) => [t, e])), sL = 740;
+function Hge() {
let [e, t] = (0, R.useState)(!1), n = (0, R.useRef)(null), r = (0, R.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < cL));
- r.observe(e), n.current = r, t(e.clientWidth < cL);
+ let r = new ResizeObserver(() => t(e.clientWidth < sL));
+ r.observe(e), n.current = r, t(e.clientWidth < sL);
}, []);
return (0, R.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var Hge = {
+var Uge = {
select: "选择",
author: "创作者",
source: "来源",
@@ -44661,7 +44661,7 @@ var Hge = {
checked: "上次检查",
actions: "操作"
};
-function lL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function cL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, B.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -44698,22 +44698,22 @@ function lL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function Uge({ source: e, selected: t, onToggle: n, handlers: r }) {
+function Wge({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- JM(e, e.currentTarget) && n(!t);
+ qM(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, B.jsx)(KM, {
+ /* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, B.jsx)(uI, { source: e }), e.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
+ children: [/* @__PURE__ */ (0, B.jsx)(lI, { source: e }), e.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -44721,17 +44721,17 @@ function Uge({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, B.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, B.jsx)(sI, {
+ children: /* @__PURE__ */ (0, B.jsx)(oI, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, B.jsx)(lI, { source: e }),
+ /* @__PURE__ */ (0, B.jsx)(cI, { source: e }),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: EF(e)
+ children: TF(e)
}),
- /* @__PURE__ */ (0, B.jsx)(oL, {
+ /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -44761,8 +44761,8 @@ function Uge({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function Wge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(tF).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = dF(r, c);
+function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(eF).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = uF(r, c);
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
className: AE({
@@ -44775,7 +44775,7 @@ function Wge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(cI, {
+ /* @__PURE__ */ (0, B.jsx)(sI, {
group: e,
name: t
}),
@@ -44796,7 +44796,7 @@ function Wge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, B.jsx)(sI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, B.jsx)(q_, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, B.jsx)(q_, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -44826,7 +44826,7 @@ function Wge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(Uge, {
+ children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(Wge, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -44835,37 +44835,37 @@ function Wge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function Gge(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = Vge(), [C, w] = (0, R.useState)(""), T = (0, R.useMemo)(() => Ame(g, n, r, _), [
+function Kge(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = Hge(), [C, w] = (0, R.useState)(""), T = (0, R.useMemo)(() => jme(g, n, r, _), [
g,
n,
r,
_
- ]), E = (0, R.useMemo)(() => jme(T, n, r, _), [
+ ]), E = (0, R.useMemo)(() => Mme(T, n, r, _), [
T,
n,
r,
_
- ]), { job: D, running: O, outcome: k, start: A } = HM({
- queryKey: xme,
- queryFn: ({ signal: e }) => Nme(e),
- start: (e) => hF(e),
+ ]), { job: D, running: O, outcome: k, start: A } = VM({
+ queryKey: Sme,
+ queryFn: ({ signal: e }) => Pme(e),
+ start: (e) => mF(e),
onError: (e) => w(U(e)),
onFinish: (e) => {
- TF(), m(e.status === "failed" ? e.error || "检查失败" : Gme(e));
+ wF(), m(e.status === "failed" ? e.error || "检查失败" : Kme(e));
}
}), j = (e) => {
O || A.isPending || (w(""), A.mutate(e));
- }, M = (e, t) => p(fF(s, [e], t)), N = (e, t) => p(fF(s, e, t)), ee = DS({
- mutationFn: (e) => _F(e),
+ }, M = (e, t) => p(dF(s, [e], t)), N = (e, t) => p(dF(s, e, t)), ee = OS({
+ mutationFn: (e) => gF(e),
onSuccess: (e, t) => {
- wF([t]), p(fF(s, [t], !1)), m("已取消关注来源");
+ CF([t]), p(dF(s, [t], !1)), m("已取消关注来源");
},
onError: (e) => w(U(e))
- }), te = DS({
- mutationFn: (e) => gF(e.id, e.enabled),
+ }), te = OS({
+ mutationFn: (e) => hF(e.id, e.enabled),
onSuccess: (e, t) => {
- CF(t.id, { enabled: t.enabled }), w("");
+ SF(t.id, { enabled: t.enabled }), w("");
},
onError: (e) => w(U(e))
}), P = (e) => void je({
@@ -44874,10 +44874,10 @@ function Gge(e) {
confirmLabel: "取消关注来源",
danger: !0,
onConfirm: () => ee.mutateAsync(e.id)
- }), F = DS({
+ }), F = OS({
mutationFn: async (e) => {
let t = await Se(e.ids, 4, async (t) => {
- e.action === "remove" ? await _F(t) : await gF(t, e.action === "enabled");
+ e.action === "remove" ? await gF(t) : await hF(t, e.action === "enabled");
});
return {
...e,
@@ -44886,9 +44886,9 @@ function Gge(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") wF(e.done);
- else for (let t of e.done) CF(t, { enabled: e.action === "enabled" });
- p(fF(s, e.done, !1));
+ if (e.action === "remove") CF(e.done);
+ else for (let t of e.done) SF(t, { enabled: e.action === "enabled" });
+ p(dF(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
w(`${t.length}/${e.ids.length} 个来源未更新:${U(t[0]?.error)}`);
@@ -44899,20 +44899,20 @@ function Gge(e) {
m(`已${n} ${e.done.length} 个关注来源`);
},
onError: (e) => w(U(e))
- }), ne = DS({
+ }), ne = OS({
mutationFn: async (e) => {
- let t = ((await Vme()).groups || []).flatMap((e) => [
+ let t = ((await Hme()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await Se(t, 6, (t) => Bme(t, e))).filter((e) => !e.ok)
+ failed: (await Se(t, 6, (t) => Vme(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (TF(), e.failed.length) {
+ if (wF(), e.failed.length) {
w(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -44937,12 +44937,12 @@ function Gge(e) {
readOnly: c
};
let ae = ie.current, oe = (0, R.useMemo)(() => {
- let e = hI(), t = (e) => () => Hge[e] || e;
+ let e = mI(), t = (e) => () => Uge[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(KM, {
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(GM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -44954,7 +44954,7 @@ function Gge(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(cI, {
+ children: [/* @__PURE__ */ (0, B.jsx)(sI, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, B.jsx)("span", {
@@ -44968,7 +44968,7 @@ function Gge(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, B.jsx)(uI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
+ children: [/* @__PURE__ */ (0, B.jsx)(lI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -44979,18 +44979,18 @@ function Gge(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(sI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, B.jsx)(oI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(lI, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(cI, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => EF(e.row.original.source)
+ cell: (e) => TF(e.row.original.source)
}),
e.display({
id: "actions",
@@ -44998,7 +44998,7 @@ function Gge(e) {
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, B.jsx)(oL, {
+ /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: ae.readOnly,
@@ -45028,12 +45028,12 @@ function Gge(e) {
})
];
}, [ae]), se = (0, R.useMemo)(() => {
- let e = Bge[n];
+ let e = Vge[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ce = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = uF(le ? E.length : T.length, o, i), de = aL({
+ }, [n, r]), ce = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = lF(le ? E.length : T.length, o, i), de = iL({
data: E,
columns: oe,
getRowId: (e) => String(e.source.id),
@@ -45050,7 +45050,7 @@ function Gge(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(se) : e)[0];
if (!t) return;
- let n = $P[t.id];
+ let n = QP[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -45064,9 +45064,9 @@ function Gge(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : f(n.pageSize);
},
- getCoreRowModel: nL(),
- getPaginationRowModel: rL()
- }), fe = de.getRowModel().rows, I = le ? fe.map((e) => e.original.source.id) : T.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), pe = dF(s, I), me = [...s], he = Kme(k), ge = qme(k), _e = T.length > 0 && y.size >= T.length;
+ getCoreRowModel: tL(),
+ getPaginationRowModel: nL()
+ }), fe = de.getRowModel().rows, I = le ? fe.map((e) => e.original.source.id) : T.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), pe = uF(s, I), me = [...s], he = qme(k), ge = Jme(k), _e = T.length > 0 && y.size >= T.length;
return g.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: AE({
padding: "none",
@@ -45103,14 +45103,14 @@ function Gge(e) {
variant: "ghost",
iconOnly: !0,
leadingIcon: cae,
- "aria-label": ZP[0][1],
+ "aria-label": XP[0][1],
"aria-pressed": !le,
onClick: () => d("default")
}), /* @__PURE__ */ (0, B.jsx)(J, {
variant: "ghost",
iconOnly: !0,
leadingIcon: dae,
- "aria-label": ZP[1][1],
+ "aria-label": XP[1][1],
"aria-pressed": le,
onClick: () => d("table")
})]
@@ -45121,9 +45121,9 @@ function Gge(e) {
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, RP[t]);
+ l(t, LP[t]);
},
- children: LP.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: IP.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
@@ -45132,7 +45132,7 @@ function Gge(e) {
variant: "secondary",
iconOnly: !0,
leadingIcon: r === "asc" ? Jie : qie,
- "aria-label": Ome(n, r),
+ "aria-label": kme(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
le ? null : /* @__PURE__ */ (0, B.jsx)(J, {
@@ -45149,7 +45149,7 @@ function Gge(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- O ? /* @__PURE__ */ (0, B.jsx)(RM, {
+ O ? /* @__PURE__ */ (0, B.jsx)(LM, {
embedded: !0,
label: D?.message || (D?.total ? `${D.older ? "抓取历史" : "检查更新"}:已完成 ${D.checked || 0}/${D.total} 个来源` : "正在准备检查任务"),
value: D?.checked,
@@ -45175,7 +45175,7 @@ function Gge(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(oS, {
+ /* @__PURE__ */ (0, B.jsxs)(sS, {
label: "关注来源批量操作",
visible: me.length > 0,
count: `已选 ${me.length} 个来源`,
@@ -45235,10 +45235,10 @@ function Gge(e) {
})
]
}),
- le ? /* @__PURE__ */ (0, B.jsx)(YM, {
+ le ? /* @__PURE__ */ (0, B.jsx)(JM, {
follow: !0,
onRowClick: (e) => M(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, B.jsxs)(qM, {
+ children: /* @__PURE__ */ (0, B.jsxs)(KM, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: se[0] ? {
@@ -45250,7 +45250,7 @@ function Gge(e) {
desc: e.direction === "descending"
}]),
children: [/* @__PURE__ */ (0, B.jsx)(rk, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in $P, n = iL(e.column.columnDef.header, e.getContext());
+ let t = e.column.id in QP, n = rL(e.column.columnDef.header, e.getContext());
return /* @__PURE__ */ (0, B.jsx)(ik, {
id: e.id,
allowsSorting: t,
@@ -45269,11 +45269,11 @@ function Gge(e) {
children: fe.map((e) => /* @__PURE__ */ (0, B.jsx)(lk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: iL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: rL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(KM, {
+ }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: pe.all,
isIndeterminate: pe.some,
onChange: (e) => N(I, e),
@@ -45283,9 +45283,9 @@ function Gge(e) {
className: "flex flex-col gap-3",
children: T.slice(ue.start, ue.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, B.jsx)(Wge, {
+ return /* @__PURE__ */ (0, B.jsx)(Gge, {
group: e,
- name: oF(e, _),
+ name: aF(e, _),
handlers: ae,
selected: s,
open: !y.has(t),
@@ -45312,12 +45312,12 @@ function Gge(e) {
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: QP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: ZP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: String(e),
children: `每页 ${e} ${le ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(lL, {
+ /* @__PURE__ */ (0, B.jsx)(cL, {
page: ue.page,
pages: ue.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -45381,7 +45381,7 @@ function Gge(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var Kge = {
+var qge = {
select: "选择",
name: "名称",
kind: "类型",
@@ -45391,18 +45391,18 @@ var Kge = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, qge = /* @__PURE__ */ new Set(["select", "actions"]), uL = () => p.invalidateQueries({
- queryKey: XP,
+}, Jge = /* @__PURE__ */ new Set(["select", "actions"]), lL = () => p.invalidateQueries({
+ queryKey: YP,
exact: !0
-}), dL = (e) => e.name || e.url, Jge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function Yge(e) {
+}), uL = (e) => e.name || e.url, Yge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function Xge(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function Xge({ source: e }) {
+function Zge({ source: e }) {
return e.last_error ? /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "rose",
@@ -45417,7 +45417,7 @@ function Xge({ source: e }) {
children: "已暂停"
});
}
-function Zge({ source: e }) {
+function Qge({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -45426,31 +45426,31 @@ function Zge({ source: e }) {
} : null;
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${sL}`,
- dangerouslySetInnerHTML: { __html: k(dL(e), t, null, "performer") }
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${oL}`,
+ dangerouslySetInnerHTML: { __html: k(uL(e), t, null, "performer") }
});
}
-var Qge = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function $ge(e) {
+var $ge = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function e_e(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
}
-function fL(e, t) {
+function dL(e, t) {
let n = e.length === 1 ? e[0] : null;
return je({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${dL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${uL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function e_e({ readOnly: e, toast: t }) {
- let n = wS({
- queryKey: XP,
- queryFn: ({ signal: e }) => yF(e)
- }), r = IE(), i = n.data, a = (0, R.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, R.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(1), [u, d] = (0, R.useState)(20), f = uF(a.length, u, c);
+function t_e({ readOnly: e, toast: t }) {
+ let n = TS({
+ queryKey: YP,
+ queryFn: ({ signal: e }) => vF(e)
+ }), r = IE(), i = n.data, a = (0, R.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, R.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(1), [u, d] = (0, R.useState)(20), f = lF(a.length, u, c);
(0, R.useEffect)(() => {
l((e) => Math.min(e, f.pages));
}, [f.pages]), (0, R.useEffect)(() => {
@@ -45459,10 +45459,10 @@ function e_e({ readOnly: e, toast: t }) {
return n.size === e.size ? e : n;
});
}, [a]);
- let p = DS({
+ let p = OS({
mutationFn: async (e) => {
let t = await Se(e.ids, 4, async (t) => {
- e.action === "remove" ? await xF(t) : await bF(t, e.action === "enabled");
+ e.action === "remove" ? await bF(t) : await yF(t, e.action === "enabled");
});
return {
...e,
@@ -45471,13 +45471,13 @@ function e_e({ readOnly: e, toast: t }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
- if (s(/* @__PURE__ */ new Set()), uL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
+ if (s(/* @__PURE__ */ new Set()), lL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
r.setError(`${n.length} 条没有写入:${e.ok ? "" : U(e.error)}`);
}
},
onError: (e) => r.setError(U(e))
- }), m = (0, R.useMemo)(() => $ge(a), [a]), h = (0, R.useRef)({
+ }), m = (0, R.useMemo)(() => e_e(a), [a]), h = (0, R.useRef)({
readOnly: e,
shared: m,
busy: null,
@@ -45489,34 +45489,34 @@ function e_e({ readOnly: e, toast: t }) {
readOnly: e,
shared: m,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => bF(e.id, t, n), () => void uL()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => SF(t, [e.id]), () => void uL()),
- remove: (e) => void fL([e], async () => {
- await xF(e.id), t(`已移除订阅源「${dL(e)}」`), uL();
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => yF(e.id, t, n), () => void lL()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => xF(t, [e.id]), () => void lL()),
+ remove: (e) => void dL([e], async () => {
+ await bF(e.id), t(`已移除订阅源「${uL(e)}」`), lL();
})
};
let g = (0, R.useMemo)(() => {
- let e = hI(), t = (e) => () => Kge[e] || e;
+ let e = mI(), t = (e) => () => qge[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(KM, {
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(GM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${dL(e.row.original)}`
+ "aria-label": `选择 ${uL(e.row.original)}`
})
}),
- e.accessor(dL, {
+ e.accessor(uL, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = Qge(e.row.original, h.current.shared);
+ let t = $ge(e.row.original, h.current.shared);
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, B.jsx)(Zge, { source: e.row.original }),
+ /* @__PURE__ */ (0, B.jsx)(Qge, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -45544,15 +45544,15 @@ function e_e({ readOnly: e, toast: t }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: Yge(e.getValue())
+ children: Xge(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(Xge, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(Zge, { source: e.row.original })
}),
- e.accessor((e) => Jge(e.interval_minutes), {
+ e.accessor((e) => Yge(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, B.jsx)("span", {
@@ -45582,8 +45582,8 @@ function e_e({ readOnly: e, toast: t }) {
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, B.jsx)(oL, {
- "aria-label": `启用 ${dL(e.row.original)}`,
+ /* @__PURE__ */ (0, B.jsx)(aL, {
+ "aria-label": `启用 ${uL(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: h.current.readOnly,
onChange: (t) => h.current.toggle(e.row.original, t)
@@ -45593,7 +45593,7 @@ function e_e({ readOnly: e, toast: t }) {
size: "xs",
iconOnly: !0,
leadingIcon: jT,
- "aria-label": `拉取 ${dL(e.row.original)}`,
+ "aria-label": `拉取 ${uL(e.row.original)}`,
disabled: h.current.readOnly,
...X(h.current.busy === `check-${e.row.original.id}`),
onClick: () => h.current.fetch(e.row.original)
@@ -45603,7 +45603,7 @@ function e_e({ readOnly: e, toast: t }) {
size: "xs",
iconOnly: !0,
leadingIcon: wT,
- "aria-label": `移除 ${dL(e.row.original)}`,
+ "aria-label": `移除 ${uL(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
})
@@ -45611,7 +45611,7 @@ function e_e({ readOnly: e, toast: t }) {
})
})
];
- }, []), _ = (0, R.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = aL({
+ }, []), _ = (0, R.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = iL({
data: a,
columns: g,
getRowId: (e) => String(e.id),
@@ -45627,24 +45627,24 @@ function e_e({ readOnly: e, toast: t }) {
let t = typeof e == "function" ? e(_) : e;
s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: nL(),
- getPaginationRowModel: rL()
+ getCoreRowModel: tL(),
+ getPaginationRowModel: nL()
});
if (!i) return n.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "打不开订阅源",
children: U(n.error)
}) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "正在读订阅源。" });
- let y = () => void r.run("check", (e) => SF(e), () => void uL()), b = (e) => s((t) => {
+ let y = () => void r.run("check", (e) => xF(e), () => void lL()), b = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), x = a.filter((e) => o.has(e.id)), S = a.filter((e) => e.last_error);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, B.jsx)(zge, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bge, {
readOnly: e,
toast: t,
- onAdded: () => void uL()
+ onAdded: () => void lL()
}), /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": "JAV 订阅列表",
className: AE({
@@ -45675,11 +45675,11 @@ function e_e({ readOnly: e, toast: t }) {
className: "flex flex-col gap-3",
children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
- title: `${dL(e)} 拉取失败`,
+ title: `${uL(e)} 拉取失败`,
children: e.last_error
}, e.id)), r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(oS, {
+ /* @__PURE__ */ (0, B.jsxs)(sS, {
visible: x.length > 0,
label: "订阅源批量操作",
count: `已选 ${x.length} 条订阅源`,
@@ -45711,7 +45711,7 @@ function e_e({ readOnly: e, toast: t }) {
size: "small",
disabled: e,
...X(p.isPending),
- onClick: () => void fL(x, () => p.mutateAsync({
+ onClick: () => void dL(x, () => p.mutateAsync({
ids: x.map((e) => e.id),
action: "remove"
})),
@@ -45725,22 +45725,22 @@ function e_e({ readOnly: e, toast: t }) {
})
]
}),
- a.length ? /* @__PURE__ */ (0, B.jsx)(YM, {
+ a.length ? /* @__PURE__ */ (0, B.jsx)(JM, {
onRowClick: (e) => b(Number(e)),
- children: /* @__PURE__ */ (0, B.jsxs)(qM, {
+ children: /* @__PURE__ */ (0, B.jsxs)(KM, {
"aria-label": "JAV 订阅源",
size: "sm",
children: [/* @__PURE__ */ (0, B.jsx)(rk, { children: v.getHeaderGroups()[0].headers.map((e) => {
- let t = iL(e.column.columnDef.header, e.getContext());
+ let t = rL(e.column.columnDef.header, e.getContext());
return /* @__PURE__ */ (0, B.jsx)(ik, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: qge.has(e.column.id) ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : t
+ children: Jge.has(e.column.id) ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : t
}, e.id);
}) }), /* @__PURE__ */ (0, B.jsx)(ok, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, B.jsx)(lk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: iL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: rL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
}) : /* @__PURE__ */ (0, B.jsx)(jE, {
@@ -45763,12 +45763,12 @@ function e_e({ readOnly: e, toast: t }) {
onSelectionChange: (e) => {
e !== null && (d(Number(e)), l(1));
},
- children: QP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: ZP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(lL, {
+ /* @__PURE__ */ (0, B.jsx)(cL, {
label: "JAV 订阅分页",
page: f.page,
pages: f.pages,
@@ -45790,29 +45790,29 @@ function e_e({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/wants/resource-cache.ts
-var pL = "peach.want-resources.v1", mL = 864e5;
-function hL(e, t = Date.now()) {
+var fL = "peach.want-resources.v1", pL = 864e5;
+function mL(e, t = Date.now()) {
let n = Date.parse(e || ""), r = new Date(t), i = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate())), a = i.getUTCDate();
i.setUTCHours(0, 0, 0, 0), i.setUTCDate(1), i.setUTCMonth(i.getUTCMonth() - 3);
let o = new Date(Date.UTC(i.getUTCFullYear(), i.getUTCMonth() + 1, 0)).getUTCDate();
- return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * mL : 7 * mL;
+ return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * pL : 7 * pL;
}
-function gL() {
+function hL() {
try {
- let e = JSON.parse(localStorage.getItem(pL) || "[]");
+ let e = JSON.parse(localStorage.getItem(fL) || "[]");
return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items)) : [];
} catch {
return [];
}
}
-function t_e(e, t) {
- let n = gL().find((t) => t.code === e);
- return n && Date.now() - n.saved < hL(t) ? n : void 0;
-}
function n_e(e, t) {
+ let n = hL().find((t) => t.code === e);
+ return n && Date.now() - n.saved < mL(t) ? n : void 0;
+}
+function r_e(e, t) {
if (t.state === "ready") try {
- let n = gL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(pL, JSON.stringify([{
+ let n = hL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(fL, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -45821,7 +45821,7 @@ function n_e(e, t) {
}
//#endregion
//#region src/react/wants/want-magnets.tsx
-function _L({ icon: e, children: t }) {
+function gL({ icon: e, children: t }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "inline-flex items-center gap-1",
children: [/* @__PURE__ */ (0, B.jsx)(e, {
@@ -45830,8 +45830,8 @@ function _L({ icon: e, children: t }) {
}), t]
});
}
-function r_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
- let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, R.useState)([]), d = IE(), f = cS(), p = (0, R.useRef)(!1), m = (0, R.useMemo)(() => t_e(e.code || "", e.release_date), [e.code, e.release_date]);
+function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
+ let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, R.useState)([]), d = IE(), f = lS(), p = (0, R.useRef)(!1), m = (0, R.useMemo)(() => n_e(e.code || "", e.release_date), [e.code, e.release_date]);
(0, R.useEffect)(() => {
if (!o.current || s) return;
let e = new IntersectionObserver((t) => {
@@ -45839,7 +45839,7 @@ function r_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}, { rootMargin: "100px" });
return e.observe(o.current), () => e.disconnect();
}, [s]);
- let h = wS({
+ let h = TS({
queryKey: [
"want-magnets",
e.id,
@@ -45847,15 +45847,15 @@ function r_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
],
queryFn: async ({ signal: t }) => {
let n = p.current, r = await W(`/api/wants/magnets?id=${e.id}${n ? "&refresh=1" : ""}`, t);
- return p.current = n && r.state === "busy", n_e(e.code || "", r), r;
+ return p.current = n && r.state === "busy", r_e(e.code || "", r), r;
},
initialData: m?.result,
initialDataUpdatedAt: m?.saved,
enabled: s,
retry: !1,
- staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : hL(e.release_date)) ? Infinity : 0,
+ staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : mL(e.release_date)) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : hL(e.release_date)) && "always",
+ refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : mL(e.release_date)) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
@@ -45953,23 +45953,23 @@ function r_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(_L, {
+ /* @__PURE__ */ (0, B.jsx)(gL, {
icon: kT,
children: e.source
}),
- /* @__PURE__ */ (0, B.jsx)(_L, {
+ /* @__PURE__ */ (0, B.jsx)(gL, {
icon: DT,
children: e.size || "大小未知"
}),
- e.files ? /* @__PURE__ */ (0, B.jsx)(_L, {
+ e.files ? /* @__PURE__ */ (0, B.jsx)(gL, {
icon: eae,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, B.jsx)(_L, {
+ /* @__PURE__ */ (0, B.jsx)(gL, {
icon: Yie,
children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"
}),
- e.attributes.map((e) => /* @__PURE__ */ (0, B.jsx)(_L, {
+ e.attributes.map((e) => /* @__PURE__ */ (0, B.jsx)(gL, {
icon: AT,
children: e
}, e))
@@ -46025,41 +46025,41 @@ function r_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}
//#endregion
//#region src/react/wants/wants.ts
-var vL = "/api/wants", yL = ["wants"], i_e = (e) => [
+var _L = "/api/wants", vL = ["wants"], a_e = (e) => [
"wants",
"follow",
e
-], a_e = [
+], o_e = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], o_e = (e) => W(vL, e), s_e = (e, t) => W(`${vL}?follow=${encodeURIComponent(e)}`, t), bL = (e, t) => G(vL, {
+], s_e = (e) => W(_L, e), c_e = (e, t) => W(`${_L}?follow=${encodeURIComponent(e)}`, t), yL = (e, t) => G(_L, {
action: "add",
...e
-}, "POST", t), xL = (e, t) => G(vL, {
+}, "POST", t), bL = (e, t) => G(_L, {
action: "remove",
ids: e
-}, "POST", t), c_e = (e, t) => G(vL, {
+}, "POST", t), l_e = (e, t) => G(_L, {
action: "reset",
ids: e
-}, "POST", t), SL = () => p.invalidateQueries({ queryKey: yL }), CL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function l_e(e) {
+}, "POST", t), xL = () => p.invalidateQueries({ queryKey: vL }), SL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function u_e(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
//#region src/react/wants/want-list.tsx
-var u_e = {
+var d_e = {
code: "手动添加",
feed: "Feed 新作",
follow: "关注"
-}, wL = (e) => [
+}, CL = (e) => [
e.release_date,
e.studio,
e.performers,
- u_e[e.origin]
+ d_e[e.origin]
].filter(Boolean).join(" · ");
-function d_e({ want: e }) {
+function f_e({ want: e }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
@@ -46075,7 +46075,7 @@ function d_e({ want: e }) {
}) : null]
});
}
-function f_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
+function p_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
let [l, u] = (0, R.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-want-id": e.id,
@@ -46085,27 +46085,27 @@ function f_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
}),
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-start gap-4 max-sm:gap-3",
- children: [/* @__PURE__ */ (0, B.jsx)(d_e, { want: e }), /* @__PURE__ */ (0, B.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, B.jsx)(f_e, { want: e }), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, B.jsxs)("p", {
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
children: [/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-headline-medium text-text-primary",
- children: CL(e)
+ children: SL(e)
}), e.code && e.title ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- wL(e) ? /* @__PURE__ */ (0, B.jsx)("p", {
+ CL(e) ? /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: wL(e)
+ children: CL(e)
}) : null,
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, B.jsx)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: l_e(e)
+ children: u_e(e)
}) : null,
e.scrape_error ? /* @__PURE__ */ (0, B.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -46153,7 +46153,7 @@ function f_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
})
]
})]
- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, B.jsx)(r_e, {
+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, B.jsx)(i_e, {
want: e,
readOnly: t,
downloads: o,
@@ -46163,27 +46163,27 @@ function f_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
}) : null]
});
}
-function p_e({ readOnly: e, toast: t, cloudDownload: n }) {
- let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = IE(), c = wS({
- queryKey: yL,
- queryFn: ({ signal: e }) => o_e(e),
+function m_e({ readOnly: e, toast: t, cloudDownload: n }) {
+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = IE(), c = TS({
+ queryKey: vL,
+ queryFn: ({ signal: e }) => s_e(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), l = () => {
let n = r.trim();
- !n || e || s.run("add", (e) => bL({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${CL(e.want)}` : `${CL(e.want)} 已经在想要里`), i(""), SL();
+ !n || e || s.run("add", (e) => yL({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${SL(e.want)}` : `${SL(e.want)} 已经在想要里`), i(""), xL();
});
}, u = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), l());
}, d = (e) => {
- s.run(`remove:${e.id}`, (t) => xL([e.id], t), () => {
- t(`已移除:${CL(e)}`), SL();
+ s.run(`remove:${e.id}`, (t) => bL([e.id], t), () => {
+ t(`已移除:${SL(e)}`), xL();
});
}, f = (e) => {
- s.run(`reset:${e.id}`, (t) => c_e([e.id], t), () => {
- t(`${CL(e)} 回到待找`), SL();
+ s.run(`reset:${e.id}`, (t) => l_e([e.id], t), () => {
+ t(`${SL(e)} 回到待找`), xL();
});
- }, p = c.data, m = p?.items || [], h = wS({
+ }, p = c.data, m = p?.items || [], h = TS({
queryKey: rA,
queryFn: ({ signal: e }) => W(`${nA}?limit=100`, e),
enabled: m.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
@@ -46276,7 +46276,7 @@ function p_e({ readOnly: e, toast: t, cloudDownload: n }) {
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
- a_e.map(([r, i]) => {
+ o_e.map(([r, i]) => {
let a = m.filter((e) => e.phase === r);
return a.length ? /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": i,
@@ -46290,7 +46290,7 @@ function p_e({ readOnly: e, toast: t, cloudDownload: n }) {
})]
}), /* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex flex-col gap-4",
- children: a.map((r) => /* @__PURE__ */ (0, B.jsx)(f_e, {
+ children: a.map((r) => /* @__PURE__ */ (0, B.jsx)(p_e, {
want: r,
readOnly: e,
busy: s.busy,
@@ -46313,14 +46313,14 @@ function p_e({ readOnly: e, toast: t, cloudDownload: n }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var TL = [
+var wL = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["wants", "JAV 入库"],
["source", "来源和凭证"]
-], EL = (e) => TL.some(([t]) => t === e);
-function DL({ term: e, figure: t, unit: n }) {
+], TL = (e) => wL.some(([t]) => t === e);
+function EL({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: AE({
padding: "none",
@@ -46338,23 +46338,23 @@ function DL({ term: e, figure: t, unit: n }) {
})]
});
}
-function m_e(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(EL(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => zP(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => zP(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Tme(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(Eme(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = wS({
+function h_e(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(TL(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => RP(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => RP(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Eme(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(Dme(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = TS({
+ queryKey: qP,
+ queryFn: ({ signal: e }) => fF(e)
+ }), w = TS({
queryKey: JP,
queryFn: ({ signal: e }) => pF(e)
- }), w = wS({
+ }), T = TS({
queryKey: YP,
- queryFn: ({ signal: e }) => mF(e)
- }), T = wS({
- queryKey: XP,
- queryFn: ({ signal: e }) => yF(e)
+ queryFn: ({ signal: e }) => vF(e)
}), E = C.data || { sources: [] }, D = w.data || {
root: "",
providers: []
}, O = E.sources;
(0, R.useEffect)(() => {
S((e) => {
- let t = Mme(e, O);
+ let t = Nme(e, O);
return t.size === e.size ? e : t;
});
}, [O]);
@@ -46364,9 +46364,9 @@ function m_e(e) {
tab: e.tab ?? l,
page: e.page ?? d,
sort: n === "checked" ? "" : n,
- dir: r === RP[n] ? "" : r
+ dir: r === LP[n] ? "" : r
});
- }, A = lF(O), j = O.filter(tF).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !OF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ }, A = cF(O), j = O.filter(eF).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !DF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
o ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
@@ -46382,35 +46382,35 @@ function m_e(e) {
children: s
}) : null,
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: ude,
+ className: dde,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, B.jsx)(DL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "关注创作者",
figure: A.length,
unit: "位"
}),
- /* @__PURE__ */ (0, B.jsx)(DL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "启用来源",
figure: M,
unit: `/ ${O.length}`
}),
- /* @__PURE__ */ (0, B.jsx)(DL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "检查失败",
figure: j,
unit: "个来源"
}),
- /* @__PURE__ */ (0, B.jsx)(DL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "未看更新",
figure: E.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, B.jsx)(DL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "JAV 订阅",
figure: ee,
unit: "位"
}),
- /* @__PURE__ */ (0, B.jsx)(DL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "未看新作",
figure: T.data?.unread || 0,
unit: "条"
@@ -46421,7 +46421,7 @@ function m_e(e) {
selectedKey: l,
onSelectionChange: (e) => {
let t = String(e);
- EL(t) && (u(t), k({ tab: t }));
+ TL(t) && (u(t), k({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
@@ -46430,7 +46430,7 @@ function m_e(e) {
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: TL.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(_k, {
+ children: wL.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(_k, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && N ? `${t}(${N})` : t
@@ -46439,7 +46439,7 @@ function m_e(e) {
/* @__PURE__ */ (0, B.jsx)(vk, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, B.jsx)(Gge, {
+ children: /* @__PURE__ */ (0, B.jsx)(Kge, {
data: E,
sort: p,
dir: h,
@@ -46472,7 +46472,7 @@ function m_e(e) {
/* @__PURE__ */ (0, B.jsxs)(vk, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, B.jsx)(Vhe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Hhe, {
data: E,
credentials: D,
readOnly: o,
@@ -46480,7 +46480,7 @@ function m_e(e) {
openCredentials: () => {
u("source"), k({ tab: "source" });
}
- }), /* @__PURE__ */ (0, B.jsx)(Whe, {
+ }), /* @__PURE__ */ (0, B.jsx)(Ghe, {
groups: E.author_aliases || [],
readOnly: o,
toast: r,
@@ -46491,7 +46491,7 @@ function m_e(e) {
/* @__PURE__ */ (0, B.jsx)(vk, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, B.jsx)(e_e, {
+ children: /* @__PURE__ */ (0, B.jsx)(t_e, {
readOnly: o,
toast: r
})
@@ -46499,7 +46499,7 @@ function m_e(e) {
/* @__PURE__ */ (0, B.jsx)(vk, {
id: "wants",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, B.jsx)(p_e, {
+ children: /* @__PURE__ */ (0, B.jsx)(m_e, {
readOnly: o,
toast: r,
cloudDownload: a
@@ -46508,7 +46508,7 @@ function m_e(e) {
/* @__PURE__ */ (0, B.jsx)(vk, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, B.jsx)($he, {
+ children: /* @__PURE__ */ (0, B.jsx)(ege, {
data: D,
readOnly: o,
toast: r
@@ -46520,15 +46520,15 @@ function m_e(e) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function OL({ value: e }) {
+function DL({ value: e }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var h_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function kL({ tabs: e, value: t, label: n, onChange: r }) {
+var g_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function OL({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -46563,7 +46563,7 @@ function kL({ tabs: e, value: t, label: n, onChange: r }) {
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: h_e,
+ className: g_e,
onClick: () => {
i || r(e.value);
},
@@ -46579,23 +46579,23 @@ function kL({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var AL = () => /* @__PURE__ */ (0, B.jsx)("span", {
+var kL = () => /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function g_e({ tag: e, actions: t }) {
+function __e({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": PN(t.online, e.cat),
+ "data-tag-cat": NN(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",
children: [
- /* @__PURE__ */ (0, B.jsx)(AL, {}),
+ /* @__PURE__ */ (0, B.jsx)(kL, {}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -46607,7 +46607,7 @@ function g_e({ tag: e, actions: t }) {
]
});
}
-function __e({ groups: e, actions: t }) {
+function v_e({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
@@ -46620,10 +46620,10 @@ function __e({ groups: e, actions: t }) {
}),
children: [/* @__PURE__ */ (0, B.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, B.jsx)(OL, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, B.jsx)(DL, { value: n.length })]
}), /* @__PURE__ */ (0, B.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, B.jsx)(g_e, {
+ children: n.map((e) => /* @__PURE__ */ (0, B.jsx)(__e, {
tag: e,
actions: t
}, e.k))
@@ -46631,8 +46631,8 @@ function __e({ groups: e, actions: t }) {
}, e))
});
}
-var v_e = "\xA0";
-function y_e({ tags: e, actions: t }) {
+var y_e = "\xA0";
+function b_e({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -46640,11 +46640,11 @@ function y_e({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": PN(t.online, e.cat),
+ "data-tag-cat": NN(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",
- children: [e.label + v_e, /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [e.label + y_e, /* @__PURE__ */ (0, B.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -46652,7 +46652,7 @@ function y_e({ tags: e, actions: t }) {
}, e.k))
});
}
-var b_e = [[
+var x_e = [[
"cloud",
"标签云",
"tags"
@@ -46661,16 +46661,16 @@ var b_e = [[
"字母表",
"text-aa"
]];
-function x_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+function S_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
return /* @__PURE__ */ (0, B.jsx)(dA, {
label: "标签筛选",
topLabel: "标签类型",
top: e.map(([e, r]) => /* @__PURE__ */ (0, B.jsxs)(fA, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : PN(n, e),
+ "data-tag-cat": e === "all" ? "all" : NN(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, B.jsx)(AL, {}), r]
+ children: [/* @__PURE__ */ (0, B.jsx)(kL, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsx)("span", {
@@ -46695,7 +46695,7 @@ function x_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
value: a,
onChange: (e) => c(e),
className: `ml-auto ${bA}`,
- children: b_e.map(([e, t, n]) => {
+ children: x_e.map(([e, t, n]) => {
let r = CA(n);
return /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
@@ -46713,13 +46713,13 @@ function x_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function S_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, B.jsxs)(oS, {
+function C_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, B.jsxs)(sS, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, B.jsx)(KM, {
+ /* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -46751,7 +46751,7 @@ function S_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var C_e = [{
+var w_e = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -46759,7 +46759,7 @@ var C_e = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], w_e = [{
+}], T_e = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -46767,7 +46767,7 @@ var C_e = [{
value: "online",
label: "在线",
symbol: "rss"
-}], T_e = [
+}], E_e = [
{
value: "performers",
label: "艺人",
@@ -46783,7 +46783,7 @@ var C_e = [{
label: "在线",
symbol: "rss"
}
-], E_e = {
+], D_e = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -46803,15 +46803,15 @@ var C_e = [{
"layout-grid"
]]
};
-function D_e({ kind: e, layout: t, onChange: n }) {
+function O_e({ kind: e, layout: t, onChange: n }) {
return /* @__PURE__ */ (0, B.jsx)(_A, {
- "aria-label": `${SN[e]}索引版式`,
+ "aria-label": `${xN[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
className: `flex-none max-board-narrow:order-3 ${vA}`,
- children: E_e[ON(e) ? "company" : "people"].map(([e, t, n]) => {
+ children: D_e[DN(e) ? "company" : "people"].map(([e, t, n]) => {
let r = CA(n);
return /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
@@ -46826,8 +46826,8 @@ function D_e({ kind: e, layout: t, onChange: n }) {
})
});
}
-var O_e = CA("search");
-function k_e({ label: e, value: t, onQuery: n }) {
+var k_e = CA("search");
+function A_e({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, R.useState)(t), a = (0, R.useRef)(!1), o = (0, R.useRef)(void 0);
(0, R.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -46850,7 +46850,7 @@ function k_e({ label: e, value: t, onQuery: n }) {
},
children: /* @__PURE__ */ (0, B.jsx)(Sk, {
type: "search",
- leadingIcon: O_e,
+ leadingIcon: k_e,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -46860,14 +46860,14 @@ function k_e({ label: e, value: t, onQuery: n }) {
})
});
}
-function A_e(e) {
- let [t, n] = (0, R.useState)(() => kN({
+function j_e(e) {
+ let [t, n] = (0, R.useState)(() => ON({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = SN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
+ })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = xN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
(0, R.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -46877,7 +46877,7 @@ function A_e(e) {
...r
};
y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, x = NN(AN(t)), S = OS({
+ }, x = MN(kN(t)), S = kS({
queryKey: x.queryKey,
queryFn: ({ pageParam: e, signal: t }) => x.queryFn({
pageParam: e,
@@ -46885,22 +46885,22 @@ function A_e(e) {
}),
initialPageParam: 0,
getNextPageParam: x.getNextPageParam,
- placeholderData: v ? kS.keepPreviousData : void 0
- }), C = Ife(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Lfe(C.length, !!S.hasNextPage);
+ placeholderData: v ? AS.keepPreviousData : void 0
+ }), C = Lfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Rfe(C.length, !!S.hasNextPage);
(0, R.useLayoutEffect)(() => {
l.current && se(l.current);
}, [r]);
let E = (0, R.useMemo)(() => u === "tags" ? C.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [C, u]), D = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Bfe(E, (t) => e.tagLabel(t)) : [], [
+ })) : [], [C, u]), D = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Vfe(E, (t) => e.tagLabel(t)) : [], [
E,
p,
u
]), O = (t) => {
i(t), e.savePreference({ layout: t });
- }, k = u === "tags" ? /* @__PURE__ */ (0, B.jsx)(kL, {
- tabs: w_e,
+ }, k = u === "tags" ? /* @__PURE__ */ (0, B.jsx)(OL, {
+ tabs: T_e,
value: f,
label: "词表",
onChange: (e) => {
@@ -46910,8 +46910,8 @@ function A_e(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : ON(u) ? /* @__PURE__ */ (0, B.jsx)(kL, {
- tabs: C_e,
+ }) : DN(u) ? /* @__PURE__ */ (0, B.jsx)(OL, {
+ tabs: w_e,
value: u,
label: "公司类型",
onChange: (e) => b({ kind: e })
@@ -46928,7 +46928,7 @@ function A_e(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, j = (g ? wN : CN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, j = (g ? CN : SN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, B.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -46943,12 +46943,12 @@ function A_e(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: h
}),
- DN(u) ? /* @__PURE__ */ (0, B.jsx)("span", {
+ EN(u) ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: S.isPending ? "" : T
}) : null,
- DN(u) ? /* @__PURE__ */ (0, B.jsx)(D_e, {
+ EN(u) ? /* @__PURE__ */ (0, B.jsx)(O_e, {
kind: u,
layout: r,
onChange: O
@@ -46957,7 +46957,7 @@ function A_e(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, B.jsx)(k_e, {
+ /* @__PURE__ */ (0, B.jsx)(A_e, {
label: `过滤${h}`,
value: d,
onQuery: (e) => {
@@ -46966,8 +46966,8 @@ function A_e(e) {
})
]
}),
- u === "performers" || u === "creators" ? /* @__PURE__ */ (0, B.jsx)(kL, {
- tabs: T_e,
+ u === "performers" || u === "creators" ? /* @__PURE__ */ (0, B.jsx)(OL, {
+ tabs: E_e,
value: _ ? "online" : u,
label: "人物名册",
onChange: (t) => {
@@ -46982,7 +46982,7 @@ function A_e(e) {
u === "performers" && f === "local" ? /* @__PURE__ */ (0, B.jsx)("div", {
"aria-label": "身份分类",
className: "mb-4 flex flex-wrap gap-2",
- children: TN[u].filter(([e]) => e === "all" || e === m || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(J, {
+ children: wN[u].filter(([e]) => e === "all" || e === m || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(J, {
variant: m === e ? "primary" : "secondary",
size: "small",
"aria-pressed": m === e,
@@ -46990,7 +46990,7 @@ function A_e(e) {
children: t
}, e))
}) : null,
- u === "tags" ? /* @__PURE__ */ (0, B.jsx)(x_e, {
+ u === "tags" ? /* @__PURE__ */ (0, B.jsx)(S_e, {
categories: j,
category: m,
online: g,
@@ -47025,18 +47025,18 @@ function A_e(e) {
}),
children: Te(S.error)
});
- if (!C.length) return /* @__PURE__ */ (0, B.jsx)(M_e, {
+ if (!C.length) return /* @__PURE__ */ (0, B.jsx)(N_e, {
kind: u,
filtered: !!d || m !== "all",
online: g || _,
configurable: e.configurable
});
- if (_) return /* @__PURE__ */ (0, B.jsx)(Hfe, {
+ if (_) return /* @__PURE__ */ (0, B.jsx)(Ufe, {
items: C,
layout: r,
props: e
});
- if (DN(u)) return /* @__PURE__ */ (0, B.jsx)(LN, {
+ if (EN(u)) return /* @__PURE__ */ (0, B.jsx)(IN, {
kind: u,
items: C,
layout: r,
@@ -47047,10 +47047,10 @@ function A_e(e) {
picked: a,
press: A
};
- return p === "alphabet" ? /* @__PURE__ */ (0, B.jsx)(__e, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, B.jsx)(v_e, {
groups: D,
actions: t
- }) : /* @__PURE__ */ (0, B.jsx)(y_e, {
+ }) : /* @__PURE__ */ (0, B.jsx)(b_e, {
tags: E,
actions: t
});
@@ -47071,7 +47071,7 @@ function A_e(e) {
}) : "载入更多"
})
}) : null,
- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, B.jsx)(S_e, {
+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, B.jsx)(C_e, {
count: a.size,
match: s,
onMatch: c,
@@ -47084,14 +47084,14 @@ function A_e(e) {
]
});
}
-var j_e = {
+var M_e = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
-function M_e({ kind: e, filtered: t, online: n, configurable: r }) {
+function N_e({ kind: e, filtered: t, online: n, configurable: r }) {
if (t) return /* @__PURE__ */ (0, B.jsx)(jE, {
icon: CA("search"),
title: "没有符合条件的内容",
@@ -47102,7 +47102,7 @@ function M_e({ kind: e, filtered: t, online: n, configurable: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : j_e[e], a = /* @__PURE__ */ (0, B.jsx)(kE, {
+ let i = n && e === "performers" ? "创作者" : M_e[e], a = /* @__PURE__ */ (0, B.jsx)(kE, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
@@ -47118,15 +47118,15 @@ function M_e({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var jL = {
+var AL = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, N_e = (e) => jL[e.junk_kind || "other"] || jL.other;
-function P_e(e) {
+}, P_e = (e) => AL[e.junk_kind || "other"] || AL.other;
+function F_e(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -47137,21 +47137,21 @@ function P_e(e) {
glyph: "check"
};
}
-var ML = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), F_e = (e, t) => [
+var jL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), I_e = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function I_e({ kind: e, view: t }) {
+function L_e({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function L_e(e, t) {
- let n = await W(`/api/ads?${I_e(e)}`, t);
+async function R_e(e, t) {
+ let n = await W(`/api/ads?${L_e(e)}`, t);
return {
...n,
items: n.items || []
@@ -47159,19 +47159,19 @@ async function L_e(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function NL({ name: e }) {
+function ML({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-var PL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function R_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = e.junk_kind || "other", [f, p] = N_e(e), m = String(e.name || ""), h = P_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
- t.target.closest("[data-junk-actions]") || PL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var NL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function z_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = e.junk_kind || "other", [f, p] = P_e(e), m = String(e.name || ""), h = F_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+ t.target.closest("[data-junk-actions]") || NL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- if (t.stopPropagation(), PL(r, t)) {
+ if (t.stopPropagation(), NL(r, t)) {
t.preventDefault(), a.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -47213,7 +47213,7 @@ function R_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: p }), /* @__PURE__ */ (0, B.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: p }), /* @__PURE__ */ (0, B.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-art": "thumb",
@@ -47225,7 +47225,7 @@ function R_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, B.jsx)(NL, { name: "check" })
+ children: /* @__PURE__ */ (0, B.jsx)(ML, { name: "check" })
})
]
}),
@@ -47262,7 +47262,7 @@ function R_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Qe("正在定位") }
- }) : /* @__PURE__ */ (0, B.jsx)(NL, { name: "folder-open" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ }) : /* @__PURE__ */ (0, B.jsx)(ML, { name: "folder-open" }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -47274,7 +47274,7 @@ function R_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: h.glyph }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: h.glyph }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -47286,7 +47286,7 @@ function R_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -47301,7 +47301,7 @@ function R_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var z_e = (0, R.memo)(R_e), FL = [
+var B_e = (0, R.memo)(z_e), PL = [
[
"",
"全部",
@@ -47338,53 +47338,53 @@ var z_e = (0, R.memo)(R_e), FL = [
"hard-drive"
]
];
-function IL(e = "", t = "pending") {
+function FL(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 B_e(e) {
+function V_e(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: IL("", "pending")
+ href: FL("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: IL("", "dismissed")
+ href: FL("", "dismissed")
};
}
-var V_e = (e) => e === "dismissed" ? "已排除" : "待判断";
+var H_e = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function LL({ name: e }) {
+function IL({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function RL({ scope: e, count: t }) {
+function LL({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function H_e({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = PM(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = mA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? FL.map(([e]) => ML(t, e)).join(",") : ""}`), l = B_e(s), u = (e) => {
+function U_e({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = NM(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = mA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? PL.map(([e]) => jL(t, e)).join(",") : ""}`), l = V_e(s), u = (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") || IL()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || FL()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, B.jsx)(OP, {
- label: V_e(s),
+ children: /* @__PURE__ */ (0, B.jsx)(DP, {
+ label: H_e(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -47404,17 +47404,17 @@ function H_e({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- FL.map(([e, n, r]) => /* @__PURE__ */ (0, B.jsxs)("a", {
- href: IL(e, s),
+ PL.map(([e, n, r]) => /* @__PURE__ */ (0, B.jsxs)("a", {
+ href: FL(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, B.jsx)(LL, { name: r }),
+ /* @__PURE__ */ (0, B.jsx)(IL, { name: r }),
n,
- /* @__PURE__ */ (0, B.jsx)(RL, {
+ /* @__PURE__ */ (0, B.jsx)(LL, {
scope: e,
- count: t ? ML(t, e) : 0
+ count: t ? jL(t, e) : 0
})
]
}, e || "all")),
@@ -47428,9 +47428,9 @@ function H_e({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, B.jsx)(LL, { name: l.glyph }),
+ /* @__PURE__ */ (0, B.jsx)(IL, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, B.jsx)(RL, {
+ /* @__PURE__ */ (0, B.jsx)(LL, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -47443,33 +47443,33 @@ function H_e({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var U_e = CA("check"), W_e = (e, t) => e[1] === t.view && e[2] === t.kind;
-function G_e(e) {
+var W_e = CA("check"), G_e = (e, t) => e[1] === t.view && e[2] === t.kind;
+function K_e(e) {
let t = {
kind: e.kind,
view: e.view
- }, n = wS({
- queryKey: F_e(t, e.revision),
- queryFn: ({ signal: e }) => L_e(t, e),
- placeholderData: (e, n) => n && W_e(n.queryKey, t) ? e : void 0
+ }, n = TS({
+ queryKey: I_e(t, e.revision),
+ queryFn: ({ signal: e }) => R_e(t, e),
+ placeholderData: (e, n) => n && G_e(n.queryKey, t) ? e : void 0
});
(0, R.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = K_e(e.countRow), i = n.isPending;
+ let r = q_e(e.countRow), i = n.isPending;
(0, R.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, R.useLayoutEffect)(() => {
r && n.data && Ue(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(H_e, {
+ let { navigate: a } = e.actions, o = r ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(U_e, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [o, /* @__PURE__ */ (0, B.jsx)(q_e, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [o, /* @__PURE__ */ (0, B.jsx)(J_e, {
props: e,
data: n.data,
pending: i,
@@ -47477,7 +47477,7 @@ function G_e(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function K_e(e) {
+function q_e(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!e) return;
@@ -47487,7 +47487,7 @@ function K_e(e) {
};
}, [e]), t;
}
-function q_e({ props: e, data: t, pending: n, error: r, retry: i }) {
+function J_e({ props: e, data: t, pending: n, error: r, retry: i }) {
let a = MA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
@@ -47503,7 +47503,7 @@ function q_e({ props: e, data: t, pending: n, error: r, retry: i }) {
if (!l.length) {
let t = e.view === "dismissed";
return /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: U_e,
+ icon: W_e,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -47512,7 +47512,7 @@ function q_e({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, B.jsx)(z_e, {
+ children: u.map((t) => /* @__PURE__ */ (0, B.jsx)(B_e, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -47520,11 +47520,11 @@ function q_e({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, B.jsx)(J_e, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, B.jsx)(Y_e, { onMore: f }, s) : null] });
})()]
});
}
-function J_e({ onMore: e }) {
+function Y_e({ onMore: e }) {
let t = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
let n = t.current;
@@ -47542,12 +47542,12 @@ function J_e({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var zL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", Y_e = {
- gray: `${zL} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${zL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${zL} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var RL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", X_e = {
+ gray: `${RL} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${RL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${RL} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function X_e({ value: e, max: t }) {
+function Z_e({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, B.jsxs)("svg", {
role: "progressbar",
@@ -47575,16 +47575,16 @@ function X_e({ value: e, max: t }) {
})]
});
}
-function Z_e(e) {
- let { job: t } = zM(e), n = t.data, r = t.isError ? n ? rj : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function Q_e(e) {
+ let { job: t } = RM(e), n = t.data, r = t.isError ? n ? rj : U(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 ? "扫描与资料采集未完成" : aj(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? oae : Zie;
return /* @__PURE__ */ (0, B.jsxs)("aside", {
role: a ? "alert" : "status",
- className: Y_e[s],
+ className: X_e[s],
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, B.jsx)(X_e, {
+ children: [o && l ? /* @__PURE__ */ (0, B.jsx)(Z_e, {
value: c,
max: l
}) : /* @__PURE__ */ (0, B.jsx)(d, {
@@ -47604,32 +47604,32 @@ function Z_e(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var Q_e = "/api/playlists", BL = "/api/playlist", VL = ["playlists"], HL = (e) => W(Q_e, e);
-async function $_e(e) {
+var $_e = "/api/playlists", zL = "/api/playlist", BL = ["playlists"], VL = (e) => W($_e, e);
+async function eve(e) {
await p.fetchQuery({
- queryKey: VL,
- queryFn: () => HL(e),
+ queryKey: BL,
+ queryFn: () => VL(e),
staleTime: 0
});
}
-var UL = () => p.invalidateQueries({
- queryKey: VL,
+var HL = () => p.invalidateQueries({
+ queryKey: BL,
exact: !0
-}), eve = (e) => e.current_asset_id || e.preview_asset_id || null, WL = (e) => `/poster?id=${e}&c=4`, tve = (e) => G(BL, {
+}), tve = (e) => e.current_asset_id || e.preview_asset_id || null, UL = (e) => `/poster?id=${e}&c=4`, nve = (e) => G(zL, {
action: "create",
name: e,
asset_ids: []
-}), GL = (e, t) => G(BL, {
+}), WL = (e, t) => G(zL, {
action: "rename",
id: e,
name: t
-}), KL = (e) => G(BL, {
+}), GL = (e) => G(zL, {
action: "delete",
id: e
-}), nve = (e) => W(`${BL}?id=${e}`).catch(() => null);
-function rve(e) {
+}), rve = (e) => W(`${zL}?id=${e}`).catch(() => null);
+function ive(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return G(BL, {
+ return G(zL, {
action: "create",
name: e.name,
asset_ids: t,
@@ -47639,18 +47639,18 @@ function rve(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var ive = CA("ellipsis"), ave = CA("pencil"), ove = CA("trash"), sve = CA("playlist"), qL = wE(Tk, Ek, "text-body-2-medium"), JL = "播放列表名称不能为空", YL = (e) => async () => {
+var ave = CA("ellipsis"), ove = CA("pencil"), sve = CA("trash"), cve = CA("playlist"), KL = wE(Tk, Ek, "text-body-2-medium"), qL = "播放列表名称不能为空", JL = (e) => async () => {
try {
await e();
} finally {
- UL();
+ HL();
}
};
-function cve({ toast: e }) {
- let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = DS({
- mutationFn: (e) => tve(e),
+function lve({ toast: e }) {
+ let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = OS({
+ mutationFn: (e) => nve(e),
onSuccess: (t) => {
- n(""), i(""), UL(), e("已新建播放列表", { undo: YL(() => KL(t.playlist.id)) });
+ n(""), i(""), HL(), e("已新建播放列表", { undo: JL(() => GL(t.playlist.id)) });
},
onError: (e) => i(U(e) || "新建失败")
});
@@ -47660,7 +47660,7 @@ function cve({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(JL);
+ i(qL);
return;
}
a.mutate(t);
@@ -47688,7 +47688,7 @@ function cve({ toast: e }) {
})]
});
}
-function lve({ target: e, close: t, toast: n }) {
+function uve({ target: e, close: t, toast: n }) {
let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (!e) return;
@@ -47698,14 +47698,14 @@ function lve({ target: e, close: t, toast: n }) {
});
return () => cancelAnimationFrame(t);
}, [e]);
- let c = DS({
- mutationFn: ({ row: e, value: t }) => GL(e.id, t),
+ let c = OS({
+ mutationFn: ({ row: e, value: t }) => WL(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), UL(), n("已重命名播放列表", { undo: YL(() => GL(r.id, r.name)) });
+ t(), HL(), n("已重命名播放列表", { undo: JL(() => WL(r.id, r.name)) });
},
onError: (e) => o(U(e))
});
- return /* @__PURE__ */ (0, B.jsx)(rP, {
+ return /* @__PURE__ */ (0, B.jsx)(nP, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -47717,7 +47717,7 @@ function lve({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(JL);
+ o(qL);
return;
}
c.mutate({
@@ -47760,7 +47760,7 @@ function lve({ target: e, close: t, toast: n }) {
})
});
}
-function uve({ name: e, onRename: t, onDelete: n }) {
+function dve({ name: e, onRename: t, onDelete: n }) {
let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -47774,7 +47774,7 @@ function uve({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, B.jsx)(ive, {
+ children: /* @__PURE__ */ (0, B.jsx)(ave, {
"aria-hidden": !0,
className: "size-4.5"
})
@@ -47785,22 +47785,22 @@ function uve({ name: e, onRename: t, onDelete: n }) {
placement: "bottom end",
offset: 4,
className: wk,
- children: /* @__PURE__ */ (0, B.jsxs)(OM, {
+ children: /* @__PURE__ */ (0, B.jsxs)(DM, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: qL,
+ className: KL,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, B.jsx)(ave, {
+ children: [/* @__PURE__ */ (0, B.jsx)(ove, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: qL,
+ className: KL,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, B.jsx)(ove, {
+ children: [/* @__PURE__ */ (0, B.jsx)(sve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -47808,13 +47808,13 @@ function uve({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function dve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
- let a = wS({
- queryKey: VL,
- queryFn: ({ signal: e }) => HL(e)
+function fve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
+ let a = TS({
+ queryKey: BL,
+ queryFn: ({ signal: e }) => VL(e)
}), [o, s] = (0, R.useState)(null), c = (0, R.useRef)(i);
(0, R.useEffect)(() => {
- c.current !== i && (c.current = i, UL());
+ c.current !== i && (c.current = i, HL());
}, [i]);
let l = a.data;
if (!l) return /* @__PURE__ */ (0, B.jsx)("div", {
@@ -47832,8 +47832,8 @@ function dve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await nve(e.id);
- await KL(e.id), UL(), r("已删除播放列表", t ? { undo: YL(() => rve(t)) } : void 0);
+ let t = await rve(e.id);
+ await GL(e.id), HL(), r("已删除播放列表", t ? { undo: JL(() => ive(t)) } : void 0);
}
});
};
@@ -47848,26 +47848,26 @@ function dve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}), /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, B.jsx)(cve, { toast: r })]
+ })] }), /* @__PURE__ */ (0, B.jsx)(lve, { toast: r })]
}),
u.length ? /* @__PURE__ */ (0, B.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: u.map((r) => {
- let i = eve(r);
+ let i = tve(r);
return /* @__PURE__ */ (0, B.jsx)(HA, {
"data-playlist-card": String(r.id),
name: r.name,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: r.item_count,
- poster: r.preview_asset_id ? WL(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(WL),
+ poster: r.preview_asset_id ? UL(r.preview_asset_id) : null,
+ flipImages: async () => (r.preview_ids || []).map(UL),
canFlip: n,
faces: r.faces || [],
onOpenEntity: t,
...i ? { onOpen: () => e(r.id, i) } : {},
openLabel: `打开播放列表 ${r.name}`,
- menu: /* @__PURE__ */ (0, B.jsx)(uve, {
+ menu: /* @__PURE__ */ (0, B.jsx)(dve, {
name: r.name,
onRename: () => s(r),
onDelete: () => d(r)
@@ -47875,11 +47875,11 @@ function dve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}, r.id);
})
}) : /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: sve,
+ icon: cve,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, B.jsx)(lve, {
+ /* @__PURE__ */ (0, B.jsx)(uve, {
target: o,
close: () => s(null),
toast: r
@@ -47889,7 +47889,7 @@ function dve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function fve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function pve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let o = () => t(e.id);
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-goal-id": e.id,
@@ -47967,8 +47967,8 @@ function fve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
})]
});
}
-function pve(e) {
- let t = wS({
+function mve(e) {
+ let t = TS({
queryKey: pj,
queryFn: ({ signal: e }) => mj(e)
}), n = t.data;
@@ -47978,13 +47978,13 @@ function pve(e) {
children: t.error ? U(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [/* @__PURE__ */ (0, B.jsx)(OP, {
+ return r.length ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [/* @__PURE__ */ (0, B.jsx)(DP, {
label: "待升级",
figure: `${n.total} 部作品`,
flush: !0
}), /* @__PURE__ */ (0, B.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, B.jsx)(fve, {
+ children: r.map((t) => /* @__PURE__ */ (0, B.jsx)(pve, {
item: t,
...e
}, t.id))
@@ -47997,7 +47997,7 @@ function pve(e) {
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function mve(e) {
+function hve(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 = pue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
role: "group",
@@ -48047,7 +48047,7 @@ function mve(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, B.jsxs)(oS, {
+ }), /* @__PURE__ */ (0, B.jsxs)(sS, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
@@ -48099,7 +48099,7 @@ function mve(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var hve = {
+var gve = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -48109,14 +48109,14 @@ var hve = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, XL = "reviewgenretags";
-function gve({ tags: e }) {
+}, YL = "reviewgenretags";
+function _ve({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("datalist", {
- id: XL,
+ id: YL,
children: e.map((e) => /* @__PURE__ */ (0, B.jsx)("option", { value: e }, e))
}) : null;
}
-function ZL({ candidate: e, selectable: t = !1 }) {
+function XL({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -48153,7 +48153,7 @@ function ZL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, B.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: hve[e] || e
+ children: gve[e] || e
}),
/* @__PURE__ */ (0, B.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -48168,11 +48168,11 @@ function ZL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function _ve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function vve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, B.jsx)(ZL, { candidate: a[0] })
+ children: /* @__PURE__ */ (0, B.jsx)(XL, { candidate: a[0] })
}) : /* @__PURE__ */ (0, B.jsx)(BO, {
"aria-label": `${t || "候选"}的来源`,
value: n,
@@ -48182,22 +48182,22 @@ function _ve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
children: a.map((e) => /* @__PURE__ */ (0, B.jsx)(VO, {
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, B.jsx)(ZL, {
+ children: /* @__PURE__ */ (0, B.jsx)(XL, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function vve({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = DS({
- mutationFn: (t) => kj(e, t),
+function yve({ genre: e, tags: t, locked: n, toast: r }) {
+ let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = OS({
+ mutationFn: (t) => xue(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await xue();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Sue();
},
onError: (e) => s(U(e))
}), l = () => {
@@ -48225,7 +48225,7 @@ function vve({ genre: e, tags: t, locked: n, toast: r }) {
className: "min-w-40 flex-1",
children: /* @__PURE__ */ (0, B.jsx)(Sk, {
size: "small",
- list: t.length ? XL : void 0,
+ list: t.length ? YL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -48257,7 +48257,7 @@ function vve({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function yve({ row: e, tags: t, locked: n, toast: r }) {
+function bve({ row: e, tags: t, locked: n, toast: r }) {
let i = vue(e);
return i.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
role: "group",
@@ -48266,7 +48266,7 @@ function yve({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, B.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(vve, {
+ }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(yve, {
genre: e,
tags: t,
locked: n,
@@ -48276,9 +48276,9 @@ function yve({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var QL = (e = "") => /^https?:\/\//i.test(e) ? e : "", bve = (e = "") => QL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function $L({ url: e }) {
- let t = bve(e || ""), [n, r] = (0, R.useState)(!1);
+var ZL = (e = "") => /^https?:\/\//i.test(e) ? e : "", xve = (e = "") => ZL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function QL({ url: e }) {
+ let t = xve(e || ""), [n, r] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, B.jsx)("img", {
@@ -48293,7 +48293,7 @@ function $L({ url: e }) {
})
});
}
-function eR({ asset: e, openItem: t }) {
+function $L({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -48326,14 +48326,14 @@ function eR({ asset: e, openItem: t }) {
})]
});
}
-function xve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function Sve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${sL}`,
+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${oL}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -48349,8 +48349,8 @@ function xve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Sve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = QL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function Cve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = ZL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, B.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -48375,7 +48375,7 @@ function Sve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, B.jsx)($L, { url: e.preview_url }),
+ /* @__PURE__ */ (0, B.jsx)(QL, { url: e.preview_url }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -48418,7 +48418,7 @@ function Sve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function Cve({ assets: e, picked: t, onPicked: n, locked: r }) {
+function wve({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, R.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -48474,7 +48474,7 @@ function Cve({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, B.jsx)(GM, {
+ children: /* @__PURE__ */ (0, B.jsx)(WM, {
size: "sm",
state: {
isSelected: n,
@@ -48494,19 +48494,19 @@ function Cve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var wve = AE({
+var Tve = AE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), tR = "flex min-h-6 min-w-0 items-center", Tve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Eve(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, R.useRef)(!1), m = PM(), h = PM(), g = t === "metadata_fields", _ = lue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = hue(t, n), x = Tj(t, n), S = wj(t, n), C = gue(n), w = _ue(n), T = Cj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
+}), eR = "flex min-h-6 min-w-0 items-center", Eve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function Dve(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, R.useRef)(!1), m = NM(), h = NM(), g = t === "metadata_fields", _ = lue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = hue(t, n), x = Tj(t, n), S = wj(t, n), C = gue(n), w = _ue(n), T = Cj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, B.jsx)(eR, {
+ children: E.map((e) => /* @__PURE__ */ (0, B.jsx)($L, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, B.jsx)(xve, {
+ }) : y ? /* @__PURE__ */ (0, B.jsx)(Sve, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -48517,14 +48517,14 @@ function Eve(e) {
image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, B.jsx)(eR, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, B.jsx)($L, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, j = g ? /* @__PURE__ */ (0, B.jsx)(_ve, {
+ }) : null, j = g ? /* @__PURE__ */ (0, B.jsx)(vve, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -48533,7 +48533,7 @@ function Eve(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, B.jsx)(Cve, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, B.jsx)(wve, {
assets: D,
picked: r.assets,
locked: s,
@@ -48546,15 +48546,15 @@ function Eve(e) {
icon: iae,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, B.jsx)(Sve, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, B.jsx)(Cve, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, B.jsx)($L, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, B.jsxs)("h4", {
- className: `${tR} flex-wrap gap-2`,
+ }) : /* @__PURE__ */ (0, B.jsx)(QL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, B.jsxs)("h4", {
+ className: `${eR} flex-wrap gap-2`,
children: [/* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "blue",
@@ -48565,7 +48565,7 @@ function Eve(e) {
children: S
})]
}) : /* @__PURE__ */ (0, B.jsx)("h4", {
- className: tR,
+ className: eR,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -48575,20 +48575,20 @@ function Eve(e) {
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${wve} ${Tve(t)} overflow-hidden`,
+ className: `${Tve} ${Eve(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, B.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${tR} shrink-0`,
+ className: `${eR} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, B.jsx)(KM, {
+ children: /* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -48632,7 +48632,7 @@ function Eve(e) {
})
}) : null,
j,
- /* @__PURE__ */ (0, B.jsx)(yve, {
+ /* @__PURE__ */ (0, B.jsx)(bve, {
row: n,
tags: u,
locked: s,
@@ -48694,8 +48694,8 @@ function Eve(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Dve = "flex cursor-pointer items-center justify-between gap-2";
-function Ove({ page: e, pages: t, onPage: n }) {
+var Ove = "flex cursor-pointer items-center justify-between gap-2";
+function kve({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, B.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -48732,7 +48732,7 @@ function Ove({ page: e, pages: t, onPage: n }) {
]
});
}
-function kve(e) {
+function Ave(e) {
let [t, n] = (0, R.useState)(() => matchMedia("(max-width:900px)").matches);
(0, R.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
@@ -48742,7 +48742,7 @@ function kve(e) {
(0, R.useEffect)(() => () => {
M.current = !1;
}, []);
- let N = wS({
+ let N = TS({
queryKey: yj,
queryFn: ({ signal: e }) => Dj(e)
}).data || {
@@ -48756,17 +48756,17 @@ function kve(e) {
b((e) => new Set([...e].filter((e) => !t.has(e)))), S((e) => new Map([...e].filter(([e]) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, fe = (e, t) => w((n) => new Map(n).set(e, t)), I = (e) => {
f(e), m("candidates"), g(""), v(1), b(/* @__PURE__ */ new Set()), S(/* @__PURE__ */ new Map()), w(/* @__PURE__ */ new Map()), E(""), D.current = null, r({ category: e === "metadata_fields" ? "" : e });
- }, pe = DS({
+ }, pe = OS({
mutationFn: ({ row: e, status: t }) => Oj(Ej(d, e, t, le(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
fe(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- jj(d, [t.item_key]), de([t.item_key]), s(bue(n));
+ Aj(d, [t.item_key]), de([t.item_key]), s(bue(n));
},
onError: (e, { row: t }) => fe(t.item_key, U(e))
- }), me = DS({
+ }), me = OS({
mutationFn: async (e) => {
let t = ue, n = [], r = [];
for (let [i, a] of t.entries()) {
@@ -48787,7 +48787,7 @@ function kve(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- jj(d, t), de(t), n.forEach(([e, t]) => fe(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ Aj(d, t), de(t), n.forEach(([e, t]) => fe(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
E(U(e));
@@ -48817,7 +48817,7 @@ function kve(e) {
k(e), j("");
let t = await o(e);
M.current && (k(0), j(t));
- }, ve = Sue(N.mirror, l), ye = N.genre_tags || [], be = {
+ }, ve = Cue(N.mirror, l), ye = N.genre_tags || [], be = {
openItem: i,
openEntity: a,
onReveal: _e,
@@ -48841,7 +48841,7 @@ function kve(e) {
}) : void 0,
children: ve
}) : null,
- /* @__PURE__ */ (0, B.jsx)(gve, { tags: ye }),
+ /* @__PURE__ */ (0, B.jsx)(_ve, { tags: ye }),
/* @__PURE__ */ (0, B.jsxs)(hk, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
@@ -48864,7 +48864,7 @@ function kve(e) {
let t = Number(N.counts[e] || 0);
return /* @__PURE__ */ (0, B.jsxs)(_k, {
id: e,
- className: Dve,
+ className: Ove,
children: [bj[e], t ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
@@ -48876,7 +48876,7 @@ function kve(e) {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- ee.length && !P ? /* @__PURE__ */ (0, B.jsx)(mve, {
+ ee.length && !P ? /* @__PURE__ */ (0, B.jsx)(hve, {
groupOptions: F,
groupBy: ne,
onGroupBy: (e) => {
@@ -48917,7 +48917,7 @@ function kve(e) {
})]
}) : null, /* @__PURE__ */ (0, B.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)(Eve, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)(Dve, {
category: d,
row: e,
choice: le(e),
@@ -48945,7 +48945,7 @@ function kve(e) {
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, B.jsx)(Ove, {
+ /* @__PURE__ */ (0, B.jsx)(kve, {
page: ae.page,
pages: ae.pages,
onPage: v
@@ -48958,9 +48958,13 @@ function kve(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Ave = "/api/scraping", jve = "/api/scraping/settings", Mve = "/api/scraping/check", nR = "/api/scraping/cover", Nve = "/api/scraping/amane-bridge", Pve = "/api/scraping/amane-bridge/check", Fve = "/api/scraping/amane-bridge/rebuild", rR = ["scraping"], iR = ["scraping", "cover"], aR = ["scraping", "amane-bridge"], oR = (e) => W(Ave, e), sR = (e) => W(nR, e), cR = (e) => W(Nve, e);
-async function Ive(e) {
+var jve = "/api/scraping", Mve = "/api/scraping/settings", Nve = "/api/scraping/check", tR = "/api/scraping/cover", Pve = "/api/scraping/amane-bridge", Fve = "/api/scraping/amane-bridge/check", Ive = "/api/scraping/amane-bridge/rebuild", nR = ["scraping"], rR = ["scraping", "cover"], iR = ["scraping", "amane-bridge"], aR = (e) => W(jve, e), oR = (e) => W(tR, e), sR = (e) => W(Pve, e);
+async function Lve(e) {
await Promise.all([
+ p.fetchQuery({
+ queryKey: nR,
+ queryFn: () => aR(e)
+ }),
p.fetchQuery({
queryKey: rR,
queryFn: () => oR(e)
@@ -48968,20 +48972,16 @@ async function Ive(e) {
p.fetchQuery({
queryKey: iR,
queryFn: () => sR(e)
- }),
- p.fetchQuery({
- queryKey: aR,
- queryFn: () => cR(e)
})
]);
}
-function Lve(e, t) {
+function Rve(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var Rve = [["peach", "Peach 代理"], ["direct", "直接连接"]], lR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function uR({ source: e }) {
+var zve = [["peach", "Peach 代理"], ["direct", "直接连接"]], cR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function lR({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -48999,16 +48999,16 @@ function uR({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function zve() {
- return /* @__PURE__ */ (0, B.jsx)(uR, { source: "github" });
+function Bve() {
+ return /* @__PURE__ */ (0, B.jsx)(lR, { source: "github" });
}
-function Bve({ source: e, toast: t }) {
- let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(lR[0][0]), [u, d] = (0, R.useState)(""), [f, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
+function Vve({ source: e, toast: t }) {
+ let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(cR[0][0]), [u, d] = (0, R.useState)(""), [f, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
function g() {
a(""), s(""), d(""), m(""), h.current && (h.current.value = "");
}
- let _ = DS({
- mutationFn: (t) => G(jve, {
+ let _ = OS({
+ mutationFn: (t) => G(Mve, {
source: e.source,
network: n,
cookie: i,
@@ -49016,12 +49016,12 @@ function Bve({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- p.setQueryData(rR, (t) => t && {
+ p.setQueryData(nR, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), g(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), v = DS({ mutationFn: () => G(Mve, { source: e.source }) }), y = _.isPending || v.isPending, b = (e) => {
+ }), v = OS({ mutationFn: () => G(Nve, { source: e.source }) }), y = _.isPending || v.isPending, b = (e) => {
e.preventDefault(), !y && (v.reset(), _.mutate(!1));
}, x = () => {
y || (v.reset(), _.mutate(!0));
@@ -49051,7 +49051,7 @@ function Bve({ source: e, toast: t }) {
onSubmit: b,
aside: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(uR, { source: e.source }), /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(lR, { source: e.source }), /* @__PURE__ */ (0, B.jsx)(Hk, {
href: e.login,
children: e.login
})]
@@ -49068,7 +49068,7 @@ function Bve({ source: e, toast: t }) {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Rve.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: zve.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
@@ -49102,7 +49102,7 @@ function Bve({ source: e, toast: t }) {
l(e), g();
},
className: vA,
- children: lR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
+ children: cR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
className: yA,
children: t
@@ -49146,7 +49146,7 @@ function Bve({ source: e, toast: t }) {
w ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: w }) : null,
T.map((t) => /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t.ok ? "success" : "error",
- children: Lve(t, e.label)
+ children: Rve(t, e.label)
}, t.label))
]
}) : null,
@@ -49172,11 +49172,11 @@ function Bve({ source: e, toast: t }) {
]
});
}
-function Vve({ toast: e }) {
- let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = HM({
- queryKey: iR,
- queryFn: ({ signal: e }) => sR(e),
- start: () => G(nR, { code: t }),
+function Hve({ toast: e }) {
+ let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = VM({
+ queryKey: rR,
+ queryFn: ({ signal: e }) => oR(e),
+ start: () => G(tR, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
@@ -49218,11 +49218,11 @@ function Vve({ toast: e }) {
] })
});
}
-function Hve({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = HM({
- queryKey: aR,
- queryFn: ({ signal: e }) => cR(e),
- start: () => G(Fve, {}),
+function Uve({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = VM({
+ queryKey: iR,
+ queryFn: ({ signal: e }) => sR(e),
+ start: () => G(Ive, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -49231,7 +49231,7 @@ function Hve({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = DS({ mutationFn: () => G(Pve, {}) }), o = t.data;
+ }), a = OS({ mutationFn: () => G(Fve, {}) }), o = t.data;
if (!o) return t.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
title: "amane",
children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -49244,7 +49244,7 @@ function Hve({ toast: e }) {
title: "amane",
aside: /* @__PURE__ */ (0, B.jsx)(Hk, {
href: o.repository,
- leadingIcon: zve,
+ leadingIcon: Bve,
children: o.repository
}),
children: [
@@ -49306,22 +49306,22 @@ function Hve({ toast: e }) {
]
});
}
-function Uve({ toast: e }) {
- let t = wS({
- queryKey: rR,
- queryFn: ({ signal: e }) => oR(e)
+function Wve({ toast: e }) {
+ let t = TS({
+ queryKey: nR,
+ queryFn: ({ signal: e }) => aR(e)
}), n = t.data;
return n ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, B.jsx)(Vve, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, B.jsx)(Bve, {
+ /* @__PURE__ */ (0, B.jsx)(Hve, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, B.jsx)(Vve, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, B.jsx)(Hve, { toast: e })
+ /* @__PURE__ */ (0, B.jsx)(Uve, { toast: e })
] }) : /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "采集来源读取失败",
@@ -49330,21 +49330,21 @@ function Uve({ toast: e }) {
}
//#endregion
//#region src/react/search/search.ts
-var dR = /* @__PURE__ */ new Set([
+var uR = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), fR = /* @__PURE__ */ new Set(["asset"]), pR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function Wve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), dR = /* @__PURE__ */ new Set(["asset"]), fR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function Gve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
index: s++
};
return c.push(t), t;
- }, u = t.filter((t) => !e || pR(t).includes(pR(e)));
+ }, u = t.filter((t) => !e || fR(t).includes(fR(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -49382,7 +49382,7 @@ function Wve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: e.kind,
item: t
}))
- }), h = p.filter((e) => !fR.has(e.kind)).map(m), g = p.filter((e) => fR.has(e.kind)).map(m);
+ }), h = p.filter((e) => !dR.has(e.kind)).map(m), g = p.filter((e) => dR.has(e.kind)).map(m);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -49391,17 +49391,17 @@ function Wve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function Gve(e, t, n = Math.random) {
+function Kve(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => pR(t) === pR(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => fR(t) === fR(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var Kve = () => ({
+var qve = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -49416,7 +49416,7 @@ var Kve = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), mR = (e) => Wve({
+}), pR = (e) => Gve({
query: e.query,
history: e.history,
picks: e.picks,
@@ -49424,18 +49424,18 @@ var Kve = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), qve = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), hR = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
+}), Jve = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), mR = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
-function Jve(e) {
+function Yve(e) {
let t = (0, R.useRef)(e);
t.current = e;
let n = (0, R.useRef)(null);
- n.current ??= Kve();
+ n.current ??= qve();
let r = n.current, i = (0, R.useRef)(null), [, a] = (0, R.useReducer)((e) => e + 1, 0), o = (0, R.useRef)(null);
- o.current ??= Yve(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= Xve(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, R.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -49448,7 +49448,7 @@ function Jve(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = mR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, B.jsx)(Zve, {
+ let c = pR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, B.jsx)(Qve, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -49468,7 +49468,7 @@ function Jve(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, B.jsx)(Xve, {
+ c.tabs ? /* @__PURE__ */ (0, B.jsx)(Zve, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -49489,7 +49489,7 @@ function Jve(e) {
]
});
}
-function Yve(e, t, n, r) {
+function Xve(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -49503,7 +49503,7 @@ function Yve(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- !t || !e().historyLimit || (s([t, ...o().filter((e) => pR(e) !== pR(t))]), G("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => fR(e) !== fR(t))]), G("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -49536,9 +49536,9 @@ function Yve(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, m = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : Gve(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : Kve(t.pool, o()), t.active = -1;
let a = n();
- a && (qve(mR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (Jve(pR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -49550,7 +49550,7 @@ function Yve(e, t, n, r) {
!n || e === t.kind || (t.kind = e, clearTimeout(t.timer), m(), t.rewind = !0, d(n, e).then(() => {
a() && t.kind === e && m();
}));
- }, _ = () => f() ? mR(t).options : [], v = (e) => {
+ }, _ = () => f() ? pR(t).options : [], v = (e) => {
let n = _();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, y = (t, n) => {
@@ -49563,7 +49563,7 @@ function Yve(e, t, n, r) {
i().blur(), e().actions.openItem(t.item.id);
return;
}
- if (t.type === "suggest" && dR.has(t.kind)) {
+ if (t.type === "suggest" && uR.has(t.kind)) {
b(t.kind, t.value);
return;
}
@@ -49615,12 +49615,12 @@ function Yve(e, t, n, r) {
await G("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => pR(t) !== pR(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => fR(t) !== fR(e))), t.active = -1, r();
},
pickKind: g
};
}
-function Xve({ tabs: e, kind: t, onPick: n, wire: r }) {
+function Zve({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
r(i.current);
@@ -49632,7 +49632,7 @@ function Xve({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, B.jsx)(OL, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, B.jsx)(DL, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, B.jsxs)("div", {
ref: i,
@@ -49642,8 +49642,8 @@ function Xve({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var gR = (e) => e.preventDefault();
-function Zve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var hR = (e) => e.preventDefault();
+function Qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -49655,28 +49655,28 @@ function Zve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, B.jsx)(hR, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, B.jsx)(mR, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, B.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: gR,
+ onMouseDown: hR,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, B.jsx)(hR, { name: "x" })
+ children: /* @__PURE__ */ (0, B.jsx)(mR, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = dR.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = uR.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, B.jsx)(_R, {
+ children: [/* @__PURE__ */ (0, B.jsx)(gR, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -49702,7 +49702,7 @@ function Zve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, B.jsx)(vR, {
+ /* @__PURE__ */ (0, B.jsx)(_R, {
item: s,
kind: c
}),
@@ -49722,11 +49722,11 @@ function Zve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: gR,
+ onMouseDown: hR,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, B.jsx)(_R, {
+ children: /* @__PURE__ */ (0, B.jsx)(gR, {
card: e,
helpers: n
})
@@ -49740,7 +49740,7 @@ function Zve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, B.jsx)(vR, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, B.jsx)(_R, {
item: s,
kind: c
}) : null,
@@ -49753,13 +49753,13 @@ function Zve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function _R({ card: e, helpers: t }) {
+function gR({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function vR({ item: e, kind: t }) {
+function _R({ item: e, kind: t }) {
let n = {
id: e.entity_id,
has_image: e.has_image,
@@ -49774,301 +49774,543 @@ function vR({ item: e, kind: t }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var yR = "/api/configuration", Qve = "/api/pick-folder", bR = ["configuration"], xR = (e) => W(yR, e);
-async function SR(e) {
+var vR = "/api/configuration", $ve = "/api/pick-folder", yR = ["configuration"], bR = (e) => W(vR, e);
+async function xR(e) {
await p.fetchQuery({
- queryKey: bR,
- queryFn: () => xR(e)
+ queryKey: yR,
+ queryFn: () => bR(e)
});
}
//#endregion
-//#region src/configuration-copy.ts
-var $ve = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", eye = "仅填域名;留空使用默认地址";
-//#endregion
-//#region src/react/settings/entry-links-settings.tsx
+//#region src/react/settings/indexer-settings.tsx
+var SR = "/api/configuration/indexers";
+function eye({ receipt: e }) {
+ let t = TS({
+ queryKey: ["indexers"],
+ queryFn: ({ signal: e }) => W(SR, e)
+ });
+ return t.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: U(t.error) }) : t.data ? /* @__PURE__ */ (0, B.jsx)(tye, {
+ initial: t.data,
+ receipt: e
+ }) : null;
+}
function tye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.sites), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, R.useState)(e.indexers), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
- host: t
+ ...t
} : n));
return /* @__PURE__ */ (0, B.jsxs)(Fk, {
- title: "外部入口",
+ title: "资源索引器",
onSubmit: (e) => {
- e.preventDefault();
- let a = { sites: Object.fromEntries(n.map((e) => [e.key, { host: e.host }])) };
- i.run("save", (e) => G("/api/configuration/entry-links", a, "POST", e), (e) => {
- r(e.sites), t("已保存配置");
+ e.preventDefault(), i.run("save", (e) => G(SR, { indexers: n }, "POST", e), (e) => {
+ r(e.indexers), t("已保存索引器");
});
},
children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: $ve }),
- n.map((e) => /* @__PURE__ */ (0, B.jsx)(Ck, {
- id: `entry-link-${e.key}`,
- label: `${e.label} 地址`,
- autoComplete: "off",
- maxLength: 100,
- value: e.host,
- placeholder: e.default_host,
- onChange: (t) => a(e.key, t),
- validationBehavior: "aria",
- hint: eye
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "接入 Prowlarr 或 Jackett 后,活动页「云下载」可以按番号搜磁力。 Prowlarr 的 Torznab 地址在索引器列表里每个索引器的详情中复制,API key 在 Settings → General。" }),
+ n.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
+ children: [
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: `索引器 ${t + 1} 名称`,
+ value: e.name,
+ maxLength: 80,
+ isDisabled: !!i.busy,
+ onChange: (t) => a(e.key, { name: t })
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: `索引器 ${t + 1} Torznab 地址`,
+ value: e.url,
+ type: "url",
+ autoComplete: "off",
+ placeholder: "http://127.0.0.1:9696/1/api",
+ isDisabled: !!i.busy,
+ onChange: (t) => a(e.key, { url: t })
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: `索引器 ${t + 1} API key`,
+ type: "password",
+ autoComplete: "new-password",
+ value: e.api_key || "",
+ placeholder: e.api_key_set ? "已保存,留空不改" : void 0,
+ isDisabled: !!i.busy,
+ onChange: (t) => a(e.key, { api_key: t })
+ }),
+ /* @__PURE__ */ (0, B.jsx)(GM, {
+ isSelected: e.enabled,
+ isDisabled: !!i.busy,
+ onChange: (t) => a(e.key, { enabled: t }),
+ children: "启用"
+ }),
+ e.api_key_set ? /* @__PURE__ */ (0, B.jsx)(GM, {
+ isSelected: !!e.clear_api_key,
+ isDisabled: !!i.busy,
+ onChange: (t) => a(e.key, { clear_api_key: t }),
+ children: "清除已保存的 API key"
+ }) : null,
+ /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsxs)(J, {
+ type: "button",
+ disabled: !!i.busy,
+ onClick: () => r(n.filter((t) => t.key !== e.key)),
+ children: ["移除索引器 ", t + 1]
+ }) })
+ ]
}, e.key)),
i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ ] }), /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
+ type: "button",
+ disabled: !!i.busy || n.length >= e.max_indexers,
+ onClick: () => r([...n, {
+ key: crypto.randomUUID(),
+ name: "",
+ url: "",
+ enabled: !0,
+ api_key_set: !1
+ }]),
+ children: "添加索引器"
+ }), /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
- }) })]
+ })] })]
});
}
//#endregion
-//#region src/react/settings/general-settings.tsx
-function nye({ data: e, receipt: t }) {
+//#region src/react/settings/download-settings.tsx
+var nye = "/api/configuration/downloads", CR = "/api/configuration/downloads/check", rye = "/api/configuration/downloads/folder", iye = "/api/configuration/downloads/pikpak/login", aye = "/api/configuration/downloads/pikpak/logout", wR = "/api/configuration/downloads/pikpak/browser-login", TR = 2e3;
+function oye({ initial: e, receipt: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, B.jsx)(rye, {
- startup: e.startup,
+ children: [/* @__PURE__ */ (0, B.jsx)(sye, {
+ initial: e,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, B.jsx)(tye, {
- initial: e.entry_links,
- receipt: t
- }) : null]
+ }), /* @__PURE__ */ (0, B.jsx)(eye, { receipt: t })]
});
}
-function rye({ startup: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = IE(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
- title: "开机自启",
- onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => G("/api/configuration/startup", {
- enabled: n,
- silent: i,
- desktop: o
- }, "POST", e), () => t("已保存配置"));
+function sye({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), o = n.pikpak.logged_in || !!i.trim();
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(cye, {
+ state: n,
+ settle: r,
+ receipt: t,
+ pikpakAccount: o
+ }), /* @__PURE__ */ (0, B.jsx)(uye, {
+ state: n,
+ settle: r,
+ receipt: t,
+ username: i,
+ setUsername: a
+ })] });
+}
+function cye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
+ let [i, a] = (0, R.useState)(e.config), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(String(e.config.wait_hours)), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(ER), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = IE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+ ...i,
+ targets: {
+ ...i.targets,
+ [e]: t
+ }
+ }), C = !!(m.target && !m.target.exists && x("115") === m.target.path), w = (e, t, n = "") => {
+ let r = t.target ? e.suggested_target : null, i = !!(r && n && r.path === n), o = t.root ? e.suggested_pikpak_root : "";
+ a((n) => ({
+ ...n,
+ clouddrive_address: t.address && e.address ? e.address : n.clouddrive_address,
+ targets: r && !i ? {
+ ...n.targets,
+ 115: r.path
+ } : n.targets,
+ pikpak_root: o || n.pikpak_root
+ })), d(e), p(t.address ? e.address : ""), h({
+ target: r,
+ root: o,
+ saved: i
+ }), y(!1), _("");
+ };
+ return (0, R.useEffect)(() => {
+ if (!e.available || !e.config.clouddrive_address || !e.token_set) return;
+ let t = {
+ address: !1,
+ target: !e.config.targets[115],
+ root: !e.config.pikpak_root
+ };
+ b.run("auto", (e) => W(CR, e), (e) => w(e, t), (e) => _(U(e)));
+ }, []), /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ title: "云下载",
+ onSubmit: (e) => {
+ if (e.preventDefault(), C) {
+ y(!0);
+ return;
+ }
+ let u = !x("115").trim(), f = {
+ ...i,
+ wait_hours: c,
+ token: o,
+ pikpak_account: r
+ };
+ b.run("save", (e) => G(nye, f, "POST", e), (e) => {
+ let { report: r, ...i } = e;
+ t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? w(r, {
+ address: !i.config.clouddrive_address,
+ target: u,
+ root: !i.config.pikpak_root
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(ER), y(!1), _("")), n("已保存配置");
+ }, (e) => _(U(e)));
},
children: [
- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
- /* @__PURE__ */ (0, B.jsx)(Mk, {
- label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, B.jsx)(oL, {
- "aria-label": "开机后启动 Peach",
- isSelected: n,
- isDisabled: !e.available,
- onChange: r
+ /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "把磁力交给 115 或 PikPak 离线下载,下完由推送发现自动入库。" }),
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: "CloudDrive2 地址",
+ placeholder: "留空自动探测本机 19798 / 29798",
+ autoComplete: "off",
+ maxLength: 200,
+ value: i.clouddrive_address,
+ isDisabled: !e.available,
+ onChange: (e) => a({
+ ...i,
+ clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, B.jsx)(Mk, {
- label: "静默启动",
- description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, B.jsx)(oL, {
- "aria-label": "静默启动",
- isSelected: i,
- isDisabled: !e.available || !n,
- onChange: a
- })
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: "CloudDrive2 API 令牌",
+ type: "password",
+ autoComplete: "off",
+ maxLength: 400,
+ placeholder: e.token_set ? "已保存,留空不改" : "在 CloudDrive2「设置 → API 令牌」中生成",
+ hint: "生成时勾选离线任务相关权限,缺哪项「检查」会列出来。",
+ value: o,
+ isDisabled: !e.available,
+ onChange: s
}),
- /* @__PURE__ */ (0, B.jsx)(Mk, {
- label: "在桌面创建快捷方式",
- description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, B.jsx)(oL, {
- "aria-label": "在桌面创建快捷方式",
- isSelected: o,
- isDisabled: !l,
- onChange: s
- })
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: "115 目标目录",
+ placeholder: "留空时按推送发现自动填写",
+ autoComplete: "off",
+ maxLength: 300,
+ validationBehavior: "aria",
+ isInvalid: C,
+ hint: C ? v ? "这个目录还不存在,保存前先在下方新建它,或改成 CloudDrive2 里已有的目录。" : "CloudDrive2 里还没有这个目录。" : "要在推送发现的云端路径前缀下面,留空自动填写。",
+ value: x("115"),
+ isDisabled: !e.available,
+ onChange: (e) => S("115", e)
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: "PikPak 目标目录",
+ placeholder: "以 / 开头的网盘路径",
+ autoComplete: "off",
+ maxLength: 300,
+ hint: "目录要已经存在。",
+ value: x("pikpak"),
+ isDisabled: !e.available,
+ onChange: (e) => S("pikpak", e)
+ }),
+ /* @__PURE__ */ (0, B.jsxs)("div", {
+ className: "flex flex-col gap-1",
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
+ "aria-label": "PikPak 根目录对应的媒体文件夹",
+ selectedKey: i.pikpak_root || null,
+ isDisabled: !e.available,
+ placeholder: "检查时按推送发现选",
+ onSelectionChange: (e) => a({
+ ...i,
+ pikpak_root: e === null ? "" : String(e)
+ }),
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ id: e,
+ children: e
+ }, e))
+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: "等待上限(小时)",
+ type: "number",
+ inputMode: "numeric",
+ autoComplete: "off",
+ hint: `超过这么久还没下完就标为停滞,1 到 ${e.max_wait_hours} 小时。`,
+ value: c,
+ isDisabled: !e.available,
+ onChange: l
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ b.busy === "auto" ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: c.error }) : null]
+ children: /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在检查 CloudDrive2" })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
- type: "submit",
- disabled: !e.available,
- ...X(c.busy === "save"),
- children: "保存配置"
- }) })
+ u ? /* @__PURE__ */ (0, B.jsx)(lye, {
+ report: u,
+ detected: f,
+ suggested: m,
+ create: e.available ? (e) => {
+ let t = {
+ clouddrive_address: i.clouddrive_address,
+ token: o,
+ path: e,
+ pikpak_root: i.pikpak_root,
+ pikpak_account: r
+ };
+ b.run("folder", (e) => G(rye, t, "POST", e), (t) => {
+ d(t), h((t) => ({
+ ...t,
+ target: {
+ path: e,
+ exists: !0
+ }
+ })), y(!1), _(""), n("已新建目录");
+ }, (e) => _(U(e)));
+ } : void 0,
+ creating: b.busy === "folder"
+ }) : null,
+ g || b.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ divided: !0,
+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || b.error })
+ }) : null,
+ /* @__PURE__ */ (0, B.jsxs)(Rk, {
+ status: e.available ? void 0 : "云下载只在账本写入端可用。",
+ children: [/* @__PURE__ */ (0, B.jsx)(J, {
+ onClick: () => {
+ let e = {
+ address: !i.clouddrive_address.trim(),
+ target: !x("115").trim(),
+ root: !i.pikpak_root
+ }, t = {
+ clouddrive_address: i.clouddrive_address,
+ token: o,
+ target: x("115"),
+ pikpak_root: i.pikpak_root,
+ pikpak_account: r
+ };
+ b.run("check", (e) => G(CR, t, "POST", e), (t) => w(t, e), (e) => _(U(e)));
+ },
+ disabled: !e.available,
+ ...X(b.busy === "check"),
+ children: "检查"
+ }), /* @__PURE__ */ (0, B.jsx)(J, {
+ type: "submit",
+ disabled: !e.available,
+ ...X(b.busy === "save"),
+ children: "保存配置"
+ })]
+ })
]
});
}
-//#endregion
-//#region src/react/settings/release-updates.tsx
-var CR = /* @__PURE__ */ new Set([
- "downloading",
- "verifying",
- "extracting",
- "preparing",
- "restarting",
- "installing"
-]), iye = [
- 65,
- 67,
- 90
-], wR = 120;
-function aye({ initial: e, initialJob: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {
- state: "idle",
- progress: 0
- }), [o, s] = (0, R.useState)(""), c = IE(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = CR.has(i.state);
- (0, R.useEffect)(() => (u.current = !0, () => {
- u.current = !1;
- }), []);
- let f = async () => {
- let e = await G("/api/configuration/update-restart", {});
- u.current && a(e);
- }, p = () => void je({
- title: "更新已准备好",
- body: `Peach ${i.version || ""} 将在重启后安装。`,
- confirmLabel: "立即重启",
- cancelLabel: "稍后",
- onConfirm: f
- });
- (0, R.useEffect)(() => {
- i.state !== "ready" || l.current || (l.current = !0, p());
- }, [i.state]), (0, R.useEffect)(() => {
- let e = new AbortController(), t = CR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+var ER = {
+ target: null,
+ root: "",
+ saved: !1
+};
+function lye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+ let a = n.target;
+ return /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ divided: !0,
+ children: [/* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
+ t ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "CloudDrive2 地址",
+ children: `探测到 ${t},保存配置后生效`
+ }) : null,
+ a?.exists ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "115 目标目录",
+ children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
+ }) : null,
+ a && !a.exists ? /* @__PURE__ */ (0, B.jsxs)(Wk, {
+ term: "115 目标目录",
+ children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, B.jsx)(J, {
+ size: "small",
+ onClick: () => r(a.path),
+ ...X(i),
+ children: "新建这个目录"
+ }) : null]
+ }) : null,
+ n.root ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "PikPak 根目录",
+ children: `按推送发现填入 ${n.root},保存配置后生效`
+ }) : null,
+ e.permissions.length ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "离线权限",
+ children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
+ }) : null,
+ e.folder ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "目标目录",
+ children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
+ }) : null,
+ e.quota ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "115 离线配额",
+ children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
+ }) : null
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, B.jsx)(Bk, { children: e }, e))]
+ });
+}
+function uye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
+ let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = IE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+ (0, R.useEffect)(() => {
+ if (!v) return;
+ let e = new AbortController(), r, i = async () => {
try {
- let t = await W("/api/configuration/update-status", e.signal);
+ let r = await W(wR, e.signal);
+ if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
+ } catch (t) {
if (e.signal.aborted) return;
- a(t), o = 0, t.state === "complete" && r((e) => ({
- ...e,
- current_version: t.version || e.current_version,
- state: "current",
- message: "已是最新测试版。"
- }));
- let n = await W("/api/configuration/automatic-updates", e.signal);
- !e.signal.aborted && n.result && r(n.result);
- } catch {
- o += 1, o >= wR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ f(U(t));
}
- !e.signal.aborted && o < wR && (n = setTimeout(c, t));
+ r = setTimeout(i, TR);
};
- return n = setTimeout(c, t), () => {
- e.abort(), clearTimeout(n);
+ return r = setTimeout(i, TR), () => {
+ e.abort(), clearTimeout(r);
};
- }, [i.state]);
- let m = () => {
- d || (l.current = !1, s(""), c.run("download", (e) => G("/api/configuration/update", {}, "POST", e), a));
- }, h = () => void c.run("check", (e) => W("/api/configuration/updates", e), r, (t) => {
- r({
- ...e,
- state: "error"
- }), c.setError(U(t));
- }), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
+ }, [v]);
+ let y = () => {
+ m(""), h.run("browser", (e) => G(wR, {}, "POST", e), (e) => {
+ t(e), f("");
+ }, (e) => f(U(e)));
+ }, b = () => {
+ h.run("cancel", (e) => G(`${wR}/cancel`, {}, "POST", e), (e) => {
+ t(e), f(""), m(e.pikpak_browser.message);
+ }, (e) => f(U(e)));
+ }, x = (e) => {
+ if (e.preventDefault(), g.logged_in) return;
+ let i = {
+ username: r,
+ password: a,
+ remember: s
+ };
+ h.run("login", (e) => G(iye, i, "POST", e), (e) => {
+ if (t(e.settings), f(""), !e.ok) {
+ u(e.captcha_url ?? "");
+ return;
+ }
+ u(""), o(""), n("已登录 PikPak");
+ }, (e) => f(U(e)));
+ }, S = () => {
+ h.run("logout", (e) => G(aye, {}, "POST", e), (e) => {
+ t(e), f(""), n("已登出 PikPak");
+ }, (e) => f(U(e)));
+ }, C = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: "账号",
+ placeholder: "邮箱或手机号",
+ autoComplete: "username",
+ maxLength: 200,
+ value: r,
+ isDisabled: !e.available,
+ onChange: i
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
+ label: "密码",
+ type: "password",
+ autoComplete: "current-password",
+ maxLength: 200,
+ value: a,
+ isDisabled: !e.available,
+ onChange: o
+ }),
+ /* @__PURE__ */ (0, B.jsx)(GM, {
+ isSelected: s,
+ isDisabled: !e.available,
+ onChange: c,
+ children: "保存密码,登录过期时自动重新登录"
+ }),
+ l ? /* @__PURE__ */ (0, B.jsx)(Y, {
+ tone: "warning",
+ title: "需要人机验证",
+ extra: /* @__PURE__ */ (0, B.jsx)("div", {
+ className: "pt-2",
+ children: /* @__PURE__ */ (0, B.jsx)(Hk, {
+ href: l,
+ children: "打开 PikPak 验证页"
+ })
+ }),
+ children: "在浏览器里完成验证后,回到这里再点一次「登录」。"
+ }) : null
+ ] }), w = /* @__PURE__ */ (0, B.jsx)(J, {
+ type: "submit",
+ disabled: !e.available || v,
+ ...X(h.busy === "login"),
+ children: "登录"
+ }), T = _.state === "timeout" || _.state === "failed";
return /* @__PURE__ */ (0, B.jsxs)(Fk, {
- title: "检查更新",
+ title: "PikPak 账号",
+ onSubmit: x,
children: [
- /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "当前版本",
- children: n.current_version
- }),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "安装方式",
- children: n.installation
- }),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "更新通道",
- children: n.channel
- }),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "最新版本",
- children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
- })
- ] }),
- /* @__PURE__ */ (0, B.jsxs)(Lk, {
- divided: !0,
- children: [
- n.checked_at ? /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !g ? /* @__PURE__ */ (0, B.jsx)(Y, {
- tone: "info",
- title: "有可用更新",
- children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || n.message }) : /* @__PURE__ */ (0, B.jsx)(zk, {
- role: "status",
- children: n.message
- }),
- i.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.message }) : null,
- i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, B.jsxs)("div", {
- "aria-live": "polite",
- className: "flex flex-col gap-2",
+ g.logged_in ? /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "账号",
+ children: g.username || "已登录"
+ }), g.method === "browser" ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "登录方式",
+ children: "浏览器登录,由 Peach 续期"
+ }) : /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "密码",
+ children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
+ })] }) : _.available ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),
+ p ? T ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: p }) : /* @__PURE__ */ (0, B.jsx)(zk, {
+ role: "status",
+ children: p
+ }) : null,
+ /* @__PURE__ */ (0, B.jsx)(Gk, {
+ summary: "用账号密码登录",
+ children: /* @__PURE__ */ (0, B.jsxs)("div", {
+ className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(FE, {
- label: "更新准备进度",
- value: i.progress,
- stops: iye
- }),
- /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: _ })
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ C,
+ /* @__PURE__ */ (0, B.jsx)("div", {
+ className: "flex justify-end",
+ children: w
+ })
]
- }) : null
- ]
- }),
- /* @__PURE__ */ (0, B.jsxs)(Rk, {
- status: /* @__PURE__ */ (0, B.jsx)(Hk, {
- href: n.release_url,
- children: "查看发布页"
- }),
- children: [
- i.state === "ready" ? /* @__PURE__ */ (0, B.jsx)(J, {
- onClick: p,
- children: "重启安装"
- }) : null,
- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, B.jsx)(J, {
- onClick: m,
- ...X(d || c.busy === "download"),
- children: "下载并安装"
- }) : null,
- /* @__PURE__ */ (0, B.jsx)(J, {
- disabled: d,
- onClick: h,
- ...X(c.busy === "check"),
- children: "检查更新"
})
- ]
+ })
+ ] }) : /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
+ d || h.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ divided: !0,
+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: d || h.error })
+ }) : null,
+ /* @__PURE__ */ (0, B.jsx)(Rk, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, B.jsx)(ME, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ children: g.logged_in ? /* @__PURE__ */ (0, B.jsx)(J, {
+ onClick: S,
+ disabled: !e.available,
+ ...X(h.busy === "logout"),
+ children: "登出"
+ }) : _.available ? v ? /* @__PURE__ */ (0, B.jsx)(J, {
+ type: "button",
+ onClick: b,
+ ...X(h.busy === "cancel"),
+ children: "取消"
+ }) : /* @__PURE__ */ (0, B.jsx)(J, {
+ type: "button",
+ onClick: y,
+ disabled: !e.available,
+ ...X(h.busy === "browser"),
+ children: "用浏览器登录"
+ }) : w
})
]
});
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var oye = [
+var dye = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function sye({ data: e, receipt: t, reopenTutorial: n }) {
+function fye({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, B.jsx)(lye, {
- initial: e.automatic_updates,
- receipt: t
- }) : null,
- e.updates ? /* @__PURE__ */ (0, B.jsx)(aye, {
- initial: e.updates,
- initialJob: e.update_job
- }) : null,
- /* @__PURE__ */ (0, B.jsx)(uye, { facts: e.facts }),
- /* @__PURE__ */ (0, B.jsx)(Fk, {
- title: "系统诊断",
- children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(Pk, {
- href: "/diagnostics",
- children: "打开系统诊断"
- }) }) })
- }),
- /* @__PURE__ */ (0, B.jsx)(cye, {
+ /* @__PURE__ */ (0, B.jsx)(hye, { facts: e.facts }),
+ /* @__PURE__ */ (0, B.jsx)(pye, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, B.jsx)(dye, {
+ e.uninstall ? /* @__PURE__ */ (0, B.jsx)(gye, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function cye({ receipt: e, reopenTutorial: t }) {
+function pye({ receipt: e, reopenTutorial: t }) {
let n = IE();
return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "安装教程",
@@ -50079,13 +50321,13 @@ function cye({ receipt: e, reopenTutorial: t }) {
}) })]
});
}
-function lye({ initial: e, receipt: t }) {
+function mye({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = IE(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
- }, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
+ }, c = e.available ? e.download_available ? "下载完成后在这里确认重启安装。" : void 0 : "自动更新需要由托盘管理的服务。";
return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "自动更新",
onSubmit: s,
@@ -50093,7 +50335,7 @@ function lye({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
/* @__PURE__ */ (0, B.jsx)(Mk, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, B.jsx)(oL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
@@ -50102,7 +50344,7 @@ function lye({ initial: e, receipt: t }) {
}),
/* @__PURE__ */ (0, B.jsx)(Mk, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, B.jsx)(oL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
@@ -50119,7 +50361,7 @@ function lye({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: oye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: dye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
@@ -50139,19 +50381,22 @@ function lye({ initial: e, receipt: t }) {
]
});
}
-function uye({ facts: e }) {
- return /* @__PURE__ */ (0, B.jsx)(Fk, {
+function hye({ facts: e }) {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "运行信息",
- children: /* @__PURE__ */ (0, B.jsx)(Uk, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(Wk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Uk, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(Wk, {
term: e.term,
children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Hk, {
href: e.download_url,
children: e.download_label
}) : null]
- }, e.term)) })
+ }, e.term)) }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(Pk, {
+ href: "/diagnostics",
+ children: "打开系统诊断"
+ }) })]
});
}
-function dye({ uninstall: e, receipt: t }) {
+function gye({ uninstall: e, receipt: t }) {
let [n, r] = (0, R.useState)(!1), [i, a] = (0, R.useState)(""), o = () => void je({
title: "卸载 Peach",
danger: !0,
@@ -50170,7 +50415,7 @@ function dye({ uninstall: e, receipt: t }) {
title: "卸载 Peach",
children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
e.available ? /* @__PURE__ */ (0, B.jsx)(zk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, B.jsx)(KM, {
+ /* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
@@ -50178,7 +50423,7 @@ function dye({ uninstall: e, receipt: t }) {
}),
/* @__PURE__ */ (0, B.jsx)(Gk, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, B.jsx)(LM, {
+ children: c.map((e) => /* @__PURE__ */ (0, B.jsx)(IM, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
@@ -50199,8 +50444,224 @@ function dye({ uninstall: e, receipt: t }) {
});
}
//#endregion
+//#region src/react/settings/release-updates.tsx
+var DR = /* @__PURE__ */ new Set([
+ "downloading",
+ "verifying",
+ "extracting",
+ "preparing",
+ "restarting",
+ "installing"
+]), _ye = [
+ 65,
+ 67,
+ 90
+], OR = 120;
+function vye({ initial: e, initialJob: t }) {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {
+ state: "idle",
+ progress: 0
+ }), [o, s] = (0, R.useState)(""), c = IE(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = DR.has(i.state);
+ (0, R.useEffect)(() => (u.current = !0, () => {
+ u.current = !1;
+ }), []);
+ let f = async () => {
+ let e = await G("/api/configuration/update-restart", {});
+ u.current && a(e);
+ }, p = () => void je({
+ title: "更新已准备好",
+ body: `Peach ${i.version || ""} 将在重启后安装。`,
+ confirmLabel: "立即重启",
+ cancelLabel: "稍后",
+ onConfirm: f
+ });
+ (0, R.useEffect)(() => {
+ i.state !== "ready" || l.current || (l.current = !0, p());
+ }, [i.state]), (0, R.useEffect)(() => {
+ let e = new AbortController(), t = DR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ try {
+ let t = await W("/api/configuration/update-status", e.signal);
+ if (e.signal.aborted) return;
+ a(t), o = 0, t.state === "complete" && r((e) => ({
+ ...e,
+ current_version: t.version || e.current_version,
+ state: "current",
+ message: "已是最新测试版。"
+ }));
+ let n = await W("/api/configuration/automatic-updates", e.signal);
+ !e.signal.aborted && n.result && r(n.result);
+ } catch {
+ o += 1, o >= OR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ }
+ !e.signal.aborted && o < OR && (n = setTimeout(c, t));
+ };
+ return n = setTimeout(c, t), () => {
+ e.abort(), clearTimeout(n);
+ };
+ }, [i.state]);
+ let m = () => {
+ d || (l.current = !1, s(""), c.run("download", (e) => G("/api/configuration/update", {}, "POST", e), a));
+ }, h = () => void c.run("check", (e) => W("/api/configuration/updates", e), r, (t) => {
+ r({
+ ...e,
+ state: "error"
+ }), c.setError(U(t));
+ }), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ title: "检查更新",
+ children: [
+ /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "当前版本",
+ children: n.current_version
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "安装方式",
+ children: n.installation
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "更新通道",
+ children: n.channel
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
+ term: "最新版本",
+ children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
+ })
+ ] }),
+ n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ divided: !0,
+ children: [
+ n.checked_at ? /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !g ? /* @__PURE__ */ (0, B.jsx)(Y, {
+ tone: "info",
+ title: "有可用更新",
+ children: n.message
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, B.jsx)(zk, {
+ role: "status",
+ children: n.message
+ }),
+ i.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.message }) : null,
+ i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, B.jsxs)("div", {
+ "aria-live": "polite",
+ className: "flex flex-col gap-2",
+ children: [
+ /* @__PURE__ */ (0, B.jsx)(FE, {
+ label: "更新准备进度",
+ value: i.progress,
+ stops: _ye
+ }),
+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: _ })
+ ]
+ }) : null
+ ]
+ }),
+ /* @__PURE__ */ (0, B.jsxs)(Rk, {
+ status: /* @__PURE__ */ (0, B.jsx)(Hk, {
+ href: n.release_url,
+ children: "查看发布页"
+ }),
+ children: [
+ i.state === "ready" ? /* @__PURE__ */ (0, B.jsx)(J, {
+ onClick: p,
+ children: "重启安装"
+ }) : null,
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, B.jsx)(J, {
+ onClick: m,
+ ...X(d || c.busy === "download"),
+ children: "下载并安装"
+ }) : null,
+ /* @__PURE__ */ (0, B.jsx)(J, {
+ disabled: d,
+ onClick: h,
+ ...X(c.busy === "check"),
+ children: "检查更新"
+ })
+ ]
+ })
+ ]
+ });
+}
+//#endregion
+//#region src/react/settings/general-settings.tsx
+function yye({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, B.jsxs)("div", {
+ className: "flex flex-col gap-6",
+ children: [
+ e.startup ? /* @__PURE__ */ (0, B.jsx)(bye, {
+ startup: e.startup,
+ receipt: t
+ }) : null,
+ e.automatic_updates ? /* @__PURE__ */ (0, B.jsx)(mye, {
+ initial: e.automatic_updates,
+ receipt: t
+ }) : null,
+ e.updates ? /* @__PURE__ */ (0, B.jsx)(vye, {
+ initial: e.updates,
+ initialJob: e.update_job
+ }) : null
+ ]
+ });
+}
+function bye({ startup: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = IE(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ title: "开机自启",
+ onSubmit: (r) => {
+ r.preventDefault(), e.available && c.run("save", (e) => G("/api/configuration/startup", {
+ enabled: n,
+ silent: i,
+ desktop: o
+ }, "POST", e), () => t("已保存配置"));
+ },
+ children: [
+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
+ label: "开机后启动 Peach",
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ "aria-label": "开机后启动 Peach",
+ isSelected: n,
+ isDisabled: !e.available,
+ onChange: r
+ })
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
+ label: "静默启动",
+ description: "开机后只显示托盘图标,不打开网页。",
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ "aria-label": "静默启动",
+ isSelected: i,
+ isDisabled: !e.available || !n,
+ onChange: a
+ })
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
+ label: "在桌面创建快捷方式",
+ description: e.desktop_message || "双击图标打开 Peach 网页。",
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ "aria-label": "在桌面创建快捷方式",
+ isSelected: o,
+ isDisabled: !l,
+ onChange: s
+ })
+ })
+ ] }),
+ e.message || c.error ? /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ divided: !0,
+ children: [e.message ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: c.error }) : null]
+ }) : null,
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ type: "submit",
+ disabled: !e.available,
+ ...X(c.busy === "save"),
+ children: "保存配置"
+ }) })
+ ]
+ });
+}
+//#endregion
//#region src/react/restart-redirect.ts
-var fye = 8e3, pye = [
+var xye = 8e3, Sye = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -50219,32 +50680,33 @@ var fye = 8e3, pye = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], mye = [
+], Cye = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function hye() {
- return /* @__PURE__ */ (0, B.jsxs)("div", {
+function wye() {
+ return /* @__PURE__ */ (0, B.jsx)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, B.jsxs)(zk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, B.jsx)(Hk, {
- href: "https://www.clouddrive2.com/help.html",
- children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, B.jsxs)(Gk, {
- summary: "CloudDrive 缓存建议",
+ children: /* @__PURE__ */ (0, B.jsxs)(Gk, {
+ summary: "CloudDrive 设置帮助",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, B.jsx)(Hk, {
+ href: "https://www.clouddrive2.com/help.html",
+ children: "挂载帮助"
+ })] }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, B.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: pye.map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
+ children: Sye.map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, B.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: mye.map(([t, n]) => /* @__PURE__ */ (0, B.jsxs)("div", {
+ children: Cye.map(([t, n]) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, B.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -50274,416 +50736,12 @@ function hye() {
"。"
] })
]
- })]
- });
-}
-//#endregion
-//#region src/react/settings/download-settings.tsx
-var gye = "/api/configuration/downloads", TR = "/api/configuration/downloads/check", _ye = "/api/configuration/downloads/folder", vye = "/api/configuration/downloads/pikpak/login", yye = "/api/configuration/downloads/pikpak/logout", ER = "/api/configuration/downloads/pikpak/browser-login", DR = 2e3;
-function bye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), o = n.pikpak.logged_in || !!i.trim();
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(xye, {
- state: n,
- settle: r,
- receipt: t,
- pikpakAccount: o
- }), /* @__PURE__ */ (0, B.jsx)(Cye, {
- state: n,
- settle: r,
- receipt: t,
- username: i,
- setUsername: a
- })] });
-}
-function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, R.useState)(e.config), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(String(e.config.wait_hours)), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(OR), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = IE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
- ...i,
- targets: {
- ...i.targets,
- [e]: t
- }
- }), C = !!(m.target && !m.target.exists && x("115") === m.target.path), w = (e, t, n = "") => {
- let r = t.target ? e.suggested_target : null, i = !!(r && n && r.path === n), o = t.root ? e.suggested_pikpak_root : "";
- a((n) => ({
- ...n,
- clouddrive_address: t.address && e.address ? e.address : n.clouddrive_address,
- targets: r && !i ? {
- ...n.targets,
- 115: r.path
- } : n.targets,
- pikpak_root: o || n.pikpak_root
- })), d(e), p(t.address ? e.address : ""), h({
- target: r,
- root: o,
- saved: i
- }), y(!1), _("");
- };
- return (0, R.useEffect)(() => {
- if (!e.available || !e.config.clouddrive_address || !e.token_set) return;
- let t = {
- address: !1,
- target: !e.config.targets[115],
- root: !e.config.pikpak_root
- };
- b.run("auto", (e) => W(TR, e), (e) => w(e, t), (e) => _(U(e)));
- }, []), /* @__PURE__ */ (0, B.jsxs)(Fk, {
- title: "云下载",
- onSubmit: (e) => {
- if (e.preventDefault(), C) {
- y(!0);
- return;
- }
- let u = !x("115").trim(), f = {
- ...i,
- wait_hours: c,
- token: o,
- pikpak_account: r
- };
- b.run("save", (e) => G(gye, f, "POST", e), (e) => {
- let { report: r, ...i } = e;
- t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? w(r, {
- address: !i.config.clouddrive_address,
- target: u,
- root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(OR), y(!1), _("")), n("已保存配置");
- }, (e) => _(U(e)));
- },
- children: [
- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: "CloudDrive2 地址",
- placeholder: "留空自动探测本机 19798 / 29798",
- autoComplete: "off",
- maxLength: 200,
- value: i.clouddrive_address,
- isDisabled: !e.available,
- onChange: (e) => a({
- ...i,
- clouddrive_address: e
- })
- }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: "CloudDrive2 API 令牌",
- type: "password",
- autoComplete: "off",
- maxLength: 400,
- placeholder: e.token_set ? "已保存,留空不改" : "在 CloudDrive2「设置 → API 令牌」中生成",
- hint: "令牌需要「提交离线任务」「查看离线任务与配额」两项权限;要在 Peach 里取消任务,再勾上「取消离线任务」;要在 Peach 里新建目标目录,再勾上新建文件夹权限(allow_create_folder)。",
- value: o,
- isDisabled: !e.available,
- onChange: s
- }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: "115 目标目录",
- placeholder: "留空时按推送发现自动填写",
- autoComplete: "off",
- maxLength: 300,
- validationBehavior: "aria",
- isInvalid: C,
- hint: C ? v ? "这个目录还不存在,保存前先在下方新建它,或改成 CloudDrive2 里已有的目录。" : "CloudDrive2 里还没有这个目录。" : "CloudDrive2 挂载树里的路径,要落在「推送发现」的某个云端路径前缀下面,下载完才找得到。留空保存时按推送发现里 115 那条前缀填上「前缀/云下载」。",
- value: x("115"),
- isDisabled: !e.available,
- onChange: (e) => S("115", e)
- }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: "PikPak 目标目录",
- placeholder: "以 / 开头的网盘路径",
- autoComplete: "off",
- maxLength: 300,
- hint: "PikPak 网盘里的路径,目录要已经存在。",
- value: x("pikpak"),
- isDisabled: !e.available,
- onChange: (e) => S("pikpak", e)
- }),
- /* @__PURE__ */ (0, B.jsxs)("div", {
- className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
- "aria-label": "PikPak 根目录对应的媒体文件夹",
- selectedKey: i.pikpak_root || null,
- isDisabled: !e.available,
- placeholder: "检查时按推送发现选",
- onSelectionChange: (e) => a({
- ...i,
- pikpak_root: e === null ? "" : String(e)
- }),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
- id: e,
- children: e
- }, e))
- }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
- }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: "等待上限(小时)",
- type: "number",
- inputMode: "numeric",
- autoComplete: "off",
- hint: `远端超过这么久还没下完就标为停滞,多半是没有人做种。1 到 ${e.max_wait_hours} 小时。`,
- value: c,
- isDisabled: !e.available,
- onChange: l
- })
- ] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, B.jsx)(Lk, {
- divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在检查 CloudDrive2" })
- }) : null,
- u ? /* @__PURE__ */ (0, B.jsx)(Sye, {
- report: u,
- detected: f,
- suggested: m,
- create: e.available ? (e) => {
- let t = {
- clouddrive_address: i.clouddrive_address,
- token: o,
- path: e,
- pikpak_root: i.pikpak_root,
- pikpak_account: r
- };
- b.run("folder", (e) => G(_ye, t, "POST", e), (t) => {
- d(t), h((t) => ({
- ...t,
- target: {
- path: e,
- exists: !0
- }
- })), y(!1), _(""), n("已新建目录");
- }, (e) => _(U(e)));
- } : void 0,
- creating: b.busy === "folder"
- }) : null,
- g || b.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
- divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || b.error })
- }) : null,
- /* @__PURE__ */ (0, B.jsxs)(Rk, {
- status: e.available ? void 0 : "云下载只在账本写入端可用。",
- children: [/* @__PURE__ */ (0, B.jsx)(J, {
- onClick: () => {
- let e = {
- address: !i.clouddrive_address.trim(),
- target: !x("115").trim(),
- root: !i.pikpak_root
- }, t = {
- clouddrive_address: i.clouddrive_address,
- token: o,
- target: x("115"),
- pikpak_root: i.pikpak_root,
- pikpak_account: r
- };
- b.run("check", (e) => G(TR, t, "POST", e), (t) => w(t, e), (e) => _(U(e)));
- },
- disabled: !e.available,
- ...X(b.busy === "check"),
- children: "检查"
- }), /* @__PURE__ */ (0, B.jsx)(J, {
- type: "submit",
- disabled: !e.available,
- ...X(b.busy === "save"),
- children: "保存配置"
- })]
- })
- ]
- });
-}
-var OR = {
- target: null,
- root: "",
- saved: !1
-};
-function Sye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
- let a = n.target;
- return /* @__PURE__ */ (0, B.jsxs)(Lk, {
- divided: !0,
- children: [/* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
- t ? /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "CloudDrive2 地址",
- children: `探测到 ${t},保存配置后生效`
- }) : null,
- a?.exists ? /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "115 目标目录",
- children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
- }) : null,
- a && !a.exists ? /* @__PURE__ */ (0, B.jsxs)(Wk, {
- term: "115 目标目录",
- children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, B.jsx)(J, {
- size: "small",
- onClick: () => r(a.path),
- ...X(i),
- children: "新建这个目录"
- }) : null]
- }) : null,
- n.root ? /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "PikPak 根目录",
- children: `按推送发现填入 ${n.root},保存配置后生效`
- }) : null,
- e.permissions.length ? /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "离线权限",
- children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
- }) : null,
- e.folder ? /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "目标目录",
- children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
- }) : null,
- e.quota ? /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "115 离线配额",
- children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
- }) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, B.jsx)(Bk, { children: e }, e))]
- });
-}
-function Cye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = IE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
- (0, R.useEffect)(() => {
- if (!v) return;
- let e = new AbortController(), r, i = async () => {
- try {
- let r = await W(ER, e.signal);
- if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
- } catch (t) {
- if (e.signal.aborted) return;
- f(U(t));
- }
- r = setTimeout(i, DR);
- };
- return r = setTimeout(i, DR), () => {
- e.abort(), clearTimeout(r);
- };
- }, [v]);
- let y = () => {
- m(""), h.run("browser", (e) => G(ER, {}, "POST", e), (e) => {
- t(e), f("");
- }, (e) => f(U(e)));
- }, b = () => {
- h.run("cancel", (e) => G(`${ER}/cancel`, {}, "POST", e), (e) => {
- t(e), f(""), m(e.pikpak_browser.message);
- }, (e) => f(U(e)));
- }, x = (e) => {
- if (e.preventDefault(), g.logged_in) return;
- let i = {
- username: r,
- password: a,
- remember: s
- };
- h.run("login", (e) => G(vye, i, "POST", e), (e) => {
- if (t(e.settings), f(""), !e.ok) {
- u(e.captcha_url ?? "");
- return;
- }
- u(""), o(""), n("已登录 PikPak");
- }, (e) => f(U(e)));
- }, S = () => {
- h.run("logout", (e) => G(yye, {}, "POST", e), (e) => {
- t(e), f(""), n("已登出 PikPak");
- }, (e) => f(U(e)));
- }, C = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: "账号",
- placeholder: "邮箱或手机号",
- autoComplete: "username",
- maxLength: 200,
- value: r,
- isDisabled: !e.available,
- onChange: i
- }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: "密码",
- type: "password",
- autoComplete: "current-password",
- maxLength: 200,
- value: a,
- isDisabled: !e.available,
- onChange: o
- }),
- /* @__PURE__ */ (0, B.jsx)(KM, {
- isSelected: s,
- isDisabled: !e.available,
- onChange: c,
- children: "保存密码,登录过期时自动重新登录"
- }),
- l ? /* @__PURE__ */ (0, B.jsx)(Y, {
- tone: "warning",
- title: "需要人机验证",
- extra: /* @__PURE__ */ (0, B.jsx)("div", {
- className: "pt-2",
- children: /* @__PURE__ */ (0, B.jsx)(Hk, {
- href: l,
- children: "打开 PikPak 验证页"
- })
- }),
- children: "在浏览器里完成验证后,回到这里再点一次「登录」。"
- }) : null
- ] }), w = /* @__PURE__ */ (0, B.jsx)(J, {
- type: "submit",
- disabled: !e.available || v,
- ...X(h.busy === "login"),
- children: "登录"
- }), T = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
- title: "PikPak 账号",
- onSubmit: x,
- children: [
- g.logged_in ? /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "账号",
- children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "登录方式",
- children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, B.jsx)(Wk, {
- term: "密码",
- children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
- p ? T ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: p }) : /* @__PURE__ */ (0, B.jsx)(zk, {
- role: "status",
- children: p
- }) : null,
- /* @__PURE__ */ (0, B.jsx)(Gk, {
- summary: "用账号密码登录",
- children: /* @__PURE__ */ (0, B.jsxs)("div", {
- className: "flex flex-col gap-4",
- children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
- C,
- /* @__PURE__ */ (0, B.jsx)("div", {
- className: "flex justify-end",
- children: w
- })
- ]
- })
- })
- ] }) : /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
- d || h.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
- divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: d || h.error })
- }) : null,
- /* @__PURE__ */ (0, B.jsx)(Rk, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, B.jsx)(ME, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
- children: g.logged_in ? /* @__PURE__ */ (0, B.jsx)(J, {
- onClick: S,
- disabled: !e.available,
- ...X(h.busy === "logout"),
- children: "登出"
- }) : _.available ? v ? /* @__PURE__ */ (0, B.jsx)(J, {
- type: "button",
- onClick: b,
- ...X(h.busy === "cancel"),
- children: "取消"
- }) : /* @__PURE__ */ (0, B.jsx)(J, {
- type: "button",
- onClick: y,
- disabled: !e.available,
- ...X(h.busy === "browser"),
- children: "用浏览器登录"
- }) : w
- })
- ]
+ })
});
}
//#endregion
//#region src/react/settings/folder-rows.tsx
-function wye({ className: e }) {
+function Tye({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -50700,8 +50758,8 @@ var kR = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], AR = (e) => Oe[e] || "database", Tye = (e) => e === "115" || e === "pikpak";
-function Eye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
+], AR = (e) => Oe[e] || "database", Eye = (e) => e === "115" || e === "pikpak";
+function Dye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
let [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)([]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = (0, R.useRef)(!1), m = (0, R.useRef)([]);
(0, R.useLayoutEffect)(() => {
l !== null && (m.current[l]?.focus(), u(null));
@@ -50744,7 +50802,7 @@ function Eye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function Dye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, children: c }) {
+function Oye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border bg-background-primary-default p-3",
@@ -50762,13 +50820,17 @@ function Dye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
isInvalid: !!r,
hint: r || void 0
}),
- /* @__PURE__ */ (0, B.jsx)(IM, {
- icon: wye,
+ c ? /* @__PURE__ */ (0, B.jsx)("div", {
+ className: "flex h-10 shrink-0 items-center",
+ children: c
+ }) : null,
+ /* @__PURE__ */ (0, B.jsx)(FM, {
+ icon: Tye,
"aria-label": "选择文件夹",
onClick: o,
...X(a)
}),
- s ? /* @__PURE__ */ (0, B.jsx)(IM, {
+ s ? /* @__PURE__ */ (0, B.jsx)(FM, {
icon: bT,
"aria-label": "移除这个文件夹",
onClick: s
@@ -50776,11 +50838,11 @@ function Dye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
]
}), /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
- children: c
+ children: l
})]
});
}
-function Oye({ index: e, value: t, onChange: n, options: r = kR }) {
+function kye({ index: e, value: t, onChange: n, options: r = kR }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(Ok, {
@@ -50797,7 +50859,7 @@ function Oye({ index: e, value: t, onChange: n, options: r = kR }) {
})]
});
}
-function kye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
+function Aye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
return /* @__PURE__ */ (0, B.jsx)(Ck, {
label: n,
placeholder: r,
@@ -50806,105 +50868,8 @@ function kye({ value: e, onChange: t, label: n = "Windows 中的对应路径", p
});
}
//#endregion
-//#region src/react/settings/indexer-settings.tsx
-var jR = "/api/configuration/indexers";
-function Aye({ receipt: e }) {
- let t = wS({
- queryKey: ["indexers"],
- queryFn: ({ signal: e }) => W(jR, e)
- });
- return t.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: U(t.error) }) : t.data ? /* @__PURE__ */ (0, B.jsx)(jye, {
- initial: t.data,
- receipt: e
- }) : null;
-}
-function jye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.indexers), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
- ...n,
- ...t
- } : n));
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
- title: "资源索引器",
- onSubmit: (e) => {
- e.preventDefault(), i.run("save", (e) => G(jR, { indexers: n }, "POST", e), (e) => {
- r(e.indexers), t("已保存索引器");
- });
- },
- children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "用户自配索引器。填写 Prowlarr 或 Jackett 提供的 Torznab API 地址,在活动页「云下载」中按番号搜索。" }),
- n.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("div", {
- className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
- children: [
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: `索引器 ${t + 1} 名称`,
- value: e.name,
- maxLength: 80,
- isDisabled: !!i.busy,
- onChange: (t) => a(e.key, { name: t })
- }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: `索引器 ${t + 1} API 地址`,
- value: e.url,
- type: "url",
- autoComplete: "off",
- hint: "不带 apikey 或其他查询参数。",
- isDisabled: !!i.busy,
- onChange: (t) => a(e.key, { url: t })
- }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
- label: `索引器 ${t + 1} API key`,
- type: "password",
- autoComplete: "new-password",
- value: e.api_key || "",
- hint: e.api_key_set ? "已保存;地址不变时留空保留。" : "仅保存在这台电脑。",
- isDisabled: !!i.busy,
- onChange: (t) => a(e.key, { api_key: t })
- }),
- /* @__PURE__ */ (0, B.jsx)(KM, {
- isSelected: e.enabled,
- isDisabled: !!i.busy,
- onChange: (t) => a(e.key, { enabled: t }),
- children: "启用 · 用户自配索引器"
- }),
- e.api_key_set ? /* @__PURE__ */ (0, B.jsx)(KM, {
- isSelected: !!e.clear_api_key,
- isDisabled: !!i.busy,
- onChange: (t) => a(e.key, { clear_api_key: t }),
- children: "清除已保存的 API key"
- }) : null,
- /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsxs)(J, {
- type: "button",
- disabled: !!i.busy,
- onClick: () => r(n.filter((t) => t.key !== e.key)),
- children: ["移除索引器 ", t + 1]
- }) })
- ]
- }, e.key)),
- i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, B.jsxs)(Rk, {
- status: "保存后生效;关闭或移除索引器会停止向它查询。",
- children: [/* @__PURE__ */ (0, B.jsx)(J, {
- type: "button",
- disabled: !!i.busy || n.length >= e.max_indexers,
- onClick: () => r([...n, {
- key: crypto.randomUUID(),
- name: "",
- url: "",
- enabled: !1,
- api_key_set: !1
- }]),
- children: "添加索引器"
- }), /* @__PURE__ */ (0, B.jsx)(J, {
- type: "submit",
- ...X(i.busy === "save"),
- children: "保存配置"
- })]
- })]
- });
-}
-//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var MR = [
+var jR = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -50948,13 +50913,13 @@ var MR = [
["star", "收藏"],
["tags", "主题"]
];
-function Mye(e) {
+function jye(e) {
let t = e === "local" ? "" : Oe[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var NR = "auto";
-function Nye({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = Mye(n);
+var MR = "auto";
+function Mye({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = jye(n);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
ref: i,
variant: "secondary",
@@ -50968,7 +50933,7 @@ function Nye({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, B.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: e || l }), ((e) => e && MR.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: e || l }), ((e) => e && jR.find(([t]) => t === e)?.[1] || u)(e)]
})
}), /* @__PURE__ */ (0, B.jsx)(SO, {
triggerRef: i,
@@ -50988,15 +50953,15 @@ function Nye({ value: e, label: t, kind: n = "local", onChange: r }) {
}),
/* @__PURE__ */ (0, B.jsx)(BO, {
"aria-label": "候选图标",
- value: s || NR,
- onChange: (e) => c(e === NR ? "" : e),
+ value: s || MR,
+ onChange: (e) => c(e === MR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: MR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
- value: e || NR,
+ children: jR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
+ value: e || MR,
"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, B.jsx)(Kk, { mark: e || l })
- }, e || NR))
+ }, e || MR))
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -51018,9 +50983,9 @@ function Nye({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Pye = "/api/configuration/push-discovery", Fye = "/api/configuration/push-discovery/secret";
-function Iye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = IE(), l = PM(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
+var Nye = "/api/configuration/push-discovery", Pye = "/api/configuration/push-discovery/secret";
+function Fye({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = IE(), l = NM(), u = n.media_roots, [d, f] = (0, R.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,
@@ -51036,14 +51001,13 @@ function Iye({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => G(Pye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
+ c.run("save", (e) => G(Nye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
},
children: [
/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
/* @__PURE__ */ (0, B.jsx)(Mk, {
label: "新文件落地就入库",
- description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, B.jsx)(oL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -51055,8 +51019,8 @@ function Iye({ initial: e, receipt: t }) {
}),
/* @__PURE__ */ (0, B.jsx)(Mk, {
label: "监视本机文件夹",
- description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, B.jsx)(oL, {
+ description: "只监视本地磁盘,网盘由下面的 CloudDrive2 通知负责。",
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -51068,8 +51032,8 @@ function Iye({ initial: e, receipt: t }) {
}),
/* @__PURE__ */ (0, B.jsx)(Mk, {
label: "接收 CloudDrive2 通知",
- description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, B.jsx)(oL, {
+ description: "网盘里有新文件时由 CloudDrive2 通知 Peach。",
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -51096,16 +51060,16 @@ function Iye({ initial: e, receipt: t }) {
className: "flex flex-col gap-3",
children: [
/* @__PURE__ */ (0, B.jsx)(Vk, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "在 CloudDrive2「设置 → Webhooks」里新建一条,粘贴这段配置。Webhook 需要 CloudDrive2 会员。" }),
d.config_toml ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, B.jsx)(Gk, {
+ }) }), /* @__PURE__ */ (0, B.jsxs)(Gk, {
summary: "查看这段配置",
- children: /* @__PURE__ */ (0, B.jsx)("div", {
+ children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "relative",
children: /* @__PURE__ */ (0, B.jsx)("pre", {
ref: l,
@@ -51113,7 +51077,7 @@ function Iye({ initial: e, receipt: t }) {
className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",
children: d.config_toml
})
- })
+ }), /* @__PURE__ */ (0, B.jsx)(zk, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
})] }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
@@ -51124,7 +51088,7 @@ function Iye({ initial: e, receipt: t }) {
className: "flex flex-col gap-3",
children: [
/* @__PURE__ */ (0, B.jsx)(Vk, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "左边填 CloudDrive2 里的目录,右边选它对应的媒体文件夹。" }),
/* @__PURE__ */ (0, B.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -51152,7 +51116,7 @@ function Iye({ initial: e, receipt: t }) {
children: e
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(IM, {
+ /* @__PURE__ */ (0, B.jsx)(FM, {
icon: bT,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
@@ -51176,10 +51140,10 @@ function Iye({ initial: e, receipt: t }) {
children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: o || c.error })
}) : null,
/* @__PURE__ */ (0, B.jsxs)(Rk, {
- status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
+ status: d.enabled && d.cloud ? "更换密钥后要在 CloudDrive2 重新粘贴配置。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => {
- c.run("secret", (e) => G(Fye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
+ c.run("secret", (e) => G(Pye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
},
disabled: !n.available,
...X(c.busy === "secret"),
@@ -51196,14 +51160,14 @@ function Iye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Lye = (e) => kR.find(([t]) => t === e)?.[1] ?? e, Rye = async (e) => (await G(Qve, { initial: e })).path, PR = (e = "") => ({
+var Iye = (e) => kR.find(([t]) => t === e)?.[1] ?? e, Lye = async (e) => (await G($ve, { initial: e })).path, NR = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function zye(e) {
+function Rye(e) {
let t = e.media_sources?.filter((e) => kR.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
@@ -51211,14 +51175,14 @@ function zye(e) {
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => PR(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => NR(e));
}
-var Bye = (e) => !(e instanceof RS) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Vye({ data: e, receipt: t }) {
+var zye = (e) => !(e instanceof zS) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Bye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, B.jsx)(Hye, {
+ e.editable ? /* @__PURE__ */ (0, B.jsx)(Vye, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -51226,33 +51190,28 @@ function Vye({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, B.jsx)(Wye, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, B.jsx)(Iye, {
+ e.editable ? null : /* @__PURE__ */ (0, B.jsx)(Hye, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, B.jsx)(Fye, {
initial: e.push_discovery,
receipt: t
- }) : null,
- e.downloads ? /* @__PURE__ */ (0, B.jsx)(bye, {
- initial: e.downloads,
- receipt: t
- }) : null,
- e.downloads ? /* @__PURE__ */ (0, B.jsx)(Aye, { receipt: t }) : null
+ }) : null
]
});
}
-function Hye({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Eye({
- initial: () => zye(e),
- blank: () => PR(),
- pickFolder: Rye,
+function Vye({ data: e, receipt: t }) {
+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Dye({
+ initial: () => Rye(e),
+ blank: () => NR(),
+ pickFolder: Lye,
describe: U
}), [d, f] = (0, R.useState)(String(e.port)), [p, m] = (0, R.useState)(!1), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(""), [y, b] = (0, R.useState)(null), x = (0, R.useRef)(e.revision), S = IE();
(0, R.useEffect)(() => {
if (!y) return;
- let e = setTimeout(() => location.assign(y.url), fye);
+ let e = setTimeout(() => location.assign(y.url), xye);
return () => clearTimeout(e);
}, [y]);
let C = (r) => {
- r.preventDefault(), v(""), S.run("save", (t) => G(yR, {
+ r.preventDefault(), v(""), S.run("save", (t) => G(vR, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -51261,7 +51220,7 @@ function Hye({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, s([]), g(""), t("已保存配置"), b(e);
}, (e) => {
- let t = Bye(e);
+ let t = zye(e);
s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(U(e));
});
};
@@ -51281,7 +51240,7 @@ function Hye({ data: e, receipt: t }) {
]
}) })
});
- let w = n.some((e) => Tye(e.location)), T = w ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Eye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "这台电脑",
onSubmit: C,
@@ -51294,7 +51253,7 @@ function Hye({ data: e, receipt: t }) {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, i) => /* @__PURE__ */ (0, B.jsxs)(Dye, {
+ children: n.map((t, i) => /* @__PURE__ */ (0, B.jsxs)(Oye, {
label: `媒体文件夹 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, { path: e }),
@@ -51303,6 +51262,7 @@ function Hye({ data: e, receipt: t }) {
picking: c === i,
onPick: () => void l(i),
onRemove: n.length > 1 ? () => a(i) : void 0,
+ status: w(t.path) ? /* @__PURE__ */ (0, B.jsx)(PR, { online: w(t.path)?.online }) : null,
children: [
/* @__PURE__ */ (0, B.jsx)(Ck, {
label: "媒体库名称",
@@ -51313,19 +51273,19 @@ function Hye({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体库图标" }), /* @__PURE__ */ (0, B.jsx)(Nye, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体库图标" }), /* @__PURE__ */ (0, B.jsx)(Mye, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => r(i, { library_icon: e })
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Oye, {
+ /* @__PURE__ */ (0, B.jsx)(kye, {
index: i,
value: t.location,
onChange: (e) => r(i, { location: e })
}),
- e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(kye, {
+ e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(Aye, {
value: t.root,
onChange: (e) => r(i, { root: e })
}) : null
@@ -51339,8 +51299,8 @@ function Hye({ data: e, receipt: t }) {
})
]
}),
- w ? /* @__PURE__ */ (0, B.jsx)(hye, {}) : null,
- T.map((e) => /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
+ T ? /* @__PURE__ */ (0, B.jsx)(wye, {}) : null,
+ E.map((e) => /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
"未检测到 ",
e.name,
"。",
@@ -51360,7 +51320,7 @@ function Hye({ data: e, receipt: t }) {
isInvalid: !!h,
hint: h || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, B.jsx)(KM, {
+ /* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: p,
onChange: m,
children: "保存后扫描并补全资料"
@@ -51371,7 +51331,7 @@ function Hye({ data: e, receipt: t }) {
children: _
}) : null
] }), /* @__PURE__ */ (0, B.jsx)(Rk, {
- status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
+ status: e.port_editable === !1 ? void 0 : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
...X(S.busy === "save"),
@@ -51380,7 +51340,7 @@ function Hye({ data: e, receipt: t }) {
})]
});
}
-function Uye({ online: e }) {
+function PR({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -51404,21 +51364,21 @@ function Uye({ online: e }) {
}), "未检测"]
});
}
-function Wye({ data: e }) {
+function Hye({ data: e }) {
let t = e.media_sources, n = IE();
return t ? /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "挂载状态",
children: [
/* @__PURE__ */ (0, B.jsx)(Uk, { children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(Wk, {
- term: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: AR(e.location) }), Lye(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, B.jsx)(Uye, { online: e.online })]
+ term: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: AR(e.location) }), Iye(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, B.jsx)(PR, { online: e.online })]
}, t)) }),
n.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: n.error })
}) : null,
/* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
- onClick: () => void n.run("refresh", (e) => xR(e), (e) => p.setQueryData(bR, e)),
+ onClick: () => void n.run("refresh", (e) => bR(e), (e) => p.setQueryData(yR, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -51427,7 +51387,7 @@ function Wye({ data: e }) {
}
//#endregion
//#region src/react/settings/password-pair.tsx
-function Gye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+function Uye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
id: "access-password",
type: "password",
@@ -51458,12 +51418,12 @@ function Gye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Kye = {
+var Wye = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function qye({ initial: e, receipt: t }) {
+function Gye({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = IE(), g = (e) => {
e.preventDefault();
let f = {};
@@ -51481,10 +51441,10 @@ function qye({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof RS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof zS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(U(e));
});
- }, _ = Kye[n.mode], v = n.mode !== "locked";
+ }, _ = Wye[n.mode], v = n.mode !== "locked";
return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "访问密码",
onSubmit: g,
@@ -51497,7 +51457,7 @@ function qye({ initial: e, receipt: t }) {
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, B.jsx)(KM, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, B.jsx)(GM, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
@@ -51515,7 +51475,7 @@ function qye({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, B.jsx)(Gye, {
+ v ? /* @__PURE__ */ (0, B.jsx)(Uye, {
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
password: o,
confirmation: c,
@@ -51533,31 +51493,68 @@ function qye({ initial: e, receipt: t }) {
}) : null,
h.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, B.jsx)(Rk, {
- status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, B.jsx)(J, {
- type: "submit",
- ...X(h.busy === "save"),
- children: "保存配置"
- })
- }) : null]
+ }), v ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ type: "submit",
+ ...X(h.busy === "save"),
+ children: "保存配置"
+ }) }) : null]
+ });
+}
+//#endregion
+//#region src/configuration-copy.ts
+var Kye = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", qye = "只填域名,留空用默认地址";
+//#endregion
+//#region src/react/settings/entry-links-settings.tsx
+function Jye({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e.sites), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ ...n,
+ host: t
+ } : n));
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ title: "外部入口",
+ onSubmit: (e) => {
+ e.preventDefault();
+ let a = { sites: Object.fromEntries(n.map((e) => [e.key, { host: e.host }])) };
+ i.run("save", (e) => G("/api/configuration/entry-links", a, "POST", e), (e) => {
+ r(e.sites), t("已保存配置");
+ });
+ },
+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: Kye }),
+ n.map((e) => /* @__PURE__ */ (0, B.jsx)(Ck, {
+ id: `entry-link-${e.key}`,
+ label: `${e.label} 地址`,
+ autoComplete: "off",
+ maxLength: 100,
+ value: e.host,
+ placeholder: e.default_host,
+ onChange: (t) => a(e.key, t),
+ validationBehavior: "aria",
+ hint: qye
+ }, e.key)),
+ i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ type: "submit",
+ ...X(i.busy === "save"),
+ children: "保存配置"
+ }) })]
});
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var Jye = 2e3, Yye = [["quick", "临时链接"], ["named", "命名隧道"]], Xye = {
- quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
- named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
+var Yye = 2e3, Xye = [["quick", "临时链接"], ["named", "命名隧道"]], Zye = {
+ quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
+ named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function Zye({ revision: e, initial: t, receipt: n }) {
+function Qye({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)({}), g = IE(), _ = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";
(0, R.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- xR(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (p.setQueryData(bR, t), i(t.tunnel), o(t.revision));
+ bR(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (p.setQueryData(yR, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, Jye);
+ }, Yye);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -51572,7 +51569,7 @@ function Zye({ revision: e, initial: t, receipt: n }) {
}, "POST", e), (e) => {
i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);
}, (e) => {
- let t = e instanceof RS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof zS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? h(n) : g.setError(U(e));
});
};
@@ -51588,13 +51585,13 @@ function Zye({ revision: e, initial: t, receipt: n }) {
isDisabled: _,
onChange: (e) => c(e),
className: vA,
- children: Yye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
+ children: Xye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
className: yA,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, B.jsx)(zk, { children: Xye[v ? "named" : "quick"] }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: Zye[v ? "named" : "quick"] }),
v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
id: "tunnel-hostname",
label: "公开主机名",
@@ -51605,7 +51602,7 @@ function Zye({ revision: e, initial: t, receipt: n }) {
isDisabled: _,
validationBehavior: "aria",
isInvalid: !!m.hostname,
- hint: m.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
+ hint: m.hostname || "Cloudflare Zero Trust 里指向这台电脑的主机名。"
}), /* @__PURE__ */ (0, B.jsx)(Ck, {
id: "tunnel-token",
type: "password",
@@ -51616,7 +51613,7 @@ function Zye({ revision: e, initial: t, receipt: n }) {
onChange: f,
isDisabled: _,
validationBehavior: "aria",
- hint: r.token_set ? "已保存。留空表示沿用已保存的令牌。" : "在 Cloudflare Zero Trust 的隧道详情页复制。"
+ hint: r.token_set ? "已保存,留空不改。" : "在 Cloudflare Zero Trust 的隧道详情页复制。"
})] }) : null,
r.available ? null : /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
@@ -51639,7 +51636,7 @@ function Zye({ revision: e, initial: t, receipt: n }) {
r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null,
g.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g.error }) : null
] }), /* @__PURE__ */ (0, B.jsxs)(Rk, {
- status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
+ status: r.enabled ? "Peach 重启后自动恢复。" : void 0,
children: [/* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => y("toggle", !_, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
...X(g.busy === "toggle"),
@@ -51654,24 +51651,28 @@ function Zye({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Qye = [
+var $ye = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function $ye({ data: e, receipt: t }) {
+function ebe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, B.jsx)(ebe, {
+ e.peach_proxy ? /* @__PURE__ */ (0, B.jsx)(tbe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, B.jsx)(qye, {
+ e.entry_links ? /* @__PURE__ */ (0, B.jsx)(Jye, {
+ initial: e.entry_links,
+ receipt: t
+ }) : null,
+ e.access ? /* @__PURE__ */ (0, B.jsx)(Gye, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, B.jsx)(Zye, {
+ e.tunnel ? /* @__PURE__ */ (0, B.jsx)(Qye, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -51679,7 +51680,7 @@ function $ye({ data: e, receipt: t }) {
]
});
}
-function ebe({ initial: e, receipt: t }) {
+function tbe({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = IE();
return /* @__PURE__ */ (0, B.jsxs)(Fk, {
id: "peachProxy",
@@ -51702,7 +51703,7 @@ function ebe({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Qye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: $ye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
@@ -51738,10 +51739,10 @@ function ebe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function tbe({ receipt: e, reopenTutorial: t }) {
- let n = wS({
- queryKey: bR,
- queryFn: ({ signal: e }) => xR(e)
+function nbe({ receipt: e, reopenTutorial: t }) {
+ let n = TS({
+ queryKey: yR,
+ queryFn: ({ signal: e }) => bR(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, B.jsx)("div", {
className: "configpage",
@@ -51754,7 +51755,7 @@ function tbe({ receipt: e, reopenTutorial: t }) {
let i = {
data: r,
receipt: e
- }, a = !!(r.startup || r.entry_links), o = !!(r.peach_proxy || r.access || r.tunnel);
+ }, a = !!(r.startup || r.automatic_updates || r.updates), o = !!(r.peach_proxy || r.entry_links || r.access || r.tunnel);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "configpage",
children: [
@@ -51762,22 +51763,30 @@ function tbe({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, B.jsx)(nye, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, B.jsx)(yye, { ...i }) : null,
/* @__PURE__ */ (0, B.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, B.jsx)(Vye, { ...i }),
+ /* @__PURE__ */ (0, B.jsx)(Bye, { ...i }),
+ r.downloads ? /* @__PURE__ */ (0, B.jsx)("h2", {
+ className: "configgroup",
+ children: "下载"
+ }) : null,
+ r.downloads ? /* @__PURE__ */ (0, B.jsx)(oye, {
+ initial: r.downloads,
+ receipt: e
+ }) : null,
o ? /* @__PURE__ */ (0, B.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, B.jsx)($ye, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, B.jsx)(ebe, { ...i }) : null,
/* @__PURE__ */ (0, B.jsx)("h2", {
className: "configgroup",
- children: "更新与维护"
+ children: "维护"
}),
- /* @__PURE__ */ (0, B.jsx)(sye, {
+ /* @__PURE__ */ (0, B.jsx)(fye, {
...i,
reopenTutorial: t
})
@@ -51786,14 +51795,14 @@ function tbe({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var nbe = "/api/stats", FR = ["stats"], IR = (e) => W(nbe, e);
-async function rbe(e) {
+var rbe = "/api/stats", FR = ["stats"], IR = (e) => W(rbe, e);
+async function ibe(e) {
await p.fetchQuery({
queryKey: FR,
queryFn: () => IR(e)
});
}
-var LR = (e, t) => t ? Math.round(e / t * 100) : 0, ibe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zR = (e) => (e.max_reached || 0) * 100, abe = (e) => e.kind === "online" ? "在线直接观看" : RR(e) < zR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", obe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, sbe = (e) => Math.max(1, ...e) * 1.1, cbe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), lbe = {
+var LR = (e, t) => t ? Math.round(e / t * 100) : 0, abe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zR = (e) => (e.max_reached || 0) * 100, obe = (e) => e.kind === "online" ? "在线直接观看" : RR(e) < zR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", sbe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, cbe = (e) => Math.max(1, ...e) * 1.1, lbe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ube = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -51801,10 +51810,10 @@ var LR = (e, t) => t ? Math.round(e / t * 100) : 0, ibe = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, ube = (e) => e.map((e) => ({
- name: lbe[e.k] ?? e.k,
+}, dbe = (e) => e.map((e) => ({
+ name: ube[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), dbe = {
+})).sort((e, t) => t.value - e.value), fbe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -51812,7 +51821,7 @@ var LR = (e, t) => t ? Math.round(e / t * 100) : 0, ibe = (e) => e >= 3600 ? `${
}, BR = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), fbe = (e) => BR(e, dbe), pbe = [
+})), pbe = (e) => BR(e, fbe), mbe = [
[
1,
1,
@@ -51848,18 +51857,18 @@ var LR = (e, t) => t ? Math.round(e / t * 100) : 0, ibe = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], mbe = (e) => pbe.map(([t, n, r]) => ({
+], hbe = (e) => mbe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), hbe = /* @__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(".");
+})), gbe = /* @__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 VR(e) {
- return typeof e == "string" && hbe.includes(e);
+ return typeof e == "string" && gbe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var gbe = /* @__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 _be = /* @__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 HR(e) {
- return typeof e == "string" && gbe.has(e);
+ return typeof e == "string" && _be.has(e);
}
function UR(e) {
return typeof e == "string" && e.startsWith("data-");
@@ -51885,12 +51894,12 @@ function KR(e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HR(n) || UR(n) || VR(n)) && (t[n] = e[n]);
return t;
}
-function _be(e) {
+function vbe(e) {
return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? KR(e.props) : typeof e == "object" && !Array.isArray(e) ? KR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var vbe = [
+var ybe = [
"children",
"width",
"height",
@@ -51909,16 +51918,16 @@ function qR() {
return e;
}, qR.apply(null, arguments);
}
-function ybe(e, t) {
+function bbe(e, t) {
if (e == null) return {};
- var n, r, i = bbe(e, t);
+ var n, r, i = xbe(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 bbe(e, t) {
+function xbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51928,7 +51937,7 @@ function bbe(e, t) {
return n;
}
var JR = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = ybe(e, vbe), d = a || {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = bbe(e, ybe), d = a || {
width: r,
height: i,
x: 0,
@@ -51942,7 +51951,7 @@ var JR = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ R.createElement("title", null, c), /*#__PURE__*/ R.createElement("desc", null, l), n);
-}), xbe = ["children", "className"];
+}), Sbe = ["children", "className"];
function YR() {
return YR = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -51952,16 +51961,16 @@ function YR() {
return e;
}, YR.apply(null, arguments);
}
-function Sbe(e, t) {
+function Cbe(e, t) {
if (e == null) return {};
- var n, r, i = Cbe(e, t);
+ var n, r, i = wbe(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 Cbe(e, t) {
+function wbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51971,9 +51980,9 @@ function Cbe(e, t) {
return n;
}
var XR = /*#__PURE__*/ R.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = Sbe(e, xbe), a = Sh("recharts-layer", r);
+ var { children: n, className: r } = e, i = Cbe(e, Sbe), a = Sh("recharts-layer", r);
return /*#__PURE__*/ R.createElement("g", YR({ className: a }, KR(i), { ref: t }), n);
-}), ZR = /*#__PURE__*/ (0, R.createContext)(null), wbe = () => (0, R.useContext)(ZR);
+}), ZR = /*#__PURE__*/ (0, R.createContext)(null), Tbe = () => (0, R.useContext)(ZR);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
function QR(e) {
@@ -51985,12 +51994,12 @@ function QR(e) {
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
var $R = Math.cos, ez = Math.sin, tz = Math.sqrt, nz = Math.PI;
nz / 2;
-var rz = 2 * nz, iz = Math.PI, az = 2 * iz, oz = 1e-6, Tbe = az - oz;
+var rz = 2 * nz, iz = Math.PI, az = 2 * iz, oz = 1e-6, Ebe = az - oz;
function sz(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Ebe(e) {
+function Dbe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
if (t > 15) return sz;
@@ -52002,7 +52011,7 @@ function Ebe(e) {
}
var cz = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sz : Ebe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sz : Dbe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -52034,7 +52043,7 @@ var cz = 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) > oz || Math.abs(this._y1 - l) > oz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % az + az), d > Tbe ? 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 > oz && this._append`A${n},${n},0,${+(d >= iz)},${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) > oz || Math.abs(this._y1 - l) > oz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % az + az), d > Ebe ? 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 > oz && this._append`A${n},${n},0,${+(d >= iz)},${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`;
@@ -52201,10 +52210,10 @@ var _z = class {
this._x0 = e, this._y0 = t;
}
};
-function Dbe(e) {
+function Obe(e) {
return new _z(e, !0);
}
-function Obe(e) {
+function kbe(e) {
return new _z(e, !1);
}
//#endregion
@@ -52212,33 +52221,33 @@ function Obe(e) {
var vz = { draw(e, t) {
let n = tz(t / nz);
e.moveTo(n, 0), e.arc(0, 0, n, 0, rz);
-} }, kbe = { draw(e, t) {
+} }, Abe = { draw(e, t) {
let n = tz(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();
-} }, yz = tz(1 / 3), Abe = yz * 2, jbe = { draw(e, t) {
- let n = tz(t / Abe), r = n * yz;
+} }, yz = tz(1 / 3), jbe = yz * 2, Mbe = { draw(e, t) {
+ let n = tz(t / jbe), r = n * yz;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, Mbe = { draw(e, t) {
+} }, Nbe = { draw(e, t) {
let n = tz(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, Nbe = .8908130915292852, bz = ez(nz / 10) / ez(7 * nz / 10), Pbe = ez(rz / 10) * bz, Fbe = -$R(rz / 10) * bz, Ibe = { draw(e, t) {
- let n = tz(t * Nbe), r = Pbe * n, i = Fbe * n;
+} }, Pbe = .8908130915292852, bz = ez(nz / 10) / ez(7 * nz / 10), Fbe = ez(rz / 10) * bz, Ibe = -$R(rz / 10) * bz, Lbe = { draw(e, t) {
+ let n = tz(t * Pbe), r = Fbe * n, i = Ibe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
let a = rz * t / 5, o = $R(a), s = ez(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, xz = tz(3), Lbe = { draw(e, t) {
+} }, xz = tz(3), Rbe = { draw(e, t) {
let n = -tz(t / (xz * 3));
e.moveTo(0, n * 2), e.lineTo(-xz * n, -n), e.lineTo(xz * n, -n), e.closePath();
-} }, Sz = -.5, Cz = tz(3) / 2, wz = 1 / tz(12), Rbe = (wz / 2 + 1) * 3, zbe = { draw(e, t) {
- let n = tz(t / Rbe), r = n / 2, i = n * wz, a = r, o = n * wz + n, s = -a, c = o;
+} }, Sz = -.5, Cz = tz(3) / 2, wz = 1 / tz(12), zbe = (wz / 2 + 1) * 3, Bbe = { draw(e, t) {
+ let n = tz(t / zbe), r = n / 2, i = n * wz, a = r, o = n * wz + n, s = -a, c = o;
e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(Sz * r - Cz * i, Cz * r + Sz * i), e.lineTo(Sz * a - Cz * o, Cz * a + Sz * o), e.lineTo(Sz * s - Cz * c, Cz * s + Sz * c), e.lineTo(Sz * r + Cz * i, Sz * i - Cz * r), e.lineTo(Sz * a + Cz * o, Sz * o - Cz * a), e.lineTo(Sz * s + Cz * c, Sz * c - Cz * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Bbe(e, t) {
+function Vbe(e, t) {
let n = null, r = lz(i);
e = typeof e == "function" ? e : QR(e || vz), t = typeof t == "function" ? t : QR(t === void 0 ? 64 : +t);
function i() {
@@ -52295,7 +52304,7 @@ Dz.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Vbe(e) {
+function Hbe(e) {
return new Dz(e);
}
//#endregion
@@ -52336,7 +52345,7 @@ Oz.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Hbe(e) {
+function Ube(e) {
return new Oz(e);
}
//#endregion
@@ -52376,7 +52385,7 @@ kz.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Ube(e) {
+function Wbe(e) {
return new kz(e);
}
//#endregion
@@ -52397,7 +52406,7 @@ Az.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Wbe(e) {
+function Gbe(e) {
return new Az(e);
}
//#endregion
@@ -52481,10 +52490,10 @@ Lz.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Gbe(e) {
+function Kbe(e) {
return new Fz(e);
}
-function Kbe(e) {
+function qbe(e) {
return new Iz(e);
}
//#endregion
@@ -52522,7 +52531,7 @@ function zz(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 qbe(e) {
+function Jbe(e) {
return new Rz(e);
}
//#endregion
@@ -52558,13 +52567,13 @@ Bz.prototype = {
this._x = e, this._y = t;
}
};
-function Jbe(e) {
+function Ybe(e) {
return new Bz(e, .5);
}
-function Ybe(e) {
+function Xbe(e) {
return new Bz(e, 0);
}
-function Xbe(e) {
+function Zbe(e) {
return new Bz(e, 1);
}
//#endregion
@@ -52580,17 +52589,17 @@ function Hz(e) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Zbe(e, t) {
+function Qbe(e, t) {
return e[t];
}
-function Qbe(e) {
+function $be(e) {
let t = [];
return t.key = e, t;
}
-function $be() {
- var e = QR([]), t = Hz, n = Vz, r = Zbe;
+function exe() {
+ var e = QR([]), t = Hz, n = Vz, r = Qbe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Qbe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), $be), 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 = uz(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
@@ -52607,7 +52616,7 @@ function $be() {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function exe(e, t) {
+function txe(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;
@@ -52618,7 +52627,7 @@ function exe(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function txe(e, t) {
+function nxe(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;
@@ -52629,7 +52638,7 @@ function txe(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function nxe(e, t) {
+function rxe(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) {
@@ -52651,12 +52660,12 @@ function Uz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var rxe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+var ixe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
function Wz(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : rxe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : ixe.test(e);
default: return !1;
}
}
@@ -52672,7 +52681,7 @@ function Kz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function ixe(e) {
+function axe(e) {
return e == null ? "" : qz(e);
}
function qz(e) {
@@ -52687,7 +52696,7 @@ function qz(e) {
function Jz(e) {
if (Array.isArray(e)) return e.map(Gz);
if (typeof e == "symbol") return [e];
- e = ixe(e);
+ e = axe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -52730,14 +52739,14 @@ function Yz(e, t, n) {
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return axe(e, t, n);
+ if (Array.isArray(t)) return oxe(e, t, n);
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Uz(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function axe(e, t, n) {
+function oxe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
@@ -52748,9 +52757,9 @@ function axe(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var oxe = 4;
+var sxe = 4;
function Xz(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : oxe), n = Math.round(e * t) / t;
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : sxe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
function Zz(e) {
@@ -52762,8 +52771,8 @@ function Zz(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var Qz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $z = (e) => typeof e == "number" && e != +e, eB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$z(e), tB = (e) => Z(e) || typeof e == "string", sxe = 0, nB = (e) => {
- var t = ++sxe;
+var Qz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $z = (e) => typeof e == "number" && e != +e, eB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$z(e), tB = (e) => Z(e) || typeof e == "string", cxe = 0, nB = (e) => {
+ var t = ++cxe;
return `${e || ""}${t}`;
}, rB = 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];
@@ -52794,7 +52803,7 @@ function lB(e) {
function uB() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var cxe = [
+var lxe = [
"type",
"size",
"sizeType"
@@ -52822,26 +52831,26 @@ function pB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? fB(Object(n), !0).forEach(function(t) {
- lxe(e, t, n[t]);
+ uxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lxe(e, t, n) {
- return (t = uxe(t)) in e ? Object.defineProperty(e, t, {
+function uxe(e, t, n) {
+ return (t = dxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uxe(e) {
- var t = dxe(e, "string");
+function dxe(e) {
+ var t = fxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dxe(e, t) {
+function fxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52851,16 +52860,16 @@ function dxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function fxe(e, t) {
+function pxe(e, t) {
if (e == null) return {};
- var n, r, i = pxe(e, t);
+ var n, r, i = mxe(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 pxe(e, t) {
+function mxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -52871,36 +52880,36 @@ function pxe(e, t) {
}
var mB = {
symbolCircle: vz,
- symbolCross: kbe,
- symbolDiamond: jbe,
- symbolSquare: Mbe,
- symbolStar: Ibe,
- symbolTriangle: Lbe,
- symbolWye: zbe
-}, mxe = Math.PI / 180, hxe = (e) => mB[`symbol${cB(e)}`] || vz, gxe = (e, t, n) => {
+ symbolCross: Abe,
+ symbolDiamond: Mbe,
+ symbolSquare: Nbe,
+ symbolStar: Lbe,
+ symbolTriangle: Rbe,
+ symbolWye: Bbe
+}, hxe = Math.PI / 180, gxe = (e) => mB[`symbol${cB(e)}`] || vz, _xe = (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 * mxe;
+ var r = 18 * hxe;
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;
}
-}, _xe = (e, t) => {
+}, vxe = (e, t) => {
mB[`symbol${cB(e)}`] = t;
}, hB = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pB(pB({}, fxe(e, cxe)), {}, {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pB(pB({}, pxe(e, lxe)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = hxe(a), t = Bbe().type(e).size(gxe(n, r, a))();
+ var e = gxe(a), t = Vbe().type(e).size(_xe(n, r, a))();
if (t !== null) return t;
}, { className: s, cx: c, cy: l } = i, u = KR(i);
return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", dB({}, u, {
@@ -52909,7 +52918,7 @@ var mB = {
d: o()
})) : null;
};
-hB.registerSymbol = _xe;
+hB.registerSymbol = vxe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
var gB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _B = (e, t) => {
@@ -52920,12 +52929,12 @@ var gB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _B = (e,
return Object.keys(n).forEach((e) => {
VR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, vxe = (e, t, n) => (r) => (e(t, n, r), null), vB = (e, t, n) => {
+}, yxe = (e, t, n) => (r) => (e(t, n, r), null), vB = (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];
- VR(i) && typeof a == "function" && (r ||= {}, r[i] = vxe(a, t, n));
+ VR(i) && typeof a == "function" && (r ||= {}, r[i] = yxe(a, t, n));
}), r;
};
//#endregion
@@ -52940,30 +52949,30 @@ function yB(e, t) {
}
return n;
}
-function yxe(e) {
+function bxe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? yB(Object(n), !0).forEach(function(t) {
- bxe(e, t, n[t]);
+ xxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bxe(e, t, n) {
- return (t = xxe(t)) in e ? Object.defineProperty(e, t, {
+function xxe(e, t, n) {
+ return (t = Sxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xxe(e) {
- var t = Sxe(e, "string");
+function Sxe(e) {
+ var t = Cxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sxe(e, t) {
+function Cxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52974,7 +52983,7 @@ function Sxe(e, t) {
return (t === "string" ? String : Number)(e);
}
function bB(e, t) {
- var n = yxe({}, e), r = t;
+ var n = bxe({}, 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
@@ -53002,26 +53011,26 @@ function CB(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) {
- Cxe(e, t, n[t]);
+ wxe(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 Cxe(e, t, n) {
- return (t = wxe(t)) in e ? Object.defineProperty(e, t, {
+function wxe(e, t, n) {
+ return (t = Txe(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 Txe(e) {
+ var t = Exe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Txe(e, t) {
+function Exe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53031,7 +53040,7 @@ function Txe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var wB = 32, Exe = {
+var wB = 32, Dxe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -53039,17 +53048,17 @@ var wB = 32, Exe = {
verticalAlign: "middle",
labelStyle: {}
};
-function Dxe(e) {
+function Oxe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function Oxe(e) {
+function kxe(e) {
var { data: t, iconType: n, inactiveColor: r } = e, i = wB / 2, a = wB / 6, o = wB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ R.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: Dxe(t.payload),
+ strokeDasharray: Oxe(t.payload),
x1: 0,
y1: i,
x2: wB,
@@ -53085,7 +53094,7 @@ function Oxe(e) {
type: c
});
}
-function kxe(e) {
+function Axe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
@@ -53119,7 +53128,7 @@ function kxe(e) {
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ R.createElement(Oxe, {
+ }, /*#__PURE__*/ R.createElement(kxe, {
data: t,
iconType: o,
inactiveColor: a
@@ -53129,8 +53138,8 @@ function kxe(e) {
}, m));
});
}
-var Axe = (e) => {
- var t = bB(e, Exe), { payload: n, layout: r, align: i } = t;
+var jxe = (e) => {
+ var t = bB(e, Dxe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -53140,11 +53149,11 @@ var Axe = (e) => {
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ R.createElement(kxe, xB({}, t, { payload: n })));
+ }, /*#__PURE__*/ R.createElement(Axe, xB({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function jxe(e, t) {
+function Mxe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -53154,7 +53163,7 @@ function jxe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function Mxe(e, t) {
+function Nxe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
@@ -53166,17 +53175,17 @@ function TB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function Nxe(e) {
+function Pxe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
function EB(e) {
- return e != null && typeof e != "function" && Nxe(e.length);
+ return e != null && typeof e != "function" && Pxe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function Pxe(e) {
+function Fxe(e) {
return function(t) {
return Yz(t, e);
};
@@ -53188,12 +53197,12 @@ function DB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function Fxe(e) {
+function Ixe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function Ixe(e) {
+function Lxe(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
@@ -53203,17 +53212,17 @@ function OB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var Lxe = "[object RegExp]", kB = "[object String]", AB = "[object Number]", jB = "[object Boolean]", MB = "[object Arguments]", Rxe = "[object Symbol]", zxe = "[object Date]", Bxe = "[object Map]", Vxe = "[object Set]", Hxe = "[object Array]", Uxe = "[object ArrayBuffer]", Wxe = "[object Object]", Gxe = "[object DataView]", Kxe = "[object Uint8Array]", qxe = "[object Uint8ClampedArray]", Jxe = "[object Uint16Array]", Yxe = "[object Uint32Array]", Xxe = "[object Int8Array]", Zxe = "[object Int16Array]", Qxe = "[object Int32Array]", $xe = "[object Float32Array]", eSe = "[object Float64Array]", NB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var Rxe = "[object RegExp]", kB = "[object String]", AB = "[object Number]", jB = "[object Boolean]", MB = "[object Arguments]", zxe = "[object Symbol]", Bxe = "[object Date]", Vxe = "[object Map]", Hxe = "[object Set]", Uxe = "[object Array]", Wxe = "[object ArrayBuffer]", Gxe = "[object Object]", Kxe = "[object DataView]", qxe = "[object Uint8Array]", Jxe = "[object Uint8ClampedArray]", Yxe = "[object Uint16Array]", Xxe = "[object Uint32Array]", Zxe = "[object Int8Array]", Qxe = "[object Int16Array]", $xe = "[object Int32Array]", eSe = "[object Float32Array]", tSe = "[object Float64Array]", NB = 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 tSe(e) {
+function nSe(e) {
return NB.Buffer !== void 0 && NB.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function nSe(e, t) {
+function rSe(e, t) {
return PB(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
function PB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
@@ -53244,8 +53253,8 @@ function PB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
for (let a of e) t.add(PB(a, void 0, n, r, i));
return t;
}
- if (tSe(e)) return e.subarray();
- if (Fxe(e)) {
+ if (nSe(e)) return e.subarray();
+ if (Ixe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
for (let a = 0; a < e.length; a++) t[a] = PB(e[a], a, n, r, i);
@@ -53280,49 +53289,49 @@ function PB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let t = new String(e.valueOf());
return r.set(e, t), FB(t, e, n, r, i), t;
}
- if (typeof e == "object" && rSe(e)) {
+ if (typeof e == "object" && iSe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
return r.set(e, t), FB(t, e, n, r, i), t;
}
return e;
}
function FB(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...Ixe(t)];
+ let a = [...Object.keys(t), ...Lxe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
(c == null || c.writable) && (e[s] = PB(t[s], s, n, r, i));
}
}
-function rSe(e) {
+function iSe(e) {
switch (OB(e)) {
case MB:
- case Hxe:
case Uxe:
- case Gxe:
+ case Wxe:
+ case Kxe:
case jB:
- case zxe:
- case $xe:
+ case Bxe:
case eSe:
- case Xxe:
+ case tSe:
case Zxe:
case Qxe:
- case Bxe:
- case AB:
- case Wxe:
- case Lxe:
+ case $xe:
case Vxe:
- case kB:
+ case AB:
+ case Gxe:
case Rxe:
- case Kxe:
+ case Hxe:
+ case kB:
+ case zxe:
case qxe:
case Jxe:
- case Yxe: return !0;
+ case Yxe:
+ case Xxe: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function iSe(e) {
+function aSe(e) {
return PB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
@@ -53346,16 +53355,16 @@ function RB(e, t, n) {
function zB(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return aSe(e, t, n, r, i);
+ case "object": return oSe(e, t, n, r, i);
case "function": return Object.keys(t).length > 0 ? zB(e, { ...t }, n, r, i) : IB(e, t);
default: return LB(e) && i ? typeof t != "string" || t === "" : IB(e, t);
}
}
-function aSe(e, t, n, r, i = !1) {
+function oSe(e, t, n, r, i = !1) {
if (t == null) return !0;
if (Array.isArray(t)) return BB(e, t, n, r);
- if (t instanceof Map) return oSe(e, t, n, r);
- if (t instanceof Set) return sSe(e, t, n, r);
+ if (t instanceof Map) return sSe(e, t, n, r);
+ if (t instanceof Set) return cSe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
if (i) DB(e) && (e = Object(e));
@@ -53376,7 +53385,7 @@ function aSe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function oSe(e, t, n, r) {
+function sSe(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;
@@ -53400,7 +53409,7 @@ function BB(e, t, n, r) {
}
return !0;
}
-function sSe(e, t, n, r) {
+function cSe(e, t, n, r) {
return t.size === 0 || e instanceof Set && BB([...e], [...t], n, r);
}
//#endregion
@@ -53410,13 +53419,13 @@ function VB(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function cSe(e) {
- return e = iSe(e), (t) => VB(t, e);
+function lSe(e) {
+ return e = aSe(e), (t) => VB(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function lSe(e, t) {
- return nSe(e, (n, r, i, a) => {
+function uSe(e, t) {
+ return rSe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
@@ -53442,49 +53451,49 @@ function lSe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function uSe(e) {
- return lSe(e);
+function dSe(e) {
+ return uSe(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var dSe = /^(?:0|[1-9]\d*)$/;
+var fSe = /^(?:0|[1-9]\d*)$/;
function HB(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 dSe.test(e);
+ case "string": return fSe.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function fSe(e) {
+function pSe(e) {
return typeof e == "object" && !!e && OB(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function pSe(e, t) {
+function mSe(e, t) {
let n;
if (n = Array.isArray(t) ? t : typeof t == "string" && Wz(t) && !(t in Object(e)) ? Jz(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
let t = Gz(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || fSe(r)) && HB(t) && Number(t) < r.length)) return !1;
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || pSe(r)) && HB(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function mSe(e, t) {
+function hSe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
case "number": e = Gz(e);
}
- return t = uSe(t), function(n) {
+ return t = dSe(t), function(n) {
let r = Yz(n, e);
- return r === void 0 ? pSe(n, e) : t === void 0 ? r === void 0 : VB(r, t);
+ return r === void 0 ? mSe(n, e) : t === void 0 ? r === void 0 : VB(r, t);
};
}
//#endregion
@@ -53493,19 +53502,19 @@ function UB(e) {
if (e == null) return TB;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? mSe(e[0], e[1]) : cSe(e);
- default: return Pxe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? hSe(e[0], e[1]) : lSe(e);
+ default: return Fxe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function hSe(e) {
+function gSe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
function WB(e, t = TB) {
- return EB(e) ? jxe(Array.from(e), Mxe(UB(t), 1)).map(hSe) : [];
+ return EB(e) ? Mxe(Array.from(e), Nxe(UB(t), 1)).map(gSe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
@@ -53514,7 +53523,7 @@ function GB(e, t, n) {
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var gSe = /* @__PURE__ */ Ct(((e) => {
+var _Se = /* @__PURE__ */ Ct(((e) => {
var t = At(), n = Jh();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -53559,53 +53568,53 @@ var gSe = /* @__PURE__ */ Ct(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), _Se = /* @__PURE__ */ Ct(((e, t) => {
- t.exports = gSe();
-})), KB = /*#__PURE__*/ (0, R.createContext)(null), vSe = _Se(), ySe = (e) => e, qB = () => {
+})), vSe = /* @__PURE__ */ Ct(((e, t) => {
+ t.exports = _Se();
+})), KB = /*#__PURE__*/ (0, R.createContext)(null), ySe = vSe(), bSe = (e) => e, qB = () => {
var e = (0, R.useContext)(KB);
- return e ? e.store.dispatch : ySe;
-}, JB = () => {}, bSe = () => JB, xSe = (e, t) => e === t;
+ return e ? e.store.dispatch : bSe;
+}, JB = () => {}, xSe = () => JB, SSe = (e, t) => e === t;
function Q(e) {
var t = (0, R.useContext)(KB), n = (0, R.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
} : JB, [t, e]);
- return (0, vSe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : bSe, t ? t.store.getState : JB, t ? t.store.getState : JB, n, xSe);
+ return (0, ySe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : xSe, t ? t.store.getState : JB, t ? t.store.getState : JB, n, SSe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function SSe(e, t = `expected a function, instead received ${typeof e}`) {
+function CSe(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function CSe(e, t = `expected an object, instead received ${typeof e}`) {
+function wSe(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function wSe(e, t = "expected all items to be functions, instead received the following types: ") {
+function TSe(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 YB = (e) => Array.isArray(e) ? e : [e];
-function TSe(e) {
+function ESe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return wSe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return TSe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function ESe(e, t) {
+function DSe(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var DSe = class {
+var OSe = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, OSe = typeof WeakRef < "u" ? WeakRef : DSe, kSe = 0, XB = 1;
+}, kSe = typeof WeakRef < "u" ? WeakRef : OSe, ASe = 0, XB = 1;
function ZB() {
return {
- s: kSe,
+ s: ASe,
v: void 0,
o: null,
p: null
@@ -53633,7 +53642,7 @@ function QB(e, t = {}) {
if (t.s === XB) 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 OSe(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new kSe(c) : c;
}
return s.s = XB, s.v = c, c;
}
@@ -53643,21 +53652,21 @@ function QB(e, t = {}) {
a = 0;
}, o;
}
-function ASe(e, ...t) {
+function jSe(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()), SSe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ typeof o == "object" && (a = o, o = e.pop()), CSe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
let { memoize: s, memoizeOptions: c = [], argsMemoize: l = QB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = YB(c), p = YB(u), m = TSe(e), h = s(function() {
+ }, f = YB(c), p = YB(u), m = ESe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = ESe(m, arguments);
+ let e = DSe(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -53679,14 +53688,14 @@ function ASe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ ASe(QB), jSe = Object.assign((e, t = $) => {
- CSe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ jSe(QB), MSe = Object.assign((e, t = $) => {
+ wSe(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: () => jSe });
+}, { withTypes: () => MSe });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function MSe(e, t = 1) {
+function NSe(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -53705,7 +53714,7 @@ function $B(e, t, n) {
function eV(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var NSe = (e, t, n) => {
+var PSe = (e, t, n) => {
if (e !== t) {
let r = eV(e), i = eV(t);
if (r === i && r === 0) {
@@ -53715,13 +53724,13 @@ var NSe = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, PSe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, FSe = /^\w*$/;
-function ISe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Kz(e) ? !0 : typeof e == "string" && (FSe.test(e) || !PSe.test(e)) || t != null && Object.hasOwn(t, e);
+}, FSe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ISe = /^\w*$/;
+function LSe(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Kz(e) ? !0 : typeof e == "string" && (ISe.test(e) || !FSe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function LSe(e, t, n, r) {
+function RSe(e, t, n, r) {
if (e == null) return [];
n = r ? void 0 : n, Array.isArray(e) || (e = EB(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) => {
@@ -53731,7 +53740,7 @@ function LSe(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) || ISe(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || LSe(e) ? e : {
key: e,
path: Jz(e)
}));
@@ -53740,7 +53749,7 @@ function LSe(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 = NSe(e.criteria[r], t.criteria[r], n[r]);
+ let i = PSe(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -53750,18 +53759,18 @@ function LSe(e, t, n, r) {
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
function tV(e, ...t) {
let n = t.length;
- return n > 1 && $B(e, t[0], t[1]) ? t = [] : n > 2 && $B(t[0], t[1], t[2]) && (t = [t[0]]), LSe(e, MSe(t), ["asc"]);
+ return n > 1 && $B(e, t[0], t[1]) ? t = [] : n > 2 && $B(t[0], t[1], t[2]) && (t = [t[0]]), RSe(e, NSe(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var nV = (e) => e.legend.settings, RSe = (e) => e.legend.size, zSe = $([(e) => e.legend.payload, nV], (e, t) => {
+var nV = (e) => e.legend.settings, zSe = (e) => e.legend.size, BSe = $([(e) => e.legend.payload, nV], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
return n ? tV(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function BSe() {
- return Q(zSe);
+function VSe() {
+ return Q(BSe);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
@@ -53917,7 +53926,7 @@ function fV(e) {
function pV(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function VSe(...e) {
+function HSe(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
throw Error(aV(15));
@@ -53944,7 +53953,7 @@ var yV = Object, bV = yV.getPrototypeOf, xV = "constructor", SV = "prototype", C
function OV(e) {
return e ? AV(e) || IV(e) || !!e[gV] || !!e[xV]?.[gV] || LV(e) || RV(e) : !1;
}
-var HSe = yV[SV][xV].toString(), kV = /* @__PURE__ */ new WeakMap();
+var USe = yV[SV][xV].toString(), kV = /* @__PURE__ */ new WeakMap();
function AV(e) {
if (!e || !zV(e)) return !1;
let t = bV(e);
@@ -53953,7 +53962,7 @@ function AV(e) {
if (n === Object) return !0;
if (!BV(n)) return !1;
let r = kV.get(n);
- return r === void 0 && (r = Function.toString.call(n), kV.set(n, r)), r === HSe;
+ return r === void 0 && (r = Function.toString.call(n), kV.set(n, r)), r === USe;
}
function jV(e, t, n = !0) {
MV(e) === 0 ? (n ? Reflect.ownKeys(e) : yV.keys(e)).forEach((n) => {
@@ -53967,11 +53976,11 @@ function MV(e) {
var NV = (e, t, n = MV(e)) => n === 2 ? e.has(t) : yV[SV].hasOwnProperty.call(e, t), PV = (e, t, n = MV(e)) => n === 2 ? e.get(t) : e[t], FV = (e, t, n, r = MV(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function USe(e, t) {
+function WSe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
var IV = Array.isArray, LV = (e) => e instanceof Map, RV = (e) => e instanceof Set, zV = (e) => typeof e == "object", BV = (e) => typeof e == "function", VV = (e) => typeof e == "boolean";
-function WSe(e) {
+function GSe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
@@ -54013,10 +54022,10 @@ function GV(e, t = !1) {
GV(t, !0);
}, !1), e);
}
-function GSe() {
+function KSe() {
vV(2);
}
-var KV = { [EV]: GSe };
+var KV = { [EV]: KSe };
function qV(e) {
return e === null || !zV(e) || yV.isFrozen(e);
}
@@ -54025,7 +54034,7 @@ function QV(e) {
let t = ZV[e];
return t || vV(0, e), t;
}
-var $V = (e) => !!ZV[e], eH, tH = () => eH, KSe = (e, t) => ({
+var $V = (e) => !!ZV[e], eH, tH = () => eH, qSe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -54040,13 +54049,13 @@ function nH(e, t) {
t && (e.patchPlugin_ = QV(YV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function rH(e) {
- iH(e), e.drafts_.forEach(qSe), e.drafts_ = null;
+ iH(e), e.drafts_.forEach(JSe), e.drafts_ = null;
}
function iH(e) {
e === eH && (eH = e.parent_);
}
-var aH = (e) => eH = KSe(eH, e);
-function qSe(e) {
+var aH = (e) => eH = qSe(eH, e);
+function JSe(e) {
let t = e[_V];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -54058,7 +54067,7 @@ function oH(e, t) {
let { patchPlugin_: r } = t;
r && r.generateReplacementPatches_(n[_V].base_, e, t);
} else e = sH(t, n);
- return JSe(t, e, !0), rH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === hV ? void 0 : e;
+ return YSe(t, e, !0), rH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === hV ? void 0 : e;
}
function sH(e, t) {
if (qV(t)) return t;
@@ -54073,13 +54082,13 @@ function sH(e, t) {
}
return n.copy_;
}
-function JSe(e, t, n = !1) {
+function YSe(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && GV(t, n);
}
function cH(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var lH = (e, t) => e.scope_ === t, YSe = [];
+var lH = (e, t) => e.scope_ === t, XSe = [];
function uH(e, t, n, r) {
let i = HV(e), a = e.type_;
if (r !== void 0 && PV(i, r, a) === t) {
@@ -54095,10 +54104,10 @@ function uH(e, t, n, r) {
}
});
}
- let o = e.draftLocations_.get(t) ?? YSe;
+ let o = e.draftLocations_.get(t) ?? XSe;
for (let e of o) FV(i, e, n, a);
}
-function XSe(e, t, n) {
+function ZSe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
if (!i || !lH(i, r)) return;
@@ -54117,7 +54126,7 @@ function dH(e, t) {
cH(e);
}
}
-function ZSe(e, t, n) {
+function QSe(e, t, n) {
let { scope_: r } = e;
if (DV(n)) {
let i = n[_V];
@@ -54137,7 +54146,7 @@ function fH(e, t, n) {
} else OV(i) && fH(i, t, n);
}), e);
}
-function QSe(e, t) {
+function $Se(e, t) {
let n = IV(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : tH(),
@@ -54162,10 +54171,10 @@ var pH = {
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
let i = HV(e);
- if (!NV(i, t, e.type_)) return eCe(e, i, t);
+ if (!NV(i, t, e.type_)) return tCe(e, i, t);
let a = i[t];
- if (e.finalized_ || !OV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && WSe(t)) return a;
- if (a === hH(e.base_, t) || $Se(e, t, a)) {
+ if (e.finalized_ || !OV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && GSe(t)) return a;
+ if (a === hH(e.base_, t) || eCe(e, t, a)) {
vH(e);
let n = e.type_ === 1 ? +t : t, r = yH(e.scope_, a, e, n);
return e.copy_[n] = r;
@@ -54184,10 +54193,10 @@ var pH = {
if (!e.modified_) {
let r = hH(HV(e), t), i = r?.[_V];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (USe(n, r) && (n !== void 0 || NV(e.base_, t, e.type_))) return !0;
+ if (WSe(n, r) && (n !== void 0 || NV(e.base_, t, e.type_))) return !0;
vH(e), _H(e);
}
- return e.copy_[t] === n && (n !== void 0 || NV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), ZSe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || NV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), QSe(e, t, n), !0);
},
deleteProperty(e, t) {
return vH(e), hH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), _H(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
@@ -54227,10 +54236,10 @@ function hH(e, t) {
let n = e[_V];
return (n ? HV(n) : e)[t];
}
-function $Se(e, t, n) {
+function eCe(e, t, n) {
return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !OV(n) || n[_V] ? !1 : e.baseRefs_.has(n);
}
-function eCe(e, t, n) {
+function tCe(e, t, n) {
let r = gH(t, n);
return r ? EV in r ? r[EV] : r.get?.call(e.draft_) : void 0;
}
@@ -54249,7 +54258,7 @@ function _H(e) {
function vH(e) {
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), WV(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var tCe = class {
+var nCe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
if (BV(e) && !BV(t)) {
@@ -54332,8 +54341,8 @@ var tCe = class {
}
};
function yH(e, t, n, r) {
- let [i, a] = LV(t) ? QV(JV).proxyMap_(t, n) : RV(t) ? QV(JV).proxySet_(t, n) : QSe(t, n);
- return (n?.scope_ ?? tH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? XSe(n, a, r) : a.callbacks_.push(function(e) {
+ let [i, a] = LV(t) ? QV(JV).proxyMap_(t, n) : RV(t) ? QV(JV).proxySet_(t, n) : $Se(t, n);
+ return (n?.scope_ ?? tH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? ZSe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
@@ -54354,13 +54363,13 @@ function xH(e) {
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var SH = new tCe().produce;
+var SH = new nCe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
function CH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var nCe = CH(), rCe = CH, iCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+var rCe = CH(), iCe = CH, aCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
if (arguments.length !== 0) return typeof arguments[0] == "object" ? pV : pV.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
@@ -54403,23 +54412,23 @@ function EH(e) {
function DH(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function aCe(e) {
+function oCe(e) {
return typeof e == "boolean";
}
-var oCe = () => function(e) {
+var sCe = () => function(e) {
let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new TH();
- return t && (aCe(t) ? a.push(nCe) : a.push(rCe(t.extraArgument))), a;
+ return t && (oCe(t) ? a.push(rCe) : a.push(iCe(t.extraArgument))), a;
}, OH = "RTK_autoBatch", kH = () => (e) => ({
payload: e,
meta: { [OH]: !0 }
}), AH = (e) => (t) => {
setTimeout(t, e);
-}, sCe = (e, t) => (n) => {
+}, cCe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
}, jH = (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 ? sCe(window.requestAnimationFrame, 100) : AH(10) : e.type === "callback" ? e.queueNotification : AH(e.timeout), l = () => {
+ 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 ? cCe(window.requestAnimationFrame, 100) : AH(10) : e.type === "callback" ? e.queueNotification : AH(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -54437,23 +54446,23 @@ var oCe = () => function(e) {
}
}
});
-}, cCe = (e) => function(t) {
+}, lCe = (e) => function(t) {
let { autoBatch: n = !0 } = t ?? {}, r = new TH(e);
return n && r.push(jH(typeof n == "object" ? n : void 0)), r;
};
-function lCe(e) {
- let t = oCe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function uCe(e) {
+ let t = sCe(), { 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 (lV(n)) c = fV(n);
else throw Error(aU(1));
let l;
l = typeof r == "function" ? r(t) : t();
let u = pV;
- i && (u = iCe({
+ i && (u = aCe({
trace: !1,
...typeof i == "object" && i
}));
- let d = cCe(VSe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ let d = lCe(HSe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
return uV(c, o, p);
}
function MH(e) {
@@ -54486,12 +54495,12 @@ function MH(e) {
r
];
}
-function uCe(e) {
+function dCe(e) {
return typeof e == "function";
}
-function dCe(e, t) {
+function fCe(e, t) {
let [n, r, i] = MH(t), a;
- if (uCe(e)) a = () => EH(e());
+ if (dCe(e)) a = () => EH(e());
else {
let t = EH(e);
a = () => t;
@@ -54519,20 +54528,20 @@ function dCe(e, t) {
}
return o.getInitialState = a, o;
}
-var fCe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", pCe = (e = 21) => {
+var pCe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", mCe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += fCe[Math.random() * 64 | 0];
+ for (; n--;) t += pCe[Math.random() * 64 | 0];
return t;
-}, mCe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function hCe(e, t) {
+}, hCe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function gCe(e, t) {
return `${e}/${t}`;
}
-function gCe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[mCe];
+function _Ce({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[hCe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
if (!n) throw Error(aU(11));
- let i = (typeof e.reducers == "function" ? e.reducers(vCe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ let i = (typeof e.reducers == "function" ? e.reducers(yCe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -54560,17 +54569,17 @@ function gCe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: hCe(n, r),
+ type: gCe(n, r),
createNotation: typeof e.reducers == "function"
};
- bCe(a) ? SCe(o, a, s, t) : yCe(o, a, s);
+ xCe(a) ? CCe(o, a, s, t) : bCe(o, a, s);
});
function c() {
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? MH(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return dCe(e.initialState, (e) => {
+ return fCe(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);
@@ -54592,7 +54601,7 @@ function gCe({ creators: e } = {}) {
function i(t = l) {
return DH(DH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = _Ce(a, t, () => DH(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = vCe(a, t, () => DH(d, t, m), n);
return r;
});
}
@@ -54626,15 +54635,15 @@ function gCe({ creators: e } = {}) {
return g;
};
}
-function _Ce(e, t, n, r) {
+function vCe(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 NH = /* @__PURE__ */ gCe();
-function vCe() {
+var NH = /* @__PURE__ */ _Ce();
+function yCe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -54658,21 +54667,21 @@ function vCe() {
asyncThunk: e
};
}
-function yCe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function bCe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !xCe(r)) throw Error(aU(17));
+ if (n && !SCe(r)) throw Error(aU(17));
a = r.reducer, o = r.prepare;
} else a = r;
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? wH(e, o) : wH(e));
}
-function bCe(e) {
+function xCe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function xCe(e) {
+function SCe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function SCe({ type: e, reducerName: t }, n, r, i) {
+function CCe({ type: e, reducerName: t }, n, r, i) {
if (!i) throw Error(aU(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, {
@@ -54683,9 +54692,9 @@ function SCe({ type: e, reducerName: t }, n, r, i) {
});
}
function PH() {}
-var CCe = "task", FH = "listener", IH = "completed", LH = "cancelled", wCe = `task-${LH}`, TCe = `task-${IH}`, RH = `${FH}-${LH}`, ECe = `${FH}-${IH}`, zH = class {
+var wCe = "task", FH = "listener", IH = "completed", LH = "cancelled", TCe = `task-${LH}`, ECe = `task-${IH}`, RH = `${FH}-${LH}`, DCe = `${FH}-${IH}`, zH = class {
constructor(e) {
- this.code = e, this.message = `${CCe} ${LH} (reason: ${e})`;
+ this.code = e, this.message = `${wCe} ${LH} (reason: ${e})`;
}
code;
name = "TaskAbortError";
@@ -54708,7 +54717,7 @@ function GH(e, t) {
n = VH;
});
}
-var DCe = async (e, t) => {
+var OCe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -54725,13 +54734,13 @@ var DCe = async (e, t) => {
}, KH = (e) => (t) => HH(GH(e, t).then((t) => (WH(e), t))), qH = (e) => {
let t = KH(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: JH } = Object, YH = {}, XH = "listenerMiddleware", OCe = (e, t) => {
+}, { assign: JH } = Object, YH = {}, XH = "listenerMiddleware", kCe = (e, t) => {
let n = (t) => UH(e, () => t.abort(e.reason));
return (r, i) => {
BH(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = DCe(async () => {
+ let o = OCe(async () => {
WH(e), WH(a.signal);
let t = await r({
pause: KH(a.signal),
@@ -54739,15 +54748,15 @@ var DCe = async (e, t) => {
signal: a.signal
});
return WH(a.signal), t;
- }, () => a.abort(TCe));
+ }, () => a.abort(ECe));
return i?.autoJoin && t.push(o.catch(VH)), {
result: KH(e)(o),
cancel() {
- a.abort(wCe);
+ a.abort(TCe);
}
};
};
-}, kCe = (e, t) => {
+}, ACe = (e, t) => {
let n = async (n, r) => {
WH(t);
let i = () => {}, a = [new Promise((t, r) => {
@@ -54788,7 +54797,7 @@ var DCe = async (e, t) => {
}, QH = /* @__PURE__ */ JH((e) => {
let { type: t, predicate: n, effect: r } = ZH(e);
return {
- id: pCe(),
+ id: mCe(),
effect: r,
type: t,
predicate: n,
@@ -54804,7 +54813,7 @@ var DCe = async (e, t) => {
e.pending.forEach((e) => {
e.abort(RH);
});
-}, ACe = (e, t) => () => {
+}, jCe = (e, t) => () => {
for (let e of t.keys()) eU(e);
e.clear();
}, tU = (e, t, n) => {
@@ -54815,7 +54824,7 @@ var DCe = async (e, t) => {
throw e;
}, 0);
}
-}, nU = /* @__PURE__ */ JH(/* @__PURE__ */ wH(`${XH}/add`), { withTypes: () => nU }), jCe = /* @__PURE__ */ wH(`${XH}/removeAll`), rU = /* @__PURE__ */ JH(/* @__PURE__ */ wH(`${XH}/remove`), { withTypes: () => rU }), MCe = (...e) => {
+}, nU = /* @__PURE__ */ JH(/* @__PURE__ */ wH(`${XH}/add`), { withTypes: () => nU }), MCe = /* @__PURE__ */ wH(`${XH}/removeAll`), rU = /* @__PURE__ */ JH(/* @__PURE__ */ wH(`${XH}/remove`), { withTypes: () => rU }), NCe = (...e) => {
console.error(`${XH}/error`, ...e);
}, iU = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
@@ -54824,7 +54833,7 @@ var DCe = async (e, t) => {
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = MCe } = e;
+ }, { extra: a, onError: o = NCe } = e;
BH(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
e.unsubscribe(), t?.cancelActive && eU(e);
@@ -54839,7 +54848,7 @@ var DCe = async (e, t) => {
};
JH(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = kCe(c, u.signal), f = [];
+ let u = new AbortController(), d = ACe(c, u.signal), f = [];
try {
e.pending.add(u), r(e), await Promise.resolve(e.effect(n, JH({}, s, {
getOriginalState: l,
@@ -54849,7 +54858,7 @@ var DCe = async (e, t) => {
pause: KH(u.signal),
extra: a,
signal: u.signal,
- fork: OCe(u.signal, f),
+ fork: kCe(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
@@ -54869,14 +54878,14 @@ var DCe = async (e, t) => {
} catch (e) {
e instanceof zH || tU(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(ECe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(DCe), i(e), e.pending.delete(u);
}
- }, d = ACe(t, n);
+ }, d = jCe(t, n);
return {
middleware: (e) => (n) => (r) => {
if (!mV(r)) return n(r);
if (nU.match(r)) return c(r.payload);
- if (jCe.match(r)) {
+ if (MCe.match(r)) {
d();
return;
}
@@ -54941,7 +54950,7 @@ var oU = NH({
e.scale = t.payload;
}
}
-}), { setMargin: NCe, setLayout: PCe, setChartSize: FCe, setScale: ICe } = oU.actions, LCe = oU.reducer;
+}), { setMargin: PCe, setLayout: FCe, setChartSize: ICe, setScale: LCe } = oU.actions, RCe = oU.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
function sU(e, t, n) {
@@ -54971,26 +54980,26 @@ function dU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? uU(Object(n), !0).forEach(function(t) {
- RCe(e, t, n[t]);
+ zCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function RCe(e, t, n) {
- return (t = zCe(t)) in e ? Object.defineProperty(e, t, {
+function zCe(e, t, n) {
+ return (t = BCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zCe(e) {
- var t = BCe(e, "string");
+function BCe(e) {
+ var t = VCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function BCe(e, t) {
+function VCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55003,7 +55012,7 @@ function BCe(e, t) {
function fU(e, t, n) {
return sB(e) || sB(t) ? n : tB(t) ? Yz(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var VCe = (e, t, n) => {
+var HCe = (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 dU(dU({}, e), {}, { [a]: e[a] + (r || 0) });
@@ -55056,7 +55065,7 @@ var VCe = (e, t, n) => {
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;
-}, HCe = {
+}, UCe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -55070,10 +55079,10 @@ var VCe = (e, t, n) => {
}
}
},
- expand: exe,
+ expand: txe,
none: Vz,
- silhouette: txe,
- wiggle: nxe,
+ silhouette: nxe,
+ wiggle: rxe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -55087,8 +55096,8 @@ var VCe = (e, t, n) => {
}
}
}
-}, UCe = (e, t, n) => {
- var r = HCe[n] ?? Vz, i = $be().keys(t).value((e, t) => Number(fU(e, t, 0))).order(Hz).offset(r)(e);
+}, WCe = (e, t, n) => {
+ var r = UCe[n] ?? Vz, i = exe().keys(t).value((e, t) => Number(fU(e, t, 0))).order(Hz).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
var a = fU(e[i], t[r], 0);
@@ -55125,15 +55134,15 @@ var yU = (e) => {
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, WCe = (e) => {
+}, GCe = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, GCe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], KCe = (e, t, n) => {
- if (e != null) return GCe(Object.keys(e).reduce((r, i) => {
+}, KCe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], qCe = (e, t, n) => {
+ if (e != null) return KCe(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 = WCe(sU(r, t, n));
+ var i = GCe(sU(r, t, n));
return !cU(i[0]) || !cU(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])];
@@ -55165,10 +55174,10 @@ function TU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var qCe = (e, t) => {
+var JCe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, JCe = (e, t) => t === "centric" ? e.angle : e.radius, EU = (e) => e.layout.width, DU = (e) => e.layout.height, YCe = (e) => e.layout.scale, OU = (e) => e.layout.margin, kU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), AU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), XCe = "data-recharts-item-index";
+}, YCe = (e, t) => t === "centric" ? e.angle : e.radius, EU = (e) => e.layout.width, DU = (e) => e.layout.height, XCe = (e) => e.layout.scale, OU = (e) => e.layout.margin, kU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), AU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), ZCe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
function jU(e, t) {
@@ -55185,26 +55194,26 @@ function MU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? jU(Object(n), !0).forEach(function(t) {
- ZCe(e, t, n[t]);
+ QCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ZCe(e, t, n) {
- return (t = QCe(t)) in e ? Object.defineProperty(e, t, {
+function QCe(e, t, n) {
+ return (t = $Ce(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function QCe(e) {
- var t = $Ce(e, "string");
+function $Ce(e) {
+ var t = ewe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $Ce(e, t) {
+function ewe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55214,30 +55223,30 @@ function $Ce(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ewe = (e) => e.brush.height;
-function twe(e) {
+var twe = (e) => e.brush.height;
+function nwe(e) {
return AU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function nwe(e) {
+function rwe(e) {
return AU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function rwe(e) {
+function iwe(e) {
return kU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-function iwe(e) {
+function awe(e) {
return kU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
var NU = $([
EU,
DU,
OU,
- ewe,
twe,
nwe,
rwe,
iwe,
+ awe,
nV,
- RSe
+ zSe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
@@ -55246,13 +55255,13 @@ var NU = $([
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = VCe(d, c, l);
+ d.bottom += r, d = HCe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
return MU(MU({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), awe = $(NU, (e) => ({
+}), owe = $(NU, (e) => ({
x: e.left,
y: e.top,
width: e.width,
@@ -55262,7 +55271,7 @@ var NU = $([
y: 0,
width: e,
height: t
-})), owe = /*#__PURE__*/ (0, R.createContext)(null), FU = () => (0, R.useContext)(owe) != null, IU = (e) => e.brush, LU = $([
+})), swe = /*#__PURE__*/ (0, R.createContext)(null), FU = () => (0, R.useContext)(swe) != null, IU = (e) => e.brush, LU = $([
IU,
NU,
OU
@@ -55274,7 +55283,7 @@ var NU = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function swe(e, t, { signal: n, edges: r } = {}) {
+function cwe(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 = () => {
@@ -55299,11 +55308,11 @@ function swe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function cwe(e, t = 0, n = {}) {
+function lwe(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 = swe(function(...t) {
+ let s, c = null, l = cwe(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);
@@ -55312,9 +55321,9 @@ function cwe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function lwe(e, t = 0, n = {}) {
+function uwe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return cwe(e, t, {
+ return lwe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -55346,21 +55355,21 @@ var RU = function(e, t) {
calculatedWidth: s,
calculatedHeight: c
};
-}, uwe = {
+}, dwe = {
width: 0,
height: 0,
overflow: "visible"
-}, dwe = {
+}, fwe = {
width: 0,
overflowX: "visible"
-}, fwe = {
+}, pwe = {
height: 0,
overflowY: "visible"
-}, pwe = {}, mwe = (e) => {
+}, mwe = {}, hwe = (e) => {
var { width: t, height: n } = e, r = eB(t), i = eB(n);
- return r && i ? uwe : r ? dwe : i ? fwe : pwe;
+ return r && i ? dwe : r ? fwe : i ? pwe : mwe;
};
-function hwe(e) {
+function gwe(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
return i === void 0 && a === void 0 ? (i = zU.width, a = zU.height) : i === void 0 ? i = r && r > 0 ? void 0 : zU.width : a === void 0 && (a = r && r > 0 ? void 0 : zU.height), {
width: i,
@@ -55392,26 +55401,26 @@ function UU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? HU(Object(n), !0).forEach(function(t) {
- gwe(e, t, n[t]);
+ _we(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gwe(e, t, n) {
- return (t = _we(t)) in e ? Object.defineProperty(e, t, {
+function _we(e, t, n) {
+ return (t = vwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _we(e) {
- var t = vwe(e, "string");
+function vwe(e) {
+ var t = ywe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vwe(e, t) {
+function ywe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55422,7 +55431,7 @@ function vwe(e, t) {
return (t === "string" ? String : Number)(e);
}
var WU = /*#__PURE__*/ (0, R.createContext)(zU.initialDimension);
-function ywe(e) {
+function bwe(e) {
return lU(e.width) && lU(e.height);
}
function GU(e) {
@@ -55430,9 +55439,9 @@ function GU(e) {
width: n,
height: r
}), [n, r]);
- return ywe(i) ? /*#__PURE__*/ R.createElement(WU.Provider, { value: i }, t) : null;
+ return bwe(i) ? /*#__PURE__*/ R.createElement(WU.Provider, { value: i }, t) : null;
}
-var KU = () => (0, R.useContext)(WU), bwe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var KU = () => (0, R.useContext)(WU), xwe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { aspect: n, initialDimension: r = zU.initialDimension, width: i, height: a, minWidth: o = zU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = zU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
g.current = p, (0, R.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, R.useState)({
@@ -55456,7 +55465,7 @@ var KU = () => (0, R.useContext)(WU), bwe = /*#__PURE__*/ (0, R.forwardRef)((e,
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = lwe(e, u, {
+ u > 0 && (e = uwe(e, u, {
trailing: !0,
leading: !1
}));
@@ -55484,7 +55493,7 @@ var KU = () => (0, R.useContext)(WU), bwe = /*#__PURE__*/ (0, R.forwardRef)((e,
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ R.createElement("div", { style: mwe({
+ }, /*#__PURE__*/ R.createElement("div", { style: hwe({
width: i,
height: a
}) }, /*#__PURE__*/ R.createElement(GU, {
@@ -55494,7 +55503,7 @@ var KU = () => (0, R.useContext)(WU), bwe = /*#__PURE__*/ (0, R.forwardRef)((e,
}), qU = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = KU();
if (lU(n.width) && lU(n.height)) return e.children;
- var { width: r, height: i } = hwe({
+ var { width: r, height: i } = gwe({
width: e.width,
height: e.height,
aspect: e.aspect
@@ -55507,7 +55516,7 @@ var KU = () => (0, R.useContext)(WU), bwe = /*#__PURE__*/ (0, R.forwardRef)((e,
return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(GU, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ R.createElement(bwe, VU({}, e, {
+ }, e.children) : /*#__PURE__*/ R.createElement(xwe, VU({}, e, {
width: r,
height: i,
ref: t
@@ -55526,14 +55535,14 @@ function JU(e) {
};
}
var YU = () => {
- var e = FU(), t = Q(awe), n = Q(LU), r = Q(IU)?.padding;
+ var e = FU(), t = Q(owe), n = Q(LU), r = Q(IU)?.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
};
-}, xwe = {
+}, Swe = {
top: 0,
bottom: 0,
left: 0,
@@ -55541,16 +55550,16 @@ var YU = () => {
width: 0,
height: 0,
brushBottom: 0
-}, XU = () => Q(NU) ?? xwe, ZU = () => Q(EU), QU = () => Q(DU), Swe = () => Q((e) => e.layout.margin), $U = (e) => e.layout.layoutType, eW = () => Q($U), tW = () => {
+}, XU = () => Q(NU) ?? Swe, ZU = () => Q(EU), QU = () => Q(DU), Cwe = () => Q((e) => e.layout.margin), $U = (e) => e.layout.layoutType, eW = () => Q($U), tW = () => {
var e = eW();
if (e === "horizontal" || e === "vertical") return e;
}, nW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, rW = () => Q(nW), Cwe = () => eW() !== void 0, iW = (e) => {
+}, rW = () => Q(nW), wwe = () => eW() !== void 0, iW = (e) => {
var t = qB(), n = FU(), { width: r, height: i } = e, a = KU(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, R.useEffect)(() => {
- !n && lU(o) && lU(s) && t(FCe({
+ !n && lU(o) && lU(s) && t(ICe({
width: o,
height: s
}));
@@ -55571,7 +55580,7 @@ function uW(e) {
function dW(e) {
return e ? pW(e) || Array.isArray(e) || !!e[oW] || !!e.constructor?.[oW] || vW(e) || yW(e) : !1;
}
-var wwe = Object.prototype.constructor.toString(), fW = /* @__PURE__ */ new WeakMap();
+var Twe = Object.prototype.constructor.toString(), fW = /* @__PURE__ */ new WeakMap();
function pW(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
@@ -55580,7 +55589,7 @@ function pW(e) {
if (n === Object) return !0;
if (typeof n != "function") return !1;
let r = fW.get(n);
- return r === void 0 && (r = Function.toString.call(n), fW.set(n, r)), r === wwe;
+ return r === void 0 && (r = Function.toString.call(n), fW.set(n, r)), r === Twe;
}
function mW(e, t, n = !0) {
hW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
@@ -55598,7 +55607,7 @@ function _W(e, t, n) {
let r = hW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function Twe(e, t) {
+function Ewe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
function vW(e) {
@@ -55645,23 +55654,23 @@ function SW(e, t = !1) {
delete: CW
}), Object.freeze(e), t && Object.values(e).forEach((e) => SW(e, !0)), e);
}
-function Ewe() {
+function Dwe() {
cW(2);
}
-var CW = { value: Ewe };
+var CW = { value: Dwe };
function wW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var Dwe = {};
+var Owe = {};
function TW(e) {
- let t = Dwe[e];
+ let t = Owe[e];
return t || cW(0, e), t;
}
var EW;
function DW() {
return EW;
}
-function Owe(e, t) {
+function kwe(e, t) {
return {
drafts_: [],
parent_: e,
@@ -55674,15 +55683,15 @@ function OW(e, t) {
t && (TW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function kW(e) {
- AW(e), e.drafts_.forEach(kwe), e.drafts_ = null;
+ AW(e), e.drafts_.forEach(Awe), e.drafts_ = null;
}
function AW(e) {
e === EW && (EW = e.parent_);
}
function jW(e) {
- return EW = Owe(EW, e);
+ return EW = kwe(EW, e);
}
-function kwe(e) {
+function Awe(e) {
let t = e[sW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -55722,7 +55731,7 @@ function PW(e, t, n, r, i, a, o) {
function FW(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && SW(t, n);
}
-function Awe(e, t) {
+function jwe(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : DW(),
@@ -55744,7 +55753,7 @@ var IW = {
get(e, t) {
if (t === sW) return e;
let n = bW(e);
- if (!gW(n, t)) return jwe(e, n, t);
+ if (!gW(n, t)) return Mwe(e, n, t);
let r = n[t];
return e.finalized_ || !dW(r) ? r : r === RW(e.base_, t) ? (VW(e), e.copy_[t] = HW(r, e)) : r;
},
@@ -55760,7 +55769,7 @@ var IW = {
if (!e.modified_) {
let r = RW(bW(e), t), i = r?.[sW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (Twe(n, r) && (n !== void 0 || gW(e.base_, t))) return !0;
+ if (Ewe(n, r) && (n !== void 0 || gW(e.base_, t))) return !0;
VW(e), BW(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);
@@ -55800,7 +55809,7 @@ function RW(e, t) {
let n = e[sW];
return (n ? bW(n) : e)[t];
}
-function jwe(e, t, n) {
+function Mwe(e, t, n) {
let r = zW(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
@@ -55819,7 +55828,7 @@ function BW(e) {
function VW(e) {
e.copy_ ||= xW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var Mwe = class {
+var Nwe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -55862,7 +55871,7 @@ var Mwe = 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) {
- dW(e) || cW(8), uW(e) && (e = Nwe(e));
+ dW(e) || cW(8), uW(e) && (e = Pwe(e));
let t = jW(this), n = HW(e, void 0);
return n[sW].isManual_ = !0, AW(t), n;
}
@@ -55899,10 +55908,10 @@ var Mwe = class {
}
};
function HW(e, t) {
- let n = vW(e) ? TW("MapSet").proxyMap_(e, t) : yW(e) ? TW("MapSet").proxySet_(e, t) : Awe(e, t);
+ let n = vW(e) ? TW("MapSet").proxyMap_(e, t) : yW(e) ? TW("MapSet").proxySet_(e, t) : jwe(e, t);
return (t ? t.scope_ : DW()).drafts_.push(n), n;
}
-function Nwe(e) {
+function Pwe(e) {
return uW(e) || cW(10, e), UW(e);
}
function UW(e) {
@@ -55916,7 +55925,7 @@ function UW(e) {
_W(n, e, UW(t));
}, r), t && (t.finalized_ = !1), n;
}
-new Mwe().produce;
+new Nwe().produce;
function WW(e) {
return e;
}
@@ -55965,24 +55974,24 @@ var GW = NH({
prepare: kH()
}
}
-}), { setLegendSize: KW, setLegendSettings: Pwe, addLegendPayload: qW, replaceLegendPayload: JW, removeLegendPayload: YW } = GW.actions, Fwe = GW.reducer, Iwe = /* @__PURE__ */ Ct(((e) => {
+}), { setLegendSize: KW, setLegendSettings: Fwe, addLegendPayload: qW, replaceLegendPayload: JW, removeLegendPayload: YW } = GW.actions, Iwe = GW.reducer, Lwe = /* @__PURE__ */ Ct(((e) => {
var t = At();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ Ct(((e, t) => {
- t.exports = Iwe();
+ t.exports = Lwe();
})))();
-function Lwe(e) {
+function Rwe(e) {
e();
}
-function Rwe() {
+function zwe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- Lwe(() => {
+ Rwe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -56008,7 +56017,7 @@ var XW = {
notify() {},
get: () => []
};
-function zwe(e, t) {
+function Bwe(e, t) {
let n, r = XW, i = 0, a = !1;
function o(e) {
u();
@@ -56027,7 +56036,7 @@ function zwe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = Rwe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = zwe());
}
function d() {
i--, n && i === 0 && (n(), n = void 0, r.clear(), r = XW);
@@ -56049,11 +56058,11 @@ function zwe(e, t) {
};
return m;
}
-var Bwe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Vwe = typeof navigator < "u" && navigator.product === "ReactNative", Hwe = Bwe || Vwe ? R.useLayoutEffect : R.useEffect;
+var Vwe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Hwe = typeof navigator < "u" && navigator.product === "ReactNative", Uwe = Vwe || Hwe ? R.useLayoutEffect : R.useEffect;
function ZW(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function Uwe(e, t) {
+function Wwe(e, t) {
if (ZW(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
@@ -56061,32 +56070,32 @@ function Uwe(e, t) {
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !ZW(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var Wwe = /* @__PURE__ */ Symbol.for("react-redux-context"), Gwe = typeof globalThis < "u" ? globalThis : {};
-function Kwe() {
+var Gwe = /* @__PURE__ */ Symbol.for("react-redux-context"), Kwe = typeof globalThis < "u" ? globalThis : {};
+function qwe() {
if (!R.createContext) return {};
- let e = Gwe[Wwe] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
+ let e = Kwe[Gwe] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
return t || (t = R.createContext(null), e.set(R.createContext, t)), t;
}
-var qwe = /* @__PURE__ */ Kwe();
-function Jwe(e) {
+var Jwe = /* @__PURE__ */ qwe();
+function Ywe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = R.useMemo(() => {
- let e = zwe(i);
+ let e = Bwe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = R.useMemo(() => i.getState(), [i]);
- Hwe(() => {
+ Uwe(() => {
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 || qwe;
+ let s = n || Jwe;
return /* @__PURE__ */ R.createElement(s.Provider, { value: a }, t);
}
-var Ywe = Jwe, Xwe = /* @__PURE__ */ new Set([
+var Xwe = Ywe, Zwe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -56109,19 +56118,19 @@ var Ywe = Jwe, Xwe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function Zwe(e, t) {
+function Qwe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
function QW(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (Xwe.has(n)) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (Zwe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!Uwe(e[n], t[n])) return !1;
- } else if (!Zwe(e[n], t[n])) return !1;
+ if (!Wwe(e[n], t[n])) return !1;
+ } else if (!Qwe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var Qwe = ["contextPayload"];
+var $we = ["contextPayload"];
function $W() {
return $W = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -56145,26 +56154,26 @@ function tG(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) {
- $we(e, t, n[t]);
+ eTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $we(e, t, n) {
- return (t = eTe(t)) in e ? Object.defineProperty(e, t, {
+function eTe(e, t, n) {
+ return (t = tTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eTe(e) {
- var t = tTe(e, "string");
+function tTe(e) {
+ var t = nTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tTe(e, t) {
+function nTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56174,16 +56183,16 @@ function tTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function nTe(e, t) {
+function rTe(e, t) {
if (e == null) return {};
- var n, r, i = rTe(e, t);
+ var n, r, i = iTe(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 rTe(e, t) {
+function iTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56192,24 +56201,24 @@ function rTe(e, t) {
}
return n;
}
-function iTe(e) {
+function aTe(e) {
return e.value;
}
-function aTe(e) {
- var { contextPayload: t } = e, n = nTe(e, Qwe), r = GB(t, e.payloadUniqBy, iTe), i = tG(tG({}, n), {}, { payload: r });
- return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(Axe, i);
+function oTe(e) {
+ var { contextPayload: t } = e, n = rTe(e, $we), r = GB(t, e.payloadUniqBy, aTe), i = tG(tG({}, n), {}, { payload: r });
+ return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(jxe, i);
}
-function oTe(e, t, n, r, i, a) {
+function sTe(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 }), tG(tG({}, l), u);
}
-function sTe(e) {
+function cTe(e) {
var t = qB();
return (0, R.useEffect)(() => {
- t(Pwe(e));
+ t(Fwe(e));
}, [t, e]), null;
}
-function cTe(e) {
+function lTe(e) {
var t = qB();
return (0, R.useEffect)(() => (t(KW(e)), () => {
t(KW({
@@ -56218,10 +56227,10 @@ function cTe(e) {
}));
}), [t, e]), null;
}
-function lTe(e, t, n, r) {
+function uTe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var uTe = {
+var dTe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -56229,28 +56238,28 @@ var uTe = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function dTe(e) {
- var t = bB(e, uTe), n = BSe(), r = wbe(), i = Swe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iV([n]), d = ZU(), f = QU();
+function fTe(e) {
+ var t = bB(e, dTe), n = VSe(), r = Tbe(), i = Cwe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iV([n]), d = ZU(), f = QU();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = lTe(t.layout, o, a, p), h = c ? s : tG(tG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = uTe(t.layout, o, a, p), h = c ? s : tG(tG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, oTe(s, t, i, d, f, l)), s), g = c ?? r;
+ }, sTe(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ R.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ R.createElement(sTe, {
+ }, /*#__PURE__*/ R.createElement(cTe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ R.createElement(cTe, {
+ }), !c && /*#__PURE__*/ R.createElement(lTe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ R.createElement(aTe, $W({}, t, m, {
+ }), /*#__PURE__*/ R.createElement(oTe, $W({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -56258,7 +56267,7 @@ function dTe(e) {
})));
return /*#__PURE__*/ (0, rp.createPortal)(_, g);
}
-var nG = /*#__PURE__*/ R.memo(dTe, QW);
+var nG = /*#__PURE__*/ R.memo(fTe, QW);
nG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
@@ -56285,26 +56294,26 @@ function aG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? iG(Object(n), !0).forEach(function(t) {
- fTe(e, t, n[t]);
+ pTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fTe(e, t, n) {
- return (t = pTe(t)) in e ? Object.defineProperty(e, t, {
+function pTe(e, t, n) {
+ return (t = mTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pTe(e) {
- var t = mTe(e, "string");
+function mTe(e) {
+ var t = hTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mTe(e, t) {
+function hTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56314,7 +56323,7 @@ function mTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hTe(e) {
+function gTe(e) {
return Array.isArray(e) && tB(e[0]) && tB(e[1]) ? e.join(" ~ ") : e;
}
var oG = {
@@ -56335,18 +56344,18 @@ var oG = {
labelStyle: {},
accessibilityLayer: !1
};
-function gTe(e, t) {
+function _Te(e, t) {
return t == null ? e : tV(e, t);
}
-var _Te = (e) => {
+var vTe = (e) => {
var { separator: t = oG.separator, contentStyle: n, itemStyle: r, labelStyle: i = oG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = oG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = gTe(a, s).map((e, n) => {
+ }, n = _Te(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || hTe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || gTe, { 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;
@@ -56379,8 +56388,8 @@ var _Te = (e) => {
className: y,
style: h
}, /*#__PURE__*/ R.isValidElement(_) ? _ : `${_}`), p());
-}, sG = "recharts-tooltip-wrapper", vTe = { visibility: "hidden" };
-function yTe(e) {
+}, sG = "recharts-tooltip-wrapper", yTe = { visibility: "hidden" };
+function bTe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
return Sh(sG, {
[`${sG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
@@ -56397,11 +56406,11 @@ function cG(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 bTe(e) {
+function xTe(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function xTe(e) {
+function STe(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 = cG({
allowEscapeViewBox: t,
@@ -56423,13 +56432,13 @@ function xTe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = bTe({
+ }), u = xTe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = vTe, {
+ })) : u = yTe, {
cssProperties: u,
- cssClasses: yTe({
+ cssClasses: bTe({
translateX: d,
translateY: f,
coordinate: n
@@ -56471,26 +56480,26 @@ function fG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? dG(Object(n), !0).forEach(function(t) {
- STe(e, t, n[t]);
+ CTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dG(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 CTe(e, t, n) {
+ return (t = wTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CTe(e) {
- var t = wTe(e, "string");
+function wTe(e) {
+ var t = TTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wTe(e, t) {
+function TTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56500,10 +56509,10 @@ function wTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function TTe(e) {
+function ETe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function ETe(e) {
+function DTe(e) {
var t = uG(), [n, r] = R.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
@@ -56525,7 +56534,7 @@ function ETe(e) {
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(fG(fG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = xTe({
+ var { cssClasses: i, cssProperties: a } = STe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -56538,7 +56547,7 @@ function ETe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = fG(fG({}, e.hasPortalFromProps ? {} : fG(fG({ transition: TTe({
+ }), o = fG(fG({}, e.hasPortalFromProps ? {} : fG(fG({ transition: ETe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -56558,7 +56567,7 @@ function ETe(e) {
ref: e.innerRef
}, e.children);
}
-var DTe = /*#__PURE__*/ R.memo(ETe), pG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var OTe = /*#__PURE__*/ R.memo(DTe), pG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
function mG() {
@@ -56584,26 +56593,26 @@ function gG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? hG(Object(n), !0).forEach(function(t) {
- OTe(e, t, n[t]);
+ kTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OTe(e, t, n) {
- return (t = kTe(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 kTe(e) {
- var t = ATe(e, "string");
+function ATe(e) {
+ var t = jTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ATe(e, t) {
+function jTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56614,20 +56623,20 @@ function ATe(e, t) {
return (t === "string" ? String : Number)(e);
}
var _G = {
- curveBasisClosed: Hbe,
- curveBasisOpen: Ube,
- curveBasis: Vbe,
- curveBumpX: Dbe,
- curveBumpY: Obe,
- curveLinearClosed: Wbe,
+ curveBasisClosed: Ube,
+ curveBasisOpen: Wbe,
+ curveBasis: Hbe,
+ curveBumpX: Obe,
+ curveBumpY: kbe,
+ curveLinearClosed: Gbe,
curveLinear: fz,
- curveMonotoneX: Gbe,
- curveMonotoneY: Kbe,
- curveNatural: qbe,
- curveStep: Jbe,
- curveStepAfter: Xbe,
- curveStepBefore: Ybe
-}, vG = (e) => cU(e.x) && cU(e.y), yG = (e) => e.base != null && vG(e.base) && vG(e), bG = (e) => e.x, xG = (e) => e.y, jTe = (e, t) => {
+ curveMonotoneX: Kbe,
+ curveMonotoneY: qbe,
+ curveNatural: Jbe,
+ curveStep: Ybe,
+ curveStepAfter: Zbe,
+ curveStepBefore: Xbe
+}, vG = (e) => cU(e.x) && cU(e.y), yG = (e) => e.base != null && vG(e.base) && vG(e), bG = (e) => e.x, xG = (e) => e.y, MTe = (e, t) => {
if (typeof e == "function") return e;
var n = `curve${cB(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
@@ -56638,8 +56647,8 @@ var _G = {
}, SG = {
connectNulls: !1,
type: "linear"
-}, MTe = (e) => {
- var { type: t = SG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = SG.connectNulls } = e, o = jTe(t, i), s = a ? n.filter(vG) : n;
+}, NTe = (e) => {
+ var { type: t = SG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = SG.connectNulls } = e, o = MTe(t, i), s = a ? n.filter(vG) : n;
if (Array.isArray(r)) {
var c, l = n.map((e, t) => gG(gG({}, e), {}, { base: r[t] }));
return c = i === "vertical" ? gz().y(xG).x1(bG).x0((e) => e.base.x) : gz().x(bG).y1(xG).y0((e) => e.base.y), c.defined(yG).curve(o)(a ? l.filter(yG) : l);
@@ -56654,13 +56663,13 @@ var _G = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? MTe(o) : r;
+ }, s = n && n.length ? NTe(o) : r;
return /*#__PURE__*/ R.createElement("path", mG({}, WR(e), _B(e), {
className: Sh("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, NTe = [
+}, PTe = [
"x",
"y",
"top",
@@ -56688,30 +56697,30 @@ function TG(e, t) {
}
return n;
}
-function PTe(e) {
+function FTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? TG(Object(n), !0).forEach(function(t) {
- FTe(e, t, n[t]);
+ ITe(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 FTe(e, t, n) {
- return (t = ITe(t)) in e ? Object.defineProperty(e, t, {
+function ITe(e, t, n) {
+ return (t = LTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ITe(e) {
- var t = LTe(e, "string");
+function LTe(e) {
+ var t = RTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function LTe(e, t) {
+function RTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56721,16 +56730,16 @@ function LTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function RTe(e, t) {
+function zTe(e, t) {
if (e == null) return {};
- var n, r, i = zTe(e, t);
+ var n, r, i = BTe(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 zTe(e, t) {
+function BTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56739,8 +56748,8 @@ function zTe(e, t) {
}
return n;
}
-var BTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, VTe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = RTe(e, NTe), l = PTe({
+var VTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, HTe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = zTe(e, PTe), l = FTe({
x: t,
y: n,
top: r,
@@ -56750,12 +56759,12 @@ var BTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, VTe = (e) => {
}, c);
return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", wG({}, KR(l), {
className: Sh("recharts-cross", s),
- d: BTe(t, n, a, o, r, i)
+ d: VTe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function HTe(e, t, n, r) {
+function UTe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -56782,26 +56791,26 @@ function DG(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) {
- UTe(e, t, n[t]);
+ WTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UTe(e, t, n) {
- return (t = WTe(t)) in e ? Object.defineProperty(e, t, {
+function WTe(e, t, n) {
+ return (t = GTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WTe(e) {
- var t = GTe(e, "string");
+function GTe(e) {
+ var t = KTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GTe(e, t) {
+function KTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56811,7 +56820,7 @@ function GTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KTe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), OG = (e, t, n) => e.map((e) => `${KTe(e)} ${t}ms ${n}`).join(","), qTe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), kG = (e, t) => Object.keys(t).reduce((n, r) => DG(DG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var qTe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), OG = (e, t, n) => e.map((e) => `${qTe(e)} ${t}ms ${n}`).join(","), JTe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), kG = (e, t) => Object.keys(t).reduce((n, r) => DG(DG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
function AG(e, t) {
@@ -56828,26 +56837,26 @@ function jG(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) {
- JTe(e, t, n[t]);
+ YTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JTe(e, t, n) {
- return (t = YTe(t)) in e ? Object.defineProperty(e, t, {
+function YTe(e, t, n) {
+ return (t = XTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YTe(e) {
- var t = XTe(e, "string");
+function XTe(e) {
+ var t = ZTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XTe(e, t) {
+function ZTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56876,7 +56885,7 @@ var MG = (e, t, n) => e + (t - e) * n, NG = (e) => {
from: MG(t.from, r[e].from, n)
}) : t, t) : PG(e, r, n - 1);
};
-function ZTe(e, t, n, r, i, a) {
+function QTe(e, t, n, r, i, a) {
var o, s = r.reduce((n, r) => jG(jG({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
@@ -56891,7 +56900,7 @@ function ZTe(e, t, n, r, i, a) {
(e = u) == null || e();
});
}
-function QTe(e, t, n, r, i, a, o) {
+function $Te(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 : jG(jG({}, n), {}, { [r]: [i, a] });
@@ -56909,15 +56918,15 @@ function QTe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var $Te = (e, t, n, r, i, a) => {
- var o = qTe(e, t);
- return n == null ? () => (i(jG(jG({}, e), t)), () => {}) : n.isStepper === !0 ? ZTe(e, t, n, o, i, a) : QTe(e, t, n, r, o, i, a);
+var eEe = (e, t, n, r, i, a) => {
+ var o = JTe(e, t);
+ return n == null ? () => (i(jG(jG({}, e), t)), () => {}) : n.isStepper === !0 ? QTe(e, t, n, o, i, a) : $Te(e, t, n, r, o, i, a);
}, FG = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], IG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), LG = (e, t) => (n) => IG(FG(e, t), n), eEe = (e, t) => (n) => IG([...FG(e, t).map((e, t) => e * t).slice(1), 0], n), tEe = (e) => {
+], IG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), LG = (e, t) => (n) => IG(FG(e, t), n), tEe = (e, t) => (n) => IG([...FG(e, t).map((e, t) => e * t).slice(1), 0], n), nEe = (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(",");
@@ -56929,7 +56938,7 @@ var $Te = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, nEe = function() {
+}, rEe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -56963,7 +56972,7 @@ var $Te = (e, t, n, r, i, a) => {
1
];
default:
- var t = tEe(e[0]);
+ var t = nEe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -56972,8 +56981,8 @@ var $Te = (e, t, n, r, i, a) => {
1,
1
];
-}, rEe = (e, t, n, r) => {
- var i = LG(e, n), a = LG(t, r), o = eEe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, iEe = (e, t, n, r) => {
+ var i = LG(e, n), a = LG(t, r), o = tEe(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);
@@ -56983,28 +56992,28 @@ var $Te = (e, t, n, r, i, a) => {
};
return c.isStepper = !1, c;
}, RG = function() {
- return rEe(...nEe(...arguments));
-}, iEe = function() {
+ return iEe(...rEe(...arguments));
+}, aEe = 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;
-}, aEe = (e) => {
+}, oEe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
case "linear": return RG(e);
- case "spring": return iEe();
+ case "spring": return aEe();
default: if (e.split("(")[0] === "cubic-bezier") return RG(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function oEe(e) {
+function sEe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -57035,7 +57044,7 @@ function oEe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var sEe = class {
+var cEe = 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));
@@ -57047,14 +57056,14 @@ var sEe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function cEe() {
- return oEe(new sEe());
+function lEe() {
+ return sEe(new cEe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var lEe = /*#__PURE__*/ (0, R.createContext)(cEe);
-function uEe(e, t) {
- var n = (0, R.useContext)(lEe);
+var uEe = /*#__PURE__*/ (0, R.createContext)(lEe);
+function dEe(e, t) {
+ var n = (0, R.useContext)(uEe);
return (0, R.useMemo)(() => t ?? n(e), [
e,
t,
@@ -57063,7 +57072,7 @@ function uEe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var dEe = {
+var fEe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -57073,12 +57082,12 @@ var dEe = {
onAnimationStart: () => {}
}, zG = { t: 0 }, BG = { t: 1 };
function VG(e) {
- var t = bB(e, dEe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = uG(), d = n === "auto" ? !lG.isSsr && !u : n, f = uEe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? zG : BG), h = (0, R.useRef)(null);
+ var t = bB(e, fEe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = uG(), d = n === "auto" ? !lG.isSsr && !u : n, f = dEe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? zG : BG), h = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
d || m(BG);
}, [d]), (0, R.useEffect)(() => {
if (!d || !r) return uB;
- var e = $Te(zG, BG, aEe(a), i, m, f.getTimeoutController());
+ var e = eEe(zG, BG, oEe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -57109,7 +57118,7 @@ function HG(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var fEe = ["radius"], pEe = ["radius"], mEe, hEe, gEe, _Ee, vEe, yEe, bEe, xEe, SEe, CEe;
+var pEe = ["radius"], mEe = ["radius"], hEe, gEe, _Ee, vEe, yEe, bEe, xEe, SEe, CEe, wEe;
function UG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -57124,26 +57133,26 @@ function WG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? UG(Object(n), !0).forEach(function(t) {
- wEe(e, t, n[t]);
+ TEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wEe(e, t, n) {
- return (t = TEe(t)) in e ? Object.defineProperty(e, t, {
+function TEe(e, t, n) {
+ return (t = EEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TEe(e) {
- var t = EEe(e, "string");
+function EEe(e) {
+ var t = DEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EEe(e, t) {
+function DEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57164,14 +57173,14 @@ function GG() {
}
function KG(e, t) {
if (e == null) return {};
- var n, r, i = DEe(e, t);
+ var n, r, i = OEe(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 DEe(e, t) {
+function OEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57195,44 +57204,44 @@ var JG = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = Zz(mEe ||= qG([
+ d = Zz(hEe ||= qG([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += Zz(hEe ||= qG([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += Zz(gEe ||= qG([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += Zz(gEe ||= qG([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += Zz(_Ee ||= qG([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += Zz(_Ee ||= qG([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += Zz(vEe ||= qG([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += Zz(vEe ||= qG([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += Zz(yEe ||= qG([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Zz(yEe ||= qG([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Zz(bEe ||= qG([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Zz(bEe ||= qG([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Zz(xEe ||= qG([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += Zz(xEe ||= qG([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += Zz(SEe ||= qG([
"A ",
",",
",0,0,",
@@ -57242,8 +57251,8 @@ var JG = (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 = Zz(SEe ||= qG(/* @__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 = Zz(CEe ||= qG([
+ d = Zz(CEe ||= qG(/* @__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 = Zz(wEe ||= qG([
"M ",
",",
" h ",
@@ -57287,7 +57296,7 @@ var JG = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Sh("recharts-rectangle", u);
if (!h) {
- var S = KR(t), { radius: C } = S, w = KG(S, fEe);
+ var S = KR(t), { radius: C } = S, w = KG(S, pEe);
return /*#__PURE__*/ R.createElement("path", GG({}, w, {
x: Xz(a),
y: Xz(o),
@@ -57313,7 +57322,7 @@ var JG = (e, t, n, r, i) => {
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = KR(t), { radius: h } = p, b = KG(p, pEe);
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = KR(t), { radius: h } = p, b = KG(p, mEe);
return /*#__PURE__*/ R.createElement("path", GG({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
@@ -57339,26 +57348,26 @@ function QG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? ZG(Object(n), !0).forEach(function(t) {
- OEe(e, t, n[t]);
+ kEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OEe(e, t, n) {
- return (t = kEe(t)) in e ? Object.defineProperty(e, t, {
+function kEe(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 kEe(e) {
- var t = AEe(e, "string");
+function AEe(e) {
+ var t = jEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function AEe(e, t) {
+function jEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57368,10 +57377,10 @@ function AEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var $G = Math.PI / 180, eK = (e) => e * Math.PI / 180, jEe = (e) => e * 180 / Math.PI, tK = (e, t, n, r) => ({
+var $G = Math.PI / 180, eK = (e) => e * Math.PI / 180, MEe = (e) => e * 180 / Math.PI, tK = (e, t, n, r) => ({
x: e + Math.cos(-$G * r) * n,
y: t + Math.sin(-$G * r) * n
-}), MEe = function(e, t) {
+}), NEe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -57382,11 +57391,11 @@ var $G = Math.PI / 180, eK = (e) => e * Math.PI / 180, jEe = (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;
-}, NEe = (e, t) => {
+}, PEe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, PEe = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = NEe({
+}, FEe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = PEe({
x: n,
y: r
}, {
@@ -57400,25 +57409,25 @@ var $G = Math.PI / 180, eK = (e) => e * Math.PI / 180, jEe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: jEe(c),
+ angle: MEe(c),
angleInRadian: c
};
-}, FEe = (e) => {
+}, IEe = (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
};
-}, IEe = (e, t) => {
+}, LEe = (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;
-}, LEe = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = PEe({
+}, REe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = FEe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = FEe(t), u = a, d;
+ var { startAngle: c, endAngle: l } = IEe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -57430,7 +57439,7 @@ var $G = Math.PI / 180, eK = (e) => e * Math.PI / 180, jEe = (e) => e * 180 / Ma
}
return d ? QG(QG({}, t), {}, {
radius: i,
- angle: IEe(u, t)
+ angle: LEe(u, t)
}) : null;
};
//#endregion
@@ -57448,7 +57457,7 @@ function nK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var REe, zEe, BEe, VEe, HEe, UEe, WEe;
+var zEe, BEe, VEe, HEe, UEe, WEe, GEe;
function rK() {
return rK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -57461,7 +57470,7 @@ function rK() {
function iK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) => {
+var KEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (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) / $G, d = c ? i : i + a * u, f = tK(t, n, l, d), p = tK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
@@ -57470,7 +57479,7 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
theta: u
};
}, oK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = GEe(a, o), c = a + s, l = tK(t, n, i, a), u = tK(t, n, i, c), d = Zz(REe ||= iK([
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = KEe(a, o), c = a + s, l = tK(t, n, i, a), u = tK(t, n, i, c), d = Zz(zEe ||= iK([
"M ",
",",
"\n A ",
@@ -57483,7 +57492,7 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
var f = tK(t, n, r, a), p = tK(t, n, r, c);
- d += Zz(zEe ||= iK([
+ d += Zz(BEe ||= iK([
"L ",
",",
"\n A ",
@@ -57494,13 +57503,13 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += Zz(BEe ||= iK([
+ } else d += Zz(VEe ||= iK([
"L ",
",",
" Z"
]), t, n);
return d;
-}, KEe = (e) => {
+}, qEe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Qz(l - c), { circleTangency: d, lineTangency: f, theta: p } = aK({
cx: t,
cy: n,
@@ -57518,7 +57527,7 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? Zz(VEe ||= iK([
+ if (_ < 0) return o ? Zz(HEe ||= iK([
"M ",
",",
"\n a",
@@ -57536,7 +57545,7 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
startAngle: c,
endAngle: l
});
- var v = Zz(HEe ||= iK([
+ var v = Zz(UEe ||= iK([
"M ",
",",
"\n A",
@@ -57578,7 +57587,7 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (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 += Zz(UEe ||= iK([
+ v += Zz(WEe ||= iK([
"L",
",",
"\n A",
@@ -57599,13 +57608,13 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (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 += Zz(WEe ||= iK([
+ } else v += Zz(GEe ||= iK([
"L",
",",
"Z"
]), t, n);
return v;
-}, qEe = {
+}, JEe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -57616,9 +57625,9 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
forceCornerRadius: !1,
cornerIsExternal: !1
}, sK = (e) => {
- var t = bB(e, qEe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ var t = bB(e, JEe), { 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 = Sh("recharts-sector", d), p = a - i, m = rB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? KEe({
+ var f = Sh("recharts-sector", d), p = a - i, m = rB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? qEe({
cx: n,
cy: r,
innerRadius: i,
@@ -57643,7 +57652,7 @@ var GEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function JEe(e, t, n) {
+function YEe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -57674,13 +57683,13 @@ function JEe(e, t, n) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function YEe(e) {
+function XEe(e) {
return Kz(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function cK(e) {
- return e ? (e = YEe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = XEe(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
@@ -57724,7 +57733,7 @@ function gK(e, t) {
if (mK(o)) return o;
}
}
-function XEe(e, t, n) {
+function ZEe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -58171,7 +58180,7 @@ var bK = (e) => {
}
var u = r[c] ?? 1, d = new _K.default(u).mul(o);
return t ? d : new _K.default(Math.ceil(d.toNumber()));
-}, ZEe = (e, t, n) => {
+}, QEe = (e, t, n) => {
var r = new _K.default(1), i = new _K.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -58200,7 +58209,7 @@ var bK = (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 ZEe(s, r, i);
+ if (s === c) return QEe(s, r, i);
var { step: u, tickMin: d, tickMax: f } = CK(s, c, o, i, 0, a === "snap125" ? SK : xK), p = yK(d, f.add(new _K.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
}, TK = function(e, t) {
@@ -58209,7 +58218,7 @@ var bK = (e) => {
if (o === s) return [o];
var c = a === "snap125" ? SK : xK, l = Math.max(t, 2), u = c(new _K.default(s).sub(o).div(l - 1), i, 0), d = [...yK(new _K.default(o), new _K.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, EK = (e) => e.rootProps.maxBarSize, DK = (e) => e.rootProps.barGap, OK = (e) => e.rootProps.barCategoryGap, kK = (e) => e.rootProps.barSize, AK = (e) => e.rootProps.stackOffset, jK = (e) => e.rootProps.reverseStackOrder, MK = (e) => e.options.chartName, NK = (e) => e.rootProps.syncId, PK = (e) => e.rootProps.syncMethod, FK = (e) => e.options.eventEmitter, QEe = (e) => e.rootProps.baseValue, IK = {
+}, EK = (e) => e.rootProps.maxBarSize, DK = (e) => e.rootProps.barGap, OK = (e) => e.rootProps.barCategoryGap, kK = (e) => e.rootProps.barSize, AK = (e) => e.rootProps.stackOffset, jK = (e) => e.rootProps.reverseStackOrder, MK = (e) => e.options.chartName, NK = (e) => e.rootProps.syncId, PK = (e) => e.rootProps.syncMethod, FK = (e) => e.options.eventEmitter, $Ee = (e) => e.rootProps.baseValue, IK = {
grid: -100,
barBackground: -50,
area: 100,
@@ -58289,26 +58298,26 @@ function HK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? VK(Object(n), !0).forEach(function(t) {
- $Ee(e, t, n[t]);
+ eDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Ee(e, t, n) {
- return (t = eDe(t)) in e ? Object.defineProperty(e, t, {
+function eDe(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 eDe(e) {
- var t = tDe(e, "string");
+function tDe(e) {
+ var t = nDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tDe(e, t) {
+function nDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58366,7 +58375,7 @@ var UK = {
EU,
DU,
NU
-], MEe), YK = $([qK, JK], (e, t) => {
+], NEe), YK = $([qK, JK], (e, t) => {
if (e != null) return rB(e.innerRadius, t, 0);
}), XK = $([qK, JK], (e, t) => {
if (e != null) return rB(e.outerRadius, t, t * .8);
@@ -58374,13 +58383,13 @@ var UK = {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), nDe = $([GK, ZK], zK), QK = $([
+}), rDe = $([GK, ZK], zK), QK = $([
JK,
YK,
XK
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), rDe = $([KK, QK], zK), $K = $([
+}), iDe = $([KK, QK], zK), $K = $([
$U,
qK,
YK,
@@ -58434,7 +58443,7 @@ var aq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&
function oq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function iDe(e, t) {
+function aDe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -58513,7 +58522,7 @@ function dq(e, t) {
//#region node_modules/d3-array/src/bisector.js
function fq(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = aDe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = oDe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -58539,7 +58548,7 @@ function fq(e) {
right: i
};
}
-function aDe(e) {
+function oDe(e) {
return (t, n) => dq(e(t), n);
}
//#endregion
@@ -58547,7 +58556,7 @@ function aDe(e) {
function pq(e) {
return e === null ? NaN : +e;
}
-function* oDe(e, t) {
+function* sDe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -58561,7 +58570,7 @@ mq.left, fq(pq).center;
//#endregion
//#region node_modules/internmap/src/index.js
var gq = class extends Map {
- constructor(e, t = lDe) {
+ constructor(e, t = uDe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -58574,25 +58583,25 @@ var gq = class extends Map {
return super.has(_q(this, e));
}
set(e, t) {
- return super.set(sDe(this, e), t);
+ return super.set(cDe(this, e), t);
}
delete(e) {
- return super.delete(cDe(this, e));
+ return super.delete(lDe(this, e));
}
};
function _q({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function sDe({ _intern: e, _key: t }, n) {
+function cDe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function cDe({ _intern: e, _key: t }, n) {
+function lDe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function lDe(e) {
+function uDe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -58665,15 +58674,15 @@ function Dq(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function uDe(e, t, n) {
- if (e = Float64Array.from(oDe(e, n)), r = e.length) {
+function dDe(e, t, n) {
+ if (e = Float64Array.from(sDe(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return Tq(e);
if (t >= 1) return wq(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = wq(Eq(e, a).subarray(0, a + 1));
return o + (Tq(e.subarray(a + 1)) - o) * (i - a);
}
}
-function dDe(e, t, n = pq) {
+function fDe(e, t, n = pq) {
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);
@@ -58683,7 +58692,7 @@ function dDe(e, t, n = pq) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function fDe(e, t, n) {
+function pDe(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;
@@ -58755,7 +58764,7 @@ function Nq() {
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 = fDe(e).map(function(e) {
+ var m = pDe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -58790,7 +58799,7 @@ function Pq(e) {
return Pq(t());
}, e;
}
-function pDe() {
+function mDe() {
return Pq(Nq.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -58806,7 +58815,7 @@ function Iq(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function Lq() {}
-var Rq = .7, zq = 1 / Rq, Bq = "\\s*([+-]?\\d+)\\s*", Vq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Hq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", mDe = /^#([0-9a-f]{3,8})$/, hDe = RegExp(`^rgb\\(${Bq},${Bq},${Bq}\\)$`), gDe = RegExp(`^rgb\\(${Hq},${Hq},${Hq}\\)$`), _De = RegExp(`^rgba\\(${Bq},${Bq},${Bq},${Vq}\\)$`), vDe = RegExp(`^rgba\\(${Hq},${Hq},${Hq},${Vq}\\)$`), yDe = RegExp(`^hsl\\(${Vq},${Hq},${Hq}\\)$`), bDe = RegExp(`^hsla\\(${Vq},${Hq},${Hq},${Vq}\\)$`), Uq = {
+var Rq = .7, zq = 1 / Rq, Bq = "\\s*([+-]?\\d+)\\s*", Vq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Hq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", hDe = /^#([0-9a-f]{3,8})$/, gDe = RegExp(`^rgb\\(${Bq},${Bq},${Bq}\\)$`), _De = RegExp(`^rgb\\(${Hq},${Hq},${Hq}\\)$`), vDe = RegExp(`^rgba\\(${Bq},${Bq},${Bq},${Vq}\\)$`), yDe = RegExp(`^rgba\\(${Hq},${Hq},${Hq},${Vq}\\)$`), bDe = RegExp(`^hsl\\(${Vq},${Hq},${Hq}\\)$`), xDe = RegExp(`^hsla\\(${Vq},${Hq},${Hq},${Vq}\\)$`), Uq = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -58965,18 +58974,18 @@ Fq(Lq, Kq, {
},
hex: Wq,
formatHex: Wq,
- formatHex8: xDe,
- formatHsl: SDe,
+ formatHex8: SDe,
+ formatHsl: CDe,
formatRgb: Gq,
toString: Gq
});
function Wq() {
return this.rgb().formatHex();
}
-function xDe() {
+function SDe() {
return this.rgb().formatHex8();
}
-function SDe() {
+function CDe() {
return rJ(this).formatHsl();
}
function Gq() {
@@ -58984,7 +58993,7 @@ function Gq() {
}
function Kq(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = mDe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? qq(t) : n === 3 ? new Xq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Jq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Jq(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 = hDe.exec(e)) ? new Xq(t[1], t[2], t[3], 1) : (t = gDe.exec(e)) ? new Xq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = _De.exec(e)) ? Jq(t[1], t[2], t[3], t[4]) : (t = vDe.exec(e)) ? Jq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = yDe.exec(e)) ? nJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = bDe.exec(e)) ? nJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Uq.hasOwnProperty(e) ? qq(Uq[e]) : e === "transparent" ? new Xq(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = hDe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? qq(t) : n === 3 ? new Xq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Jq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Jq(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 = gDe.exec(e)) ? new Xq(t[1], t[2], t[3], 1) : (t = _De.exec(e)) ? new Xq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = vDe.exec(e)) ? Jq(t[1], t[2], t[3], t[4]) : (t = yDe.exec(e)) ? Jq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = bDe.exec(e)) ? nJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = xDe.exec(e)) ? nJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Uq.hasOwnProperty(e) ? qq(Uq[e]) : e === "transparent" ? new Xq(NaN, NaN, NaN, 0) : null;
}
function qq(e) {
return new Xq(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -58992,11 +59001,11 @@ function qq(e) {
function Jq(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new Xq(e, t, n, r);
}
-function CDe(e) {
+function wDe(e) {
return e instanceof Lq || (e = Kq(e)), e ? (e = e.rgb(), new Xq(e.r, e.g, e.b, e.opacity)) : new Xq();
}
function Yq(e, t, n, r) {
- return arguments.length === 1 ? CDe(e) : new Xq(e, t, n, r ?? 1);
+ return arguments.length === 1 ? wDe(e) : new Xq(e, t, n, r ?? 1);
}
function Xq(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -59019,14 +59028,14 @@ Fq(Xq, Yq, Iq(Lq, {
},
hex: Zq,
formatHex: Zq,
- formatHex8: wDe,
+ formatHex8: TDe,
formatRgb: Qq,
toString: Qq
}));
function Zq() {
return `#${tJ(this.r)}${tJ(this.g)}${tJ(this.b)}`;
}
-function wDe() {
+function TDe() {
return `#${tJ(this.r)}${tJ(this.g)}${tJ(this.b)}${tJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function Qq() {
@@ -59053,13 +59062,13 @@ function rJ(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 iJ(o, s, c, e.opacity);
}
-function TDe(e, t, n, r) {
+function EDe(e, t, n, r) {
return arguments.length === 1 ? rJ(e) : new iJ(e, t, n, r ?? 1);
}
function iJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-Fq(iJ, TDe, Iq(Lq, {
+Fq(iJ, EDe, Iq(Lq, {
brighter(e) {
return e = e == null ? zq : zq ** +e, new iJ(this.h, this.s, this.l * e, this.opacity);
},
@@ -59095,29 +59104,29 @@ function sJ(e, t, n) {
var cJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function EDe(e, t) {
+function DDe(e, t) {
return function(n) {
return e + n * t;
};
}
-function DDe(e, t, n) {
+function ODe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function ODe(e) {
+function kDe(e) {
return (e = +e) == 1 ? lJ : function(t, n) {
- return n - t ? DDe(t, n, e) : cJ(isNaN(t) ? n : t);
+ return n - t ? ODe(t, n, e) : cJ(isNaN(t) ? n : t);
};
}
function lJ(e, t) {
var n = t - e;
- return n ? EDe(e, n) : cJ(isNaN(e) ? t : e);
+ return n ? DDe(e, n) : cJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var uJ = (function e(t) {
- var n = ODe(t);
+ var n = kDe(t);
function r(e, t) {
var r = n((e = Yq(e)).r, (t = Yq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = lJ(e.opacity, t.opacity);
return function(t) {
@@ -59128,7 +59137,7 @@ var uJ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function kDe(e, t) {
+function ADe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -59136,12 +59145,12 @@ function kDe(e, t) {
return r;
};
}
-function ADe(e) {
+function jDe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function jDe(e, t) {
+function MDe(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] = mJ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -59152,7 +59161,7 @@ function jDe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function MDe(e, t) {
+function NDe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -59167,7 +59176,7 @@ function dJ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function NDe(e, t) {
+function PDe(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] = mJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -59178,23 +59187,23 @@ function NDe(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var fJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, pJ = new RegExp(fJ.source, "g");
-function PDe(e) {
+function FDe(e) {
return function() {
return e;
};
}
-function FDe(e) {
+function IDe(e) {
return function(t) {
return e(t) + "";
};
}
-function IDe(e, t) {
+function LDe(e, t) {
var n = fJ.lastIndex = pJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = fJ.exec(e)) && (i = pJ.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: dJ(r, i)
})), n = pJ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? FDe(c[0].x) : PDe(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] ? IDe(c[0].x) : FDe(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("");
});
@@ -59203,7 +59212,7 @@ function IDe(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function mJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? cJ(t) : (n === "number" ? dJ : n === "string" ? (r = Kq(t)) ? (t = r, uJ) : IDe : t instanceof Kq ? uJ : t instanceof Date ? MDe : ADe(t) ? kDe : Array.isArray(t) ? jDe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? NDe : dJ)(e, t);
+ return t == null || n === "boolean" ? cJ(t) : (n === "number" ? dJ : n === "string" ? (r = Kq(t)) ? (t = r, uJ) : LDe : t instanceof Kq ? uJ : t instanceof Date ? NDe : jDe(t) ? ADe : Array.isArray(t) ? MDe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? PDe : dJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -59214,7 +59223,7 @@ function hJ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function LDe(e, t) {
+function RDe(e, t) {
t === void 0 && (t = e, e = mJ);
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) {
@@ -59224,7 +59233,7 @@ function LDe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function RDe(e) {
+function zDe(e) {
return function() {
return e;
};
@@ -59243,21 +59252,21 @@ function vJ(e) {
function yJ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : RDe(isNaN(t) ? NaN : .5);
+ } : zDe(isNaN(t) ? NaN : .5);
}
-function zDe(e, t) {
+function BDe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function BDe(e, t, n) {
+function VDe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = yJ(i, r), a = n(o, a)) : (r = yJ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function VDe(e, t, n) {
+function HDe(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] = yJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
@@ -59272,7 +59281,7 @@ function xJ() {
var e = _J, t = _J, n = mJ, r, i, a, o = vJ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== vJ && (o = zDe(e[0], e[n - 1])), s = n > 2 ? VDe : BDe, c = l = null, d;
+ return o !== vJ && (o = BDe(e[0], e[n - 1])), s = n > 2 ? HDe : VDe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -59300,7 +59309,7 @@ function SJ() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function HDe(e) {
+function UDe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function CJ(e, t) {
@@ -59315,7 +59324,7 @@ function wJ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function UDe(e, t) {
+function WDe(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);
@@ -59323,7 +59332,7 @@ function UDe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function WDe(e) {
+function GDe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -59332,9 +59341,9 @@ function WDe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var GDe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var KDe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function TJ(e) {
- if (!(t = GDe.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = KDe.exec(e))) throw Error("invalid format: " + e);
var t;
return new EJ({
fill: t[1],
@@ -59358,7 +59367,7 @@ EJ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function KDe(e) {
+function qDe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -59375,7 +59384,7 @@ function KDe(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var DJ;
-function qDe(e, t) {
+function JDe(e, t) {
var n = CJ(e, t);
if (!n) return DJ = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (DJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -59395,14 +59404,14 @@ var kJ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: HDe,
+ d: UDe,
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) => OJ(e * 100, t),
r: OJ,
- s: qDe,
+ s: JDe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -59432,8 +59441,8 @@ var jJ = Array.prototype.map, MJ = [
"Z",
"Y"
];
-function JDe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? AJ : UDe(jJ.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 ? AJ : WDe(jJ.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 YDe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? AJ : WDe(jJ.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 ? AJ : GDe(jJ.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 = TJ(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;
@@ -59446,7 +59455,7 @@ function JDe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = KDe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && DJ !== void 0 ? MJ[8 + DJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = qDe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && DJ !== void 0 ? MJ[8 + DJ / 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;
@@ -59487,27 +59496,27 @@ function JDe(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var NJ, PJ, FJ;
-YDe({
+XDe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function YDe(e) {
- return NJ = JDe(e), PJ = NJ.format, FJ = NJ.formatPrefix, NJ;
+function XDe(e) {
+ return NJ = YDe(e), PJ = NJ.format, FJ = NJ.formatPrefix, NJ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function XDe(e) {
+function ZDe(e) {
return Math.max(0, -wJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function ZDe(e, t) {
+function QDe(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(wJ(t) / 3))) * 3 - wJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function QDe(e, t) {
+function $De(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, wJ(t) - wJ(e)) + 1;
}
//#endregion
@@ -59517,16 +59526,16 @@ function IJ(e, t, n, r) {
switch (r = TJ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = ZDe(i, o)) && (r.precision = a), FJ(r, o);
+ return r.precision == null && !isNaN(a = QDe(i, o)) && (r.precision = a), FJ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = QDe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = $De(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = XDe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = ZDe(i)) && (r.precision = a - (r.type === "%") * 2);
}
return PJ(r);
}
@@ -59589,19 +59598,19 @@ function VJ(e) {
function HJ(e) {
return Math.exp(e);
}
-function $De(e) {
- return -Math.log(-e);
-}
function eOe(e) {
- return -Math.exp(-e);
+ return -Math.log(-e);
}
function tOe(e) {
- return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
+ return -Math.exp(-e);
}
function nOe(e) {
- return e === 10 ? tOe : e === Math.E ? Math.exp : (t) => e ** +t;
+ return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
function rOe(e) {
+ return e === 10 ? nOe : e === Math.E ? Math.exp : (t) => e ** +t;
+}
+function iOe(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 UJ(e) {
@@ -59610,7 +59619,7 @@ function UJ(e) {
function WJ(e) {
let t = e(VJ, HJ), n = t.domain, r = 10, i, a;
function o() {
- return i = rOe(r), a = nOe(r), n()[0] < 0 ? (i = UJ(i), a = UJ(a), e($De, eOe)) : e(VJ, HJ), t;
+ return i = iOe(r), a = rOe(r), n()[0] < 0 ? (i = UJ(i), a = UJ(a), e(eOe, tOe)) : e(VJ, HJ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -59680,16 +59689,16 @@ function XJ(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function iOe(e) {
+function aOe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function aOe(e) {
+function oOe(e) {
return e < 0 ? -e * e : e * e;
}
function ZJ(e) {
var t = e(vJ, vJ), n = 1;
function r() {
- return n === 1 ? e(vJ, vJ) : n === .5 ? e(iOe, aOe) : e(XJ(n), XJ(1 / n));
+ return n === 1 ? e(vJ, vJ) : n === .5 ? e(aOe, oOe) : e(XJ(n), XJ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -59701,7 +59710,7 @@ function QJ() {
return bJ(e, QJ()).exponent(e.exponent());
}, kq.apply(e, arguments), e;
}
-function oOe() {
+function sOe() {
return QJ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -59709,13 +59718,13 @@ function oOe() {
function $J(e) {
return Math.sign(e) * e * e;
}
-function sOe(e) {
+function cOe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function eY() {
var e = SJ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = sOe(e(t));
+ var i = cOe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -59742,7 +59751,7 @@ function tY() {
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] = dDe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = fDe(e, r / i);
return a;
}
function a(e) {
@@ -59911,8 +59920,8 @@ function CY(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * lY) / fY);
}
-var wY = CY(0), TY = CY(1), cOe = CY(2), lOe = CY(3), EY = CY(4), uOe = CY(5), dOe = CY(6);
-wY.range, TY.range, cOe.range, lOe.range, EY.range, uOe.range, dOe.range;
+var wY = CY(0), TY = CY(1), lOe = CY(2), uOe = CY(3), EY = CY(4), dOe = CY(5), fOe = CY(6);
+wY.range, TY.range, lOe.range, uOe.range, EY.range, dOe.range, fOe.range;
function DY(e) {
return oY((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -59920,8 +59929,8 @@ function DY(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / fY);
}
-var OY = DY(0), kY = DY(1), fOe = DY(2), pOe = DY(3), AY = DY(4), mOe = DY(5), hOe = DY(6);
-OY.range, kY.range, fOe.range, pOe.range, AY.range, mOe.range, hOe.range;
+var OY = DY(0), kY = DY(1), pOe = DY(2), mOe = DY(3), AY = DY(4), hOe = DY(5), gOe = DY(6);
+OY.range, kY.range, pOe.range, mOe.range, AY.range, hOe.range, gOe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var jY = oY((e) => {
@@ -60068,7 +60077,7 @@ function FY(e, t, n, r, i, a) {
}
return [s, c];
}
-var [gOe, _Oe] = FY(PY, MY, OY, SY, yY, _Y), [vOe, yOe] = FY(NY, jY, wY, bY, vY, gY);
+var [_Oe, vOe] = FY(PY, MY, OY, SY, yY, _Y), [yOe, bOe] = FY(NY, jY, wY, bY, vY, gY);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function IY(e) {
@@ -60096,7 +60105,7 @@ function RY(e, t, n) {
L: 0
};
}
-function bOe(e) {
+function xOe(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 = HY(i), u = UY(i), d = HY(a), f = UY(a), p = HY(o), m = UY(o), h = HY(s), g = UY(s), _ = HY(c), v = UY(c), y = {
a: N,
A: ee,
@@ -60105,30 +60114,30 @@ function bOe(e) {
c: null,
d: JY,
e: JY,
- f: UOe,
- g: $Oe,
- G: tke,
- H: BOe,
- I: VOe,
- j: HOe,
+ f: WOe,
+ g: eke,
+ G: nke,
+ H: VOe,
+ I: HOe,
+ j: UOe,
L: YY,
- m: WOe,
- M: GOe,
+ m: GOe,
+ M: KOe,
p: F,
q: ne,
Q: tX,
s: nX,
- S: KOe,
- u: qOe,
- U: JOe,
- V: YOe,
- w: XOe,
- W: ZOe,
+ S: qOe,
+ u: JOe,
+ U: YOe,
+ V: XOe,
+ w: ZOe,
+ W: QOe,
x: null,
X: null,
- y: QOe,
- Y: eke,
- Z: nke,
+ y: $Oe,
+ Y: tke,
+ Z: rke,
"%": eX
}, b = {
a: re,
@@ -60138,30 +60147,30 @@ function bOe(e) {
c: null,
d: ZY,
e: ZY,
- f: oke,
- g: gke,
- G: vke,
- H: rke,
- I: ike,
- j: ake,
+ f: ske,
+ g: _ke,
+ G: yke,
+ H: ike,
+ I: ake,
+ j: oke,
L: QY,
- m: ske,
- M: cke,
+ m: cke,
+ M: lke,
p: se,
q: ce,
Q: tX,
s: nX,
- S: lke,
- u: uke,
- U: dke,
- V: fke,
- w: pke,
- W: mke,
+ S: uke,
+ u: dke,
+ U: fke,
+ V: pke,
+ w: mke,
+ W: hke,
x: null,
X: null,
- y: hke,
- Y: _ke,
- Z: yke,
+ y: gke,
+ Y: vke,
+ Z: bke,
"%": eX
}, x = {
a: E,
@@ -60171,31 +60180,31 @@ function bOe(e) {
c: A,
d: KY,
e: KY,
- f: IOe,
+ f: LOe,
g: GY,
G: WY,
H: qY,
I: qY,
- j: MOe,
- L: FOe,
- m: jOe,
- M: NOe,
+ j: NOe,
+ L: IOe,
+ m: MOe,
+ M: POe,
p: T,
- q: AOe,
- Q: ROe,
- s: zOe,
- S: POe,
- u: TOe,
- U: EOe,
- V: DOe,
- w: wOe,
- W: OOe,
+ q: jOe,
+ Q: zOe,
+ s: BOe,
+ S: FOe,
+ u: EOe,
+ U: DOe,
+ V: OOe,
+ w: TOe,
+ W: kOe,
x: j,
X: M,
y: GY,
Y: WY,
- Z: kOe,
- "%": LOe
+ Z: AOe,
+ "%": ROe
};
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) {
@@ -60323,37 +60332,37 @@ var zY = {
"-": "",
_: " ",
0: "0"
-}, BY = /^\s*\d+/, xOe = /^%/, SOe = /[\\^$*+?|[\]().{}]/g;
+}, BY = /^\s*\d+/, SOe = /^%/, COe = /[\\^$*+?|[\]().{}]/g;
function VY(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 COe(e) {
- return e.replace(SOe, "\\$&");
+function wOe(e) {
+ return e.replace(COe, "\\$&");
}
function HY(e) {
- return RegExp("^(?:" + e.map(COe).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(wOe).join("|") + ")", "i");
}
function UY(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function wOe(e, t, n) {
+function TOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function TOe(e, t, n) {
+function EOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function EOe(e, t, n) {
+function DOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function DOe(e, t, n) {
+function OOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function OOe(e, t, n) {
+function kOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -60365,15 +60374,15 @@ function GY(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function kOe(e, t, n) {
+function AOe(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 AOe(e, t, n) {
+function jOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function jOe(e, t, n) {
+function MOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -60381,7 +60390,7 @@ function KY(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function MOe(e, t, n) {
+function NOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -60389,159 +60398,159 @@ function qY(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function NOe(e, t, n) {
+function POe(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function POe(e, t, n) {
+function FOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function FOe(e, t, n) {
+function IOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function IOe(e, t, n) {
+function LOe(e, t, n) {
var r = BY.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function LOe(e, t, n) {
- var r = xOe.exec(t.slice(n, n + 1));
+function ROe(e, t, n) {
+ var r = SOe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function ROe(e, t, n) {
+function zOe(e, t, n) {
var r = BY.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function zOe(e, t, n) {
+function BOe(e, t, n) {
var r = BY.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function JY(e, t) {
return VY(e.getDate(), t, 2);
}
-function BOe(e, t) {
+function VOe(e, t) {
return VY(e.getHours(), t, 2);
}
-function VOe(e, t) {
+function HOe(e, t) {
return VY(e.getHours() % 12 || 12, t, 2);
}
-function HOe(e, t) {
+function UOe(e, t) {
return VY(1 + bY.count(NY(e), e), t, 3);
}
function YY(e, t) {
return VY(e.getMilliseconds(), t, 3);
}
-function UOe(e, t) {
+function WOe(e, t) {
return YY(e, t) + "000";
}
-function WOe(e, t) {
+function GOe(e, t) {
return VY(e.getMonth() + 1, t, 2);
}
-function GOe(e, t) {
+function KOe(e, t) {
return VY(e.getMinutes(), t, 2);
}
-function KOe(e, t) {
+function qOe(e, t) {
return VY(e.getSeconds(), t, 2);
}
-function qOe(e) {
+function JOe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function JOe(e, t) {
+function YOe(e, t) {
return VY(wY.count(NY(e) - 1, e), t, 2);
}
function XY(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? EY(e) : EY.ceil(e);
}
-function YOe(e, t) {
+function XOe(e, t) {
return e = XY(e), VY(EY.count(NY(e), e) + (NY(e).getDay() === 4), t, 2);
}
-function XOe(e) {
+function ZOe(e) {
return e.getDay();
}
-function ZOe(e, t) {
+function QOe(e, t) {
return VY(TY.count(NY(e) - 1, e), t, 2);
}
-function QOe(e, t) {
+function $Oe(e, t) {
return VY(e.getFullYear() % 100, t, 2);
}
-function $Oe(e, t) {
+function eke(e, t) {
return e = XY(e), VY(e.getFullYear() % 100, t, 2);
}
-function eke(e, t) {
+function tke(e, t) {
return VY(e.getFullYear() % 1e4, t, 4);
}
-function tke(e, t) {
+function nke(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? EY(e) : EY.ceil(e), VY(e.getFullYear() % 1e4, t, 4);
}
-function nke(e) {
+function rke(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + VY(t / 60 | 0, "0", 2) + VY(t % 60, "0", 2);
}
function ZY(e, t) {
return VY(e.getUTCDate(), t, 2);
}
-function rke(e, t) {
+function ike(e, t) {
return VY(e.getUTCHours(), t, 2);
}
-function ike(e, t) {
+function ake(e, t) {
return VY(e.getUTCHours() % 12 || 12, t, 2);
}
-function ake(e, t) {
+function oke(e, t) {
return VY(1 + xY.count(PY(e), e), t, 3);
}
function QY(e, t) {
return VY(e.getUTCMilliseconds(), t, 3);
}
-function oke(e, t) {
+function ske(e, t) {
return QY(e, t) + "000";
}
-function ske(e, t) {
+function cke(e, t) {
return VY(e.getUTCMonth() + 1, t, 2);
}
-function cke(e, t) {
+function lke(e, t) {
return VY(e.getUTCMinutes(), t, 2);
}
-function lke(e, t) {
+function uke(e, t) {
return VY(e.getUTCSeconds(), t, 2);
}
-function uke(e) {
+function dke(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function dke(e, t) {
+function fke(e, t) {
return VY(OY.count(PY(e) - 1, e), t, 2);
}
function $Y(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? AY(e) : AY.ceil(e);
}
-function fke(e, t) {
+function pke(e, t) {
return e = $Y(e), VY(AY.count(PY(e), e) + (PY(e).getUTCDay() === 4), t, 2);
}
-function pke(e) {
+function mke(e) {
return e.getUTCDay();
}
-function mke(e, t) {
+function hke(e, t) {
return VY(kY.count(PY(e) - 1, e), t, 2);
}
-function hke(e, t) {
+function gke(e, t) {
return VY(e.getUTCFullYear() % 100, t, 2);
}
-function gke(e, t) {
+function _ke(e, t) {
return e = $Y(e), VY(e.getUTCFullYear() % 100, t, 2);
}
-function _ke(e, t) {
+function vke(e, t) {
return VY(e.getUTCFullYear() % 1e4, t, 4);
}
-function vke(e, t) {
+function yke(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? AY(e) : AY.ceil(e), VY(e.getUTCFullYear() % 1e4, t, 4);
}
-function yke() {
+function bke() {
return "+0000";
}
function eX() {
@@ -60556,7 +60565,7 @@ function nX(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var rX, iX, aX;
-bke({
+xke({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -60608,15 +60617,15 @@ bke({
"Dec"
]
});
-function bke(e) {
- return rX = bOe(e), iX = rX.format, rX.parse, aX = rX.utcFormat, rX.utcParse, rX;
+function xke(e) {
+ return rX = xOe(e), iX = rX.format, rX.parse, aX = rX.utcFormat, rX.utcParse, rX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function xke(e) {
+function Ske(e) {
return new Date(e);
}
-function Ske(e) {
+function Cke(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function oX(e, t, n, r, i, a, o, s, c, l) {
@@ -60627,7 +60636,7 @@ function oX(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, Ske)) : f().map(xke);
+ return arguments.length ? f(Array.from(e, Cke)) : f().map(Ske);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -60640,13 +60649,13 @@ function oX(e, t, n, r, i, a, o, s, c, l) {
return bJ(u, oX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function Cke() {
- return kq.apply(oX(vOe, yOe, NY, jY, wY, bY, vY, gY, hY, iX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function wke() {
+ return kq.apply(oX(yOe, bOe, NY, jY, wY, bY, vY, gY, hY, iX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function wke() {
- return kq.apply(oX(gOe, _Oe, PY, MY, OY, xY, yY, _Y, hY, aX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function Tke() {
+ return kq.apply(oX(_Oe, vOe, PY, MY, OY, xY, yY, _Y, hY, aX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -60701,7 +60710,7 @@ function fX() {
return cX(e, fX()).exponent(e.exponent());
}, Aq.apply(e, arguments);
}
-function Tke() {
+function Eke() {
return fX.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -60721,7 +60730,7 @@ function pX() {
}, 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) => uDe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => dDe(e, r / t));
}, n.copy = function() {
return pX(t).domain(e);
}, Aq.apply(n, arguments);
@@ -60747,7 +60756,7 @@ function mX() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = LDe(e, [
+ return arguments.length ? ([n, r, i] = t, l = RDe(e, [
n,
r,
i
@@ -60792,7 +60801,7 @@ function vX() {
return cX(e, vX()).exponent(e.exponent());
}, Aq.apply(e, arguments);
}
-function Eke() {
+function Dke() {
return vX.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -60802,14 +60811,14 @@ var yX = /* @__PURE__ */ wt({
scaleDiverging: () => hX,
scaleDivergingLog: () => gX,
scaleDivergingPow: () => vX,
- scaleDivergingSqrt: () => Eke,
+ scaleDivergingSqrt: () => Dke,
scaleDivergingSymlog: () => _X,
scaleIdentity: () => zJ,
scaleImplicit: () => jq,
scaleLinear: () => RJ,
scaleLog: () => GJ,
scaleOrdinal: () => Mq,
- scalePoint: () => pDe,
+ scalePoint: () => mDe,
scalePow: () => QJ,
scaleQuantile: () => tY,
scaleQuantize: () => nY,
@@ -60818,18 +60827,18 @@ var yX = /* @__PURE__ */ wt({
scaleSequentialLog: () => uX,
scaleSequentialPow: () => fX,
scaleSequentialQuantile: () => pX,
- scaleSequentialSqrt: () => Tke,
+ scaleSequentialSqrt: () => Eke,
scaleSequentialSymlog: () => dX,
- scaleSqrt: () => oOe,
+ scaleSqrt: () => sOe,
scaleSymlog: () => YJ,
scaleThreshold: () => rY,
- scaleTime: () => Cke,
- scaleUtc: () => wke,
+ scaleTime: () => wke,
+ scaleUtc: () => Tke,
tickFormat: () => IJ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Dke(e) {
+function Oke(e) {
if (e in yX) return yX[e]();
var t = `scale${cB(e)}`;
if (t in yX) return yX[t]();
@@ -60837,7 +60846,7 @@ function Dke(e) {
function bX(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Dke(e);
+ var r = Oke(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -60846,22 +60855,22 @@ function xX(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function Oke(e) {
+function kke(e) {
return `scale${cB(e)}`;
}
-function kke(e) {
- return Oke(e) in yX;
+function Ake(e) {
+ return kke(e) in yX;
}
var SX = (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 kke(r) ? r : "point";
+ if (typeof r == "string") return Ake(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function Ake(e, t) {
+function jke(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;
@@ -60872,7 +60881,7 @@ function CX(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 = Ake(r, e);
+ var t = jke(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;
@@ -60882,7 +60891,7 @@ function CX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function jke(e) {
+function Mke(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : CX(e, void 0);
}
//#endregion
@@ -60901,26 +60910,26 @@ function TX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? wX(Object(n), !0).forEach(function(t) {
- Mke(e, t, n[t]);
+ Nke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Mke(e, t, n) {
- return (t = Nke(t)) in e ? Object.defineProperty(e, t, {
+function Nke(e, t, n) {
+ return (t = Pke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Nke(e) {
- var t = Pke(e, "string");
+function Pke(e) {
+ var t = Fke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Pke(e, t) {
+function Fke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60988,7 +60997,7 @@ var EX = [0, "auto"], DX = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, jX = (e, t) => e.cartesianAxis.yAxis[t], MX = (e, t) => jX(e, t) ?? AX, Fke = {
+}, jX = (e, t) => e.cartesianAxis.yAxis[t], MX = (e, t) => jX(e, t) ?? AX, Ike = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -61001,7 +61010,7 @@ var EX = [0, "auto"], DX = {
scale: "auto",
type: "number",
unit: ""
-}, NX = (e, t) => e.cartesianAxis.zAxis[t] ?? Fke, PX = (e, t, n) => {
+}, NX = (e, t) => e.cartesianAxis.zAxis[t] ?? Ike, PX = (e, t, n) => {
switch (t) {
case "xAxis": return kX(e, n);
case "yAxis": return MX(e, n);
@@ -61010,7 +61019,7 @@ var EX = [0, "auto"], DX = {
case "radiusAxis": return KK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, Ike = (e, t, n) => {
+}, Lke = (e, t, n) => {
switch (t) {
case "xAxis": return kX(e, n);
case "yAxis": return MX(e, n);
@@ -61037,41 +61046,41 @@ function LX(e, t) {
}
};
}
-var RX = (e) => e.graphicalItems.cartesianItems, Lke = $([eq, tq], LX), zX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), BX = $([
+var RX = (e) => e.graphicalItems.cartesianItems, Rke = $([eq, tq], LX), zX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), BX = $([
RX,
PX,
- Lke
-], zX, { memoizeOptions: { resultEqualityCheck: oq } }), VX = $([BX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(iq)), HX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Rke = $([BX], HX), UX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), zke = $([BX], UX, { memoizeOptions: { resultEqualityCheck: oq } }), WX = (e, t) => {
+ Rke
+], zX, { memoizeOptions: { resultEqualityCheck: oq } }), VX = $([BX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(iq)), HX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), zke = $([BX], HX), UX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), WX = $([BX], UX, { memoizeOptions: { resultEqualityCheck: oq } }), GX = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, GX = $([zke, fK], WX), KX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: fU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: fU(e, t.dataKey) })), qX = $([
- GX,
+}, KX = $([WX, fK], GX), qX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: fU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: fU(e, t.dataKey) })), JX = $([
+ KX,
PX,
BX
-], KX);
-function JX(e) {
+], qX);
+function YX(e) {
if (tB(e) || e instanceof Date) {
var t = Number(e);
if (cU(t)) return t;
}
}
-function YX(e) {
+function XX(e) {
if (Array.isArray(e)) {
- var t = [JX(e[0]), JX(e[1])];
+ var t = [YX(e[0]), YX(e[1])];
return mK(t) ? t : void 0;
}
- var n = JX(e);
+ var n = YX(e);
if (n != null) return [n, n];
}
-function XX(e) {
- return e.map(JX).filter(lB);
+function ZX(e) {
+ return e.map(YX).filter(lB);
}
function Bke(e, t) {
- var n = JX(e), r = JX(t);
+ var n = YX(e), r = YX(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var Vke = $([qX], (e) => e?.map((e) => e.value).sort(Bke));
-function ZX(e, t) {
+var Vke = $([JX], (e) => e?.map((e) => e.value).sort(Bke));
+function QX(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
@@ -61079,16 +61088,16 @@ function ZX(e, t) {
}
}
function Hke(e, t, n) {
- return !n || typeof t != "number" || $z(t) || !n.length ? [] : XX(n.flatMap((n) => {
+ return !n || typeof t != "number" || $z(t) || !n.length ? [] : ZX(n.flatMap((n) => {
var r = fU(e, n.dataKey), i, a;
if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!cU(i) || !cU(a))) return [t - i, t + a];
}));
}
-var QX = (e) => FX(e, sq(e), cq(e)), $X = $([QX], (e) => e?.dataKey), Uke = $([
+var $X = (e) => FX(e, sq(e), cq(e)), eZ = $([$X], (e) => e?.dataKey), Uke = $([
VX,
fK,
- QX
-], rq), eZ = (e, t, n, r) => {
+ $X
+], rq), tZ = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -61097,66 +61106,66 @@ var QX = (e) => FX(e, sq(e), cq(e)), $X = $([QX], (e) => e?.dataKey), Uke = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: UCe(e, o.map(nq), n),
+ stackedData: WCe(e, o.map(nq), n),
graphicalItems: o
}];
}));
-}, tZ = $([
+}, nZ = $([
Uke,
VX,
AK,
jK
-], eZ), nZ = (e, t, n, r) => {
+], tZ), rZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = KCe(e, i, a);
+ var o = qCe(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, Wke = $([PX], (e) => e.allowDataOverflow), rZ = (e) => {
+}, Wke = $([PX], (e) => e.allowDataOverflow), iZ = (e) => {
if (e == null || !("domain" in e)) return EX;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = XX(e.ticks);
+ var t = ZX(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? EX;
-}, iZ = $([PX], rZ), aZ = $([iZ, Wke], gK), Gke = $([
- tZ,
+}, aZ = $([PX], iZ), oZ = $([aZ, Wke], gK), Gke = $([
+ nZ,
uK,
eq,
- aZ
-], nZ, { memoizeOptions: { resultEqualityCheck: aq } }), oZ = (e) => e.errorBars, Kke = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => ZX(n, e)), sZ = function() {
+ oZ
+], rZ, { memoizeOptions: { resultEqualityCheck: aq } }), sZ = (e) => e.errorBars, Kke = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => QX(n, e)), cZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, cZ = (e, t, n, r, i) => {
+}, lZ = (e, t, n, r, i) => {
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => ZX(i, e)), c = fU(e, t.dataKey ?? n.dataKey), l = Hke(e, c, s);
+ var s = r[n.id]?.filter((e) => QX(i, e)), c = fU(e, t.dataKey ?? n.dataKey), l = Hke(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);
}
- var f = YX(c);
+ var f = XX(c);
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 = YX(fU(e, t.dataKey));
+ var n = XX(fU(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]));
}), cU(a) && cU(o)) return [a, o];
}, qke = $([
- GX,
+ KX,
PX,
- Rke,
- oZ,
+ zke,
+ sZ,
eq
-], cZ, { memoizeOptions: { resultEqualityCheck: aq } });
+], lZ, { memoizeOptions: { resultEqualityCheck: aq } });
function Jke(e) {
var { value: t } = e;
if (tB(t) || t instanceof Date) return t;
@@ -61164,74 +61173,74 @@ function Jke(e) {
var Yke = (e, t, n) => {
var r = e.map(Jke).filter((e) => e != null);
return n && (t.dataKey == null || t.allowDuplicatedCategory && iB(r)) ? lK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, lZ = (e) => e.referenceElements.dots, uZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Xke = $([
- lZ,
+}, uZ = (e) => e.referenceElements.dots, dZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Xke = $([
+ uZ,
eq,
tq
-], uZ), dZ = (e) => e.referenceElements.areas, Zke = $([
- dZ,
+], dZ), fZ = (e) => e.referenceElements.areas, Zke = $([
+ fZ,
eq,
tq
-], uZ), fZ = (e) => e.referenceElements.lines, Qke = $([
- fZ,
+], dZ), pZ = (e) => e.referenceElements.lines, Qke = $([
+ pZ,
eq,
tq
-], uZ), pZ = (e, t) => {
+], dZ), mZ = (e, t) => {
if (e != null) {
- var n = XX(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = ZX(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, $ke = $(Xke, eq, pZ), mZ = (e, t) => {
+}, $ke = $(Xke, eq, mZ), hZ = (e, t) => {
if (e != null) {
- var n = XX(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = ZX(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)];
}
-}, eAe = $([Zke, eq], mZ);
+}, eAe = $([Zke, eq], hZ);
function tAe(e) {
- if (e.x != null) return XX([e.x]);
+ if (e.x != null) return ZX([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : XX(t);
+ return t == null || t.length === 0 ? [] : ZX(t);
}
function nAe(e) {
- if (e.y != null) return XX([e.y]);
+ if (e.y != null) return ZX([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : XX(t);
+ return t == null || t.length === 0 ? [] : ZX(t);
}
-var hZ = (e, t) => {
+var gZ = (e, t) => {
if (e != null) {
var n = e.flatMap((e) => t === "xAxis" ? tAe(e) : nAe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, rAe = $($ke, $([Qke, eq], hZ), eAe, (e, t, n) => sZ(e, n, t)), gZ = (e, t, n, r, i, a, o, s) => n ?? XEe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? sZ(r, a, i) : sZ(a, i), e.allowDataOverflow), iAe = $([
+}, rAe = $($ke, $([Qke, eq], gZ), eAe, (e, t, n) => cZ(e, n, t)), _Z = (e, t, n, r, i, a, o, s) => n ?? ZEe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? cZ(r, a, i) : cZ(a, i), e.allowDataOverflow), iAe = $([
PX,
- iZ,
aZ,
+ oZ,
Gke,
qke,
rAe,
$U,
eq
-], gZ, { memoizeOptions: { resultEqualityCheck: aq } }), aAe = [0, 1], _Z = (e, t, n, r, i, a, o) => {
+], _Z, { memoizeOptions: { resultEqualityCheck: aq } }), aAe = [0, 1], vZ = (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 = pU(t, a);
return l && s == null ? lK(0, n?.length ?? 0) : c === "category" ? Yke(r, e, l) : i === "expand" ? aAe : o;
}
-}, vZ = $([
+}, yZ = $([
PX,
$U,
- GX,
- qX,
+ KX,
+ JX,
AK,
eq,
iAe
-], _Z), yZ = $([
+], vZ), bZ = $([
PX,
IX,
MK
-], SX), bZ = (e, t, n) => {
+], SX), xZ = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = rZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ var i = iZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && mK(e)) {
if (a) return wK(e, t.tickCount, t.allowDecimals, r);
if (t.type === "number") return TK(e, t.tickCount, t.allowDecimals, r);
@@ -61241,11 +61250,11 @@ var hZ = (e, t) => {
if (t.type === "number" && mK(e)) return TK(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, xZ = $([
- vZ,
+}, SZ = $([
+ yZ,
FX,
- yZ
-], bZ), SZ = (e, t, n, r) => {
+ bZ
+], xZ), CZ = (e, t, n, r) => {
if (r !== "angleAxis" && e?.type === "number" && mK(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
@@ -61253,12 +61262,12 @@ var hZ = (e, t) => {
return t;
}, oAe = $([
PX,
- vZ,
- xZ,
+ yZ,
+ SZ,
eq
-], SZ), CZ = $($(qX, PX, (e, t) => {
+], CZ), wZ = $($(JX, PX, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(XX(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(ZX(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
if (i == null || a == null) return Infinity;
var o = a - i;
if (o === 0) return Infinity;
@@ -61282,10 +61291,10 @@ var hZ = (e, t) => {
return 0;
}), sAe = (e, t, n) => {
var r = kX(e, t);
- return r == null || typeof r.padding != "string" ? 0 : CZ(e, "xAxis", t, n, r.padding);
+ return r == null || typeof r.padding != "string" ? 0 : wZ(e, "xAxis", t, n, r.padding);
}, cAe = (e, t, n) => {
var r = MX(e, t);
- return r == null || typeof r.padding != "string" ? 0 : CZ(e, "yAxis", t, n, r.padding);
+ return r == null || typeof r.padding != "string" ? 0 : wZ(e, "yAxis", t, n, r.padding);
}, lAe = $(kX, sAe, (e, t) => {
if (e == null) return {
left: 0,
@@ -61331,7 +61340,7 @@ var hZ = (e, t) => {
], (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];
-}), wZ = (e, t, n, r) => {
+}), TZ = (e, t, n, r) => {
switch (t) {
case "xAxis": return dAe(e, n, r);
case "yAxis": return fAe(e, n, r);
@@ -61340,37 +61349,37 @@ var hZ = (e, t) => {
case "radiusAxis": return QK(e, n);
default: return;
}
-}, TZ = $([PX, wZ], zK), EZ = $([
+}, EZ = $([PX, TZ], zK), DZ = $([
PX,
- yZ,
- $([yZ, oAe], uq),
- TZ
-], xX), DZ = (e, t, n, r) => {
+ bZ,
+ $([bZ, oAe], uq),
+ EZ
+], xX), OZ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
if (pU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, OZ = $([
+}, kZ = $([
$U,
- qX,
+ JX,
FX,
eq
-], DZ), kZ = $([EZ], lq);
-$([EZ], jke), $([EZ, Vke], CX), $([
+], OZ), AZ = $([DZ], lq);
+$([DZ], Mke), $([DZ, Vke], CX), $([
BX,
- oZ,
+ sZ,
eq
], Kke);
-function AZ(e, t) {
+function jZ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var jZ = (e, t) => t, MZ = (e, t, n) => n, pAe = $(kU, jZ, MZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(AZ)), mAe = $(AU, jZ, MZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(AZ)), NZ = (e, t) => ({
+var MZ = (e, t) => t, NZ = (e, t, n) => n, pAe = $(kU, MZ, NZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(jZ)), mAe = $(AU, MZ, NZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(jZ)), PZ = (e, t) => ({
width: e.width,
height: t.height
}), hAe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), PZ = $(NU, kX, NZ), gAe = (e, t, n) => {
+}), FZ = $(NU, kX, PZ), gAe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
@@ -61382,15 +61391,15 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, pAe = $(kU, jZ, MZ, (e, t, n) => e.fi
case "right": return n - e.right;
default: return 0;
}
-}, vAe = $(DU, NU, pAe, jZ, MZ, (e, t, n, r, i) => {
+}, vAe = $(DU, NU, pAe, MZ, NZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = NZ(t, n);
+ var s = PZ(t, n);
o ??= gAe(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;
-}), yAe = $(EU, NU, mAe, jZ, MZ, (e, t, n, r, i) => {
+}), yAe = $(EU, NU, mAe, MZ, NZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = hAe(t, n);
@@ -61436,34 +61445,34 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, pAe = $(kU, jZ, MZ, (e, t, n) => e.fi
y: e.top
};
}
-}), FZ = $(NU, MX, (e, t) => ({
+}), IZ = $(NU, MX, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), IZ = (e, t, n) => {
+})), LZ = (e, t, n) => {
switch (t) {
- case "xAxis": return PZ(e, n).width;
- case "yAxis": return FZ(e, n).height;
+ case "xAxis": return FZ(e, n).width;
+ case "yAxis": return IZ(e, n).height;
default: return;
}
-}, LZ = (e, t, n, r) => {
+}, RZ = (e, t, n, r) => {
if (n != null) {
var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = pU(e, r), c = t.map((e) => e.value);
if (o && s && a === "category" && i && iB(c)) return c;
}
-}, RZ = $([
+}, zZ = $([
$U,
- qX,
+ JX,
PX,
eq
-], LZ), zZ = $([
+], RZ), BZ = $([
$U,
- Ike,
- yZ,
+ Lke,
+ bZ,
+ AZ,
+ zZ,
kZ,
- RZ,
- OZ,
- wZ,
- xZ,
+ TZ,
+ SZ,
eq
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
@@ -61489,7 +61498,7 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, pAe = $(kU, jZ, MZ, (e, t, n) => e.fi
scale: r
};
}
-}), BZ = (e, t, n, r, i, a, o, s, c) => {
+}), VZ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
var l = pU(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 ? Qz(a[0] - a[1]) * 2 * m : m;
@@ -61528,17 +61537,17 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, pAe = $(kU, jZ, MZ, (e, t, n) => e.fi
} : null;
}).filter(lB);
}
-}, VZ = $([
+}, HZ = $([
$U,
FX,
- yZ,
+ bZ,
+ AZ,
+ SZ,
+ TZ,
+ zZ,
kZ,
- xZ,
- wZ,
- RZ,
- OZ,
eq
-], BZ), HZ = (e, t, n, r, i, a, o) => {
+], VZ), UZ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
var s = pU(e, o), { tickCount: c } = t, l = 0;
return l = o === "angleAxis" && r?.length >= 2 ? Qz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
@@ -61567,22 +61576,22 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, pAe = $(kU, jZ, MZ, (e, t, n) => e.fi
} : null;
}).filter(lB);
}
-}, UZ = $([
+}, WZ = $([
$U,
FX,
+ AZ,
+ TZ,
+ zZ,
kZ,
- wZ,
- RZ,
- OZ,
eq
-], HZ), WZ = $(PX, kZ, (e, t) => {
+], UZ), GZ = $(PX, AZ, (e, t) => {
if (e != null && t != null) return TX(TX({}, e), {}, { scale: t });
});
$((e, t, n) => NX(e, n), $([$([
PX,
+ bZ,
yZ,
- vZ,
- TZ
+ EZ
], xX)], lq), (e, t) => {
if (e != null && t != null) return TX(TX({}, e), {}, { scale: t });
});
@@ -61611,41 +61620,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var GZ = (e) => e.options.defaultTooltipEventType, KZ = (e) => e.options.validateTooltipEventTypes;
-function qZ(e, t, n) {
+var KZ = (e) => e.options.defaultTooltipEventType, qZ = (e) => e.options.validateTooltipEventTypes;
+function JZ(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function JZ(e, t) {
- return qZ(t, GZ(e), KZ(e));
+function YZ(e, t) {
+ return JZ(t, KZ(e), qZ(e));
}
function CAe(e) {
- return Q((t) => JZ(t, e));
+ return Q((t) => YZ(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var YZ = (e, t) => {
+var XZ = (e, t) => {
var n, r = Number(t);
if (!($z(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, wAe = (e) => e.tooltip.settings, XZ = {
+}, wAe = (e) => e.tooltip.settings, ZZ = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, ZZ = NH({
+}, QZ = NH({
name: "tooltip",
initialState: {
itemInteraction: {
- click: XZ,
- hover: XZ
+ click: ZZ,
+ hover: ZZ
},
axisInteraction: {
- click: XZ,
- hover: XZ
+ click: ZZ,
+ hover: ZZ
},
- keyboardInteraction: XZ,
+ keyboardInteraction: ZZ,
syncInteraction: {
active: !1,
index: null,
@@ -61713,10 +61722,10 @@ var YZ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: TAe, replaceTooltipEntrySettings: EAe, removeTooltipEntrySettings: DAe, setTooltipSettingsState: OAe, setActiveMouseOverItemIndex: QZ, mouseLeaveItem: kAe, mouseLeaveChart: $Z, setActiveClickItemIndex: AAe, setMouseOverAxisIndex: eQ, setMouseClickAxisIndex: jAe, setSyncInteraction: tQ, setKeyboardInteraction: nQ } = ZZ.actions, MAe = ZZ.reducer;
+}), { addTooltipEntrySettings: TAe, replaceTooltipEntrySettings: EAe, removeTooltipEntrySettings: DAe, setTooltipSettingsState: OAe, setActiveMouseOverItemIndex: $Z, mouseLeaveItem: kAe, mouseLeaveChart: eQ, setActiveClickItemIndex: AAe, setMouseOverAxisIndex: tQ, setMouseClickAxisIndex: jAe, setSyncInteraction: nQ, setKeyboardInteraction: rQ } = QZ.actions, MAe = QZ.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function rQ(e, t) {
+function iQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61726,12 +61735,12 @@ function rQ(e, t) {
}
return n;
}
-function iQ(e) {
+function aQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? rQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? iQ(Object(n), !0).forEach(function(t) {
NAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -61765,16 +61774,16 @@ function IAe(e, t, n) {
function LAe(e) {
return e.index != null;
}
-var aQ = (e, t, n, r) => {
- if (t == null) return XZ;
+var oQ = (e, t, n, r) => {
+ if (t == null) return ZZ;
var i = IAe(e, t, n);
- if (i == null) return XZ;
+ if (i == null) return ZZ;
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 (LAe(i)) {
- if (a) return iQ(iQ({}, i), {}, { active: !0 });
+ if (a) return aQ(aQ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -61782,7 +61791,7 @@ var aQ = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return iQ(iQ({}, XZ), {}, { coordinate: i.coordinate });
+ return aQ(aQ({}, ZZ), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
@@ -61804,7 +61813,7 @@ function BAe(e, t, n) {
var r = fU(e, t);
return r == null || !mK(n) || zAe(r, n);
}
-var oQ = (e, t, n, r) => {
+var sQ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
@@ -61813,7 +61822,7 @@ var oQ = (e, t, n, r) => {
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
return l == null || BAe(l, n, r) ? String(c) : null;
-}, sQ = (e, t, n, r, i, a, o) => {
+}, cQ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -61829,7 +61838,7 @@ var oQ = (e, t, n, r) => {
};
}
}
-}, cQ = (e, t, n, r) => {
+}, lQ = (e, t, n, r) => {
if (t === "axis") return e.tooltipItemPayloads;
if (e.tooltipItemPayloads.length === 0) return [];
var i = n === "hover" ? e.itemInteraction.hover.graphicalItemId : e.itemInteraction.click.graphicalItemId;
@@ -61839,10 +61848,10 @@ var oQ = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, lQ = (e) => e.options.tooltipPayloadSearcher, uQ = (e) => e.tooltip;
+}, uQ = (e) => e.options.tooltipPayloadSearcher, dQ = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function dQ(e, t) {
+function fQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61852,12 +61861,12 @@ function dQ(e, t) {
}
return n;
}
-function fQ(e) {
+function pQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? fQ(Object(n), !0).forEach(function(t) {
VAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -61895,7 +61904,7 @@ function KAe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function pQ(e) {
+function mQ(e) {
if (typeof e == "string") return e;
}
function qAe(e) {
@@ -61904,20 +61913,20 @@ function qAe(e) {
unit: "unit" in e ? GAe(e.unit) : void 0,
dataKey: "dataKey" in e ? KAe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? pQ(e.color) : void 0,
- fill: "fill" in e ? pQ(e.fill) : void 0
+ color: "color" in e ? mQ(e.color) : void 0,
+ fill: "fill" in e ? mQ(e.fill) : void 0
};
}
function JAe(e, t) {
return e ?? t;
}
-var mQ = (e, t, n, r, i, a, o) => {
+var hQ = (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 = JAe(d, s), m = Array.isArray(p) ? sU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oB(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = qAe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = fQ(fQ({}, f), {}, {
+ var n = qAe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = pQ(pQ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
@@ -61939,103 +61948,103 @@ var mQ = (e, t, n, r, i, a, o) => {
})), e;
}, []);
}
-}, hQ = $([
- QX,
+}, gQ = $([
+ $X,
IX,
MK
-], SX), gQ = $([
+], SX), _Q = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- QX,
+ $X,
$([sq, cq], LX)
-], zX, { memoizeOptions: { resultEqualityCheck: oq } }), YAe = $([gQ], (e) => e.filter(iq)), _Q = $([$([gQ], UX, { memoizeOptions: { resultEqualityCheck: oq } }), uK], WX), XAe = $([
+], zX, { memoizeOptions: { resultEqualityCheck: oq } }), YAe = $([_Q], (e) => e.filter(iq)), vQ = $([$([_Q], UX, { memoizeOptions: { resultEqualityCheck: oq } }), uK], GX), XAe = $([
YAe,
uK,
- QX
-], rq), vQ = $([
- _Q,
- QX,
- gQ
-], KX), yQ = $([QX], rZ), bQ = $([yQ, $([QX], (e) => e.allowDataOverflow)], gK), ZAe = $([
+ $X
+], rq), yQ = $([
+ vQ,
+ $X,
+ _Q
+], qX), bQ = $([$X], iZ), xQ = $([bQ, $([$X], (e) => e.allowDataOverflow)], gK), ZAe = $([
$([
XAe,
- $([gQ], (e) => e.filter(iq)),
+ $([_Q], (e) => e.filter(iq)),
AK,
jK
- ], eZ),
+ ], tZ),
uK,
sq,
- bQ
-], nZ), QAe = $([
- _Q,
- QX,
- $([gQ], HX),
- oZ,
+ xQ
+], rZ), QAe = $([
+ vQ,
+ $X,
+ $([_Q], HX),
+ sZ,
sq
-], cZ, { memoizeOptions: { resultEqualityCheck: aq } }), $Ae = $([$([
- lZ,
+], lZ, { memoizeOptions: { resultEqualityCheck: aq } }), $Ae = $([$([
+ uZ,
sq,
cq
-], uZ), sq], pZ), eje = $([$([
- dZ,
+], dZ), sq], mZ), eje = $([$([
+ fZ,
sq,
cq
-], uZ), sq], mZ), xQ = $([
- QX,
+], dZ), sq], hZ), SQ = $([
+ $X,
$U,
- _Q,
vQ,
+ yQ,
AK,
sq,
$([
- QX,
- yQ,
+ $X,
bQ,
+ xQ,
ZAe,
QAe,
$([
$Ae,
$([$([
- fZ,
+ pZ,
sq,
cq
- ], uZ), sq], hZ),
+ ], dZ), sq], gZ),
eje
- ], sZ),
+ ], cZ),
$U,
sq
- ], gZ)
-], _Z), tje = $([
- QX,
- xQ,
+ ], _Z)
+], vZ), tje = $([
+ $X,
+ SQ,
$([
- xQ,
- QX,
- hQ
- ], bZ),
+ SQ,
+ $X,
+ gQ
+ ], xZ),
sq
-], SZ), SQ = (e) => wZ(e, sq(e), cq(e), !1), CQ = $([QX, SQ], zK), wQ = $([$([
- QX,
- hQ,
+], CZ), CQ = (e) => TZ(e, sq(e), cq(e), !1), wQ = $([$X, CQ], zK), TQ = $([$([
+ $X,
+ gQ,
tje,
- CQ
-], xX)], lq), TQ = $([
+ wQ
+], xX)], lq), EQ = $([
$U,
- QX,
- hQ,
- wQ,
- SQ,
+ $X,
+ gQ,
+ TQ,
+ CQ,
$([
$U,
- vQ,
- QX,
+ yQ,
+ $X,
sq
- ], LZ),
+ ], RZ),
$([
$U,
- vQ,
- QX,
+ yQ,
+ $X,
sq
- ], DZ),
+ ], OZ),
sq
], (e, t, n, r, i, a, o, s) => {
if (t) {
@@ -62061,46 +62070,46 @@ var mQ = (e, t, n, r, i, a, o) => {
}).filter(lB);
}
}
-}), EQ = $([
- GZ,
+}), DQ = $([
KZ,
+ qZ,
wAe
-], (e, t, n) => qZ(n.shared, e, t)), DQ = (e) => e.tooltip.settings.trigger, OQ = (e) => e.tooltip.settings.defaultIndex, kQ = $([
- uQ,
- EQ,
+], (e, t, n) => JZ(n.shared, e, t)), OQ = (e) => e.tooltip.settings.trigger, kQ = (e) => e.tooltip.settings.defaultIndex, AQ = $([
+ dQ,
DQ,
- OQ
-], aQ), AQ = $([
- kQ,
- _Q,
- $X,
- xQ
-], oQ), jQ = $([TQ, AQ], YZ), MQ = $([kQ], (e) => {
+ OQ,
+ kQ
+], oQ), jQ = $([
+ AQ,
+ vQ,
+ eZ,
+ SQ
+], sQ), MQ = $([EQ, jQ], XZ), NQ = $([AQ], (e) => {
if (e) return e.dataKey;
-}), nje = $([kQ], (e) => {
+}), nje = $([AQ], (e) => {
if (e) return e.graphicalItemId;
-}), NQ = $([
- uQ,
- EQ,
+}), PQ = $([
+ dQ,
DQ,
- OQ
-], cQ), rje = $([kQ, $([
+ OQ,
+ kQ
+], lQ), rje = $([AQ, $([
EU,
DU,
$U,
NU,
- TQ,
- OQ,
- NQ
-], sQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), ije = $([kQ], (e) => e?.active ?? !1), aje = $([$([
- NQ,
- AQ,
- uK,
- $X,
+ EQ,
+ kQ,
+ PQ
+], cQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), ije = $([AQ], (e) => e?.active ?? !1), aje = $([$([
+ PQ,
jQ,
- lQ,
- EQ
-], mQ)], (e) => {
+ uK,
+ eZ,
+ MQ,
+ uQ,
+ DQ
+], hQ)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -62108,7 +62117,7 @@ var mQ = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function PQ(e, t) {
+function FQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62118,12 +62127,12 @@ function PQ(e, t) {
}
return n;
}
-function FQ(e) {
+function IQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? PQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? FQ(Object(n), !0).forEach(function(t) {
oje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62151,13 +62160,13 @@ function cje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lje = () => Q(QX), uje = () => {
- var e = lje(), t = Q(TQ), n = Q(wQ);
- return CU(!e || !n ? void 0 : FQ(FQ({}, e), {}, { scale: n }), t);
+var lje = () => Q($X), uje = () => {
+ var e = lje(), t = Q(EQ), n = Q(TQ);
+ return CU(!e || !n ? void 0 : IQ(IQ({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function IQ(e, t) {
+function LQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62167,12 +62176,12 @@ function IQ(e, t) {
}
return n;
}
-function LQ(e) {
+function RQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? IQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? LQ(Object(n), !0).forEach(function(t) {
dje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : IQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62221,13 +62230,13 @@ var mje = (e, t, n, r) => {
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return LQ(LQ(LQ({}, r), tK(r.cx, r.cy, o, a)), {}, {
+ return RQ(RQ(RQ({}, r), tK(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return LQ(LQ(LQ({}, r), tK(r.cx, r.cy, s, c)), {}, {
+ return RQ(RQ(RQ({}, r), tK(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -62250,7 +62259,7 @@ function gje(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;
}
-var RQ = (e, t, n, r, i) => {
+var zQ = (e, t, n, r, i) => {
var a = t?.length ?? 0;
if (a <= 1 || e == null) return 0;
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
@@ -62283,48 +62292,48 @@ var RQ = (e, t, n, r, i) => {
}
}
return -1;
-}, zQ = () => Q(MK), BQ = (e, t) => t, VQ = (e, t, n) => n, HQ = (e, t, n, r) => r, _je = $(TQ, (e) => tV(e, (e) => e.coordinate)), UQ = $([
- uQ,
- BQ,
+}, BQ = () => Q(MK), VQ = (e, t) => t, HQ = (e, t, n) => n, UQ = (e, t, n, r) => r, _je = $(EQ, (e) => tV(e, (e) => e.coordinate)), WQ = $([
+ dQ,
VQ,
- HQ
-], aQ), WQ = $([
- UQ,
- _Q,
- $X,
- xQ
-], oQ), vje = (e, t, n) => {
+ HQ,
+ UQ
+], oQ), GQ = $([
+ WQ,
+ vQ,
+ eZ,
+ SQ
+], sQ), vje = (e, t, n) => {
if (t != null) {
- var r = uQ(e);
+ var r = dQ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, GQ = $([
- uQ,
- BQ,
+}, KQ = $([
+ dQ,
VQ,
- HQ
-], cQ), KQ = $([
+ HQ,
+ UQ
+], lQ), qQ = $([
EU,
DU,
$U,
NU,
- TQ,
- HQ,
- GQ
-], sQ), yje = $([UQ, KQ], (e, t) => e.coordinate ?? t), qQ = $([TQ, WQ], YZ), bje = $([
+ EQ,
+ UQ,
+ KQ
+], cQ), yje = $([WQ, qQ], (e, t) => e.coordinate ?? t), JQ = $([EQ, GQ], XZ), bje = $([
+ KQ,
GQ,
- WQ,
uK,
- $X,
- qQ,
- lQ,
- BQ
-], mQ), xje = $([UQ, WQ], (e, t) => ({
+ eZ,
+ JQ,
+ uQ,
+ VQ
+], hQ), xje = $([WQ, GQ], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
})), Sje = (e, t, n, r, i, a, o) => {
if (!(!e || !n || !r || !i) && gje(e, o)) {
- var s = RQ(qCe(e, t), a, i, n, r), c = mje(t, i, s, e);
+ var s = zQ(JCe(e, t), a, i, n, r), c = mje(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
@@ -62332,9 +62341,9 @@ var RQ = (e, t, n, r, i) => {
}
}, Cje = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = LEe(e, n);
+ var s = REe(e, n);
if (s) {
- var c = RQ(JCe(s, t), o, a, r, i), l = hje(t, a, c, s);
+ var c = zQ(YCe(s, t), o, a, r, i), l = hje(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
@@ -62351,10 +62360,10 @@ var RQ = (e, t, n, r, i) => {
}), Eje = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(IK));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: iDe } });
+}, { memoizeOptions: { resultEqualityCheck: aDe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function JQ(e, t) {
+function YQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62364,12 +62373,12 @@ function JQ(e, t) {
}
return n;
}
-function YQ(e) {
+function XQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? JQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? YQ(Object(n), !0).forEach(function(t) {
Dje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62397,7 +62406,7 @@ function kje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Aje = { zIndexMap: Object.values(IK).reduce((e, t) => YQ(YQ({}, e), {}, { [t]: {
+var Aje = { zIndexMap: Object.values(IK).reduce((e, t) => XQ(XQ({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
@@ -62405,7 +62414,7 @@ var Aje = { zIndexMap: Object.values(IK).reduce((e, t) => YQ(YQ({}, e), {}, { [t
function Mje(e) {
return jje.has(e);
}
-var XQ = NH({
+var ZQ = NH({
name: "zIndex",
initialState: Aje,
reducers: {
@@ -62446,11 +62455,11 @@ var XQ = NH({
prepare: kH()
}
}
-}), { registerZIndexPortal: Nje, unregisterZIndexPortal: Pje, registerZIndexPortalElement: Fje, unregisterZIndexPortalElement: Ije } = XQ.actions, Lje = XQ.reducer;
+}), { registerZIndexPortal: Nje, unregisterZIndexPortal: Pje, registerZIndexPortalElement: Fje, unregisterZIndexPortalElement: Ije } = ZQ.actions, Lje = ZQ.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function ZQ(e) {
- var { zIndex: t, children: n } = e, r = Cwe() && t !== void 0 && t !== 0, i = FU(), a = qB();
+function QQ(e) {
+ var { zIndex: t, children: n } = e, r = wwe() && t !== void 0 && t !== 0, i = FU(), a = qB();
(0, R.useLayoutEffect)(() => r ? (a(Nje({ zIndex: t })), () => {
a(Pje({ zIndex: t }));
}) : uB, [
@@ -62463,16 +62472,16 @@ function ZQ(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function QQ() {
- return QQ = Object.assign ? Object.assign.bind() : function(e) {
+function $Q() {
+ return $Q = 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;
- }, QQ.apply(null, arguments);
+ }, $Q.apply(null, arguments);
}
-function $Q(e, t) {
+function e$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62482,12 +62491,12 @@ function $Q(e, t) {
}
return n;
}
-function e$(e) {
+function t$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $Q(Object(n), !0).forEach(function(t) {
+ t % 2 ? e$(Object(n), !0).forEach(function(t) {
Rje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $Q(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62523,8 +62532,8 @@ function Hje(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 = VTe, h = IK.cursorLine;
- else if (l === "BarChart") p = HTe(o, u, i, a), m = XG, h = IK.cursorRectangle;
+ if (l === "ScatterChart") p = u, m = HTe, h = IK.cursorLine;
+ else if (l === "BarChart") p = UTe(o, u, i, a), m = XG, h = IK.cursorRectangle;
else if (o === "radial" && gB(u)) {
var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = nK(u);
p = {
@@ -62535,8 +62544,8 @@ function Hje(e) {
innerRadius: v,
outerRadius: v
}, m = sK, h = IK.cursorLine;
- } else p = { points: JEe(o, u, i) }, m = CG, h = IK.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = e$(e$(e$(e$({
+ } else p = { points: YEe(o, u, i) }, m = CG, h = IK.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = t$(t$(t$(t$({
stroke: "#ccc",
pointerEvents: "none"
}, i), p), GR(s)), {}, {
@@ -62544,15 +62553,15 @@ function Hje(e) {
payloadIndex: f,
className: Sh("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(Vje, {
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(Vje, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
function Uje(e) {
- var t = uje(), n = XU(), r = eW(), i = zQ();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(Hje, QQ({}, e, {
+ var t = uje(), n = XU(), r = eW(), i = BQ();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(Hje, $Q({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -62561,7 +62570,7 @@ function Uje(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var t$ = /*#__PURE__*/ (0, R.createContext)(null), Wje = () => (0, R.useContext)(t$), Gje = (/* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
+var n$ = /*#__PURE__*/ (0, R.createContext)(null), Wje = () => (0, R.useContext)(n$), Gje = (/* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -62648,12 +62657,12 @@ var t$ = /*#__PURE__*/ (0, R.createContext)(null), Wje = () => (0, R.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, n$ = new Gje(), r$ = "recharts.syncEvent.tooltip", i$ = "recharts.syncEvent.brush", a$ = (e, t) => {
+})))(), 1)).default, r$ = new Gje(), i$ = "recharts.syncEvent.tooltip", a$ = "recharts.syncEvent.brush", o$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
if (!$z(n)) return e[n];
}
-}, o$ = NH({
+}, s$ = NH({
name: "options",
initialState: {
chartName: "",
@@ -62664,13 +62673,13 @@ var t$ = /*#__PURE__*/ (0, R.createContext)(null), Wje = () => (0, R.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), Kje = o$.reducer, { createEventEmitter: qje } = o$.actions;
+}), Kje = s$.reducer, { createEventEmitter: qje } = s$.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
function Jje(e) {
return e.tooltip.syncInteraction;
}
-var s$ = NH({
+var c$ = NH({
name: "chartData",
initialState: {
chartData: void 0,
@@ -62694,8 +62703,8 @@ var s$ = NH({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: c$, setDataStartEndIndexes: Yje, setComputedData: Xje } = s$.actions, Zje = s$.reducer, Qje = ["x", "y"];
-function l$(e, t) {
+}), { setChartData: l$, setDataStartEndIndexes: Yje, setComputedData: Xje } = c$.actions, Zje = c$.reducer, Qje = ["x", "y"];
+function u$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62705,12 +62714,12 @@ function l$(e, t) {
}
return n;
}
-function u$(e) {
+function d$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? l$(Object(n), !0).forEach(function(t) {
+ t % 2 ? u$(Object(n), !0).forEach(function(t) {
$je(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62757,7 +62766,7 @@ function rMe(e, t) {
return n;
}
function iMe() {
- var e = Q(NK), t = Q(FK), n = qB(), r = Q(PK), i = Q(TQ), a = eW(), o = YU(), s = Q((e) => e.rootProps.className);
+ var e = Q(NK), t = Q(FK), n = qB(), r = Q(PK), i = Q(EQ), a = eW(), o = YU(), s = Q((e) => e.rootProps.className);
(0, R.useEffect)(() => {
if (e == null) return uB;
var s = (s, c, l) => {
@@ -62765,11 +62774,11 @@ function iMe() {
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 = nMe(d, Qje), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = u$(u$({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = nMe(d, Qje), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = d$(d$({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(u$(u$({}, c), {}, { payload: u$(u$({}, c.payload), {}, { coordinate: y }) }));
+ n(d$(d$({}, c), {}, { payload: d$(d$({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -62785,7 +62794,7 @@ function iMe() {
})] : r === "value" && (b = i.find((e) => String(e.value) === c.payload.label));
var { coordinate: x } = c.payload;
if (b == null || c.payload.active === !1 || x == null || o == null) {
- n(tQ({
+ n(nQ({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -62800,7 +62809,7 @@ function iMe() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(tQ({
+ n(nQ({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -62812,8 +62821,8 @@ function iMe() {
}
}
};
- return n$.on(r$, s), () => {
- n$.off(r$, s);
+ return r$.on(i$, s), () => {
+ r$.off(i$, s);
};
}, [
s,
@@ -62833,8 +62842,8 @@ function aMe() {
var r = (r, i, a) => {
t !== a && e === r && n(Yje(i));
};
- return n$.on(i$, r), () => {
- n$.off(i$, r);
+ return r$.on(a$, r), () => {
+ r$.off(a$, r);
};
}, [
n,
@@ -62852,7 +62861,7 @@ function sMe(e, t, n, r, i, a) {
var o = Q((n) => vje(n, e, t)), s = Q(nje), c = Q(FK), l = Q(NK), u = Q(PK), d = Q(Jje)?.active, f = YU();
(0, R.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = tQ({
+ var e = nQ({
active: a,
coordinate: n,
dataKey: o,
@@ -62861,7 +62870,7 @@ function sMe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- n$.emit(r$, l, e, c);
+ r$.emit(i$, l, e, c);
}
}, [
d,
@@ -62879,7 +62888,7 @@ function sMe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function d$(e, t) {
+function f$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62889,12 +62898,12 @@ function d$(e, t) {
}
return n;
}
-function f$(e) {
+function p$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? d$(Object(n), !0).forEach(function(t) {
+ t % 2 ? f$(Object(n), !0).forEach(function(t) {
cMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62926,9 +62935,9 @@ function dMe(e) {
return e.dataKey;
}
function fMe(e, t) {
- return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(_Te, t);
+ return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(vTe, t);
}
-var p$ = [], pMe = {
+var m$ = [], pMe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -62972,20 +62981,20 @@ function mMe(e) {
n,
S
]);
- var C = YU(), w = pG(), T = CAe(g), { activeIndex: E, isActive: D } = Q((e) => xje(e, T, _, S)) ?? {}, O = Q((e) => bje(e, T, _, S)), k = Q((e) => qQ(e, T, _, S)), A = Q((e) => yje(e, T, _, S)), j = O, M = Wje(), N = n ?? D ?? !1, [ee, te] = iV([j, N]), P = T === "axis" ? k : void 0;
+ var C = YU(), w = pG(), T = CAe(g), { activeIndex: E, isActive: D } = Q((e) => xje(e, T, _, S)) ?? {}, O = Q((e) => bje(e, T, _, S)), k = Q((e) => JQ(e, T, _, S)), A = Q((e) => yje(e, T, _, S)), j = O, M = Wje(), N = n ?? D ?? !1, [ee, te] = iV([j, N]), P = T === "axis" ? k : void 0;
sMe(T, _, A, P, E, N);
var F = y ?? M;
if (F == null || C == null || T == null) return null;
- var ne = j ?? p$;
- N || (ne = p$), s && ne.length && (ne = GB(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, dMe));
- var re = ne.length > 0, ie = f$(f$({}, t), {}, {
+ var ne = j ?? m$;
+ N || (ne = m$), s && ne.length && (ne = GB(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, dMe));
+ var re = ne.length > 0, ie = p$(p$({}, t), {}, {
payload: ne,
label: P,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ae = /*#__PURE__*/ R.createElement(DTe, {
+ }), ae = /*#__PURE__*/ R.createElement(OTe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -63013,8 +63022,8 @@ function mMe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var m$ = (e) => null;
-m$.displayName = "Cell";
+var h$ = (e) => null;
+h$.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
function hMe(e, t, n) {
@@ -63064,7 +63073,7 @@ var vMe = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function h$(e, t) {
+function g$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63077,9 +63086,9 @@ function h$(e, t) {
function yMe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h$(Object(n), !0).forEach(function(t) {
+ t % 2 ? g$(Object(n), !0).forEach(function(t) {
bMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -63107,10 +63116,10 @@ function SMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var g$ = yMe({}, {
+var _$ = yMe({}, {
cacheSize: 2e3,
enableCache: !0
-}), _$ = new vMe(g$.cacheSize), CMe = {
+}), v$ = new vMe(_$.cacheSize), CMe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -63118,14 +63127,14 @@ var g$ = yMe({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, v$ = "recharts_measurement_span";
+}, y$ = "recharts_measurement_span";
function wMe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var y$ = (e, t) => {
+var b$ = (e, t) => {
try {
- var n = document.getElementById(v$);
- n || (n = document.createElement("span"), n.setAttribute("id", v$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, CMe, t), n.textContent = `${e}`;
+ var n = document.getElementById(y$);
+ n || (n = document.createElement("span"), n.setAttribute("id", y$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, CMe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -63137,18 +63146,18 @@ var y$ = (e, t) => {
height: 0
};
}
-}, b$ = function(e) {
+}, x$ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (e == null || lG.isSsr) return {
width: 0,
height: 0
};
- if (!g$.enableCache) return y$(e, t);
- var n = wMe(e, t), r = _$.get(n);
+ if (!_$.enableCache) return b$(e, t);
+ var n = wMe(e, t), r = v$.get(n);
if (r) return r;
- var i = y$(e, t);
- return _$.set(n, i), i;
-}, x$;
+ var i = b$(e, t);
+ return v$.set(n, i), i;
+}, S$;
function TMe(e, t, n) {
return (t = EMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
@@ -63171,7 +63180,7 @@ function DMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var S$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, OMe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, kMe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, AMe = {
+var C$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, w$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, OMe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, kMe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, AMe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -63191,11 +63200,11 @@ var S$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C$ = /(
function MMe(e) {
return jMe.includes(e);
}
-var w$ = "NaN";
+var T$ = "NaN";
function NMe(e, t) {
return e * AMe[t];
}
-var T$ = class e {
+var E$ = class e {
static parse(t) {
var [, n, r] = kMe.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
@@ -63222,43 +63231,43 @@ var T$ = class e {
return $z(this.num);
}
};
-x$ = T$, TMe(T$, "NaN", new x$(NaN, ""));
-function E$(e) {
- if (e == null || e.includes(w$)) return w$;
+S$ = E$, TMe(E$, "NaN", new S$(NaN, ""));
+function D$(e) {
+ if (e == null || e.includes(T$)) return T$;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = S$.exec(t) ?? [], a = T$.parse(n ?? ""), o = T$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return w$;
- t = t.replace(S$, s.toString());
+ var [, n, r, i] = C$.exec(t) ?? [], a = E$.parse(n ?? ""), o = E$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return T$;
+ t = t.replace(C$, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = C$.exec(t) ?? [], d = T$.parse(c ?? ""), f = T$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return w$;
- t = t.replace(C$, p.toString());
+ var [, c, l, u] = w$.exec(t) ?? [], d = E$.parse(c ?? ""), f = E$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return T$;
+ t = t.replace(w$, p.toString());
}
return t;
}
-var D$ = /\(([^()]*)\)/;
+var O$ = /\(([^()]*)\)/;
function PMe(e) {
- for (var t = e, n; (n = D$.exec(t)) != null;) {
+ for (var t = e, n; (n = O$.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(D$, E$(r));
+ t = t.replace(O$, D$(r));
}
return t;
}
function FMe(e) {
var t = e.replace(/\s+/g, "");
- return t = PMe(t), t = E$(t), t;
+ return t = PMe(t), t = D$(t), t;
}
function IMe(e) {
try {
return FMe(e);
} catch {
- return w$;
+ return T$;
}
}
-function O$(e) {
+function k$(e) {
var t = IMe(e.slice(5, -1));
- return t === w$ ? "" : t;
+ return t === T$ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
@@ -63278,16 +63287,16 @@ var LMe = [
"className",
"breakAll"
];
-function k$() {
- return k$ = Object.assign ? Object.assign.bind() : function(e) {
+function A$() {
+ return A$ = 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;
- }, k$.apply(null, arguments);
+ }, A$.apply(null, arguments);
}
-function A$(e, t) {
+function j$(e, t) {
if (e == null) return {};
var n, r, i = zMe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -63305,28 +63314,28 @@ function zMe(e, t) {
}
return n;
}
-var j$ = /[ \f\n\r\t\v\u2028\u2029]+/, M$ = (e) => {
+var M$ = /[ \f\n\r\t\v\u2028\u2029]+/, N$ = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return sB(t) || (i = n ? t.toString().split("") : t.toString().split(j$)), {
+ return sB(t) || (i = n ? t.toString().split("") : t.toString().split(M$)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: b$(e, r).width
+ width: x$(e, r).width
})),
- spaceWidth: n ? 0 : b$("\xA0", r).width
+ spaceWidth: n ? 0 : x$("\xA0", r).width
};
} catch {
return null;
}
};
-function N$(e) {
+function P$(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
function BMe(e) {
return sB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var P$ = (e, t, n, r) => e.reduce((e, i) => {
+var F$ = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@ -63337,20 +63346,20 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), F$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), VMe = "…", I$ = (e, t, n, r, i, a, o, s) => {
- var c = M$({
+}, []), I$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), VMe = "…", L$ = (e, t, n, r, i, a, o, s) => {
+ var c = N$({
breakAll: n,
style: r,
children: e.slice(0, t) + VMe
});
if (!c) return [!1, []];
- var l = P$(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || F$(l).width > Number(a), l];
+ var l = F$(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || I$(l).width > Number(a), l];
}, HMe = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = P$(t, r, n, i);
- if (!l || i || !(d.length > a || F$(d).width > Number(r))) return d;
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = F$(t, r, n, i);
+ if (!l || i || !(d.length > a || I$(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), [_, v] = I$(u, g - 1, c, s, a, r, n, i), [y] = I$(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = L$(u, g - 1, c, s, a, r, n, i), [y] = L$(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -63358,13 +63367,13 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, L$ = (e) => [{
- words: sB(e) ? [] : e.toString().split(j$),
+}, R$ = (e) => [{
+ words: sB(e) ? [] : e.toString().split(M$),
width: void 0
}], UMe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
if ((t || n) && !lG.isSsr) {
- var s, c, l = M$({
+ var s, c, l = N$({
breakAll: a,
children: r,
style: i
@@ -63372,7 +63381,7 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return L$(r);
+ } else return R$(r);
return HMe({
breakAll: a,
children: r,
@@ -63380,20 +63389,20 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
style: i
}, s, c, t, !!n);
}
- return L$(r);
-}, R$ = "#808080", WMe = {
+ return R$(r);
+}, z$ = "#808080", WMe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: R$,
+ fill: z$,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, z$ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = bB(e, WMe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = A$(n, LMe), f = (0, R.useMemo)(() => UMe({
+}, B$ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = bB(e, WMe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = j$(n, LMe), f = (0, R.useMemo)(() => UMe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -63407,32 +63416,32 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = A$(d, RMe);
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = j$(d, RMe);
if (!tB(r) || !tB(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
if (!cU(y) || !cU(b)) return null;
var x;
switch (u) {
case "start":
- x = O$(`calc(${o})`);
+ x = k$(`calc(${o})`);
break;
case "middle":
- x = O$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = k$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = O$(`calc(${f.length - 1} * -${a})`);
+ default: x = k$(`calc(${f.length - 1} * -${a})`);
}
var S = [], C = f[0];
if (c && C != null) {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", k$({}, KR(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", A$({}, KR(v), {
ref: t,
x: y,
y: b,
className: Sh("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? R$ : s
+ fill: s.includes("url") ? z$ : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ R.createElement("tspan", {
@@ -63442,10 +63451,10 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-z$.displayName = "Text";
+B$.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function B$(e, t) {
+function V$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63455,12 +63464,12 @@ function B$(e, t) {
}
return n;
}
-function V$(e) {
+function H$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? B$(Object(n), !0).forEach(function(t) {
+ t % 2 ? V$(Object(n), !0).forEach(function(t) {
GMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -63530,59 +63539,59 @@ var JMe = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? V$({
+ return n === "insideLeft" ? H$({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? V$({
+ }, k) : n === "insideRight" ? H$({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? V$({
+ }, k) : n === "insideTop" ? H$({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? V$({
+ }, k) : n === "insideBottom" ? H$({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? V$({
+ }, k) : n === "insideTopLeft" ? H$({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? V$({
+ }, k) : n === "insideTopRight" ? H$({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? V$({
+ }, k) : n === "insideBottomLeft" ? H$({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? V$({
+ }, k) : n === "insideBottomRight" ? H$({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || eB(n.x)) && (Z(n.y) || eB(n.y)) ? V$({
+ }, k) : n && typeof n == "object" && (Z(n.x) || eB(n.x)) && (Z(n.y) || eB(n.y)) ? H$({
x: o + rB(n.x, m),
y: s + rB(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : V$({
+ }, k) : H$({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
}, YMe = ["labelRef"], XMe = ["content"];
-function H$(e, t) {
+function U$(e, t) {
if (e == null) return {};
var n, r, i = ZMe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -63600,7 +63609,7 @@ function ZMe(e, t) {
}
return n;
}
-function U$(e, t) {
+function W$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63610,12 +63619,12 @@ function U$(e, t) {
}
return n;
}
-function W$(e) {
+function G$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? U$(Object(n), !0).forEach(function(t) {
+ t % 2 ? W$(Object(n), !0).forEach(function(t) {
QMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -63643,16 +63652,16 @@ function eNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function G$() {
- return G$ = Object.assign ? Object.assign.bind() : function(e) {
+function K$() {
+ return K$ = 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;
- }, G$.apply(null, arguments);
+ }, K$.apply(null, arguments);
}
-var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
+var q$ = /*#__PURE__*/ (0, R.createContext)(null), J$ = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, R.useMemo)(() => ({
x: t,
y: n,
@@ -63668,11 +63677,11 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
a,
o
]);
- return /*#__PURE__*/ R.createElement(K$.Provider, { value: c }, s);
-}, J$ = () => {
- var e = (0, R.useContext)(K$), t = YU();
+ return /*#__PURE__*/ R.createElement(q$.Provider, { value: c }, s);
+}, Y$ = () => {
+ var e = (0, R.useContext)(q$), t = YU();
return e || (t ? JU(t) : void 0);
-}, Y$ = /*#__PURE__*/ (0, R.createContext)(null), tNe = (e) => {
+}, X$ = /*#__PURE__*/ (0, R.createContext)(null), tNe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, R.useMemo)(() => ({
cx: t,
cy: n,
@@ -63690,14 +63699,14 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
o,
s
]);
- return /*#__PURE__*/ R.createElement(Y$.Provider, { value: l }, c);
-}, X$ = () => {
- var e = (0, R.useContext)(Y$), t = Q($K);
+ return /*#__PURE__*/ R.createElement(X$.Provider, { value: l }, c);
+}, Z$ = () => {
+ var e = (0, R.useContext)(X$), t = Q($K);
return e || t;
}, nNe = (e) => {
var { value: t, formatter: n } = e, r = sB(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, Z$ = (e) => e != null && typeof e == "function", rNe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 360), iNe = (e, t, n, r, i) => {
+}, Q$ = (e) => e != null && typeof e == "function", rNe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 360), iNe = (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 = rNe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
@@ -63715,7 +63724,7 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
var y = tK(s, c, m, _), b = tK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
${b.x},${b.y}`, S = sB(e.id) ? nB("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ R.createElement("text", G$({}, r, {
+ return /*#__PURE__*/ R.createElement("text", K$({}, r, {
dominantBaseline: "central",
className: Sh("recharts-radial-bar-label", o)
}), /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("path", {
@@ -63758,7 +63767,7 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, Q$ = (e) => e != null && "cx" in e && Z(e.cx), oNe = {
+}, $$ = (e) => e != null && "cx" in e && Z(e.cx), oNe = {
angle: 0,
offset: 5,
zIndex: IK.label,
@@ -63766,7 +63775,7 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
textBreakAll: !1
};
function sNe(e) {
- if (!Q$(e)) return e;
+ if (!$$(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -63777,20 +63786,20 @@ function sNe(e) {
height: i
};
}
-function $$(e) {
- var t = bB(e, oNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = X$(), f = J$(), p = n == null ? i === "center" ? f : d ?? f : Q$(n) ? n : JU(n), m, h, g = sNe(p);
+function e1(e) {
+ var t = bB(e, oNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = Z$(), f = Y$(), p = n == null ? i === "center" ? f : d ?? f : $$(n) ? n : JU(n), m, h, g = sNe(p);
if (!p || sB(a) && sB(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
- var _ = W$(W$({}, t), {}, { viewBox: p });
+ var _ = G$(G$({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, R.isValidElement)(s)) {
- var { labelRef: v } = _, y = H$(_, YMe);
+ var { labelRef: v } = _, y = U$(_, YMe);
return /*#__PURE__*/ (0, R.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = H$(_, XMe);
+ var { content: b } = _, x = U$(_, XMe);
if (m = /*#__PURE__*/ (0, R.createElement)(s, x), /*#__PURE__*/ (0, R.isValidElement)(m)) return m;
} else m = nNe(t);
var S = KR(t);
- if (Q$(p)) {
+ if ($$(p)) {
if (i === "insideStart" || i === "insideEnd" || i === "end") return iNe(t, i, m, S, p);
h = aNe(p, t.offset, t.position);
} else {
@@ -63799,49 +63808,49 @@ function $$(e) {
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: Q$(r) ? void 0 : r,
+ parentViewBox: $$(r) ? void 0 : r,
clamp: !0
});
- h = W$(W$({
+ h = G$(G$({
x: C.x,
y: C.y,
textAnchor: C.horizontalAnchor,
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(z$, G$({
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(B$, K$({
ref: u,
className: Sh("recharts-label", c)
}, S, h, {
- textAnchor: N$(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: P$(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-$$.displayName = "Label";
-var e1 = (e, t, n) => {
+e1.displayName = "Label";
+var t1 = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ R.createElement($$, G$({ key: "label-implicit" }, r)) : tB(e) ? /*#__PURE__*/ R.createElement($$, G$({
+ return e === !0 ? /*#__PURE__*/ R.createElement(e1, K$({ key: "label-implicit" }, r)) : tB(e) ? /*#__PURE__*/ R.createElement(e1, K$({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === $$ ? /*#__PURE__*/ (0, R.cloneElement)(e, W$({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement($$, G$({
+ }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === e1 ? /*#__PURE__*/ (0, R.cloneElement)(e, G$({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(e1, K$({
key: "label-implicit",
content: e
- }, r)) : Z$(e) ? /*#__PURE__*/ R.createElement($$, G$({
+ }, r)) : Q$(e) ? /*#__PURE__*/ R.createElement(e1, K$({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement($$, G$({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement(e1, K$({}, e, { key: "label-implicit" }, r)) : null;
};
-function t1(e) {
+function n1(e) {
var { label: t, labelRef: n } = e;
- return e1(t, J$(), n) || null;
+ return t1(t, Y$(), n) || null;
}
function cNe(e) {
var { label: t } = e;
- return e1(t, X$()) || null;
+ return t1(t, Z$()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
@@ -63852,16 +63861,16 @@ var lNe = ["valueAccessor"], uNe = [
"textBreakAll",
"zIndex"
];
-function n1() {
- return n1 = Object.assign ? Object.assign.bind() : function(e) {
+function r1() {
+ return r1 = 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;
- }, n1.apply(null, arguments);
+ }, r1.apply(null, arguments);
}
-function r1(e, t) {
+function i1(e, t) {
if (e == null) return {};
var n, r, i = dNe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -63882,18 +63891,18 @@ function dNe(e, t) {
var fNe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
if (BMe(t)) return t;
-}, i1 = /*#__PURE__*/ (0, R.createContext)(void 0), a1 = i1.Provider, o1 = /*#__PURE__*/ (0, R.createContext)(void 0), pNe = o1.Provider;
+}, a1 = /*#__PURE__*/ (0, R.createContext)(void 0), o1 = a1.Provider, s1 = /*#__PURE__*/ (0, R.createContext)(void 0), pNe = s1.Provider;
function mNe() {
- return (0, R.useContext)(i1);
+ return (0, R.useContext)(a1);
}
function hNe() {
- return (0, R.useContext)(o1);
+ return (0, R.useContext)(s1);
}
-function s1(e) {
- var { valueAccessor: t = fNe } = e, n = r1(e, lNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = r1(n, uNe), l = mNe(), u = hNe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: s ?? IK.label }, /*#__PURE__*/ R.createElement(XR, { className: "recharts-label-list" }, d.map((e, i) => {
+function c1(e) {
+ var { valueAccessor: t = fNe } = e, n = i1(e, lNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = i1(n, uNe), l = mNe(), u = hNe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: s ?? IK.label }, /*#__PURE__*/ R.createElement(XR, { className: "recharts-label-list" }, d.map((e, i) => {
var s = sB(r) ? t(e, i) : fU(e.payload, r), l = sB(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ R.createElement($$, n1({ key: `label-${i}` }, KR(e), c, l, {
+ return /*#__PURE__*/ R.createElement(e1, r1({ key: `label-${i}` }, KR(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -63904,13 +63913,13 @@ function s1(e) {
}));
})));
}
-s1.displayName = "LabelList";
-function c1(e) {
+c1.displayName = "LabelList";
+function l1(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ R.createElement(s1, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || Z$(t) ? /*#__PURE__*/ R.createElement(s1, {
+ return t ? t === !0 ? /*#__PURE__*/ R.createElement(c1, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || Q$(t) ? /*#__PURE__*/ R.createElement(c1, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(s1, n1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(c1, r1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
@@ -63920,14 +63929,14 @@ var gNe = [
"baseLinePoints",
"connectNulls"
], _Ne;
-function l1() {
- return l1 = Object.assign ? Object.assign.bind() : function(e) {
+function u1() {
+ return u1 = 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;
- }, l1.apply(null, arguments);
+ }, u1.apply(null, arguments);
}
function vNe(e, t) {
if (e == null) return {};
@@ -63950,17 +63959,17 @@ function yNe(e, t) {
function bNe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var u1 = (e) => e != null && e.x === +e.x && e.y === +e.y, xNe = function() {
+var d1 = (e) => e != null && e.x === +e.x && e.y === +e.y, xNe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- u1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ d1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- u1(n) && r && r.push(n);
+ d1(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, d1 = (e, t) => {
+}, f1 = (e, t) => {
var n = xNe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
var r = n.map((e) => e.reduce((e, t, n) => Zz(_Ne ||= bNe([
@@ -63972,28 +63981,28 @@ var u1 = (e) => e != null && e.x === +e.x && e.y === +e.y, xNe = function() {
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
}, SNe = (e, t, n) => {
- var r = d1(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${d1(Array.from(t).reverse(), n).slice(1)}`;
-}, f1 = (e) => {
+ var r = f1(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${f1(Array.from(t).reverse(), n).slice(1)}`;
+}, p1 = (e) => {
var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = vNe(e, gNe);
if (!t || !t.length) return null;
var o = Sh("recharts-polygon", n);
if (r && r.length) {
var s = a.stroke && a.stroke !== "none", c = SNe(t, r, i);
- return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", l1({}, KR(a), {
+ return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ R.createElement("path", l1({}, KR(a), {
+ })), s ? /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
fill: "none",
- d: d1(t, i)
- })) : null, s ? /*#__PURE__*/ R.createElement("path", l1({}, KR(a), {
+ d: f1(t, i)
+ })) : null, s ? /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
fill: "none",
- d: d1(r, i)
+ d: f1(r, i)
})) : null);
}
- var l = d1(t, i);
- return /*#__PURE__*/ R.createElement("path", l1({}, KR(a), {
+ var l = f1(t, i);
+ return /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -64001,36 +64010,36 @@ var u1 = (e) => e != null && e.x === +e.x && e.y === +e.y, xNe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function p1() {
- return p1 = Object.assign ? Object.assign.bind() : function(e) {
+function m1() {
+ return m1 = 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;
- }, p1.apply(null, arguments);
+ }, m1.apply(null, arguments);
}
-var m1 = (e) => {
+var h1 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = Sh("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", p1({}, WR(e), _B(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", m1({}, WR(e), _B(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, h1 = (e) => e.graphicalItems.polarItems, g1 = $([
- h1,
+}, g1 = (e) => e.graphicalItems.polarItems, _1 = $([
+ g1,
PX,
$([eq, tq], LX)
-], zX), _1 = $([$([g1], UX), dK], WX), v1 = $([
- _1,
+], zX), v1 = $([$([_1], UX), dK], GX), y1 = $([
+ v1,
PX,
- g1
-], KX);
+ _1
+], qX);
$([
- _1,
+ v1,
PX,
- g1
+ _1
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
value: fU(e, t.dataKey ?? n.dataKey),
errorDomain: []
@@ -64041,71 +64050,71 @@ $([
value: fU(e, t.dataKey),
errorDomain: []
})));
-var y1 = () => void 0, b1 = $([
+var b1 = () => void 0, x1 = $([
PX,
$U,
- _1,
v1,
+ y1,
AK,
eq,
$([
PX,
- iZ,
aZ,
- y1,
+ oZ,
+ b1,
$([
- _1,
+ v1,
PX,
- g1,
- oZ,
+ _1,
+ sZ,
eq
- ], cZ),
- y1,
+ ], lZ),
+ b1,
$U,
eq
- ], gZ)
-], _Z), x1 = $([
- b1,
+ ], _Z)
+], vZ), S1 = $([
+ x1,
FX,
- yZ
-], bZ), CNe = $([yZ, $([
+ bZ
+], xZ), CNe = $([bZ, $([
PX,
- b1,
x1,
+ S1,
eq
-], SZ)], uq), S1 = (e, t, n) => {
+], CZ)], uq), C1 = (e, t, n) => {
switch (t) {
case "angleAxis": return GK(e, n);
case "radiusAxis": return KK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, C1 = (e, t, n) => {
+}, w1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return nDe(e, n);
- case "radiusAxis": return rDe(e, n);
+ case "angleAxis": return rDe(e, n);
+ case "radiusAxis": return iDe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, w1 = $([$([
- S1,
- yZ,
+}, T1 = $([$([
+ C1,
+ bZ,
CNe,
- C1
-], xX)], lq), T1 = $([
+ w1
+], xX)], lq), E1 = $([
$U,
- v1,
+ y1,
FX,
eq
-], DZ), E1 = $([
+], OZ), D1 = $([
$U,
- S1,
- yZ,
- w1,
- x1,
C1,
- RZ,
+ bZ,
T1,
+ S1,
+ w1,
+ zZ,
+ E1,
eq
-], BZ), wNe = $([E1], (e) => {
+], VZ), wNe = $([D1], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -64115,15 +64124,15 @@ var y1 = () => void 0, b1 = $([
}
}), TNe = $([
$U,
- S1,
- w1,
C1,
- RZ,
T1,
+ w1,
+ zZ,
+ E1,
eq
-], HZ), ENe = $([(e, t) => E1(e, "angleAxis", t, !1)], (e) => {
+], UZ), ENe = $([(e, t) => D1(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), DNe = $([(e, t) => E1(e, "radiusAxis", t, !1)], (e) => {
+}), DNe = $([(e, t) => D1(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
}), ONe = [
"gridType",
@@ -64156,16 +64165,16 @@ function ANe(e, t) {
}
return n;
}
-function D1() {
- return D1 = Object.assign ? Object.assign.bind() : function(e) {
+function O1() {
+ return O1 = 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;
- }, D1.apply(null, arguments);
+ }, O1.apply(null, arguments);
}
-function O1(e, t) {
+function k1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64175,12 +64184,12 @@ function O1(e, t) {
}
return n;
}
-function k1(e) {
+function A1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O1(Object(n), !0).forEach(function(t) {
+ t % 2 ? k1(Object(n), !0).forEach(function(t) {
jNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O1(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64217,33 +64226,33 @@ var PNe = (e, t, n, r) => {
}, FNe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = k1({ stroke: "#ccc" }, WR(e));
+ var s = A1({ stroke: "#ccc" }, WR(e));
return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
var a = tK(t, n, r, e), o = tK(t, n, i, e);
- return /*#__PURE__*/ R.createElement("line", D1({ key: `line-${e}` }, s, {
+ return /*#__PURE__*/ R.createElement("line", O1({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, A1 = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = k1({
+}, j1 = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = A1({
stroke: "#ccc",
fill: "none"
}, WR(e));
- return /*#__PURE__*/ R.createElement("circle", D1({}, i, {
+ return /*#__PURE__*/ R.createElement("circle", O1({}, i, {
className: Sh("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, j1 = (e) => {
- var { radius: t } = e, n = k1({
+}, M1 = (e) => {
+ var { radius: t } = e, n = A1({
stroke: "#ccc",
fill: "none"
}, WR(e));
- return /*#__PURE__*/ R.createElement("path", D1({}, n, {
+ return /*#__PURE__*/ R.createElement("path", O1({}, n, {
className: Sh("recharts-polar-grid-concentric-polygon", e.className),
d: PNe(t, e.cx, e.cy, e.polarAngles)
}));
@@ -64251,12 +64260,12 @@ var PNe = (e, t, n, r) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
- return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(A1, D1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(j1, D1({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(j1, O1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(M1, O1({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ R.createElement(A1, D1({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ R.createElement(j1, O1({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ R.createElement(j1, D1({ key: i }, e, {
+ })) : /*#__PURE__*/ R.createElement(M1, O1({ key: i }, e, {
fill: "none",
radius: t
}));
@@ -64267,10 +64276,10 @@ var PNe = (e, t, n, r) => {
gridType: "polygon",
radialLines: !0,
zIndex: IK.grid
-}, M1 = (e) => {
+}, N1 = (e) => {
var t = bB(e, LNe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = kNe(t, ONe), m = Q($K), h = Q((e) => ENe(e, i)), g = Q((e) => DNe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = k1({
+ var y = A1({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -64279,13 +64288,13 @@ var PNe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(INe, D1({
+ return b <= 0 ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(INe, O1({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ R.createElement(FNe, D1({
+ })), /*#__PURE__*/ R.createElement(FNe, O1({
gridType: n,
radialLines: r
}, y, {
@@ -64293,17 +64302,17 @@ var PNe = (e, t, n, r) => {
polarRadius: v
}))));
};
-M1.displayName = "PolarGrid";
+N1.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function N1(e) {
+function P1(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
function RNe(e, t = TB) {
if (e == null) return;
- let n = N1(e);
+ let n = P1(e);
if (n.length === 0) return;
let r = UB(t), i, a;
for (let e = 0; e < n.length; e++) {
@@ -64316,7 +64325,7 @@ function RNe(e, t = TB) {
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
function zNe(e, t = TB) {
if (e == null) return;
- let n = N1(e);
+ let n = P1(e);
if (n.length === 0) return;
let r = UB(t), i, a;
for (let e = 0; e < n.length; e++) {
@@ -64327,7 +64336,7 @@ function zNe(e, t = TB) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var P1 = NH({
+var F1 = NH({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -64347,10 +64356,10 @@ var P1 = NH({
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: BNe, removeRadiusAxis: VNe, addAngleAxis: HNe, removeAngleAxis: UNe } = P1.actions, WNe = P1.reducer;
+}), { addRadiusAxis: BNe, removeRadiusAxis: VNe, addAngleAxis: HNe, removeAngleAxis: UNe } = F1.actions, WNe = F1.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function F1(e) {
+function I1(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
@@ -64366,16 +64375,16 @@ var GNe = ["type"], KNe = [
"stroke",
"tick"
];
-function I1() {
- return I1 = Object.assign ? Object.assign.bind() : function(e) {
+function L1() {
+ return L1 = 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;
- }, I1.apply(null, arguments);
+ }, L1.apply(null, arguments);
}
-function L1(e, t) {
+function R1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64385,12 +64394,12 @@ function L1(e, t) {
}
return n;
}
-function R1(e) {
+function z1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L1(Object(n), !0).forEach(function(t) {
+ t % 2 ? R1(Object(n), !0).forEach(function(t) {
JNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L1(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64418,7 +64427,7 @@ function XNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z1(e, t) {
+function B1(e, t) {
if (e == null) return {};
var n, r, i = ZNe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -64439,8 +64448,8 @@ function ZNe(e, t) {
var QNe = "radiusAxis";
function $Ne(e) {
var t = qB(), n = rW(), r = (0, R.useMemo)(() => {
- var { type: t } = e, r = z1(e, GNe), i = BK(n, "radiusAxis", t);
- if (i != null) return R1(R1({}, r), {}, { type: i });
+ var { type: t } = e, r = B1(e, GNe), i = BK(n, "radiusAxis", t);
+ if (i != null) return z1(z1({}, r), {}, { type: i });
}, [e, n]);
return (0, R.useEffect)(() => r == null ? uB : (t(BNe(r)), () => {
t(VNe(r));
@@ -64473,35 +64482,35 @@ var ePe = (e, t, n, r) => {
clockWise: !1
};
}, rPe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = z1(e, KNe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = tK(n, r, s[0], i), l = tK(n, r, s[1], i), u = R1(R1(R1({}, WR(o)), {}, { fill: "none" }, WR(a)), {}, {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = B1(e, KNe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = tK(n, r, s[0], i), l = tK(n, r, s[1], i), u = z1(z1(z1({}, WR(o)), {}, { fill: "none" }, WR(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ R.createElement("line", I1({ className: "recharts-polar-radius-axis-line" }, u));
-}, iPe = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(z$, I1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), aPe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = z1(e, qNe), s = tPe(e.orientation), c = WR(o), l = GR(a), u = t.map((t, o) => {
- var u = ePe(t, e.angle, e.cx, e.cy), d = R1(R1(R1(R1({
+ return /*#__PURE__*/ R.createElement("line", L1({ className: "recharts-polar-radius-axis-line" }, u));
+}, iPe = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(B$, L1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), aPe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = B1(e, qNe), s = tPe(e.orientation), c = WR(o), l = GR(a), u = t.map((t, o) => {
+ var u = ePe(t, e.angle, e.cx, e.cy), d = z1(z1(z1(z1({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ R.createElement(XR, I1({
- className: Sh("recharts-polar-radius-axis-tick", F1(a)),
+ return /*#__PURE__*/ R.createElement(XR, L1({
+ className: Sh("recharts-polar-radius-axis-tick", I1(a)),
key: `tick-${t.coordinate}`
}, vB(e, t, o)), iPe(a, d, r ? r(t.value, o) : t.value));
});
return /*#__PURE__*/ R.createElement(XR, { className: "recharts-polar-radius-axis-ticks" }, u);
}, oPe = (e) => {
- var { radiusAxisId: t } = e, n = Q($K), r = Q((e) => w1(e, "radiusAxis", t)), i = Q((e) => E1(e, "radiusAxis", t, !1));
+ var { radiusAxisId: t } = e, n = Q($K), r = Q((e) => T1(e, "radiusAxis", t)), i = Q((e) => D1(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = R1(R1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-polar-radius-axis", QNe, a.className) }, s && rPe(a, i), o && aPe(a, i), /*#__PURE__*/ R.createElement(tNe, nPe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(cNe, { label: a.label }), a.children)));
+ var a = z1(z1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-polar-radius-axis", QNe, a.className) }, s && rPe(a, i), o && aPe(a, i), /*#__PURE__*/ R.createElement(tNe, nPe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(cNe, { label: a.label }), a.children)));
};
-function B1(e) {
+function V1(e) {
var t = bB(e, RK);
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement($Ne, {
domain: t.domain,
@@ -64522,20 +64531,20 @@ function B1(e) {
tick: t.tick
}), /*#__PURE__*/ R.createElement(oPe, t));
}
-B1.displayName = "PolarRadiusAxis";
+V1.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
var sPe = ["children", "type"], cPe = ["ref"];
-function V1() {
- return V1 = Object.assign ? Object.assign.bind() : function(e) {
+function H1() {
+ return H1 = 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;
- }, V1.apply(null, arguments);
+ }, H1.apply(null, arguments);
}
-function H1(e, t) {
+function U1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64545,12 +64554,12 @@ function H1(e, t) {
}
return n;
}
-function U1(e) {
+function W1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H1(Object(n), !0).forEach(function(t) {
+ t % 2 ? U1(Object(n), !0).forEach(function(t) {
lPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H1(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64578,7 +64587,7 @@ function dPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function W1(e, t) {
+function G1(e, t) {
if (e == null) return {};
var n, r, i = fPe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -64596,11 +64605,11 @@ function fPe(e, t) {
}
return n;
}
-var G1 = 1e-5, pPe = Math.cos(eK(45)), mPe = "angleAxis";
+var K1 = 1e-5, pPe = Math.cos(eK(45)), mPe = "angleAxis";
function hPe(e) {
var t = qB(), n = rW(), r = (0, R.useMemo)(() => {
- var { children: t, type: r } = e, i = W1(e, sPe), a = BK(n, "angleAxis", r);
- if (a != null) return U1(U1({}, i), {}, { type: a });
+ var { children: t, type: r } = e, i = G1(e, sPe), a = BK(n, "angleAxis", r);
+ if (a != null) return W1(W1({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => GK(e, r?.id));
return (0, R.useEffect)(() => r == null ? uB : (t(HNe(r)), () => {
t(UNe(r));
@@ -64616,27 +64625,27 @@ var gPe = (e, t) => {
};
}, _Pe = (e, t) => {
var n = Math.cos(eK(-e.coordinate));
- return n > G1 ? t === "outer" ? "start" : "end" : n < -G1 ? t === "outer" ? "end" : "start" : "middle";
+ return n > K1 ? t === "outer" ? "start" : "end" : n < -K1 ? t === "outer" ? "end" : "start" : "middle";
}, vPe = (e) => {
var t = Math.cos(eK(-e.coordinate)), n = Math.sin(eK(-e.coordinate));
return Math.abs(t) <= pPe ? n > 0 ? "start" : "end" : "middle";
}, yPe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = U1(U1({}, WR(e)), {}, { fill: "none" }, WR(a));
- if (i === "circle") return /*#__PURE__*/ R.createElement(m1, V1({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = W1(W1({}, WR(e)), {}, { fill: "none" }, WR(a));
+ if (i === "circle") return /*#__PURE__*/ R.createElement(h1, H1({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
var c = o.map((e) => tK(t, n, r, e.coordinate));
- return /*#__PURE__*/ R.createElement(f1, V1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+ return /*#__PURE__*/ R.createElement(p1, H1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
}, bPe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(z$, V1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+ return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(B$, H1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
}, xPe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WR(e), { ref: s } = o, c = W1(o, cPe), l = GR(t), u = U1(U1({}, c), {}, { fill: "none" }, WR(n)), d = a.map((a, o) => {
- var s = gPe(a, e), d = _Pe(a, e.orientation), f = vPe(a), p = U1(U1(U1({}, c), {}, {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WR(e), { ref: s } = o, c = G1(o, cPe), l = GR(t), u = W1(W1({}, c), {}, { fill: "none" }, WR(n)), d = a.map((a, o) => {
+ var s = gPe(a, e), d = _Pe(a, e.orientation), f = vPe(a), p = W1(W1(W1({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -64647,10 +64656,10 @@ var gPe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ R.createElement(XR, V1({
- className: Sh("recharts-polar-angle-axis-tick", F1(t)),
+ return /*#__PURE__*/ R.createElement(XR, H1({
+ className: Sh("recharts-polar-angle-axis-tick", I1(t)),
key: `tick-${a.coordinate}`
- }, vB(e, a, o)), n && /*#__PURE__*/ R.createElement("line", V1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(bPe, {
+ }, vB(e, a, o)), n && /*#__PURE__*/ R.createElement("line", H1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(bPe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
@@ -64658,15 +64667,15 @@ var gPe = (e, t) => {
});
return /*#__PURE__*/ R.createElement(XR, { className: "recharts-polar-angle-axis-ticks" }, d);
}, SPe = (e) => {
- var { angleAxisId: t } = e, n = Q($K), r = Q((e) => w1(e, "angleAxis", t)), i = FU(), a = Q((e) => wNe(e, "angleAxis", t, i));
+ var { angleAxisId: t } = e, n = Q($K), r = Q((e) => T1(e, "angleAxis", t)), i = FU(), a = Q((e) => wNe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = U1(U1(U1({}, e), {}, { scale: r }, n), {}, {
+ var o = W1(W1(W1({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-polar-angle-axis", mPe, o.className) }, /*#__PURE__*/ R.createElement(yPe, o), /*#__PURE__*/ R.createElement(xPe, o)));
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-polar-angle-axis", mPe, o.className) }, /*#__PURE__*/ R.createElement(yPe, o), /*#__PURE__*/ R.createElement(xPe, o)));
};
-function K1(e) {
+function q1(e) {
var t = bB(e, LK);
return /*#__PURE__*/ R.createElement(hPe, {
id: t.angleAxisId,
@@ -64687,7 +64696,7 @@ function K1(e) {
domain: t.domain
}, /*#__PURE__*/ R.createElement(SPe, t));
}
-K1.displayName = "PolarAngleAxis";
+q1.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
var CPe = /* @__PURE__ */ Ct(((e) => {
@@ -64721,21 +64730,21 @@ var CPe = /* @__PURE__ */ Ct(((e) => {
};
})), wPe = (/* @__PURE__ */ Ct(((e, t) => {
t.exports = CPe();
-})))(), q1 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", J1 = null, Y1 = null, X1 = (e) => {
- if (e === J1 && Array.isArray(Y1)) return Y1;
+})))(), J1 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", Y1 = null, X1 = null, Z1 = (e) => {
+ if (e === Y1 && Array.isArray(X1)) return X1;
var t = [];
return R.Children.forEach(e, (e) => {
- sB(e) || ((0, wPe.isFragment)(e) ? t = t.concat(X1(e.props.children)) : t.push(e));
- }), Y1 = t, J1 = e, t;
+ sB(e) || ((0, wPe.isFragment)(e) ? t = t.concat(Z1(e.props.children)) : t.push(e));
+ }), X1 = t, Y1 = e, t;
};
-function Z1(e, t) {
+function Q1(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => q1(e)) : [q1(t)], X1(e).forEach((e) => {
+ return r = Array.isArray(t) ? t.map((e) => J1(e)) : [J1(t)], Z1(e).forEach((e) => {
var t = Yz(e, "type.displayName") || Yz(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var Q1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var $1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
function TPe(e) {
@@ -64752,7 +64761,7 @@ function TPe(e) {
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
var EPe, DPe, OPe, kPe, APe;
-function $1(e, t) {
+function e0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64762,12 +64771,12 @@ function $1(e, t) {
}
return n;
}
-function e0(e) {
+function t0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $1(Object(n), !0).forEach(function(t) {
+ t % 2 ? e0(Object(n), !0).forEach(function(t) {
jPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $1(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64795,37 +64804,37 @@ function NPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function t0() {
- return t0 = Object.assign ? Object.assign.bind() : function(e) {
+function n0() {
+ return n0 = 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;
- }, t0.apply(null, arguments);
+ }, n0.apply(null, arguments);
}
-function n0(e, t) {
+function r0(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var r0 = (e, t, n, r, i) => {
- var a = n - r, o = Zz(EPe ||= n0([
+var i0 = (e, t, n, r, i) => {
+ var a = n - r, o = Zz(EPe ||= r0([
"M ",
",",
""
]), e, t);
- return o += Zz(DPe ||= n0([
+ return o += Zz(DPe ||= r0([
"L ",
",",
""
- ]), e + n, t), o += Zz(OPe ||= n0([
+ ]), e + n, t), o += Zz(OPe ||= r0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += Zz(kPe ||= n0([
+ ]), e + n - a / 2, t + i), o += Zz(kPe ||= r0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += Zz(APe ||= n0([
+ ]), e + n - a / 2 - r, t + i), o += Zz(APe ||= r0([
"L ",
",",
" Z"
@@ -64849,9 +64858,9 @@ var r0 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = Sh("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", t0({}, KR(t), {
+ if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", n0({}, KR(t), {
className: x,
- d: r0(n, r, i, a, o)
+ d: i0(n, r, i, a, o)
})));
var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = OG(["strokeDasharray"], l, c);
return /*#__PURE__*/ R.createElement(VG, {
@@ -64869,11 +64878,11 @@ var r0 = (e, t, n, r, i) => {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ R.createElement("path", t0({}, KR(t), {
+ return /*#__PURE__*/ R.createElement("path", n0({}, KR(t), {
className: x,
- d: r0(u, d, s, c, l),
+ d: i0(u, d, s, c, l),
ref: f,
- style: e0(e0({}, p), t.style)
+ style: t0(t0({}, p), t.style)
}));
});
}, IPe = [
@@ -64900,7 +64909,7 @@ function RPe(e, t) {
}
return n;
}
-function i0(e, t) {
+function a0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64910,12 +64919,12 @@ function i0(e, t) {
}
return n;
}
-function a0(e) {
+function o0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? i0(Object(n), !0).forEach(function(t) {
+ t % 2 ? a0(Object(n), !0).forEach(function(t) {
zPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64944,12 +64953,12 @@ function VPe(e, t) {
return (t === "string" ? String : Number)(e);
}
function HPe(e, t) {
- return a0(a0({}, t), e);
+ return o0(o0({}, t), e);
}
function UPe(e, t) {
return e === "symbols";
}
-function o0(e) {
+function s0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ R.createElement(XG, n);
@@ -64965,19 +64974,19 @@ function o0(e) {
function WPe(e) {
return /*#__PURE__*/ (0, R.isValidElement)(e) ? e.props : e;
}
-function s0(e) {
+function c0(e) {
var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = LPe(e, IPe), o;
- if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, a0(a0({}, a), WPe(t)));
+ if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, o0(o0({}, a), WPe(t)));
else if (typeof t == "function") o = t(a, a.index);
else if (TPe(t) && typeof t != "boolean") {
var s = HPe(t, a);
- o = /*#__PURE__*/ R.createElement(o0, {
+ o = /*#__PURE__*/ R.createElement(s0, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ R.createElement(o0, {
+ o = /*#__PURE__*/ R.createElement(s0, {
shapeType: n,
elementProps: c
});
@@ -64986,22 +64995,22 @@ function s0(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var c0 = (e, t, n) => {
+var l0 = (e, t, n) => {
var r = qB();
return (i, a) => (o) => {
- e?.(i, a, o), r(QZ({
+ e?.(i, a, o), r($Z({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, l0 = (e) => {
+}, u0 = (e) => {
var t = qB();
return (n, r) => (i) => {
e?.(n, r, i), t(kAe());
};
-}, u0 = (e, t, n) => {
+}, d0 = (e, t, n) => {
var r = qB();
return (i, a) => (o) => {
e?.(i, a, o), r(AAe({
@@ -65014,7 +65023,7 @@ var c0 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function d0(e) {
+function f0(e) {
var { tooltipEntrySettings: t } = e, n = qB(), r = FU(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
r || (i.current === null ? n(TAe(t)) : i.current !== t && n(EAe({
@@ -65031,7 +65040,7 @@ function d0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function f0(e) {
+function p0(e) {
var { legendPayload: t } = e, n = qB(), r = FU(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
r || (i.current === null ? n(qW(t)) : i.current !== t && n(JW({
@@ -65046,7 +65055,7 @@ function f0(e) {
i.current &&= (n(YW(i.current)), null);
}, [n]), null;
}
-function p0(e) {
+function m0(e) {
var { legendPayload: t } = e, n = qB(), r = Q($U), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
(r === "centric" || r === "radial") && (i.current === null ? n(qW(t)) : i.current !== t && n(JW({
@@ -65075,10 +65084,10 @@ function KPe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var qPe = /*#__PURE__*/ (0, R.createContext)(void 0), m0 = (e) => {
+var qPe = /*#__PURE__*/ (0, R.createContext)(void 0), h0 = (e) => {
var { id: t, type: n, children: r } = e, i = KPe(`recharts-${n}`, t);
return /*#__PURE__*/ R.createElement(qPe.Provider, { value: i }, r(i));
-}, h0 = NH({
+}, g0 = NH({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -65126,7 +65135,7 @@ var qPe = /*#__PURE__*/ (0, R.createContext)(void 0), m0 = (e) => {
prepare: kH()
}
}
-}), { addCartesianGraphicalItem: JPe, replaceCartesianGraphicalItem: YPe, removeCartesianGraphicalItem: XPe, addPolarGraphicalItem: ZPe, removePolarGraphicalItem: QPe, replacePolarGraphicalItem: $Pe } = h0.actions, eFe = h0.reducer, g0 = /*#__PURE__*/ (0, R.memo)((e) => {
+}), { addCartesianGraphicalItem: JPe, replaceCartesianGraphicalItem: YPe, removeCartesianGraphicalItem: XPe, addPolarGraphicalItem: ZPe, removePolarGraphicalItem: QPe, replacePolarGraphicalItem: $Pe } = g0.actions, eFe = g0.reducer, _0 = /*#__PURE__*/ (0, R.memo)((e) => {
var t = qB(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
n.current === null ? t(JPe(e)) : n.current !== e && t(YPe({
@@ -65136,7 +65145,7 @@ var qPe = /*#__PURE__*/ (0, R.createContext)(void 0), m0 = (e) => {
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
n.current &&= (t(XPe(n.current)), null);
}, [t]), null;
-}), _0 = /*#__PURE__*/ (0, R.memo)((e) => {
+}), v0 = /*#__PURE__*/ (0, R.memo)((e) => {
var t = qB(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
n.current === null ? t(ZPe(e)) : n.current !== e && t($Pe({
@@ -65155,12 +65164,12 @@ function tFe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
function nFe(e) {
- if (!(!EB(e) || e.length === 0)) return tFe(N1(e));
+ if (!(!EB(e) || e.length === 0)) return tFe(P1(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
var rFe = ["points"];
-function v0(e, t) {
+function y0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65170,12 +65179,12 @@ function v0(e, t) {
}
return n;
}
-function y0(e) {
+function b0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? v0(Object(n), !0).forEach(function(t) {
+ t % 2 ? y0(Object(n), !0).forEach(function(t) {
iFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65203,14 +65212,14 @@ function oFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function b0() {
- return b0 = Object.assign ? Object.assign.bind() : function(e) {
+function x0() {
+ return x0 = 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;
- }, b0.apply(null, arguments);
+ }, x0.apply(null, arguments);
}
function sFe(e, t) {
if (e == null) return {};
@@ -65235,16 +65244,16 @@ function lFe(e) {
if (/*#__PURE__*/ (0, R.isValidElement)(t)) return /*#__PURE__*/ (0, R.cloneElement)(t, n);
if (typeof t == "function") return t(n);
var i = Sh(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = sFe(a, rFe);
- return /*#__PURE__*/ R.createElement(m1, b0({}, s, { className: i }));
+ return /*#__PURE__*/ R.createElement(h1, x0({}, s, { className: i }));
}
function uFe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function x0(e) {
+function S0(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = IK.scatter } = e;
if (!uFe(t, n)) return null;
- var u = Q1(n), d = _be(n), f = t.map((e, r) => {
- var s = y0(y0(y0({ r: 3 }, o), d), {}, {
+ var u = $1(n), d = vbe(n), f = t.map((e, r) => {
+ var s = b0(b0(b0({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -65260,11 +65269,11 @@ function x0(e) {
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(ZQ, { zIndex: l }, /*#__PURE__*/ R.createElement(XR, b0({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(QQ, { zIndex: l }, /*#__PURE__*/ R.createElement(XR, x0({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function S0(e, t) {
+function C0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65274,12 +65283,12 @@ function S0(e, t) {
}
return n;
}
-function C0(e) {
+function w0(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) {
+ t % 2 ? C0(Object(n), !0).forEach(function(t) {
dFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65307,7 +65316,7 @@ function pFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var w0 = NH({
+var T0 = NH({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -65378,14 +65387,14 @@ var w0 = NH({
var a = i.widthHistory || [];
if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;
var o = [...a, r].slice(-3);
- e.yAxis[n] = C0(C0({}, i), {}, {
+ e.yAxis[n] = w0(w0({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: mFe, replaceXAxis: hFe, removeXAxis: gFe, addYAxis: _Fe, replaceYAxis: vFe, removeYAxis: yFe, addZAxis: bFe, replaceZAxis: xFe, removeZAxis: SFe, updateYAxisWidth: CFe } = w0.actions, wFe = w0.reducer, TFe = $([
+}), { addXAxis: mFe, replaceXAxis: hFe, removeXAxis: gFe, addYAxis: _Fe, replaceYAxis: vFe, removeYAxis: yFe, addZAxis: bFe, replaceZAxis: xFe, removeZAxis: SFe, updateYAxisWidth: CFe } = T0.actions, wFe = T0.reducer, TFe = $([
$([NU], (e) => ({
top: e.top,
bottom: e.bottom,
@@ -65401,10 +65410,10 @@ var w0 = NH({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), T0 = () => Q(TFe), EFe = () => Q(aje);
+}), E0 = () => Q(TFe), EFe = () => Q(aje);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function E0(e, t) {
+function D0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65414,12 +65423,12 @@ function E0(e, t) {
}
return n;
}
-function D0(e) {
+function O0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? E0(Object(n), !0).forEach(function(t) {
+ t % 2 ? D0(Object(n), !0).forEach(function(t) {
DFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65450,7 +65459,7 @@ function kFe(e, t) {
var AFe = (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 = D0(D0(D0({}, {
+ var s = O0(O0(O0({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -65461,17 +65470,17 @@ var AFe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), GR(i)), _B(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(m1, s);
+ }), GR(i)), _B(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(h1, s);
return /*#__PURE__*/ R.createElement(XR, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function O0(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = IK.activeDot } = e, s = Q(AQ), c = EFe();
+function k0(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = IK.activeDot } = e, s = Q(jQ), c = EFe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return sB(l) ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: o }, /*#__PURE__*/ R.createElement(AFe, {
+ return sB(l) ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: o }, /*#__PURE__*/ R.createElement(AFe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -65482,7 +65491,7 @@ function O0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function k0(e, t) {
+function A0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65492,12 +65501,12 @@ function k0(e, t) {
}
return n;
}
-function A0(e) {
+function j0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k0(Object(n), !0).forEach(function(t) {
+ t % 2 ? A0(Object(n), !0).forEach(function(t) {
jFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65525,15 +65534,15 @@ function NFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var j0 = (e, t) => w1(e, "radiusAxis", t), PFe = $([j0], (e) => {
+var M0 = (e, t) => T1(e, "radiusAxis", t), PFe = $([M0], (e) => {
if (e != null) return { scale: e };
-}), FFe = $([KK, j0], (e, t) => {
- if (e != null && t != null) return A0(A0({}, e), {}, { scale: t });
-}), IFe = (e, t, n, r) => E1(e, "radiusAxis", t, r), M0 = (e, t, n) => GK(e, n), N0 = (e, t, n) => w1(e, "angleAxis", n), LFe = $([M0, N0], (e, t) => {
- if (e != null && t != null) return A0(A0({}, e), {}, { scale: t });
-}), RFe = (e, t, n, r) => E1(e, "angleAxis", n, r), zFe = $([
- M0,
+}), FFe = $([KK, M0], (e, t) => {
+ if (e != null && t != null) return j0(j0({}, e), {}, { scale: t });
+}), IFe = (e, t, n, r) => D1(e, "radiusAxis", t, r), N0 = (e, t, n) => GK(e, n), P0 = (e, t, n) => T1(e, "angleAxis", n), LFe = $([N0, P0], (e, t) => {
+ if (e != null && t != null) return j0(j0({}, e), {}, { scale: t });
+}), RFe = (e, t, n, r) => D1(e, "angleAxis", n, r), zFe = $([
N0,
+ P0,
$K
], (e, t, n) => {
if (n != null && t != null) return {
@@ -65553,7 +65562,7 @@ var j0 = (e, t) => w1(e, "radiusAxis", t), PFe = $([j0], (e) => {
PFe,
zFe,
dK,
- $([h1, BFe], (e, t) => {
+ $([g1, BFe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
VFe
@@ -65567,16 +65576,16 @@ var j0 = (e, t) => w1(e, "radiusAxis", t), PFe = $([j0], (e) => {
bandSize: i
});
}), UFe = ["id"];
-function P0() {
- return P0 = Object.assign ? Object.assign.bind() : function(e) {
+function F0() {
+ return F0 = 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;
- }, P0.apply(null, arguments);
+ }, F0.apply(null, arguments);
}
-function F0(e, t) {
+function I0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65586,12 +65595,12 @@ function F0(e, t) {
}
return n;
}
-function I0(e) {
+function L0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? F0(Object(n), !0).forEach(function(t) {
+ t % 2 ? I0(Object(n), !0).forEach(function(t) {
WFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65637,7 +65646,7 @@ function JFe(e, t) {
}
return n;
}
-function L0(e, t) {
+function R0(e, t) {
return e && e !== "none" ? e : t;
}
var YFe = (e) => {
@@ -65646,7 +65655,7 @@ var YFe = (e) => {
inactive: o,
dataKey: t,
type: a,
- color: L0(r, i),
+ color: R0(r, i),
value: TU(n, t),
payload: e
}];
@@ -65663,16 +65672,16 @@ var YFe = (e) => {
name: TU(a, t),
hide: o,
type: s,
- color: L0(n, i),
+ color: R0(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: l });
});
function ZFe(e) {
var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = WR(qFe(n, UFe));
- return /*#__PURE__*/ R.createElement(x0, {
+ return /*#__PURE__*/ R.createElement(S0, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -65685,7 +65694,7 @@ function QFe(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 = fU(e, n.dataKey, r), d = fU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? nFe(d) : d, m = sB(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(I0(I0({}, tK(o, s, m, f)), {}, {
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(L0(L0({}, tK(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -65699,7 +65708,7 @@ function QFe(e) {
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
var n = e.value[0], r = sB(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(I0(I0({}, e), {}, { radius: r }, tK(o, s, r, e.angle)));
+ d.push(L0(L0({}, e), {}, { radius: r }, tK(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -65717,7 +65726,7 @@ function $Fe(e) {
upperWidth: 0,
height: 0
};
- return I0(I0({}, t), {}, {
+ return L0(L0({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -65725,12 +65734,12 @@ function $Fe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, r);
}
function eIe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, I0(I0({}, r), {}, { points: t })) : typeof i == "function" ? i(I0(I0({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(f1, P0({}, KR(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, L0(L0({}, r), {}, { points: t })) : typeof i == "function" ? i(L0(L0({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(p1, F0({}, KR(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -65748,12 +65757,12 @@ function eIe(e) {
points: t
}));
}
-var R0 = (e, t, n) => (r, i) => {
+var z0 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? I0(I0({}, r), {}, {
+ return a ? L0(L0({}, r), {}, {
x: aB(a.x, r.x, n),
y: aB(a.y, r.y, n)
- }) : I0(I0({}, r), {}, {
+ }) : L0(L0({}, r), {}, {
x: aB(r.cx, r.x, n),
y: aB(r.cy, r.y, n)
});
@@ -65777,13 +65786,13 @@ function tIe(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(R0(f, m, e)), s = e === 1 ? a : a?.map(R0(p, h, e));
+ var o = e === 1 ? i : i.map(z0(f, m, e)), s = e === 1 ? a : a?.map(z0(p, h, e));
return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(eIe, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ R.createElement(c1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(l1, { label: t.label }), t.children);
}
function nIe(e) {
var t = (0, R.useRef)(void 0), n = (0, R.useRef)(void 0);
@@ -65811,27 +65820,27 @@ function iIe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Sh("recharts-radar", n);
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: i }, /*#__PURE__*/ R.createElement(nIe, e)), /*#__PURE__*/ R.createElement(O0, {
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: i }, /*#__PURE__*/ R.createElement(nIe, e)), /*#__PURE__*/ R.createElement(k0, {
points: r,
- mainColor: L0(e.stroke, e.fill),
+ mainColor: R0(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
function aIe(e) {
var t = FU(), n = Q((n) => HFe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ R.createElement(iIe, P0({}, e, {
+ return n?.points == null ? null : /*#__PURE__*/ R.createElement(iIe, F0({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function z0(e) {
+function B0(e) {
var t = bB(e, rIe);
- return /*#__PURE__*/ R.createElement(m0, {
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(_0, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(v0, {
type: "radar",
id: e,
data: void 0,
@@ -65839,7 +65848,7 @@ function z0(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ R.createElement(p0, { legendPayload: YFe(t) }), /*#__PURE__*/ R.createElement(XFe, {
+ }), /*#__PURE__*/ R.createElement(m0, { legendPayload: YFe(t) }), /*#__PURE__*/ R.createElement(XFe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -65848,32 +65857,32 @@ function z0(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(aIe, P0({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(aIe, F0({}, t, { id: e }))));
}
-z0.displayName = "Radar";
+B0.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function B0() {
- return B0 = Object.assign ? Object.assign.bind() : function(e) {
+function V0() {
+ return V0 = 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;
- }, B0.apply(null, arguments);
+ }, V0.apply(null, arguments);
}
-function V0(e) {
+function H0(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function H0(e) {
- return /*#__PURE__*/ R.createElement(s0, B0({ shapeType: "sector" }, e));
+function U0(e) {
+ return /*#__PURE__*/ R.createElement(c0, V0({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var U0 = (e, t, n) => {
+var W0 = (e, t, n) => {
var r = n ?? e;
if (!sB(r)) return rB(r, t, 0);
-}, W0 = (e, t, n) => {
+}, G0 = (e, t, n) => {
var r = {}, i = e.filter(iq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
@@ -65882,18 +65891,18 @@ var U0 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: U0(t, n, i[0]?.barSize)
+ barSize: W0(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: U0(t, n, e.barSize)
+ barSize: W0(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function G0(e, t) {
+function K0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65903,12 +65912,12 @@ function G0(e, t) {
}
return n;
}
-function K0(e) {
+function q0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? G0(Object(n), !0).forEach(function(t) {
+ t % 2 ? K0(Object(n), !0).forEach(function(t) {
oIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65976,10 +65985,10 @@ function lIe(e, t, n, r, i) {
return s;
}
}
-var q0 = (e, t, n, r, i, a, o) => {
+var J0 = (e, t, n, r, i, a, o) => {
var s = sB(o) ? t : o, c = lIe(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => K0(K0({}, e), {}, { position: K0(K0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, J0 = (e, t) => {
+ return i !== a && c != null && (c = c.map((e) => q0(q0({}, e), {}, { position: q0(q0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, Y0 = (e, t) => {
var n = nq(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
@@ -65991,7 +66000,7 @@ var q0 = (e, t, n, r, i, a, o) => {
}
}
}
-}, Y0 = (e, t) => {
+}, X0 = (e, t) => {
if (e != null && t != null) {
var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));
if (n != null) return n.position;
@@ -65999,7 +66008,7 @@ var q0 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function X0(e, t) {
+function Z0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66009,12 +66018,12 @@ function X0(e, t) {
}
return n;
}
-function Z0(e) {
+function Q0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? X0(Object(n), !0).forEach(function(t) {
+ t % 2 ? Z0(Object(n), !0).forEach(function(t) {
uIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -66042,76 +66051,76 @@ function fIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Q0 = $([(e, t) => KK(e, t), (e, t) => w1(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return Z0(Z0({}, e), {}, { scale: t });
-}), $0 = (e, t) => TNe(e, "radiusAxis", t, !1), e2 = $([(e, t, n) => GK(e, n), (e, t, n) => w1(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return Z0(Z0({}, e), {}, { scale: t });
-}), t2 = (e, t, n) => E1(e, "angleAxis", n, !1), n2 = $([h1, (e, t, n, r) => r], (e, t) => {
+var $0 = $([(e, t) => KK(e, t), (e, t) => T1(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return Q0(Q0({}, e), {}, { scale: t });
+}), e2 = (e, t) => TNe(e, "radiusAxis", t, !1), t2 = $([(e, t, n) => GK(e, n), (e, t, n) => T1(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return Q0(Q0({}, e), {}, { scale: t });
+}), n2 = (e, t, n) => D1(e, "angleAxis", n, !1), r2 = $([g1, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), r2 = $([
+}), i2 = $([
$U,
- Q0,
$0,
e2,
- t2
+ t2,
+ n2
], (e, t, n, r, i) => pU(e, "radiusAxis") ? CU(t, n, !1) : CU(r, i, !1)), pIe = $([
- e2,
- Q0,
+ t2,
+ $0,
$U
], (e, t, n) => {
var r = n === "radial" ? e : t;
if (r != null && r.scale != null) return bU({ numericAxis: r });
-}), mIe = (e, t, n, r, i) => i, hIe = (e, t, n, r, i) => n, gIe = (e, t, n, r, i) => t, i2 = (e, t, n, r, i) => r.maxBarSize, a2 = (e) => e.type === "radialBar", _Ie = $([$([
+}), mIe = (e, t, n, r, i) => i, hIe = (e, t, n, r, i) => n, gIe = (e, t, n, r, i) => t, a2 = (e, t, n, r, i) => r.maxBarSize, o2 = (e) => e.type === "radialBar", _Ie = $([$([
$([
$([
$U,
- h1,
+ g1,
hIe,
gIe
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(a2)),
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(o2)),
kK,
() => void 0
- ], W0),
+ ], G0),
EK,
DK,
OK,
$([
$U,
EK,
- e2,
t2,
- Q0,
+ n2,
$0,
- i2
+ e2,
+ a2
], (e, t, n, r, i, a, o) => {
var s = sB(o) ? t : o;
return e === "centric" ? CU(n, r, !0) ?? s ?? 0 : CU(i, a, !0) ?? s ?? 0;
}),
- r2,
- i2
-], q0), n2], Y0), o2 = $([g1], (e) => e.filter(a2).filter(iq)), s2 = $([
+ i2,
+ a2
+], J0), r2], X0), s2 = $([_1], (e) => e.filter(o2).filter(iq)), c2 = $([
$([
- o2,
+ s2,
dK,
- QX
+ $X
], rq),
- o2,
+ s2,
AK,
jK
-], eZ), vIe = $([
- e2,
+], tZ), vIe = $([
t2,
- Q0,
+ n2,
$0,
+ e2,
uK,
- n2,
r2,
+ i2,
$U,
pIe,
$K,
mIe,
_Ie,
- $([(e, t, n) => $U(e) === "centric" ? s2(e, "radiusAxis", t) : s2(e, "angleAxis", n), n2], J0)
+ $([(e, t, n) => $U(e) === "centric" ? c2(e, "radiusAxis", t) : c2(e, "angleAxis", n), r2], Y0)
], (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 [];
@@ -66150,7 +66159,7 @@ var Q0 = $([(e, t) => KK(e, t), (e, t) => w1(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function c2(e, t) {
+function l2(e, t) {
return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && cU(e.zIndex) ? e.zIndex : t;
}
//#endregion
@@ -66165,16 +66174,16 @@ var bIe = [
"onClick",
"onMouseLeave"
], SIe = ["value", "background"];
-function l2() {
- return l2 = Object.assign ? Object.assign.bind() : function(e) {
+function u2() {
+ return u2 = 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;
- }, l2.apply(null, arguments);
+ }, u2.apply(null, arguments);
}
-function u2(e, t) {
+function d2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66184,12 +66193,12 @@ function u2(e, t) {
}
return n;
}
-function d2(e) {
+function f2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? u2(Object(n), !0).forEach(function(t) {
+ t % 2 ? d2(Object(n), !0).forEach(function(t) {
CIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -66217,7 +66226,7 @@ function TIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function f2(e, t) {
+function p2(e, t) {
if (e == null) return {};
var n, r, i = EIe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -66235,7 +66244,7 @@ function EIe(e, t) {
}
return n;
}
-var p2 = [];
+var m2 = [];
function DIe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
@@ -66256,12 +66265,12 @@ function DIe(e) {
return /*#__PURE__*/ R.createElement(pNe, { value: t ? i : void 0 }, r);
}
function OIe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = f2(n, bIe), l = WR(c), u = Q(AQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = f2(n, xIe), h = c0(d, n.dataKey, s), g = l0(p), _ = u0(f, n.dataKey, s);
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = p2(n, bIe), l = WR(c), u = Q(jQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = p2(n, xIe), h = l0(d, n.dataKey, s), g = u0(p), _ = d0(f, n.dataKey, s);
return t == null ? null : /*#__PURE__*/ R.createElement(DIe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = d2(d2(d2(d2({}, l), {}, { cornerRadius: V0(o) }, e), vB(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = f2(f2(f2(f2({}, l), {}, { cornerRadius: H0(o) }, e), vB(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -66272,11 +66281,11 @@ function OIe(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ R.createElement(ZQ, {
+ return n ? /*#__PURE__*/ R.createElement(QQ, {
zIndex: IK.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ R.createElement(H0, f)) : /*#__PURE__*/ R.createElement(H0, l2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ R.createElement(c1, { label: n.label }), n.children);
+ }, /*#__PURE__*/ R.createElement(U0, f)) : /*#__PURE__*/ R.createElement(U0, u2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ R.createElement(l1, { label: n.label }), n.children);
}
function kIe(e) {
var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = HG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
@@ -66294,17 +66303,17 @@ function kIe(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? p2).map((t, n) => {
+ var i = e === 1 ? r : (r ?? m2).map((t, n) => {
var r = d && d[n];
- if (r) return d2(d2({}, t), {}, {
+ if (r) return f2(f2({}, t), {}, {
startAngle: aB(r.startAngle, t.startAngle, e),
endAngle: aB(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return d2(d2({}, t), {}, { endAngle: aB(a, i, e) });
+ return f2(f2({}, t), {}, { endAngle: aB(a, i, e) });
});
return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(OIe, {
- sectors: i ?? p2,
+ sectors: i ?? m2,
allOtherRadialBarProps: t,
showLabels: !f
});
@@ -66319,7 +66328,7 @@ function AIe(e) {
}
function jIe(e) {
var t = Q((t) => yIe(t, e.legendType));
- return /*#__PURE__*/ R.createElement(p0, { legendPayload: t ?? [] });
+ return /*#__PURE__*/ R.createElement(m0, { legendPayload: t ?? [] });
}
var MIe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
@@ -66339,32 +66348,32 @@ var MIe = /*#__PURE__*/ R.memo((e) => {
unit: ""
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: u });
}), NIe = class extends R.PureComponent {
renderBackground(e) {
if (e == null) return null;
var { cornerRadius: t } = this.props, n = GR(this.props.background);
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: c2(this.props.background, IK.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = f2(e, SIe);
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: l2(this.props.background, IK.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = p2(e, SIe);
if (!a) return null;
- var s = d2(d2(d2(d2(d2({ cornerRadius: V0(t) }, o), {}, { fill: "#eee" }, a), n), vB(this.props, e, r)), {}, {
+ var s = f2(f2(f2(f2(f2({ cornerRadius: H0(t) }, o), {}, { fill: "#eee" }, a), n), vB(this.props, e, r)), {}, {
index: r,
className: Sh("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ R.createElement(H0, l2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ R.createElement(U0, u2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
}));
}
render() {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Sh("recharts-area", n);
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: i }, r && /*#__PURE__*/ R.createElement(XR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(XR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(AIe, this.props))));
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: i }, r && /*#__PURE__*/ R.createElement(XR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(XR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(AIe, this.props))));
}
};
function PIe(e) {
- var t = R.useMemo(() => Z1(e.children, m$), [e.children]), n = R.useMemo(() => ({
+ var t = R.useMemo(() => Q1(e.children, h$), [e.children]), n = R.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
@@ -66385,7 +66394,7 @@ function PIe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => vIe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? p2;
+ ]), r = Q((r) => vIe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? m2;
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(MIe, {
dataKey: e.dataKey,
sectors: r,
@@ -66396,9 +66405,9 @@ function PIe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ R.createElement(NIe, l2({}, e, { sectors: r })));
+ }), /*#__PURE__*/ R.createElement(NIe, u2({}, e, { sectors: r })));
}
-var m2 = {
+var h2 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -66417,7 +66426,7 @@ var m2 = {
};
function FIe(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 ? p2 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? m2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
if (n ? b = gU(n[r + t], i) : (b = fU(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 = yU({
@@ -66458,7 +66467,7 @@ function FIe(e) {
S += k;
}
}
- return d2(d2(d2({}, e), T), {}, {
+ return f2(f2(f2({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -66470,38 +66479,38 @@ function FIe(e) {
}, _ && _[t] && _[t].props);
});
}
-function h2(e) {
- var t = bB(e, m2);
- return /*#__PURE__*/ R.createElement(m0, {
+function g2(e) {
+ var t = bB(e, h2);
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(_0, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(v0, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? m2.hide,
- angleAxisId: t.angleAxisId ?? m2.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? m2.radiusAxisId,
+ hide: t.hide ?? h2.hide,
+ angleAxisId: t.angleAxisId ?? h2.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? h2.radiusAxisId,
stackId: _U(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ R.createElement(jIe, t), /*#__PURE__*/ R.createElement(PIe, l2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(jIe, t), /*#__PURE__*/ R.createElement(PIe, u2({}, t, { id: e }))));
}
-h2.displayName = "RadialBar";
+g2.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var g2 = (e) => {
+var _2 = (e) => {
var { chartData: t } = e, n = qB(), r = FU();
- return (0, R.useEffect)(() => r ? () => {} : (n(c$(t)), () => {
- n(c$(void 0));
+ return (0, R.useEffect)(() => r ? () => {} : (n(l$(t)), () => {
+ n(l$(void 0));
}), [
t,
n,
r
]), null;
-}, _2 = {
+}, v2 = {
x: 0,
y: 0,
width: 0,
@@ -66512,13 +66521,13 @@ var g2 = (e) => {
bottom: 0,
left: 0
}
-}, v2 = NH({
+}, y2 = NH({
name: "brush",
- initialState: _2,
+ initialState: v2,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? _2 : t.payload;
+ return t.payload == null ? v2 : t.payload;
} }
-}), { setBrushSettings: IIe } = v2.actions, LIe = v2.reducer, RIe = (e, t) => {
+}), { setBrushSettings: IIe } = y2.actions, LIe = y2.reducer, RIe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -66542,7 +66551,7 @@ function BIe(e) {
var VIe = function(e) {
var { width: t, height: n } = e, r = BIe(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);
-}, y2 = NH({
+}, b2 = NH({
name: "referenceElements",
initialState: {
dots: [],
@@ -66572,17 +66581,17 @@ var VIe = function(e) {
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: HIe, removeDot: UIe, addArea: WIe, removeArea: GIe, addLine: KIe, removeLine: qIe } = y2.actions, JIe = y2.reducer, b2 = /*#__PURE__*/ (0, R.createContext)(void 0), YIe = (e) => {
- var { children: t } = e, [n] = (0, R.useState)(`${nB("recharts")}-clip`), r = T0();
+}), { addDot: HIe, removeDot: UIe, addArea: WIe, removeArea: GIe, addLine: KIe, removeLine: qIe } = b2.actions, JIe = b2.reducer, x2 = /*#__PURE__*/ (0, R.createContext)(void 0), YIe = (e) => {
+ var { children: t } = e, [n] = (0, R.useState)(`${nB("recharts")}-clip`), r = E0();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ R.createElement(b2.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ R.createElement(x2.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, XIe = () => (0, R.useContext)(b2), ZIe = class {
+}, XIe = () => (0, R.useContext)(x2), ZIe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -66608,7 +66617,7 @@ var VIe = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function x2(e, t) {
+function S2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66618,12 +66627,12 @@ function x2(e, t) {
}
return n;
}
-function S2(e) {
+function C2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? x2(Object(n), !0).forEach(function(t) {
+ t % 2 ? S2(Object(n), !0).forEach(function(t) {
QIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -66651,14 +66660,14 @@ function eLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function C2() {
- return C2 = Object.assign ? Object.assign.bind() : function(e) {
+function w2() {
+ return w2 = 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;
- }, C2.apply(null, arguments);
+ }, w2.apply(null, arguments);
}
var tLe = (e, t) => {
var n;
@@ -66666,7 +66675,7 @@ var tLe = (e, t) => {
else if (typeof e == "function") n = e(t);
else {
if (!cU(t.x1) || !cU(t.y1) || !cU(t.x2) || !cU(t.y2)) return null;
- n = /*#__PURE__*/ R.createElement("line", C2({}, t, { className: "recharts-reference-line-line" }));
+ n = /*#__PURE__*/ R.createElement("line", w2({}, t, { className: "recharts-reference-line-line" }));
}
return n;
}, nLe = (e, t, n, r, i, a) => {
@@ -66714,13 +66723,13 @@ function oLe(e) {
})), null;
}
function sLe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = FU(), s = XIe(), c = Q((e) => kX(e, t)), l = Q((e) => MX(e, n)), u = Q((e) => kZ(e, "xAxis", t, o)), d = Q((e) => kZ(e, "yAxis", n, o)), f = YU();
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = FU(), s = XIe(), c = Q((e) => kX(e, t)), l = Q((e) => MX(e, n)), u = Q((e) => AZ(e, "xAxis", t, o)), d = Q((e) => AZ(e, "yAxis", n, o)), f = YU();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
var p = aLe(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;
- var { x: g, y: _ } = m, { x: v, y } = h, b = S2(S2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, KR(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = C2(C2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, KR(e)), {}, {
x1: g,
y1: _,
x2: v,
@@ -66731,10 +66740,10 @@ function sLe(e) {
x2: v,
y2: y
});
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-reference-line", i) }, tLe(r, b), /*#__PURE__*/ R.createElement(q$, C2({}, x, {
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-reference-line", i) }, tLe(r, b), /*#__PURE__*/ R.createElement(J$, w2({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ R.createElement(t1, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ R.createElement(n1, { label: e.label }), e.children)));
}
var cLe = {
ifOverflow: "discard",
@@ -66748,7 +66757,7 @@ var cLe = {
position: "middle",
zIndex: IK.line
};
-function w2(e) {
+function T2(e) {
var t = bB(e, cLe);
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(oLe, {
yAxisId: t.yAxisId,
@@ -66759,10 +66768,10 @@ function w2(e) {
segment: t.segment
}), /*#__PURE__*/ R.createElement(sLe, t));
}
-w2.displayName = "ReferenceLine";
+T2.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function T2(e, t) {
+function E2(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -66789,21 +66798,21 @@ function uLe(e, t, n) {
end: r ? i : a
};
}
-function E2(e, t, n, r, i) {
+function D2(e, t, n, r, i) {
if (e * t < e * r || e * t > e * i) return !1;
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
function dLe(e, t) {
- return T2(e, t + 1);
+ return E2(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
function fLe(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: T2(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || E2(e, p, f, u, s);
+ if (t === void 0) return { v: E2(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || D2(e, p, f, u, s);
m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
@@ -66815,7 +66824,7 @@ function pLe(e, t, n, r, i) {
for (var l = (a - 1) % c, u = o, d = !0, f = function() {
var t = r[m];
if (t == null) return 0;
- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || E2(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || D2(e, f, c, u, s);
if (!p) return d = !1, 1;
p && (u = f + e * (c() / 2 + i));
}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);
@@ -66831,7 +66840,7 @@ function pLe(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function D2(e, t) {
+function O2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66841,12 +66850,12 @@ function D2(e, t) {
}
return n;
}
-function O2(e) {
+function k2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? D2(Object(n), !0).forEach(function(t) {
+ t % 2 ? O2(Object(n), !0).forEach(function(t) {
mLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -66881,9 +66890,9 @@ function _Le(e, t, n, r, i) {
var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);
if (t === o - 1) {
var f = e * (l.coordinate + e * d() / 2 - c);
- a[t] = l = O2(O2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = O2(O2({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && E2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = O2(O2({}, l), {}, { isShow: !0 }));
+ a[t] = l = k2(k2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = k2(k2({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && D2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = k2(k2({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
@@ -66893,7 +66902,7 @@ function vLe(e, t, n, r, i, a) {
var u = r[s - 1];
if (u != null) {
var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);
- o[s - 1] = u = O2(O2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && E2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = O2(O2({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = k2(k2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && D2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = k2(k2({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -66902,17 +66911,17 @@ function vLe(e, t, n, r, i, a) {
var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);
if (t === 0) {
var d = e * (a.coordinate - e * u() / 2 - c);
- o[t] = a = O2(O2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = O2(O2({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && E2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = O2(O2({}, a), {}, { isShow: !0 }));
+ o[t] = a = k2(k2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = k2(k2({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && D2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = k2(k2({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function k2(e, t, n) {
+function A2(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) || lG.isSsr) return dLe(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? b$(u, {
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? x$(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -66920,10 +66929,10 @@ function k2(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? lLe(b$(i, {
+ return p === "width" ? lLe(x$(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : b$(i, {
+ }), m, d) : x$(i, {
fontSize: t,
letterSpacing: n
})[p];
@@ -66945,7 +66954,7 @@ var yLe = (e) => {
return Math.round(l);
}
return 0;
-}, A2 = NH({
+}, j2 = NH({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -66961,7 +66970,7 @@ var yLe = (e) => {
delete e[n][r];
}
}
-}), { setRenderedTicks: bLe, removeRenderedTicks: xLe } = A2.actions, SLe = A2.reducer, CLe = [
+}), { setRenderedTicks: bLe, removeRenderedTicks: xLe } = j2.actions, SLe = j2.reducer, CLe = [
"axisLine",
"width",
"height",
@@ -66989,16 +66998,16 @@ function TLe(e, t) {
}
return n;
}
-function j2() {
- return j2 = Object.assign ? Object.assign.bind() : function(e) {
+function M2() {
+ return M2 = 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;
- }, j2.apply(null, arguments);
+ }, M2.apply(null, arguments);
}
-function M2(e, t) {
+function N2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67008,12 +67017,12 @@ function M2(e, t) {
}
return n;
}
-function N2(e) {
+function P2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? M2(Object(n), !0).forEach(function(t) {
+ t % 2 ? N2(Object(n), !0).forEach(function(t) {
ELe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -67041,7 +67050,7 @@ function OLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var P2 = {
+var F2 = {
x: 0,
y: 0,
width: 0,
@@ -67068,10 +67077,10 @@ var P2 = {
function kLe(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 = N2(N2(N2({}, c), WR(s)), {}, { fill: "none" });
+ var l = P2(P2(P2({}, c), WR(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = N2(N2({}, l), {}, {
+ l = P2(P2({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -67079,14 +67088,14 @@ function kLe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = N2(N2({}, l), {}, {
+ l = P2(P2({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ R.createElement("line", j2({}, l, { className: Sh("recharts-cartesian-axis-line", Yz(s, "className")) }));
+ return /*#__PURE__*/ R.createElement("line", M2({}, l, { className: Sh("recharts-cartesian-axis-line", Yz(s, "className")) }));
}
function ALe(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;
@@ -67132,11 +67141,11 @@ function MLe(e, t) {
}
function NLe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Sh(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, N2(N2({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(N2(N2({}, n), {}, { className: a }));
+ if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, P2(P2({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(P2(P2({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = Sh(o, F1(t))), i = /*#__PURE__*/ R.createElement(z$, j2({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = Sh(o, I1(t))), i = /*#__PURE__*/ R.createElement(B$, M2({}, n, { className: o }), r);
}
return i;
}
@@ -67164,16 +67173,16 @@ function PLe(e) {
]), null;
}
var FLe = /*#__PURE__*/ (0, R.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 = k2(N2(N2({}, b), {}, { ticks: n }), v, y), T = WR(b), E = GR(r), D = N$(T.textAnchor) ? T.textAnchor : jLe(u, d), O = MLe(u, d), k = {};
+ 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 = A2(P2(P2({}, b), {}, { ticks: n }), v, y), T = WR(b), E = GR(r), D = P$(T.textAnchor) ? T.textAnchor : jLe(u, d), O = MLe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = N2(N2({}, T), {}, { fill: "none" }, k), j = w.map((e) => N2({ entry: e }, ALe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = P2(P2({}, T), {}, { fill: "none" }, k), j = w.map((e) => P2({ entry: e }, ALe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
return /*#__PURE__*/ R.createElement(XR, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ R.createElement("line", j2({}, A, n, { className: Sh("recharts-cartesian-axis-tick-line", Yz(i, "className")) })));
+ }, i && /*#__PURE__*/ R.createElement("line", M2({}, A, n, { className: Sh("recharts-cartesian-axis-tick-line", Yz(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = N2(N2({}, N2(N2(N2(N2({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = P2(P2({}, P2(P2(P2(P2({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -67184,7 +67193,7 @@ var FLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ R.createElement(XR, j2({
+ return /*#__PURE__*/ R.createElement(XR, M2({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
}, vB(x, n, t)), r && /*#__PURE__*/ R.createElement(NLe, {
@@ -67197,7 +67206,7 @@ var FLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ R.createElement(ZQ, { zIndex: IK.label }, /*#__PURE__*/ R.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ R.createElement(QQ, { zIndex: IK.label }, /*#__PURE__*/ R.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
@@ -67221,7 +67230,7 @@ var FLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(kLe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(kLe, {
x: e.x,
y: e.y,
width: r,
@@ -67254,22 +67263,22 @@ var FLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ R.createElement(q$, {
+ }), /*#__PURE__*/ R.createElement(J$, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ R.createElement(t1, {
+ }, /*#__PURE__*/ R.createElement(n1, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), F2 = /*#__PURE__*/ R.forwardRef((e, t) => {
- var n = bB(e, P2);
- return /*#__PURE__*/ R.createElement(ILe, j2({}, n, { ref: t }));
+}), I2 = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var n = bB(e, F2);
+ return /*#__PURE__*/ R.createElement(ILe, M2({}, n, { ref: t }));
});
-F2.displayName = "CartesianAxis";
+I2.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
var LLe = [
@@ -67279,7 +67288,7 @@ var LLe = [
"y2",
"key"
], RLe = ["offset"], zLe = ["xAxisId", "yAxisId"], BLe = ["xAxisId", "yAxisId"];
-function I2(e, t) {
+function L2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67289,12 +67298,12 @@ function I2(e, t) {
}
return n;
}
-function L2(e) {
+function R2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? I2(Object(n), !0).forEach(function(t) {
+ t % 2 ? L2(Object(n), !0).forEach(function(t) {
VLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -67322,16 +67331,16 @@ function ULe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function R2() {
- return R2 = Object.assign ? Object.assign.bind() : function(e) {
+function z2() {
+ return z2 = 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;
- }, R2.apply(null, arguments);
+ }, z2.apply(null, arguments);
}
-function z2(e, t) {
+function B2(e, t) {
if (e == null) return {};
var n, r, i = WLe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -67365,13 +67374,13 @@ var GLe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function B2(e) {
+function V2(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ R.isValidElement(t)) r = /*#__PURE__*/ R.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 = WR(z2(n, LLe)) ?? {}, { offset: u } = l, d = z2(l, RLe);
- r = /*#__PURE__*/ R.createElement("line", R2({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = WR(B2(n, LLe)) ?? {}, { offset: u } = l, d = B2(l, RLe);
+ r = /*#__PURE__*/ R.createElement("line", z2({}, d, {
x1: i,
y1: a,
x2: o,
@@ -67385,8 +67394,8 @@ function B2(e) {
function KLe(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 = z2(e, zLe), c = i.map((e, i) => {
- var a = L2(L2({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = B2(e, zLe), c = i.map((e, i) => {
+ var a = R2(R2({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -67394,7 +67403,7 @@ function KLe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(B2, {
+ return /*#__PURE__*/ R.createElement(V2, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -67405,8 +67414,8 @@ function KLe(e) {
function qLe(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 = z2(e, BLe), c = i.map((e, i) => {
- var a = L2(L2({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = B2(e, BLe), c = i.map((e, i) => {
+ var a = R2(R2({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -67414,7 +67423,7 @@ function qLe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(B2, {
+ return /*#__PURE__*/ R.createElement(V2, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -67470,7 +67479,7 @@ function YLe(e) {
}
var XLe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return mU(k2(L2(L2(L2({}, P2), n), {}, {
+ return mU(A2(R2(R2(R2({}, F2), n), {}, {
ticks: hU(n, !0),
viewBox: {
x: 0,
@@ -67481,7 +67490,7 @@ var XLe = (e, t) => {
})), a.left, a.left + a.width, t);
}, ZLe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return mU(k2(L2(L2(L2({}, P2), n), {}, {
+ return mU(A2(R2(R2(R2({}, F2), n), {}, {
ticks: hU(n, !0),
viewBox: {
x: 0,
@@ -67504,18 +67513,18 @@ var XLe = (e, t) => {
syncWithTicks: !1,
zIndex: IK.grid
};
-function V2(e) {
- var t = ZU(), n = QU(), r = XU(), i = L2(L2({}, bB(e, QLe)), {}, {
+function H2(e) {
+ var t = ZU(), n = QU(), r = XU(), i = R2(R2({}, bB(e, QLe)), {}, {
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 = FU(), h = Q((e) => zZ(e, "xAxis", a, m)), g = Q((e) => zZ(e, "yAxis", o, m));
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = FU(), h = Q((e) => BZ(e, "xAxis", a, m)), g = Q((e) => BZ(e, "yAxis", o, m));
if (!lU(l) || !lU(u) || !Z(s) || !Z(c)) return null;
var _ = i.verticalCoordinatesGenerator || XLe, v = i.horizontalCoordinatesGenerator || ZLe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? L2(L2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? R2(R2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
@@ -67524,14 +67533,14 @@ function V2(e) {
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
- xAxis: h ? L2(L2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? R2(R2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
RU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(GLe, {
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(GLe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -67539,22 +67548,22 @@ function V2(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ R.createElement(JLe, R2({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(YLe, R2({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(KLe, R2({}, i, {
+ }), /*#__PURE__*/ R.createElement(JLe, z2({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(YLe, z2({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(KLe, z2({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ R.createElement(qLe, R2({}, i, {
+ })), /*#__PURE__*/ R.createElement(qLe, z2({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-V2.displayName = "CartesianGrid";
+H2.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var H2 = NH({
+var U2 = NH({
name: "errorBars",
initialState: {},
reducers: {
@@ -67571,7 +67580,7 @@ var H2 = NH({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: $Le, replaceErrorBar: eRe, removeErrorBar: tRe } = H2.actions, nRe = H2.reducer, rRe = ["children"];
+}), { addErrorBar: $Le, replaceErrorBar: eRe, removeErrorBar: tRe } = U2.actions, nRe = U2.reducer, rRe = ["children"];
function iRe(e, t) {
if (e == null) return {};
var n, r, i = aRe(e, t);
@@ -67601,13 +67610,13 @@ var oRe = /*#__PURE__*/ (0, R.createContext)({
}),
errorBarOffset: 0
});
-function U2(e) {
+function W2(e) {
var { children: t } = e, n = iRe(e, rRe);
return /*#__PURE__*/ R.createElement(oRe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function W2(e, t) {
+function G2(e, t) {
var n = Q((t) => kX(t, e)), r = Q((e) => MX(e, t)), i = n?.allowDataOverflow ?? DX.allowDataOverflow, a = r?.allowDataOverflow ?? AX.allowDataOverflow;
return {
needClip: i || a,
@@ -67615,8 +67624,8 @@ function W2(e, t) {
needClipY: a
};
}
-function G2(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = T0(), { needClipX: a, needClipY: o, needClip: s } = W2(t, n);
+function K2(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = E0(), { needClipX: a, needClipY: o, needClip: s } = G2(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ R.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ R.createElement("rect", {
@@ -67628,22 +67637,22 @@ function G2(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var K2 = (e, t, n, r) => WZ(e, "xAxis", t, r), q2 = (e, t, n, r) => UZ(e, "xAxis", t, r), J2 = (e, t, n, r) => WZ(e, "yAxis", n, r), Y2 = (e, t, n, r) => UZ(e, "yAxis", n, r), sRe = $([
+var q2 = (e, t, n, r) => GZ(e, "xAxis", t, r), J2 = (e, t, n, r) => WZ(e, "xAxis", t, r), Y2 = (e, t, n, r) => GZ(e, "yAxis", n, r), X2 = (e, t, n, r) => WZ(e, "yAxis", n, r), sRe = $([
$U,
- K2,
- J2,
q2,
- Y2
+ Y2,
+ J2,
+ X2
], (e, t, n, r, i) => pU(e, "xAxis") ? CU(t, r, !1) : CU(n, i, !1)), cRe = (e, t, n, r, i) => i;
function lRe(e) {
return e.type === "line";
}
var uRe = $([
$U,
- K2,
- J2,
q2,
Y2,
+ J2,
+ X2,
$([RX, cRe], (e, t) => e.filter(lRe).find((e) => e.id === t)),
sRe,
fK
@@ -67665,7 +67674,7 @@ var uRe = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function X2(e) {
+function Z2(e) {
var t = GR(e), n = 3, r = 2;
if (t != null) {
var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);
@@ -67703,16 +67712,16 @@ var dRe = ["id"], fRe = [
"yAxisId",
"id"
];
-function Z2() {
- return Z2 = Object.assign ? Object.assign.bind() : function(e) {
+function Q2() {
+ return Q2 = 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;
- }, Z2.apply(null, arguments);
+ }, Q2.apply(null, arguments);
}
-function Q2(e, t) {
+function $2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67722,12 +67731,12 @@ function Q2(e, t) {
}
return n;
}
-function $2(e) {
+function e4(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) {
+ t % 2 ? $2(Object(n), !0).forEach(function(t) {
mRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -67755,7 +67764,7 @@ function gRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function e4(e, t) {
+function t4(e, t) {
if (e == null) return {};
var n, r, i = _Re(e, t);
if (Object.getOwnPropertySymbols) {
@@ -67801,15 +67810,15 @@ var vRe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: d });
-}), t4 = (e, t) => `${t}px ${e}px`;
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: d });
+}), n4 = (e, t) => `${t}px ${e}px`;
function bRe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
var xRe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return t4(t, e);
+ if (!r) return n4(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) {
var l, u = n[s];
if (u != null && c + u > a) {
@@ -67825,8 +67834,8 @@ var xRe = (e, t, n) => {
].map((e) => `${e}px`).join(", ");
};
function SRe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WR(e4(r, dRe));
- return /*#__PURE__*/ R.createElement(x0, {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WR(t4(r, dRe));
+ return /*#__PURE__*/ R.createElement(S0, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -67847,7 +67856,7 @@ function CRe(e) {
upperWidth: 0,
height: 0
};
- return $2($2({}, t), {}, {
+ return e4(e4({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -67855,10 +67864,10 @@ function CRe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
}
-function n4(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 = $2($2({}, KR(e4(a, fRe))), {}, {
+function r4(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 = e4(e4({}, KR(t4(a, fRe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -67868,7 +67877,7 @@ function n4(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(s0, Z2({
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(c0, Q2({
shapeType: "curve",
option: u
}, d, { pathRef: n })), /*#__PURE__*/ R.createElement(SRe, {
@@ -67905,26 +67914,26 @@ function TRe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = aB(D, T + D, e), u = Math.min(l, T), d = c ? s ? xRe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : t4(T, u) : s == null ? void 0 : String(s);
+ var l = aB(D, T + D, e), u = Math.min(l, T), d = c ? s ? xRe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : n4(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);
if (_[r]) {
var i = _[r];
- return $2($2({}, t), {}, {
+ return e4(e4({}, t), {}, {
x: aB(i.x, t.x, e),
y: aB(i.y, t.y, e)
});
}
- return f ? $2($2({}, t), {}, {
+ return f ? e4(e4({}, t), {}, {
x: aB(p * 2, t.x, e),
y: aB(m / 2, t.y, e)
- }) : $2($2({}, t), {}, {
+ }) : e4(e4({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ R.createElement(n4, {
+ return i.current = g, /*#__PURE__*/ R.createElement(r4, {
props: n,
points: g,
clipPathId: t,
@@ -67932,14 +67941,14 @@ function TRe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ R.createElement(n4, {
+ return /*#__PURE__*/ R.createElement(r4, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ R.createElement(c1, { label: n.label }));
+ }), /*#__PURE__*/ R.createElement(l1, { label: n.label }));
}
function ERe(e) {
var { clipPathId: t, props: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(0), a = (0, R.useRef)(null);
@@ -67960,8 +67969,8 @@ var DRe = (e, t) => ({
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;
- var p = Sh("recharts-line", r), m = u, { r: h, strokeWidth: g } = X2(t), _ = Q1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: f }, /*#__PURE__*/ R.createElement(XR, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
+ var p = Sh("recharts-line", r), m = u, { r: h, strokeWidth: g } = Z2(t), _ = $1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: f }, /*#__PURE__*/ R.createElement(XR, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -67970,7 +67979,7 @@ var DRe = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ R.createElement(U2, {
+ }))), /*#__PURE__*/ R.createElement(W2, {
xAxisId: i,
yAxisId: a,
data: n,
@@ -67979,7 +67988,7 @@ var DRe = (e, t) => ({
}, /*#__PURE__*/ R.createElement(ERe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ R.createElement(O0, {
+ }))), /*#__PURE__*/ R.createElement(k0, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -67987,7 +67996,7 @@ var DRe = (e, t) => ({
clipPath: y
}));
}
-}, r4 = {
+}, i4 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -68008,10 +68017,10 @@ var DRe = (e, t) => ({
type: "linear"
};
function kRe(e) {
- var t = bB(e, r4), { 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 = e4(t, pRe), { needClip: _ } = W2(p, m), v = T0(), y = eW(), b = FU(), x = Q((e) => uRe(e, p, m, b, h));
+ var t = bB(e, i4), { 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 = t4(t, pRe), { needClip: _ } = G2(p, m), v = E0(), y = eW(), b = FU(), x = Q((e) => uRe(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__*/ R.createElement(ORe, Z2({}, g, {
+ return /*#__PURE__*/ R.createElement(ORe, Q2({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -68067,11 +68076,11 @@ function ARe(e) {
}).filter(Boolean);
}
function jRe(e) {
- var t = bB(e, r4), n = FU();
- return /*#__PURE__*/ R.createElement(m0, {
+ var t = bB(e, i4), n = FU();
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: vRe(t) }), /*#__PURE__*/ R.createElement(yRe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: vRe(t) }), /*#__PURE__*/ R.createElement(yRe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -68082,7 +68091,7 @@ function jRe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(g0, {
+ }), /*#__PURE__*/ R.createElement(_0, {
type: "line",
id: e,
data: t.data,
@@ -68092,33 +68101,33 @@ function jRe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ R.createElement(kRe, Z2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(kRe, Q2({}, t, { id: e }))));
}
-var i4 = /*#__PURE__*/ R.memo(jRe, QW);
-i4.displayName = "Line";
+var a4 = /*#__PURE__*/ R.memo(jRe, QW);
+a4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function a4(e, t) {
+function o4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function o4(e, t) {
+function s4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var s4 = (e, t, n) => WZ(e, "xAxis", a4(e, t), n), c4 = (e, t, n) => UZ(e, "xAxis", a4(e, t), n), l4 = (e, t, n) => WZ(e, "yAxis", o4(e, t), n), u4 = (e, t, n) => UZ(e, "yAxis", o4(e, t), n), MRe = $([
+var c4 = (e, t, n) => GZ(e, "xAxis", o4(e, t), n), l4 = (e, t, n) => WZ(e, "xAxis", o4(e, t), n), u4 = (e, t, n) => GZ(e, "yAxis", s4(e, t), n), d4 = (e, t, n) => WZ(e, "yAxis", s4(e, t), n), MRe = $([
$U,
- s4,
- l4,
c4,
- u4
-], (e, t, n, r, i) => pU(e, "xAxis") ? CU(t, r, !1) : CU(n, i, !1)), d4 = $([RX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), f4 = (e) => pU($U(e), "xAxis") ? "yAxis" : "xAxis", NRe = (e, t) => f4(e) === "yAxis" ? o4(e, t) : a4(e, t), PRe = $([
- $U,
- s4,
+ u4,
l4,
+ d4
+], (e, t, n, r, i) => pU(e, "xAxis") ? CU(t, r, !1) : CU(n, i, !1)), f4 = $([RX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), p4 = (e) => pU($U(e), "xAxis") ? "yAxis" : "xAxis", NRe = (e, t) => p4(e) === "yAxis" ? s4(e, t) : o4(e, t), PRe = $([
+ $U,
c4,
u4,
- $([d4, (e, t, n) => tZ(e, f4(e), NRe(e, t), n)], (e, t) => {
+ l4,
+ d4,
+ $([f4, (e, t, n) => nZ(e, p4(e), NRe(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = nq(e);
if (n != null && r != null) {
@@ -68129,8 +68138,8 @@ var s4 = (e, t, n) => WZ(e, "xAxis", a4(e, t), n), c4 = (e, t, n) => UZ(e, "xAxi
}),
pK,
MRe,
- d4,
- QEe
+ f4,
+ $Ee
], (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)) {
@@ -68165,16 +68174,16 @@ var s4 = (e, t, n) => WZ(e, "xAxis", a4(e, t), n), c4 = (e, t, n) => UZ(e, "xAxi
"xAxisId",
"yAxisId"
];
-function p4() {
- return p4 = Object.assign ? Object.assign.bind() : function(e) {
+function m4() {
+ return m4 = 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;
- }, p4.apply(null, arguments);
+ }, m4.apply(null, arguments);
}
-function m4(e, t) {
+function h4(e, t) {
if (e == null) return {};
var n, r, i = LRe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -68192,7 +68201,7 @@ function LRe(e, t) {
}
return n;
}
-function h4(e, t) {
+function g4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68202,12 +68211,12 @@ function h4(e, t) {
}
return n;
}
-function g4(e) {
+function _4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h4(Object(n), !0).forEach(function(t) {
+ t % 2 ? g4(Object(n), !0).forEach(function(t) {
RRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h4(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -68235,7 +68244,7 @@ function BRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _4(e, t) {
+function v4(e, t) {
return e && e !== "none" ? e : t;
}
var VRe = (e) => {
@@ -68244,7 +68253,7 @@ var VRe = (e) => {
inactive: o,
dataKey: t,
type: a,
- color: _4(r, i),
+ color: v4(r, i),
value: TU(n, t),
payload: e
}];
@@ -68261,16 +68270,16 @@ var VRe = (e) => {
name: TU(o, t),
hide: s,
type: l,
- color: _4(r, a),
+ color: v4(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: d });
});
function URe(e) {
var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = WR(r);
- return /*#__PURE__*/ R.createElement(x0, {
+ return /*#__PURE__*/ R.createElement(S0, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -68291,7 +68300,7 @@ function WRe(e) {
upperWidth: 0,
height: 0
};
- return g4(g4({}, t), {}, {
+ return _4(_4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -68299,11 +68308,11 @@ function WRe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
}
-function v4(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 = m4(a, FRe), p = WR(f), m = KR(f);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(XR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(CG, p4({}, m, {
+function y4(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 = h4(a, FRe), p = WR(f), m = KR(f);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(XR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(CG, m4({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -68312,14 +68321,14 @@ function v4(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ R.createElement(CG, p4({}, p, {
+ })), c !== "none" && /*#__PURE__*/ R.createElement(CG, m4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(CG, p4({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(CG, m4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
@@ -68397,7 +68406,7 @@ function JRe(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return g4(g4({}, t), {}, {
+ return _4(_4({}, t), {}, {
x: aB(i.x, t.x, e),
y: aB(i.y, t.y, e)
});
@@ -68407,14 +68416,14 @@ function JRe(e) {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return g4(g4({}, t), {}, {
+ return _4(_4({}, t), {}, {
x: aB(i.x, t.x, e),
y: aB(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(v4, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(y4, {
points: u,
baseLine: d,
needClip: t,
@@ -68428,14 +68437,14 @@ function JRe(e) {
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ R.createElement(XR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(v4, {
+ }))), /*#__PURE__*/ R.createElement(XR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(y4, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ R.createElement(c1, { label: r.label }));
+ }), /*#__PURE__*/ R.createElement(l1, { label: r.label }));
}
function YRe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, R.useRef)(null), a = (0, R.useRef)();
@@ -68451,8 +68460,8 @@ var XRe = class extends R.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;
- var m = Sh("recharts-area", r), h = d, { r: g, strokeWidth: _ } = X2(t), v = Q1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: p }, /*#__PURE__*/ R.createElement(XR, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
+ var m = Sh("recharts-area", r), h = d, { r: g, strokeWidth: _ } = Z2(t), v = $1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: p }, /*#__PURE__*/ R.createElement(XR, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -68465,15 +68474,15 @@ var XRe = class extends R.PureComponent {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ R.createElement(O0, {
+ })), /*#__PURE__*/ R.createElement(k0, {
points: n,
- mainColor: _4(this.props.stroke, this.props.fill),
+ mainColor: v4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(O0, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(k0, {
points: f,
- mainColor: _4(this.props.stroke, this.props.fill),
+ mainColor: v4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
@@ -68500,10 +68509,10 @@ var XRe = class extends R.PureComponent {
zIndex: IK.area
};
function QRe(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 = m4(e, IRe), g = eW(), _ = zQ(), { needClip: v } = W2(p, m), y = FU(), { points: b, isRange: x, baseLine: S } = Q((t) => PRe(t, e.id, y)) ?? {}, C = T0();
+ 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 = h4(e, IRe), g = eW(), _ = BQ(), { needClip: v } = G2(p, m), y = FU(), { points: b, isRange: x, baseLine: S } = Q((t) => PRe(t, e.id, y)) ?? {}, C = E0();
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__*/ R.createElement(XRe, p4({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ R.createElement(XRe, m4({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -68591,10 +68600,10 @@ function eze(e) {
}
function tze(e) {
var t = bB(e, ZRe), n = FU();
- return /*#__PURE__*/ R.createElement(m0, {
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: VRe(t) }), /*#__PURE__*/ R.createElement(HRe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: VRe(t) }), /*#__PURE__*/ R.createElement(HRe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -68605,7 +68614,7 @@ function tze(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(g0, {
+ }), /*#__PURE__*/ R.createElement(_0, {
type: "area",
id: e,
data: t.data,
@@ -68619,10 +68628,10 @@ function tze(e) {
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ R.createElement(QRe, p4({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(QRe, m4({}, t, { id: e }))));
}
-var y4 = /*#__PURE__*/ R.memo(tze, QW);
-y4.displayName = "Area";
+var b4 = /*#__PURE__*/ R.memo(tze, QW);
+b4.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
var nze = "Invariant failed";
@@ -68631,17 +68640,17 @@ function rze(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function b4() {
- return b4 = Object.assign ? Object.assign.bind() : function(e) {
+function x4() {
+ return x4 = 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;
- }, b4.apply(null, arguments);
+ }, x4.apply(null, arguments);
}
-function x4(e) {
- return /*#__PURE__*/ R.createElement(s0, b4({
+function S4(e) {
+ return /*#__PURE__*/ R.createElement(c0, x4({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
@@ -68654,53 +68663,53 @@ var ize = function(e) {
var i = Z(n) || sB(n);
return i ? e(n, r) : (!i && rze(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, aze = (e, t, n) => n, S4 = $([RX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), oze = $([S4], (e) => e?.maxBarSize), sze = (e, t, n, r) => r, cze = $([
+}, aze = (e, t, n) => n, C4 = $([RX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), oze = $([C4], (e) => e?.maxBarSize), sze = (e, t, n, r) => r, cze = $([
$U,
RX,
- a4,
o4,
+ s4,
aze
], (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")), lze = (e, t, n) => {
- var r = $U(e), i = a4(e, t), a = o4(e, t);
- if (i != null && a != null) return r === "horizontal" ? tZ(e, "yAxis", a, n) : tZ(e, "xAxis", i, n);
+ var r = $U(e), i = o4(e, t), a = s4(e, t);
+ if (i != null && a != null) return r === "horizontal" ? nZ(e, "yAxis", a, n) : nZ(e, "xAxis", i, n);
}, uze = $([
cze,
kK,
(e, t) => {
- var n = $U(e), r = a4(e, t), i = o4(e, t);
- if (r != null && i != null) return n === "horizontal" ? IZ(e, "xAxis", r) : IZ(e, "yAxis", i);
+ var n = $U(e), r = o4(e, t), i = s4(e, t);
+ if (r != null && i != null) return n === "horizontal" ? LZ(e, "xAxis", r) : LZ(e, "yAxis", i);
}
-], W0), dze = (e, t, n) => {
- var r = S4(e, t);
+], G0), dze = (e, t, n) => {
+ var r = C4(e, t);
if (r == null) return 0;
- var i = a4(e, t), a = o4(e, t);
+ var i = o4(e, t), a = s4(e, t);
if (i == null || a == null) return 0;
var o = $U(e), s = EK(e), { maxBarSize: c } = r, l = sB(c) ? s : c, u, d;
- return o === "horizontal" ? (u = WZ(e, "xAxis", i, n), d = UZ(e, "xAxis", i, n)) : (u = WZ(e, "yAxis", a, n), d = UZ(e, "yAxis", a, n)), CU(u, d, !0) ?? l ?? 0;
-}, C4 = (e, t, n) => {
- var r = $U(e), i = a4(e, t), a = o4(e, t);
+ return o === "horizontal" ? (u = GZ(e, "xAxis", i, n), d = WZ(e, "xAxis", i, n)) : (u = GZ(e, "yAxis", a, n), d = WZ(e, "yAxis", a, n)), CU(u, d, !0) ?? l ?? 0;
+}, w4 = (e, t, n) => {
+ var r = $U(e), i = o4(e, t), a = s4(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = WZ(e, "xAxis", i, n), s = UZ(e, "xAxis", i, n)) : (o = WZ(e, "yAxis", a, n), s = UZ(e, "yAxis", a, n)), CU(o, s);
+ return r === "horizontal" ? (o = GZ(e, "xAxis", i, n), s = WZ(e, "xAxis", i, n)) : (o = GZ(e, "yAxis", a, n), s = WZ(e, "yAxis", a, n)), CU(o, s);
}
}, fze = $([
NU,
PU,
- (e, t, n) => {
- var r = a4(e, t);
- if (r != null) return WZ(e, "xAxis", r, n);
- },
(e, t, n) => {
var r = o4(e, t);
- if (r != null) return WZ(e, "yAxis", r, n);
+ if (r != null) return GZ(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = a4(e, t);
- if (r != null) return UZ(e, "xAxis", r, n);
+ var r = s4(e, t);
+ if (r != null) return GZ(e, "yAxis", r, n);
},
(e, t, n) => {
var r = o4(e, t);
- if (r != null) return UZ(e, "yAxis", r, n);
+ if (r != null) return WZ(e, "xAxis", r, n);
+ },
+ (e, t, n) => {
+ var r = s4(e, t);
+ if (r != null) return WZ(e, "yAxis", r, n);
},
$([$([
uze,
@@ -68708,14 +68717,14 @@ var ize = function(e) {
DK,
OK,
dze,
- C4,
+ w4,
oze
- ], q0), S4], Y0),
+ ], J0), C4], X0),
$U,
pK,
+ w4,
+ $([lze, C4], Y0),
C4,
- $([lze, S4], J0),
- S4,
sze
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
@@ -68739,14 +68748,14 @@ var ize = function(e) {
});
}
}), pze = ["index"];
-function w4() {
- return w4 = Object.assign ? Object.assign.bind() : function(e) {
+function T4() {
+ return T4 = 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;
- }, w4.apply(null, arguments);
+ }, T4.apply(null, arguments);
}
function mze(e, t) {
if (e == null) return {};
@@ -68766,19 +68775,19 @@ function hze(e, t) {
}
return n;
}
-var T4 = /*#__PURE__*/ (0, R.createContext)(void 0), gze = (e) => {
- var t = (0, R.useContext)(T4);
+var E4 = /*#__PURE__*/ (0, R.createContext)(void 0), gze = (e) => {
+ var t = (0, R.useContext)(E4);
if (t != null) return t.stackId;
if (e != null) return _U(e);
}, _ze = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, vze = (e) => {
- var t = (0, R.useContext)(T4);
+ var t = (0, R.useContext)(E4);
if (t != null) {
var { stackId: n } = t;
return `url(#${_ze(n, e)})`;
}
-}, E4 = (e) => {
+}, D4 = (e) => {
var { index: t } = e, n = mze(e, pze), r = vze(t);
- return /*#__PURE__*/ R.createElement(XR, w4({
+ return /*#__PURE__*/ R.createElement(XR, T4({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
@@ -68795,16 +68804,16 @@ var T4 = /*#__PURE__*/ (0, R.createContext)(void 0), gze = (e) => {
"onClick",
"onMouseLeave"
];
-function D4() {
- return D4 = Object.assign ? Object.assign.bind() : function(e) {
+function O4() {
+ return O4 = 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;
- }, D4.apply(null, arguments);
+ }, O4.apply(null, arguments);
}
-function O4(e, t) {
+function k4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68814,12 +68823,12 @@ function O4(e, t) {
}
return n;
}
-function k4(e) {
+function A4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O4(Object(n), !0).forEach(function(t) {
+ t % 2 ? k4(Object(n), !0).forEach(function(t) {
Cze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O4(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -68847,7 +68856,7 @@ function Tze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function A4(e, t) {
+function j4(e, t) {
if (e == null) return {};
var n, r, i = Eze(e, t);
if (Object.getOwnPropertySymbols) {
@@ -68893,16 +68902,16 @@ var Dze = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: u });
});
function kze(e) {
- var t = Q(AQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = A4(a, yze), u = c0(o, r, a.id), d = l0(s), f = u0(c, r, a.id);
+ var t = Q(jQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = j4(a, yze), u = l0(o, r, a.id), d = u0(s), f = d0(c, r, a.id);
if (!i || n == null) return null;
var p = GR(i);
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: c2(i, IK.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = A4(e, bze);
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: l2(i, IK.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = j4(e, bze);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = k4(k4(k4(k4(k4({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = A4(A4(A4(A4(A4({
option: i,
isActive: String(n) === t
}, c), {}, { fill: "#eee" }, o), p), vB(l, e, n)), {}, {
@@ -68913,7 +68922,7 @@ function kze(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ R.createElement(x4, D4({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ R.createElement(S4, O4({ key: `background-bar-${n}` }, _));
}));
}
function Aze(e) {
@@ -68926,7 +68935,7 @@ function Aze(e) {
upperWidth: e.width,
height: e.height
};
- return k4(k4({}, t), {}, {
+ return A4(A4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -68934,10 +68943,10 @@ function Aze(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
}
function jze(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(AQ), c = Q(MQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(jQ), c = Q(NQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -68948,18 +68957,18 @@ function jze(e) {
}, [l]);
var m = (0, R.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(x4, D4({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(S4, O4({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ R.createElement(ZQ, { zIndex: IK.activeBar }, /*#__PURE__*/ R.createElement(E4, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ R.createElement(QQ, { zIndex: IK.activeBar }, /*#__PURE__*/ R.createElement(D4, { index: i.originalDataIndex }, v)) : v;
}
function Mze(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ R.createElement(x4, D4({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ R.createElement(S4, O4({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
@@ -68967,8 +68976,8 @@ function Mze(e) {
}));
}
function Nze(e) {
- var { data: t, props: n } = e, r = WR(n) ?? {}, { id: i } = r, a = A4(r, xze), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = A4(n, Sze), p = c0(l, s, i), m = l0(d), h = u0(u, s, i);
- return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(E4, D4({
+ var { data: t, props: n } = e, r = WR(n) ?? {}, { id: i } = r, a = j4(r, xze), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = j4(n, Sze), p = l0(l, s, i), m = u0(d), h = d0(u, s, i);
+ return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(D4, O4({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
@@ -69012,7 +69021,7 @@ function Pze(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return k4(k4({}, t), {}, {
+ if (r) return A4(A4({}, t), {}, {
x: aB(r.x, t.x, e),
y: aB(r.y, t.y, e),
width: aB(r.width, t.width, e),
@@ -69020,13 +69029,13 @@ function Pze(e) {
});
if (i === "horizontal") {
var a = aB(0, t.height, e), o = aB(t.stackedBarStart, t.y, e);
- return k4(k4({}, t), {}, {
+ return A4(A4({}, t), {}, {
y: o,
height: a
});
}
var s = aB(0, t.width, e), c = aB(t.stackedBarStart, t.x, e);
- return k4(k4({}, t), {}, {
+ return A4(A4({}, t), {}, {
width: s,
x: c
});
@@ -69035,7 +69044,7 @@ function Pze(e) {
props: t,
data: a
}));
- }), /*#__PURE__*/ R.createElement(c1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(l1, { label: t.label }), t.children);
}
function Fze(e) {
var t = (0, R.useRef)(null);
@@ -69044,7 +69053,7 @@ function Fze(e) {
props: e
});
}
-var j4 = 0, Ize = (e, t) => {
+var M4 = 0, Ize = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
@@ -69060,7 +69069,7 @@ var j4 = 0, Ize = (e, t) => {
return /*#__PURE__*/ R.createElement(XR, {
className: l,
id: c
- }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
+ }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
clipPathId: u,
xAxisId: i,
yAxisId: a
@@ -69084,22 +69093,22 @@ var j4 = 0, Ize = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: j4,
+ minPointSize: M4,
xAxisId: 0,
yAxisId: 0,
zIndex: IK.bar
};
function zze(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 } = W2(t, n), f = eW(), p = FU(), m = Z1(e.children, m$), h = Q((t) => fze(t, e.id, p, m));
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = G2(t, n), f = eW(), p = FU(), m = Q1(e.children, h$), h = Q((t) => fze(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__*/ R.createElement(U2, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ R.createElement(W2, {
xAxisId: t,
yAxisId: n,
data: h,
dataPointFormatter: Ize,
errorBarOffset: g
- }, /*#__PURE__*/ R.createElement(Lze, D4({}, e, {
+ }, /*#__PURE__*/ R.createElement(Lze, O4({}, e, {
layout: f,
needClip: d,
data: h,
@@ -69124,7 +69133,7 @@ function Bze(e) {
if (E == null) return null;
_ = gU(E, v);
} else _ = fU(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = ize(r, j4)(_[1], f);
+ var D = ize(r, M4)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
@@ -69166,7 +69175,7 @@ function Bze(e) {
C += ee;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : k4(k4({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : A4(A4({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -69186,10 +69195,10 @@ function Bze(e) {
}
function Vze(e) {
var t = bB(e, Rze), n = gze(t.stackId), r = FU();
- return /*#__PURE__*/ R.createElement(m0, {
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: Dze(t) }), /*#__PURE__*/ R.createElement(Oze, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: Dze(t) }), /*#__PURE__*/ R.createElement(Oze, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -69199,7 +69208,7 @@ function Vze(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(g0, {
+ }), /*#__PURE__*/ R.createElement(_0, {
type: "bar",
id: e,
data: void 0,
@@ -69214,14 +69223,14 @@ function Vze(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ R.createElement(ZQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(zze, D4({}, t, { id: e })))));
+ }), /*#__PURE__*/ R.createElement(QQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(zze, O4({}, t, { id: e })))));
}
-var M4 = /*#__PURE__*/ R.memo(Vze, QW);
-M4.displayName = "Bar";
+var N4 = /*#__PURE__*/ R.memo(Vze, QW);
+N4.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
var Hze = ["domain", "range"], Uze = ["domain", "range"];
-function N4(e, t) {
+function P4(e, t) {
if (e == null) return {};
var n, r, i = Wze(e, t);
if (Object.getOwnPropertySymbols) {
@@ -69239,13 +69248,13 @@ function Wze(e, t) {
}
return n;
}
-function P4(e, t) {
+function F4(e, t) {
return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
}
-function F4(e, t) {
+function I4(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = N4(e, Hze), { domain: a, range: o } = t, s = N4(t, Uze);
- return !P4(n, a) || !P4(r, o) ? !1 : QW(i, s);
+ var { domain: n, range: r } = e, i = P4(e, Hze), { domain: a, range: o } = t, s = P4(t, Uze);
+ return !F4(n, a) || !F4(r, o) ? !1 : QW(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
@@ -69254,16 +69263,16 @@ var Gze = ["type"], Kze = [
"ticks",
"scale"
], qze = ["id", "scale"];
-function I4() {
- return I4 = Object.assign ? Object.assign.bind() : function(e) {
+function L4() {
+ return L4 = 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;
- }, I4.apply(null, arguments);
+ }, L4.apply(null, arguments);
}
-function L4(e, t) {
+function R4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69273,12 +69282,12 @@ function L4(e, t) {
}
return n;
}
-function R4(e) {
+function z4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L4(Object(n), !0).forEach(function(t) {
+ t % 2 ? R4(Object(n), !0).forEach(function(t) {
Jze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L4(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -69306,7 +69315,7 @@ function Xze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z4(e, t) {
+function B4(e, t) {
if (e == null) return {};
var n, r, i = Zze(e, t);
if (Object.getOwnPropertySymbols) {
@@ -69325,8 +69334,8 @@ function Zze(e, t) {
return n;
}
function Qze(e) {
- var t = qB(), n = (0, R.useRef)(null), r = tW(), { type: i } = e, a = z4(e, Gze), o = BK(r, "xAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return R4(R4({}, a), {}, { type: o });
+ var t = qB(), n = (0, R.useRef)(null), r = tW(), { type: i } = e, a = B4(e, Gze), o = BK(r, "xAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return z4(z4({}, a), {}, { type: o });
}, [a, o]);
return (0, R.useLayoutEffect)(() => {
s != null && (n.current === null ? t(mFe(s)) : n.current !== s && t(hFe({
@@ -69338,10 +69347,10 @@ function Qze(e) {
}, [t]), null;
}
var $ze = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(PU), i = FU(), a = "xAxis", o = Q((e) => VZ(e, a, t, i)), s = Q((e) => PZ(e, t)), c = Q((e) => bAe(e, t)), l = Q((e) => OX(e, t));
+ var { xAxisId: t, className: n } = e, r = Q(PU), i = FU(), a = "xAxis", o = Q((e) => HZ(e, a, t, i)), s = Q((e) => FZ(e, t)), c = Q((e) => bAe(e, t)), l = Q((e) => OX(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = z4(e, Kze), { id: m, scale: h } = l, g = z4(l, qze);
- return /*#__PURE__*/ R.createElement(F2, I4({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = B4(e, Kze), { id: m, scale: h } = l, g = B4(l, qze);
+ return /*#__PURE__*/ R.createElement(I2, L4({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
@@ -69357,7 +69366,7 @@ var $ze = (e) => {
allowDecimals: DX.allowDecimals,
allowDuplicatedCategory: DX.allowDuplicatedCategory,
angle: DX.angle,
- axisLine: P2.axisLine,
+ axisLine: F2.axisLine,
height: DX.height,
hide: !1,
includeHidden: DX.includeHidden,
@@ -69371,12 +69380,12 @@ var $ze = (e) => {
scale: DX.scale,
tick: DX.tick,
tickCount: DX.tickCount,
- tickLine: P2.tickLine,
- tickSize: P2.tickSize,
+ tickLine: F2.tickLine,
+ tickSize: F2.tickSize,
type: DX.type,
niceTicks: DX.niceTicks,
xAxisId: 0
-}, B4 = /*#__PURE__*/ R.memo((e) => {
+}, V4 = /*#__PURE__*/ R.memo((e) => {
var t = bB(e, eBe);
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Qze, {
allowDataOverflow: t.allowDataOverflow,
@@ -69405,8 +69414,8 @@ var $ze = (e) => {
unit: t.unit,
niceTicks: t.niceTicks
}), /*#__PURE__*/ R.createElement($ze, t));
-}, F4);
-B4.displayName = "XAxis";
+}, I4);
+V4.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
var tBe = ["type"], nBe = [
@@ -69414,16 +69423,16 @@ var tBe = ["type"], nBe = [
"ticks",
"scale"
], rBe = ["id", "scale"];
-function V4() {
- return V4 = Object.assign ? Object.assign.bind() : function(e) {
+function H4() {
+ return H4 = 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;
- }, V4.apply(null, arguments);
+ }, H4.apply(null, arguments);
}
-function H4(e, t) {
+function U4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69433,12 +69442,12 @@ function H4(e, t) {
}
return n;
}
-function U4(e) {
+function W4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H4(Object(n), !0).forEach(function(t) {
+ t % 2 ? U4(Object(n), !0).forEach(function(t) {
iBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H4(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -69466,7 +69475,7 @@ function oBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function W4(e, t) {
+function G4(e, t) {
if (e == null) return {};
var n, r, i = sBe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -69485,8 +69494,8 @@ function sBe(e, t) {
return n;
}
function cBe(e) {
- var t = qB(), n = (0, R.useRef)(null), r = tW(), { type: i } = e, a = W4(e, tBe), o = BK(r, "yAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return U4(U4({}, a), {}, { type: o });
+ var t = qB(), n = (0, R.useRef)(null), r = tW(), { type: i } = e, a = G4(e, tBe), o = BK(r, "yAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return W4(W4({}, a), {}, { type: o });
}, [o, a]);
return (0, R.useLayoutEffect)(() => {
s != null && (n.current === null ? t(_Fe(s)) : n.current !== s && t(vFe({
@@ -69498,9 +69507,9 @@ function cBe(e) {
}, [t]), null;
}
function lBe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(PU), c = FU(), l = qB(), u = "yAxis", d = Q((e) => FZ(e, t)), f = Q((e) => xAe(e, t)), p = Q((e) => VZ(e, u, t, c)), m = Q((e) => jX(e, t));
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(PU), c = FU(), l = qB(), u = "yAxis", d = Q((e) => IZ(e, t)), f = Q((e) => xAe(e, t)), p = Q((e) => HZ(e, u, t, c)), m = Q((e) => jX(e, t));
if ((0, R.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || Z$(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || Q$(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
@@ -69519,8 +69528,8 @@ function lBe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = W4(e, nBe), { id: y, scale: b } = m, x = W4(m, rBe);
- return /*#__PURE__*/ R.createElement(F2, V4({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = G4(e, nBe), { id: y, scale: b } = m, x = G4(m, rBe);
+ return /*#__PURE__*/ R.createElement(I2, H4({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -69540,7 +69549,7 @@ var uBe = {
allowDecimals: AX.allowDecimals,
allowDuplicatedCategory: AX.allowDuplicatedCategory,
angle: AX.angle,
- axisLine: P2.axisLine,
+ axisLine: F2.axisLine,
hide: !1,
includeHidden: AX.includeHidden,
interval: AX.interval,
@@ -69553,13 +69562,13 @@ var uBe = {
scale: AX.scale,
tick: AX.tick,
tickCount: AX.tickCount,
- tickLine: P2.tickLine,
- tickSize: P2.tickSize,
+ tickLine: F2.tickLine,
+ tickSize: F2.tickSize,
type: AX.type,
niceTicks: AX.niceTicks,
width: AX.width,
yAxisId: 0
-}, G4 = /*#__PURE__*/ R.memo((e) => {
+}, K4 = /*#__PURE__*/ R.memo((e) => {
var t = bB(e, uBe);
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(cBe, {
interval: t.interval,
@@ -69588,15 +69597,15 @@ var uBe = {
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
}), /*#__PURE__*/ R.createElement(lBe, t));
-}, F4);
-G4.displayName = "YAxis";
-var K4 = $([
+}, I4);
+K4.displayName = "YAxis";
+var q4 = $([
(e, t) => t,
$U,
$K,
sq,
- CQ,
- TQ,
+ wQ,
+ EQ,
_je,
NU
], wje);
@@ -69605,7 +69614,7 @@ var K4 = $([
function dBe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function q4(e) {
+function J4(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
if (dBe(e)) {
var i = e.currentTarget.getBBox();
@@ -69622,11 +69631,11 @@ function q4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var J4 = wH("mouseClick"), Y4 = iU();
-Y4.startListening({
- actionCreator: J4,
+var Y4 = wH("mouseClick"), X4 = iU();
+X4.startListening({
+ actionCreator: Y4,
effect: (e, t) => {
- var n = e.payload, r = K4(t.getState(), q4(n));
+ var n = e.payload, r = q4(t.getState(), J4(n));
r?.activeIndex != null && t.dispatch(jAe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
@@ -69634,33 +69643,33 @@ Y4.startListening({
}));
}
});
-var X4 = wH("mouseMove"), Z4 = iU(), Q4 = null, $4 = null, e3 = null;
-Z4.startListening({
- actionCreator: X4,
+var Z4 = wH("mouseMove"), Q4 = iU(), $4 = null, e3 = null, t3 = null;
+Q4.startListening({
+ actionCreator: Z4,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- Q4 !== null && (cancelAnimationFrame(Q4), Q4 = null), $4 !== null && (typeof r != "number" || !a) && (clearTimeout($4), $4 = null), e3 = q4(n);
+ $4 !== null && (cancelAnimationFrame($4), $4 = null), e3 !== null && (typeof r != "number" || !a) && (clearTimeout(e3), e3 = null), t3 = J4(n);
var o = () => {
- var e = t.getState(), n = JZ(e, e.tooltip.settings.shared);
- if (!e3) {
- Q4 = null, $4 = null;
+ var e = t.getState(), n = YZ(e, e.tooltip.settings.shared);
+ if (!t3) {
+ $4 = null, e3 = null;
return;
}
if (n === "axis") {
- var r = K4(e, e3);
- r?.activeIndex == null ? t.dispatch($Z()) : t.dispatch(eQ({
+ var r = q4(e, t3);
+ r?.activeIndex == null ? t.dispatch(eQ()) : t.dispatch(tQ({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- Q4 = null, $4 = null;
+ $4 = null, e3 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? Q4 = requestAnimationFrame(o) : typeof r == "number" && $4 === null && ($4 = setTimeout(o, r));
+ r === "raf" ? $4 = requestAnimationFrame(o) : typeof r == "number" && e3 === null && (e3 = setTimeout(o, r));
}
});
//#endregion
@@ -69670,7 +69679,7 @@ function fBe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var t3 = {
+var n3 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -69682,35 +69691,35 @@ var t3 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, n3 = NH({
+}, r3 = NH({
name: "rootProps",
- initialState: t3,
+ initialState: n3,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? t3.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;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? n3.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;
} }
-}), pBe = n3.reducer, { updateOptions: mBe } = n3.actions, r3 = NH({
+}), pBe = r3.reducer, { updateOptions: mBe } = r3.actions, i3 = NH({
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: hBe } = r3.actions, gBe = r3.reducer, i3 = wH("keyDown"), a3 = wH("focus"), o3 = wH("blur"), s3 = iU(), c3 = null, l3 = null, u3 = null;
-s3.startListening({
- actionCreator: i3,
+}), { updatePolarOptions: hBe } = i3.actions, gBe = i3.reducer, a3 = wH("keyDown"), o3 = wH("focus"), s3 = wH("blur"), c3 = iU(), l3 = null, u3 = null, d3 = null;
+c3.startListening({
+ actionCreator: a3,
effect: (e, t) => {
- u3 = e.payload, c3 !== null && (cancelAnimationFrame(c3), c3 = null);
+ d3 = e.payload, l3 !== null && (cancelAnimationFrame(l3), l3 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- l3 !== null && (typeof n != "number" || !i) && (clearTimeout(l3), l3 = null);
+ u3 !== null && (typeof n != "number" || !i) && (clearTimeout(u3), u3 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = u3;
+ var { keyboardInteraction: n } = e.tooltip, r = d3;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = oQ(n, _Q(e), $X(e), xQ(e)), a = i == null ? -1 : Number(i);
+ var i = sQ(n, vQ(e), eZ(e), SQ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = TQ(e);
+ var o = EQ(e);
if (r === "Enter") {
- var s = KQ(e, "axis", "hover", String(n.index));
- t.dispatch(nQ({
+ var s = qQ(e, "axis", "hover", String(n.index));
+ t.dispatch(rQ({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
@@ -69719,33 +69728,33 @@ s3.startListening({
}
var c = SAe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = KQ(e, "axis", "hover", String(l));
- t.dispatch(nQ({
+ var u = qQ(e, "axis", "hover", String(l));
+ t.dispatch(rQ({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- c3 = null, l3 = null;
+ l3 = null, u3 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? c3 = requestAnimationFrame(a) : typeof n == "number" && l3 === null && (a(), u3 = null, l3 = setTimeout(() => {
- u3 ? a() : (l3 = null, c3 = null);
+ n === "raf" ? l3 = requestAnimationFrame(a) : typeof n == "number" && u3 === null && (a(), d3 = null, u3 = setTimeout(() => {
+ d3 ? a() : (u3 = null, l3 = null);
}, n));
}
-}), s3.startListening({
- actionCreator: a3,
+}), c3.startListening({
+ actionCreator: o3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
if (!r.active && r.index == null) {
- var i = "0", a = KQ(n, "axis", "hover", String(i));
- t.dispatch(nQ({
+ var i = "0", a = qQ(n, "axis", "hover", String(i));
+ t.dispatch(rQ({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -69753,13 +69762,13 @@ s3.startListening({
}
}
}
-}), s3.startListening({
- actionCreator: o3,
+}), c3.startListening({
+ actionCreator: s3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(nQ({
+ r.active && t.dispatch(rQ({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -69769,7 +69778,7 @@ s3.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function d3(e) {
+function f3(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -69780,36 +69789,36 @@ function d3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var f3 = wH("externalEvent"), p3 = iU(), m3 = /* @__PURE__ */ new Map(), h3 = /* @__PURE__ */ new Map(), g3 = /* @__PURE__ */ new Map();
-p3.startListening({
- actionCreator: f3,
+var p3 = wH("externalEvent"), m3 = iU(), h3 = /* @__PURE__ */ new Map(), g3 = /* @__PURE__ */ new Map(), _3 = /* @__PURE__ */ new Map();
+m3.startListening({
+ actionCreator: p3,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = d3(r);
- g3.set(i, {
+ var i = r.type, a = f3(r);
+ _3.set(i, {
handler: n,
reactEvent: a
});
- var o = m3.get(i);
- o !== void 0 && (cancelAnimationFrame(o), m3.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = h3.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), h3.delete(i));
+ var o = h3.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), h3.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = g3.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), g3.delete(i));
var f = () => {
- var e = g3.get(i);
+ var e = _3.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
activeCoordinate: rje(a),
- activeDataKey: MQ(a),
- activeIndex: AQ(a),
- activeLabel: jQ(a),
- activeTooltipIndex: AQ(a),
+ activeDataKey: NQ(a),
+ activeIndex: jQ(a),
+ activeLabel: MQ(a),
+ activeTooltipIndex: jQ(a),
isTooltipActive: ije(a)
};
n && n(o, r);
} finally {
- m3.delete(i), h3.delete(i), g3.delete(i);
+ h3.delete(i), g3.delete(i), _3.delete(i);
}
};
if (!u) {
@@ -69818,19 +69827,19 @@ p3.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- m3.set(i, p);
+ h3.set(i, p);
} else if (typeof s == "number") {
- if (!h3.has(i)) {
+ if (!g3.has(i)) {
f();
var m = setTimeout(f, s);
- h3.set(i, m);
+ g3.set(i, m);
}
} else f();
}
}
});
var _Be = $([
- $([uQ], (e) => e.tooltipItemPayloads),
+ $([dQ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -69841,65 +69850,65 @@ var _Be = $([
if (i != null) return i(t);
}
}
-}), _3 = wH("touchMove"), v3 = iU(), y3 = null, b3 = null, x3 = null, S3 = null;
-v3.startListening({
- actionCreator: _3,
+}), v3 = wH("touchMove"), y3 = iU(), b3 = null, x3 = null, S3 = null, C3 = null;
+y3.startListening({
+ actionCreator: v3,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- S3 = d3(n);
+ C3 = f3(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- y3 !== null && (cancelAnimationFrame(y3), y3 = null), b3 !== null && (typeof r != "number" || !a) && (clearTimeout(b3), b3 = null), x3 = Array.from(n.touches).map((e) => q4({
+ b3 !== null && (cancelAnimationFrame(b3), b3 = null), x3 !== null && (typeof r != "number" || !a) && (clearTimeout(x3), x3 = null), S3 = Array.from(n.touches).map((e) => J4({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (S3 != null) {
- var e = t.getState(), n = JZ(e, e.tooltip.settings.shared);
+ if (C3 != null) {
+ var e = t.getState(), n = YZ(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = x3?.[0];
+ var r = S3?.[0];
if (r == null) {
- y3 = null, b3 = null;
+ b3 = null, x3 = null;
return;
}
- var i = K4(e, r);
- i?.activeIndex != null && t.dispatch(eQ({
+ var i = q4(e, r);
+ i?.activeIndex != null && t.dispatch(tQ({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = S3.touches[0];
+ var a = C3.touches[0];
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(XCe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = gQ(e).find((e) => e.id === c);
+ var s = o.getAttribute(ZCe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = _Q(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
var { dataKey: u } = l, d = _Be(e, s, c);
- t.dispatch(QZ({
+ t.dispatch($Z({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- y3 = null, b3 = null;
+ b3 = null, x3 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? y3 = requestAnimationFrame(o) : typeof r == "number" && b3 === null && (o(), S3 = null, b3 = setTimeout(() => {
- S3 ? o() : (b3 = null, y3 = null);
+ r === "raf" ? b3 = requestAnimationFrame(o) : typeof r == "number" && x3 === null && (o(), C3 = null, x3 = setTimeout(() => {
+ C3 ? o() : (x3 = null, b3 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var C3 = {
+var w3 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -69908,21 +69917,21 @@ var C3 = {
"scroll",
"wheel"
]
-}, w3 = NH({
+}, T3 = NH({
name: "eventSettings",
- initialState: C3,
+ initialState: w3,
reducers: { setEventSettings: (e, t) => {
t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = WW(t.payload.throttledEvents));
} }
-}), { setEventSettings: vBe } = w3.actions, yBe = w3.reducer, bBe = fV({
+}), { setEventSettings: vBe } = T3.actions, yBe = T3.reducer, bBe = fV({
brush: LIe,
cartesianAxis: wFe,
chartData: Zje,
errorBars: nRe,
eventSettings: yBe,
graphicalItems: eFe,
- layout: LCe,
- legend: Fwe,
+ layout: RCe,
+ legend: Iwe,
options: Kje,
polarAxis: WNe,
polarOptions: gBe,
@@ -69933,7 +69942,7 @@ var C3 = {
zIndex: Lje
}), xBe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return lCe({
+ return uCe({
reducer: bBe,
preloadedState: e,
middleware: (e) => e({
@@ -69944,11 +69953,11 @@ var C3 = {
"production"
].includes("es6")
}).concat([
- Y4.middleware,
- Z4.middleware,
- s3.middleware,
- p3.middleware,
- v3.middleware
+ X4.middleware,
+ Q4.middleware,
+ c3.middleware,
+ m3.middleware,
+ y3.middleware
]),
enhancers: (e) => {
var t = e;
@@ -69962,12 +69971,12 @@ var C3 = {
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function T3(e) {
+function E3(e) {
var { preloadedState: t, children: n, reduxStoreName: r } = e, i = FU(), a = (0, R.useRef)(null);
if (i) return n;
a.current ??= xBe(t, r);
var o = KB;
- return /*#__PURE__*/ R.createElement(Ywe, {
+ return /*#__PURE__*/ R.createElement(Xwe, {
context: o,
store: a.current
}, n);
@@ -69977,7 +69986,7 @@ function T3(e) {
function SBe(e) {
var { layout: t, margin: n } = e, r = qB(), i = FU();
return (0, R.useEffect)(() => {
- i || (r(PCe(t)), r(NCe(n)));
+ i || (r(FCe(t)), r(PCe(n)));
}, [
r,
i,
@@ -69985,16 +69994,16 @@ function SBe(e) {
n
]), null;
}
-var E3 = /*#__PURE__*/ (0, R.memo)(SBe, QW);
+var D3 = /*#__PURE__*/ (0, R.memo)(SBe, QW);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function D3(e) {
+function O3(e) {
var t = qB();
return (0, R.useEffect)(() => {
t(mBe(e));
}, [t, e]), null;
}
-var O3 = /*#__PURE__*/ (0, R.memo)((e) => {
+var k3 = /*#__PURE__*/ (0, R.memo)((e) => {
var t = qB();
return (0, R.useEffect)(() => {
t(vBe(e));
@@ -70002,7 +70011,7 @@ var O3 = /*#__PURE__*/ (0, R.memo)((e) => {
}, QW);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function k3(e) {
+function A3(e) {
var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = qB();
return (0, R.useLayoutEffect)(() => (r.current && i(Fje({
zIndex: t,
@@ -70023,15 +70032,15 @@ function k3(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function A3(e) {
+function j3(e) {
var { children: t, isPanorama: n } = e, r = Q(Eje);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(k3, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(A3, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ R.createElement(k3, {
+ })), t, a.map((e) => /*#__PURE__*/ R.createElement(A3, {
key: e,
zIndex: e,
isPanorama: n
@@ -70058,14 +70067,14 @@ function TBe(e, t) {
}
return n;
}
-function j3() {
- return j3 = Object.assign ? Object.assign.bind() : function(e) {
+function M3() {
+ return M3 = 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;
- }, j3.apply(null, arguments);
+ }, M3.apply(null, arguments);
}
var EBe = {
width: "100%",
@@ -70075,7 +70084,7 @@ var EBe = {
var n = ZU(), r = QU(), i = pG();
if (!lU(n) || !lU(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__*/ R.createElement(JR, j3({}, o, {
+ 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__*/ R.createElement(JR, M3({}, o, {
title: s,
desc: c,
role: u,
@@ -70095,18 +70104,18 @@ var EBe = {
x: o,
y: a
}, t);
-}, M3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}, N3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { children: n } = e, r = wBe(e, CBe);
- return FU() ? /*#__PURE__*/ R.createElement(OBe, null, /*#__PURE__*/ R.createElement(A3, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(DBe, j3({ ref: t }, r), /*#__PURE__*/ R.createElement(A3, { isPanorama: !1 }, n));
+ return FU() ? /*#__PURE__*/ R.createElement(OBe, null, /*#__PURE__*/ R.createElement(j3, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(DBe, M3({ ref: t }, r), /*#__PURE__*/ R.createElement(j3, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
function kBe() {
- var e = qB(), [t, n] = (0, R.useState)(null), r = Q(YCe);
+ var e = qB(), [t, n] = (0, R.useState)(null), r = Q(XCe);
return (0, R.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- cU(n) && n !== r && e(ICe(n));
+ cU(n) && n !== r && e(LCe(n));
}
}, [
t,
@@ -70116,7 +70125,7 @@ function kBe() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function N3(e, t) {
+function P3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70129,9 +70138,9 @@ function N3(e, t) {
function ABe(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) {
+ t % 2 ? P3(Object(n), !0).forEach(function(t) {
jBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70159,17 +70168,17 @@ function NBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function P3() {
- return P3 = Object.assign ? Object.assign.bind() : function(e) {
+function F3() {
+ return F3 = 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;
- }, P3.apply(null, arguments);
+ }, F3.apply(null, arguments);
}
var PBe = () => (oMe(), null);
-function F3(e) {
+function I3(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -70179,8 +70188,8 @@ function F3(e) {
}
var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = (0, R.useRef)(null), [r, i] = (0, R.useState)({
- containerWidth: F3(e.style?.width),
- containerHeight: F3(e.style?.height)
+ containerWidth: I3(e.style?.width),
+ containerHeight: I3(e.style?.height)
}), a = (0, R.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -70208,11 +70217,11 @@ var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ R.createElement("div", P3({ ref: o }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F3({ ref: o }, e)));
}), IBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, R.useState)({
- containerWidth: F3(n),
- containerHeight: F3(r)
+ containerWidth: I3(n),
+ containerHeight: I3(r)
}), o = (0, R.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -70230,23 +70239,23 @@ var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ R.createElement("div", P3({ ref: s }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F3({ ref: s }, e)));
}), LBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", P3({ ref: t }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F3({ ref: t }, e)));
}), RBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(IBe, P3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(LBe, P3({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(IBe, F3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(LBe, F3({}, e, {
width: n,
height: r,
ref: t
})) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", P3({ ref: t }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F3({ ref: t }, e)));
});
function zBe(e) {
return e ? FBe : RBe;
@@ -70260,58 +70269,58 @@ var BBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
C,
T
]), j = (0, R.useCallback)((e) => {
- x(J4(e)), x(f3({
+ x(Y4(e)), x(p3({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, R.useCallback)((e) => {
- x(X4(e)), x(f3({
+ x(Z4(e)), x(p3({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, R.useCallback)((e) => {
- x($Z()), x(f3({
+ x(eQ()), x(p3({
handler: u,
reactEvent: e
}));
}, [x, u]), ee = (0, R.useCallback)((e) => {
- x(X4(e)), x(f3({
+ x(Z4(e)), x(p3({
handler: d,
reactEvent: e
}));
}, [x, d]), te = (0, R.useCallback)(() => {
- x(a3());
- }, [x]), P = (0, R.useCallback)(() => {
x(o3());
+ }, [x]), P = (0, R.useCallback)(() => {
+ x(s3());
}, [x]), F = (0, R.useCallback)((e) => {
- x(i3(e.key));
+ x(a3(e.key));
}, [x]), ne = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: o,
reactEvent: e
}));
}, [x, o]), re = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: s,
reactEvent: e
}));
}, [x, s]), ie = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: c,
reactEvent: e
}));
}, [x, c]), ae = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: f,
reactEvent: e
}));
}, [x, f]), oe = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: h,
reactEvent: e
}));
}, [x, h]), se = (0, R.useCallback)((e) => {
- y && x(_3(e)), x(f3({
+ y && x(v3(e)), x(p3({
handler: m,
reactEvent: e
}));
@@ -70320,12 +70329,12 @@ var BBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
y,
m
]), ce = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: p,
reactEvent: e
}));
}, [x, p]), le = zBe(v);
- return /*#__PURE__*/ R.createElement(t$.Provider, { value: S }, /*#__PURE__*/ R.createElement(ZR.Provider, { value: w }, /*#__PURE__*/ R.createElement(le, {
+ return /*#__PURE__*/ R.createElement(n$.Provider, { value: S }, /*#__PURE__*/ R.createElement(ZR.Provider, { value: w }, /*#__PURE__*/ R.createElement(le, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Sh("recharts-wrapper", r),
@@ -70380,12 +70389,12 @@ function UBe(e, t) {
}
return n;
}
-var I3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var L3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = WR(HBe(e, VBe));
return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement(M3, {
+ }), /*#__PURE__*/ R.createElement(N3, {
otherAttributes: d,
title: l,
desc: u
@@ -70406,7 +70415,7 @@ var I3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ R.createElement(M3, {
+ }, /*#__PURE__*/ R.createElement(N3, {
otherAttributes: d,
title: l,
desc: u,
@@ -70415,16 +70424,16 @@ var I3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function L3() {
- return L3 = Object.assign ? Object.assign.bind() : function(e) {
+function R3() {
+ return R3 = 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;
- }, L3.apply(null, arguments);
+ }, R3.apply(null, arguments);
}
-function R3(e, t) {
+function z3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70437,9 +70446,9 @@ function R3(e, t) {
function WBe(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) {
+ t % 2 ? z3(Object(n), !0).forEach(function(t) {
GBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70482,7 +70491,7 @@ var JBe = WBe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, C3), z3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, w3), B3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
var n = bB(e.categoricalChartProps, JBe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
@@ -70490,16 +70499,16 @@ var JBe = WBe({
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(T3, {
+ return /*#__PURE__*/ R.createElement(E3, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ R.createElement(g2, { chartData: s.data }), /*#__PURE__*/ R.createElement(E3, {
+ }, /*#__PURE__*/ R.createElement(_2, { chartData: s.data }), /*#__PURE__*/ R.createElement(D3, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(O3, {
+ }), /*#__PURE__*/ R.createElement(k3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(D3, {
+ }), /*#__PURE__*/ R.createElement(O3, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -70511,19 +70520,19 @@ var JBe = WBe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(I3, L3({}, n, { ref: t })));
-}), YBe = ["axis"], XBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
+ }), /*#__PURE__*/ R.createElement(L3, R3({}, n, { ref: t })));
+}), YBe = ["axis"], XBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: YBe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: e,
ref: t
-})), ZBe = ["axis", "item"], B3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
+})), ZBe = ["axis", "item"], V3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: ZBe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: e,
ref: t
}));
@@ -70538,14 +70547,14 @@ function QBe(e) {
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
var $Be = ["layout"];
-function V3() {
- return V3 = Object.assign ? Object.assign.bind() : function(e) {
+function H3() {
+ return H3 = 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;
- }, V3.apply(null, arguments);
+ }, H3.apply(null, arguments);
}
function eVe(e, t) {
if (e == null) return {};
@@ -70565,7 +70574,7 @@ function tVe(e, t) {
}
return n;
}
-function H3(e, t) {
+function U3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70578,9 +70587,9 @@ function H3(e, t) {
function nVe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H3(Object(n), !0).forEach(function(t) {
+ t % 2 ? U3(Object(n), !0).forEach(function(t) {
rVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70608,7 +70617,7 @@ function aVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var U3 = nVe({
+var W3 = nVe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -70627,24 +70636,24 @@ var U3 = nVe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, C3), W3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = bB(e.categoricalChartProps, U3), { layout: r } = n, i = eVe(n, $Be), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, w3), G3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = bB(e.categoricalChartProps, W3), { layout: r } = n, i = eVe(n, $Be), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(T3, {
+ return /*#__PURE__*/ R.createElement(E3, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ R.createElement(g2, { chartData: n.data }), /*#__PURE__*/ R.createElement(E3, {
+ }, /*#__PURE__*/ R.createElement(_2, { chartData: n.data }), /*#__PURE__*/ R.createElement(D3, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(O3, {
+ }), /*#__PURE__*/ R.createElement(k3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(D3, {
+ }), /*#__PURE__*/ R.createElement(O3, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -70663,11 +70672,11 @@ var U3 = nVe({
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ R.createElement(I3, V3({}, i, { ref: t })));
+ }), /*#__PURE__*/ R.createElement(L3, H3({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function G3(e, t) {
+function K3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70677,12 +70686,12 @@ function G3(e, t) {
}
return n;
}
-function K3(e) {
+function q3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? G3(Object(n), !0).forEach(function(t) {
+ t % 2 ? K3(Object(n), !0).forEach(function(t) {
oVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70710,31 +70719,31 @@ function cVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lVe = ["axis"], uVe = K3(K3({}, U3), {}, {
+var lVe = ["axis"], uVe = q3(q3({}, W3), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
}), dVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = bB(e, uVe);
- return /*#__PURE__*/ R.createElement(W3, {
+ return /*#__PURE__*/ R.createElement(G3, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: lVe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: n,
ref: t
});
-}), fVe = ["axis"], pVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
+}), fVe = ["axis"], pVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: fVe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function q3(e, t) {
+function J3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70744,12 +70753,12 @@ function q3(e, t) {
}
return n;
}
-function J3(e) {
+function Y3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q3(Object(n), !0).forEach(function(t) {
+ t % 2 ? J3(Object(n), !0).forEach(function(t) {
mVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70777,55 +70786,55 @@ function gVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var _Ve = ["axis", "item"], vVe = J3(J3({}, U3), {}, {
+var _Ve = ["axis", "item"], vVe = Y3(Y3({}, W3), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
}), yVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = bB(e, vVe);
- return /*#__PURE__*/ R.createElement(W3, {
+ return /*#__PURE__*/ R.createElement(G3, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: _Ve,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function Y3(...e) {
+function X3(...e) {
return wE(Sh(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var X3 = {
+var Z3 = {
light: "",
dark: ".dark"
-}, Z3 = Object.keys(X3);
+}, Q3 = Object.keys(Z3);
function bVe(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !Z3.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Z3.join(", ")}). Received empty object or invalid keys.`);
+ for (let [t, n] of Object.entries(e)) if (n.colors && !Q3.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Q3.join(", ")}). Received empty object or invalid keys.`);
}
-var Q3 = R.createContext(null);
-function $3() {
- let e = R.useContext(Q3);
+var $3 = R.createContext(null);
+function e6() {
+ let e = R.useContext($3);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function e6({ id: e, config: t, initialDimension: n = {
+function t6({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = R.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return bVe(t), /* @__PURE__ */ (0, B.jsx)(Q3.Provider, {
+ return bVe(t), /* @__PURE__ */ (0, B.jsx)($3.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: Y3("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: X3("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
...o,
children: [
- /* @__PURE__ */ (0, B.jsx)(n6, {
+ /* @__PURE__ */ (0, B.jsx)(r6, {
id: c,
config: t
}),
@@ -70839,7 +70848,7 @@ function e6({ id: e, config: t, initialDimension: n = {
})
});
}
-function t6({ isLoading: e }) {
+function n6({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -70858,23 +70867,23 @@ function xVe(e, t) {
}
return r;
}
-var n6 = ({ id: e, config: t }) => {
+var r6 = ({ id: e, config: t }) => {
let n = Object.entries(t).filter(([, e]) => e.colors);
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 ? [] : xVe(r, i6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(X3).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : xVe(r, a6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(Z3).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, B.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function r6(e, t, n) {
+function i6(e, t, n) {
if (typeof t != "object" || !t) return;
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
}
-function i6(e) {
+function a6(e) {
if (!e.colors) return 1;
- let t = Z3.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = Q3.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
var SVe = (e = 10, t = 0, n = 70) => {
@@ -70889,15 +70898,15 @@ var SVe = (e = 10, t = 0, n = 70) => {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = $3(), g = R.useMemo(() => {
+function o6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
+ let { config: h } = e6(), g = R.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = r6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = i6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("font-medium", c),
+ className: X3("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("font-medium", c),
+ className: X3("font-medium", c),
children: a
}) : null;
}, [
@@ -70912,15 +70921,15 @@ function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, B.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: Y3("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", CVe[p], wVe[m], n),
+ className: X3("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", CVe[p], wVe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, B.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = r6(h, e, n), o = i ? i6(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = i6(h, e, n), o = i ? a6(i) : 1;
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: X3("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, B.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("shrink-0 rounded-[2px]", {
+ className: X3("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
@@ -70928,7 +70937,7 @@ function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
}),
style: TVe(n, o)
}), /* @__PURE__ */ (0, B.jsxs)("div", {
- className: Y3("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: X3("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, B.jsx)("span", {
@@ -70948,20 +70957,20 @@ function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
function TVe(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 o6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, B.jsx)(mMe, {
+var s6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, B.jsx)(mMe, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function s6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
- let { config: u } = $3();
+function c6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
+ let { config: u } = e6();
return r?.length ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: X3("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
children: r.filter((e) => e.type !== "none").map((e) => {
- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = r6(u, e, r), a = o === null || o === r, d = i ? i6(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = i6(u, e, r), a = o === null || o === r, d = i ? a6(i) : 1;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: Y3("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: X3("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
onClick: () => {
c && s?.(o === r ? null : r);
},
@@ -71025,7 +71034,7 @@ function OVe(e, t) {
...n
};
}
-var c6 = nG, l6 = () => null, u6 = {
+var l6 = nG, u6 = () => null, d6 = {
stiffness: 300,
damping: 35,
mass: .8
@@ -71137,7 +71146,7 @@ function AVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]);
let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, ee = C > 1 ? M.endIndex / (C - 1) * 100 : 100, te = Kf(N), P = Kf(ee);
te.get() !== N && te.set(N), P.get() !== ee && P.set(ee);
- let F = $f(te, u6), ne = $f(P, u6), re = Yf(F, (e) => `${e}%`), ie = Yf(ne, (e) => `${e}%`), ae = Yf(F, (e) => `${e}%`), oe = Yf(ne, (e) => `${Math.max(0, 100 - e)}%`), se = Kf(`${Math.max(0, ee - N)}%`), ce = (0, R.useCallback)(() => {
+ let F = $f(te, d6), ne = $f(P, d6), re = Yf(F, (e) => `${e}%`), ie = Yf(ne, (e) => `${e}%`), ae = Yf(F, (e) => `${e}%`), oe = Yf(ne, (e) => `${Math.max(0, 100 - e)}%`), se = Kf(`${Math.max(0, ee - N)}%`), ce = (0, R.useCallback)(() => {
se.set(`${Math.max(0, ne.get() - F.get())}%`);
}, [
F,
@@ -71157,10 +71166,10 @@ function AVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, B.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: Y3("group relative select-none", o),
+ className: X3("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, B.jsx)(n6, {
+ !b && /* @__PURE__ */ (0, B.jsx)(r6, {
id: w,
config: t
}),
@@ -71195,13 +71204,13 @@ function AVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, B.jsx)(d6, {
+ /* @__PURE__ */ (0, B.jsx)(f6, {
side: "left",
position: re,
label: y ? le(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, B.jsx)(d6, {
+ /* @__PURE__ */ (0, B.jsx)(f6, {
side: "right",
position: ie,
label: y ? le(M.endIndex) : void 0,
@@ -71210,16 +71219,16 @@ function AVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function d6({ side: e, position: t, label: n, bind: r }) {
+function f6({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
return /* @__PURE__ */ (0, B.jsxs)(ap.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: X3("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
...r,
children: /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: X3("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -71230,7 +71239,7 @@ function d6({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: X3("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
children: n
})]
});
@@ -71238,7 +71247,7 @@ function d6({ side: e, position: t, label: n, bind: r }) {
function jVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = R.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: i6(t)
+ colorsCount: a6(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -71303,7 +71312,7 @@ function jVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(i4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(a4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -71322,7 +71331,7 @@ function jVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
return /* @__PURE__ */ (0, B.jsx)(qU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, B.jsxs)(B3, {
+ children: /* @__PURE__ */ (0, B.jsxs)(V3, {
data: e,
margin: {
top: 2,
@@ -71332,7 +71341,7 @@ function jVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(M4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(N4, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -71359,7 +71368,7 @@ function jVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(y4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(b4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -71573,9 +71582,9 @@ var NVe = {
})
})
};
-function f6({ variant: e }) {
+function p6({ variant: e }) {
let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = NVe[e];
- return /* @__PURE__ */ (0, B.jsxs)(ZQ, {
+ return /* @__PURE__ */ (0, B.jsxs)(QQ, {
zIndex: -1,
children: [/* @__PURE__ */ (0, B.jsxs)("defs", { children: [
/* @__PURE__ */ (0, B.jsx)(a, { id: n }),
@@ -71605,20 +71614,20 @@ function f6({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var p6 = 2, PVe = "loading", FVe = 2e3, IVe = "evil-stacked", LVe = .5, RVe = .05, zVe = [
+var m6 = 2, PVe = "loading", FVe = 2e3, IVe = "evil-stacked", LVe = .5, RVe = .05, zVe = [
0,
.7,
.5,
1
-], m6 = (0, R.createContext)(null);
-function h6() {
- let e = (0, R.use)(m6);
+], h6 = (0, R.createContext)(null);
+function g6() {
+ let e = (0, R.use)(h6);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function g6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = p6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
+function _6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = m6, 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, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = iHe(m, h), { visibleData: T, brushProps: E } = MVe({ data: t }), D = (0, R.useMemo)(() => {
- let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === l6), r = (0, R.isValidElement)(t) ? t.props : {};
+ let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === u6), r = (0, R.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, R.isValidElement)(t),
@@ -71626,7 +71635,7 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === l6))
+ chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === u6))
};
}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, R.useCallback)((e) => {
b(e), p?.(e);
@@ -71655,9 +71664,9 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, B.jsx)(m6, {
+ return /* @__PURE__ */ (0, B.jsx)(h6, {
value: N,
- children: /* @__PURE__ */ (0, B.jsxs)(e6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(t6, {
className: r,
config: e,
footer: O && !m && /* @__PURE__ */ (0, B.jsx)(AVe, {
@@ -71676,7 +71685,7 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: m }), /* @__PURE__ */ (0, B.jsxs)(B3, {
+ children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: m }), /* @__PURE__ */ (0, B.jsxs)(V3, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -71688,8 +71697,8 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, B.jsx)(f6, { variant: d }),
- /* @__PURE__ */ (0, B.jsx)(w2, { color: "white" }),
+ d && /* @__PURE__ */ (0, B.jsx)(p6, { variant: d }),
+ /* @__PURE__ */ (0, B.jsx)(T2, { color: "white" }),
D.chartChildren,
m && /* @__PURE__ */ (0, B.jsx)(aHe, {
chartId: _,
@@ -71701,7 +71710,7 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
});
}
function BVe({ 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 } = h6(), b = (0, R.useId)().replace(/:/g, ""), x = ep();
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = g6(), b = (0, R.useId)().replace(/:/g, ""), x = ep();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -71721,19 +71730,19 @@ function BVe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(M4, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(N4, {
dataKey: e,
stackId: u ? IVe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, B.jsx)(_6, {
+ shape: (e) => /* @__PURE__ */ (0, B.jsx)(v6, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, B.jsx)(_6, {
+ activeBar: (e) => /* @__PURE__ */ (0, B.jsx)(v6, {
...e,
...T,
animationType: "none"
@@ -71778,8 +71787,8 @@ function BVe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
] })] });
}
function VVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = h6();
- return o ? null : /* @__PURE__ */ (0, B.jsx)(B4, {
+ let { isLoading: o, isHorizontal: s } = g6();
+ return o ? null : /* @__PURE__ */ (0, B.jsx)(V4, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -71789,8 +71798,8 @@ function VVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
});
}
function HVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = h6();
- return s ? null : /* @__PURE__ */ (0, B.jsx)(G4, {
+ let { isLoading: s, isHorizontal: c } = g6();
+ return s ? null : /* @__PURE__ */ (0, B.jsx)(K4, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -71801,8 +71810,8 @@ function HVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
});
}
function UVe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = h6();
- return /* @__PURE__ */ (0, B.jsx)(V2, {
+ let { isHorizontal: i } = g6();
+ return /* @__PURE__ */ (0, B.jsx)(H2, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
@@ -71810,11 +71819,11 @@ function UVe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
});
}
function WVe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = h6();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
+ let { isLoading: r, selectedDataKey: i } = g6();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, B.jsx)(a6, {
+ content: /* @__PURE__ */ (0, B.jsx)(o6, {
selected: i,
roundness: t,
variant: e
@@ -71822,11 +71831,11 @@ function WVe({ variant: e, roundness: t, defaultIndex: n }) {
});
}
function GVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = h6();
- return /* @__PURE__ */ (0, B.jsx)(c6, {
+ let { selectedDataKey: i, selectDataKey: a } = g6();
+ return /* @__PURE__ */ (0, B.jsx)(l6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(s6, {
+ content: /* @__PURE__ */ (0, B.jsx)(c6, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -71834,7 +71843,7 @@ function GVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var _6 = (e) => {
+var v6 = (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 = KVe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : qVe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = JVe({
isClickable: d,
selectedDataKey: _,
@@ -71926,7 +71935,7 @@ var _6 = (e) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
}, YVe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -72030,7 +72039,7 @@ var _6 = (e) => {
})
})
] }), QVe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -72098,7 +72107,7 @@ var _6 = (e) => {
})
] });
}, $Ve = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -72275,11 +72284,11 @@ function iHe(e, t = 12) {
onShimmerExit: i
};
}
-var aHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(M4, {
+var aHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(N4, {
dataKey: PVe,
fill: "currentColor",
fillOpacity: .15,
- radius: p6,
+ radius: m6,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
@@ -72340,11 +72349,11 @@ var aHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fr
})
] });
};
-g6.Bar = BVe, g6.XAxis = VVe, g6.YAxis = HVe, g6.Grid = UVe, g6.Tooltip = WVe, g6.Legend = GVe, g6.Brush = l6;
+_6.Bar = BVe, _6.XAxis = VVe, _6.YAxis = HVe, _6.Grid = UVe, _6.Tooltip = WVe, _6.Legend = GVe, _6.Brush = u6;
//#endregion
//#region src/react/charts/chart-card.tsx
-var v6 = `${AE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function y6({ title: e, figure: t, note: n }) {
+var y6 = `${AE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function b6({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, B.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
@@ -72362,24 +72371,24 @@ function y6({ title: e, figure: t, note: n }) {
})]
});
}
-var b6 = [
+var x6 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], x6 = (e) => ({ light: [e] }), S6 = (e) => `s${e}`;
+], S6 = (e) => ({ light: [e] }), C6 = (e) => `s${e}`;
function sHe(e) {
- return Object.fromEntries(e.map((e, t) => [S6(t), {
+ return Object.fromEntries(e.map((e, t) => [C6(t), {
label: e,
- colors: x6(b6[t % b6.length])
+ colors: S6(x6[t % x6.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var C6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
-function w6({ swatch: e, name: t, value: n }) {
+var w6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
+function T6({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -72394,31 +72403,31 @@ function w6({ swatch: e, name: t, value: n }) {
})]
});
}
-var T6 = "size-2.5 shrink-0 rounded-xs";
+var E6 = "size-2.5 shrink-0 rounded-xs";
function cHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = $3(), s = (t ?? []).filter((e) => e.type !== "none");
+ let { config: o } = e6(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, B.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: C6,
+ className: w6,
children: [c ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "font-medium text-foreground",
children: c
}) : null, s.map((e, t) => {
- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = r6(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, B.jsx)(w6, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = i6(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, B.jsx)(T6, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, B.jsx)("i", {
- className: T6,
+ className: E6,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function E6({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, B.jsx)(o6, {
+function D6({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, B.jsx)(s6, {
cursor: !1,
content: /* @__PURE__ */ (0, B.jsx)(cHe, {
nameKey: e,
@@ -72429,12 +72438,12 @@ function E6({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var D6 = [0, (e) => e * 1.2], O6 = (e) => ({
+var O6 = [0, (e) => e * 1.2], k6 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function k6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function A6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({
name: e.name,
value: e.value
@@ -72442,53 +72451,53 @@ function k6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: v6,
+ className: y6,
"aria-label": e,
- children: [/* @__PURE__ */ (0, B.jsx)(y6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(b6, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, B.jsxs)(g6, {
+ }), /* @__PURE__ */ (0, B.jsxs)(_6, {
data: o,
config: { value: {
label: n,
- colors: x6(i)
+ colors: S6(i)
} },
layout: a,
barRadius: 4,
className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(g6.Grid, {}),
- c ? /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
+ /* @__PURE__ */ (0, B.jsx)(_6.Grid, {}),
+ c ? /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
+ }) : /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
+ c ? /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
hide: !0,
- domain: D6
- }) : /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
+ domain: O6
+ }) : /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
hide: !0,
- domain: D6
+ domain: O6
}),
- /* @__PURE__ */ (0, B.jsx)(g6.Bar, {
+ /* @__PURE__ */ (0, B.jsx)(_6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: O6(c ? "right" : "top")
+ label: k6(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, B.jsx)(E6, {})
+ /* @__PURE__ */ (0, B.jsx)(D6, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var A6 = [
+var j6 = [
"周一",
"周二",
"周三",
@@ -72496,7 +72505,7 @@ var A6 = [
"周五",
"周六",
"周日"
-], j6 = (e, t) => e ? Math.max(.12, e / t) : 0;
+], M6 = (e, t) => e ? Math.max(.12, e / t) : 0;
function lHe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
@@ -72507,9 +72516,9 @@ function lHe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${A6[t]} ${n}:00`,
+ label: `${j6[t]} ${n}:00`,
count: e,
- share: j6(e, r)
+ share: M6(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
@@ -72532,7 +72541,7 @@ function uHe(e) {
key: r,
label: r,
count: s,
- share: j6(s, o)
+ share: M6(s, o)
};
});
return {
@@ -72544,7 +72553,7 @@ function uHe(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var M6 = 14, N6 = 17, P6 = {
+var N6 = 14, P6 = 17, F6 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -72565,30 +72574,30 @@ function fHe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${C6} ${dHe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${w6} ${dHe[a]}`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, B.jsx)(w6, {
+ }), /* @__PURE__ */ (0, B.jsx)(T6, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, B.jsx)("i", { className: `${T6} ${P6[n].dot}` })
+ swatch: /* @__PURE__ */ (0, B.jsx)("i", { className: `${E6} ${F6[n].dot}` })
})]
});
}
-function F6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * N6, m = f + a * N6, h = (e) => ({
- x: d + e % i * N6,
- y: f + Math.floor(e / i) * N6
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + M6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function I6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * P6, m = f + a * P6, h = (e) => ({
+ x: d + e % i * P6,
+ y: f + Math.floor(e / i) * P6
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + N6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + M6 / 2,
- end: _.x + M6
+ center: _.x + N6 / 2,
+ end: _.x + N6
}[y] : 0;
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: v6,
+ className: y6,
children: [
- /* @__PURE__ */ (0, B.jsx)(y6, {
+ /* @__PURE__ */ (0, B.jsx)(b6, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -72611,12 +72620,12 @@ function F6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: M6,
- height: M6,
+ width: N6,
+ height: N6,
rx: 3,
fillOpacity: e.share || 1,
opacity: l >= 0 && l !== n ? .4 : 1,
- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${P6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${F6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
onPointerEnter: () => u(n),
onFocus: () => u(n),
onBlur: () => u(-1)
@@ -72639,24 +72648,24 @@ function F6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var pHe = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [A6.map((e, t) => /* @__PURE__ */ (0, B.jsx)("text", {
+var pHe = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [j6.map((e, t) => /* @__PURE__ */ (0, B.jsx)("text", {
x: 0,
- y: 18 + t * N6 + 7,
+ y: 18 + t * P6 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, B.jsx)("text", {
- x: 30 + t * N6,
+ x: 30 + t * P6,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+function L6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
let o = lHe(e), s = uHe(e);
return s.cells.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, B.jsx)(F6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(I6, {
title: t,
words: r,
tone: i,
@@ -72666,7 +72675,7 @@ function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
rows: 7,
axis: pHe,
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, B.jsx)(F6, {
+ }), /* @__PURE__ */ (0, B.jsx)(I6, {
title: n,
words: r,
tone: i,
@@ -72677,7 +72686,7 @@ function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, B.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, B.jsxs)("section", {
- className: v6,
+ className: y6,
children: [/* @__PURE__ */ (0, B.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -72689,7 +72698,7 @@ function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function L6({ children: e, className: t = "", previewCount: n = 10 }) {
+function R6({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(!1), l = R.Children.toArray(e), u = l.length > n;
(0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -72736,13 +72745,13 @@ function L6({ children: e, className: t = "", previewCount: n = 10 }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var mHe = "30%", hHe = "100%", R6 = 5, z6 = 14, gHe = 5, B6 = 1500, V6 = (0, R.createContext)(null);
-function H6() {
- let e = (0, R.use)(V6);
+var mHe = "30%", hHe = "100%", z6 = 5, B6 = 14, gHe = 5, V6 = 1500, H6 = (0, R.createContext)(null);
+function U6() {
+ let e = (0, R.use)(H6);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = mHe, outerRadius: l = hHe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+function W6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = mHe, outerRadius: l = hHe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = CHe(f), v = bHe(o), y = (0, R.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
@@ -72770,12 +72779,12 @@ function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, B.jsx)(V6, {
+ return /* @__PURE__ */ (0, B.jsx)(H6, {
value: x,
- children: /* @__PURE__ */ (0, B.jsxs)(e6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(t6, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: f }), /* @__PURE__ */ (0, B.jsxs)(yVe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: f }), /* @__PURE__ */ (0, B.jsxs)(yVe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -72786,13 +72795,13 @@ function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, B.jsx)(K1, {
+ s != null && s > 0 && /* @__PURE__ */ (0, B.jsx)(q1, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, B.jsx)(f6, { variant: p }),
+ p && /* @__PURE__ */ (0, B.jsx)(p6, { variant: p }),
r,
f && /* @__PURE__ */ (0, B.jsx)(wHe, {}),
/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)(xHe, {
@@ -72804,9 +72813,9 @@ function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function _He({ dataKey: e, cornerRadius: t = R6, barSize: n = z6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = H6();
- return s ? null : /* @__PURE__ */ (0, B.jsx)(h2, {
+function _He({ dataKey: e, cornerRadius: t = z6, barSize: n = B6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = U6();
+ return s ? null : /* @__PURE__ */ (0, B.jsx)(g2, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -72830,11 +72839,11 @@ function _He({ dataKey: e, cornerRadius: t = R6, barSize: n = z6, showBackground
});
}
function vHe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = H6();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
+ let { nameKey: r, isLoading: i } = U6();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, B.jsx)(a6, {
+ content: /* @__PURE__ */ (0, B.jsx)(o6, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -72843,11 +72852,11 @@ function vHe({ variant: e, roundness: t, defaultIndex: n }) {
});
}
function yHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = H6();
- return a ? null : /* @__PURE__ */ (0, B.jsx)(c6, {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = U6();
+ return a ? null : /* @__PURE__ */ (0, B.jsx)(l6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(s6, {
+ content: /* @__PURE__ */ (0, B.jsx)(c6, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -72873,7 +72882,7 @@ function bHe(e) {
}
}
var xHe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = i6(n);
+ let r = a6(n);
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -72907,17 +72916,17 @@ function CHe(e) {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, B6);
+ }, V6);
return () => clearInterval(t);
}, [e]), (0, R.useMemo)(() => SHe(), [t]);
}
-var wHe = () => /* @__PURE__ */ (0, B.jsx)(h2, {
+var wHe = () => /* @__PURE__ */ (0, B.jsx)(g2, {
dataKey: "value",
- cornerRadius: R6,
- barSize: z6,
+ cornerRadius: z6,
+ barSize: B6,
background: !0,
isAnimationActive: !0,
- animationDuration: B6,
+ animationDuration: V6,
animationEasing: "ease-in-out",
shape: (e) => /* @__PURE__ */ (0, B.jsx)(sK, {
...e,
@@ -72925,7 +72934,7 @@ var wHe = () => /* @__PURE__ */ (0, B.jsx)(h2, {
fillOpacity: .25
})
});
-U6.RadialBar = _He, U6.Tooltip = vHe, U6.Legend = yHe;
+W6.RadialBar = _He, W6.Tooltip = vHe, W6.Legend = yHe;
//#endregion
//#region src/react/stats/radial-card.tsx
var THe = [
@@ -72943,15 +72952,15 @@ var THe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function W6({ title: e, rows: t, unit: n = "个视频" }) {
+function G6({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, R.useState)(-1), [a, o] = (0, R.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({
- slice: S6(t),
+ slice: C6(t),
value: e.value
}));
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: v6,
+ className: y6,
children: [
/* @__PURE__ */ (0, B.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -72973,16 +72982,16 @@ function W6({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, B.jsxs)(U6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(W6, {
data: f,
nameKey: "slice",
config: sHe(s.map((e) => e.name)),
- max: sbe(s.map((e) => e.value)),
+ max: cbe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, B.jsx)(U6.RadialBar, {
+ children: [/* @__PURE__ */ (0, B.jsx)(W6.RadialBar, {
dataKey: "value",
- barSize: cbe(s.length),
+ barSize: lbe(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, B.jsx)(sK, {
...e,
@@ -72992,7 +73001,7 @@ function W6({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, B.jsx)(E6, {
+ }), /* @__PURE__ */ (0, B.jsx)(D6, {
nameKey: "slice",
hideLabel: !0
})]
@@ -73033,8 +73042,8 @@ function W6({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var DHe = 10, G6 = b6[5], OHe = b6[4], kHe = `${AE()} flex flex-col gap-4`, AHe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", jHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", MHe = "开始播放后,这里会显示最近的真实观看证据。", NHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", PHe = "添加媒体文件夹后,这里会显示存储空间。";
-function K6({ term: e, value: t }) {
+var DHe = 10, K6 = x6[5], OHe = x6[4], kHe = `${AE()} flex flex-col gap-4`, AHe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", jHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", MHe = "开始播放后,这里会显示最近的真实观看证据。", NHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", PHe = "添加媒体文件夹后,这里会显示存储空间。";
+function q6({ term: e, value: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
@@ -73046,7 +73055,7 @@ function K6({ term: e, value: t }) {
})]
});
}
-function q6({ term: e, value: t, total: n }) {
+function J6({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, B.jsxs)("p", {
@@ -73065,7 +73074,7 @@ function q6({ term: e, value: t, total: n }) {
})]
});
}
-function J6({ term: e, figure: t, unit: n }) {
+function Y6({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -73084,7 +73093,7 @@ function J6({ term: e, figure: t, unit: n }) {
]
});
}
-function Y6({ headline: e, children: t }) {
+function X6({ headline: e, children: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: `${kHe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, B.jsx)("div", {
@@ -73098,14 +73107,14 @@ function FHe({ data: e, configurable: t, openMediaSettings: n }) {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, B.jsx)(W6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(G6, {
title: "网盘与本地",
rows: e.by_loc.map((e) => ({
name: I[e.k] ?? e.k,
value: e.videos,
detail: ye(e.bytes)
}))
- }), /* @__PURE__ */ (0, B.jsx)(W6, {
+ }), /* @__PURE__ */ (0, B.jsx)(G6, {
title: "媒体库",
rows: e.by_library.map((e) => ({
name: e.name,
@@ -73116,27 +73125,27 @@ function FHe({ data: e, configurable: t, openMediaSettings: n }) {
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(k6, {
+ /* @__PURE__ */ (0, B.jsx)(A6, {
title: "时长",
unit: "个视频",
series: "视频",
- color: G6,
- rows: fbe(e.by_length)
+ color: K6,
+ rows: pbe(e.by_length)
}),
- /* @__PURE__ */ (0, B.jsx)(k6, {
+ /* @__PURE__ */ (0, B.jsx)(A6, {
title: "画质",
unit: "个视频",
series: "视频",
- color: G6,
+ color: K6,
rows: BR(e.by_quality)
}),
- /* @__PURE__ */ (0, B.jsx)(k6, {
+ /* @__PURE__ */ (0, B.jsx)(A6, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: G6,
+ color: K6,
layout: "horizontal",
- rows: ube(e.by_medium)
+ rows: dbe(e.by_medium)
})
]
})]
@@ -73158,7 +73167,7 @@ function FHe({ data: e, configurable: t, openMediaSettings: n }) {
});
}
function IHe({ data: e }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(I6, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(L6, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -73168,12 +73177,12 @@ function IHe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, B.jsx)(k6, {
+ }), /* @__PURE__ */ (0, B.jsx)(A6, {
title: "播放次数",
unit: "个作品",
series: "作品",
color: OHe,
- rows: mbe(e.replays)
+ rows: hbe(e.replays)
})] });
}
function LHe({ attribution: e }) {
@@ -73181,27 +73190,27 @@ function LHe({ attribution: e }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "已探测时长",
value: e.duration,
total: t
@@ -73265,7 +73274,7 @@ function zHe({ volumes: e, configurable: t, openMediaSettings: n }) {
});
}
function BHe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, B.jsx)(L6, {
+ return e.length ? /* @__PURE__ */ (0, B.jsx)(R6, {
previewCount: DHe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, B.jsx)("li", {
@@ -73315,14 +73324,14 @@ function VHe({ rows: e }) {
children: [/* @__PURE__ */ (0, B.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, B.jsx)("a", {
- href: obe(e),
+ href: sbe(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, B.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, B.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: abe(e) })]
+ children: [/* @__PURE__ */ (0, B.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: obe(e) })]
})]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -73392,14 +73401,14 @@ function HHe({ sources: e, videos: t }) {
children: NHe
});
}
-function X6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+function Z6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
return /* @__PURE__ */ (0, B.jsx)(_k, {
id: e,
- className: CM({
+ className: SM({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, B.jsx)(DM, {
+ children: /* @__PURE__ */ (0, B.jsx)(EM, {
label: t,
icon: i,
accent: a,
@@ -73409,7 +73418,7 @@ function X6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
});
}
function UHe(e) {
- let t = wS({
+ let t = TS({
queryKey: FR,
queryFn: ({ signal: e }) => IR(e)
}), n = t.data;
@@ -73430,9 +73439,9 @@ function UHe(e) {
children: [
/* @__PURE__ */ (0, B.jsxs)(gk, {
"aria-label": "统计视图",
- className: wM,
+ className: CM,
children: [
- /* @__PURE__ */ (0, B.jsx)(X6, {
+ /* @__PURE__ */ (0, B.jsx)(Z6, {
id: "inventory",
label: "馆藏视频",
icon: CT,
@@ -73440,15 +73449,15 @@ function UHe(e) {
figure: a.toLocaleString(),
detail: ye(o)
}),
- /* @__PURE__ */ (0, B.jsx)(X6, {
+ /* @__PURE__ */ (0, B.jsx)(Z6, {
id: "viewing",
label: "看过",
icon: ET,
accent: 1,
figure: r.played.toLocaleString(),
- detail: ibe(r.play_seconds)
+ detail: abe(r.play_seconds)
}),
- /* @__PURE__ */ (0, B.jsx)(X6, {
+ /* @__PURE__ */ (0, B.jsx)(Z6, {
id: "coverage",
label: "内容标签",
icon: AT,
@@ -73456,7 +73465,7 @@ function UHe(e) {
figure: `${s}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, B.jsx)(X6, {
+ /* @__PURE__ */ (0, B.jsx)(Z6, {
id: "storage",
label: "使用空间",
icon: DT,
@@ -73476,8 +73485,8 @@ function UHe(e) {
/* @__PURE__ */ (0, B.jsxs)(vk, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, B.jsx)(Y6, {
- headline: /* @__PURE__ */ (0, B.jsx)(J6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(X6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -73485,35 +73494,35 @@ function UHe(e) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "回收站",
value: r.trash
})
@@ -73523,8 +73532,8 @@ function UHe(e) {
}),
/* @__PURE__ */ (0, B.jsx)(vk, {
id: "coverage",
- children: /* @__PURE__ */ (0, B.jsx)(Y6, {
- headline: /* @__PURE__ */ (0, B.jsx)(J6, {
+ children: /* @__PURE__ */ (0, B.jsx)(X6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
term: "内容标签覆盖",
figure: `${s}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
@@ -73534,8 +73543,8 @@ function UHe(e) {
}),
/* @__PURE__ */ (0, B.jsx)(vk, {
id: "storage",
- children: /* @__PURE__ */ (0, B.jsx)(Y6, {
- headline: /* @__PURE__ */ (0, B.jsx)(J6, {
+ children: /* @__PURE__ */ (0, B.jsx)(X6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
@@ -73608,23 +73617,23 @@ function WHe(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function Z6(e) {
+function Q6(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function Q6(e, t) {
- return e8(e.source, t.source) || e.index - t.index;
-}
function $6(e, t) {
- return e8(e.target, t.target) || e.index - t.index;
+ return t8(e.source, t.source) || e.index - t.index;
}
function e8(e, t) {
+ return t8(e.target, t.target) || e.index - t.index;
+}
+function t8(e, t) {
return e.y0 - t.y0;
}
-function t8(e) {
+function n8(e) {
return e.value;
}
function GHe(e) {
@@ -73636,12 +73645,12 @@ function KHe(e) {
function qHe(e) {
return e.links;
}
-function n8(e, t) {
+function r8(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function r8({ nodes: e }) {
+function i8({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
@@ -73655,14 +73664,14 @@ function JHe() {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), r8(e), e;
+ return h(e), g(e), _(e), v(e), x(e), i8(e), e;
}
m.update = function(e) {
- return r8(e), e;
+ return i8(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : Z6(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : Q6(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : Z6(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : Q6(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -73670,9 +73679,9 @@ function JHe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : Z6(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : Q6(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : Z6(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : Q6(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -73688,12 +73697,12 @@ function JHe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = n8(n, t)), typeof i != "object" && (i = r.target = n8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = r8(n, t)), typeof i != "object" && (i = r.target = r8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Oq(t.sourceLinks, t8), Oq(t.targetLinks, t8)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Oq(t.sourceLinks, n8), Oq(t.targetLinks, n8)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -73727,7 +73736,7 @@ function JHe() {
return o;
}
function b(e) {
- let n = Tq(e, (e) => (r - t - (e.length - 1) * o) / Oq(e, t8));
+ let n = Tq(e, (e) => (r - t - (e.length - 1) * o) / Oq(e, n8));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -73763,7 +73772,7 @@ function JHe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(e8), w(i, n);
+ l === void 0 && i.sort(t8), w(i, n);
}
}
function C(e, t, n) {
@@ -73779,7 +73788,7 @@ function JHe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(e8), w(i, n);
+ l === void 0 && i.sort(t8), w(i, n);
}
}
function w(e, n) {
@@ -73800,12 +73809,12 @@ function JHe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort($6);
- for (let { target: { targetLinks: t } } of e) t.sort(Q6);
+ for (let { source: { sourceLinks: e } } of t) e.sort(e8);
+ for (let { target: { targetLinks: t } } of e) t.sort($6);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort($6), n.sort(Q6);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(e8), n.sort($6);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -73835,15 +73844,15 @@ function JHe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var i8 = Math.PI, a8 = 2 * i8, o8 = 1e-6, YHe = a8 - o8;
-function s8() {
+var a8 = Math.PI, o8 = 2 * a8, s8 = 1e-6, YHe = o8 - s8;
+function c8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function c8() {
- return new s8();
+function l8() {
+ return new c8();
}
-s8.prototype = c8.prototype = {
- constructor: s8,
+c8.prototype = l8.prototype = {
+ constructor: c8,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -73864,11 +73873,11 @@ s8.prototype = c8.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > o8) {
- if (!(Math.abs(u * s - c * l) > o8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > s8) {
+ if (!(Math.abs(u * s - c * l) > s8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((i8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > o8 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((a8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > s8 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -73876,7 +73885,7 @@ s8.prototype = c8.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) > o8 || Math.abs(this._y1 - l) > o8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % a8 + a8), d > YHe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > o8 && (this._ += "A" + n + "," + n + ",0," + +(d >= i8) + "," + 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) > s8 || Math.abs(this._y1 - l) > s8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % o8 + o8), d > YHe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > s8 && (this._ += "A" + n + "," + n + ",0," + +(d >= a8) + "," + 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";
@@ -73887,7 +73896,7 @@ s8.prototype = c8.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function l8(e) {
+function u8(e) {
return function() {
return e;
};
@@ -73915,16 +73924,16 @@ function tUe(e) {
var t = $He, n = eUe, r = XHe, i = ZHe, a = null;
function o() {
var o, s = QHe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = c8(), 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;
+ if (a ||= o = l8(), 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) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : l8(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : u8(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : l8(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : u8(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
@@ -73948,20 +73957,20 @@ function oUe() {
}
//#endregion
//#region src/react/taste/taste.ts
-var sUe = "/api/taste", u8 = "/api/taste/refresh", cUe = "/api/taste/import", lUe = "/api/taste/source", d8 = (e) => ["taste", e], uUe = ["taste", "refresh"], dUe = [
+var sUe = "/api/taste", d8 = "/api/taste/refresh", cUe = "/api/taste/import", lUe = "/api/taste/source", f8 = (e) => ["taste", e], uUe = ["taste", "refresh"], dUe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], f8 = (e, t) => W(`${sUe}?window=${e}`, t), fUe = (e) => W(u8, e);
+], p8 = (e, t) => W(`${sUe}?window=${e}`, t), fUe = (e) => W(d8, e);
async function pUe(e, t) {
await p.fetchQuery({
- queryKey: d8(e),
- queryFn: () => f8(e, t)
+ queryKey: f8(e),
+ queryFn: () => p8(e, t)
});
}
-var mUe = (e) => G(u8, {
+var mUe = (e) => G(d8, {
window: e,
background: !0
}), hUe = (e, t) => G(lUe, {
@@ -73984,11 +73993,11 @@ async function gUe(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new RS(e || `导入失败(${t.status})`, t.status, n);
+ throw new zS(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var _Ue = 1e4, p8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", vUe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, yUe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+var _Ue = 1e4, m8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", vUe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, yUe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
function bUe(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
@@ -73998,18 +74007,18 @@ function xUe(e) {
let t = e.map(yUe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var m8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var h8 = (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 SUe(e) {
- let t = m8(e, 6);
+ let t = h8(e, 6);
return t.length < 3 ? [] : t;
}
-var h8 = {
+var g8 = {
width: 720,
height: 435
-}, g8 = {
+}, _8 = {
source: 145,
target: 545
};
@@ -74061,11 +74070,11 @@ function CUe(e = []) {
total: a
};
}
-var wUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var wUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, v8 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = R.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
- case "border": return /* @__PURE__ */ (0, B.jsx)(y8, {
+ case "border": return /* @__PURE__ */ (0, B.jsx)(b8, {
cx: e,
cy: t,
dotId: c,
@@ -74074,7 +74083,7 @@ var wUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, B.jsx)(b8, {
+ case "colored-border": return /* @__PURE__ */ (0, B.jsx)(x8, {
cx: e,
cy: t,
dotId: c,
@@ -74083,7 +74092,7 @@ var wUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, B.jsx)(v8, {
+ default: return /* @__PURE__ */ (0, B.jsx)(y8, {
cx: e,
cy: t,
dotId: c,
@@ -74093,7 +74102,7 @@ var wUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(functio
maskId: s
});
}
-}), v8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+}), y8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -74113,9 +74122,9 @@ var wUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-v8.displayName = "DefaultDot";
-var y8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
- className: Y3(a, "text-background"),
+y8.displayName = "DefaultDot";
+var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+ className: X3(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -74151,9 +74160,9 @@ var y8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-y8.displayName = "PrimaryBorderDot";
-var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
- className: Y3(a, "text-background"),
+b8.displayName = "PrimaryBorderDot";
+var x8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+ className: X3(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -74181,16 +74190,16 @@ var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-b8.displayName = "ColoredBorderDot";
+x8.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var TUe = 1, EUe = .3, DUe = 6, x8 = 1500, S8 = "value", C8 = (0, R.createContext)(null);
-function w8() {
- let e = (0, R.use)(C8);
+var TUe = 1, EUe = .3, DUe = 6, S8 = 1500, C8 = "value", w8 = (0, R.createContext)(null);
+function T8() {
+ let e = (0, R.use)(w8);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function T8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
+function E8({ 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, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = BUe(c, l), m = (0, R.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, R.useMemo)(() => ({
@@ -74204,17 +74213,17 @@ function T8({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, B.jsx)(C8, {
+ return /* @__PURE__ */ (0, B.jsx)(w8, {
value: h,
- children: /* @__PURE__ */ (0, B.jsxs)(e6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(t6, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: c }), /* @__PURE__ */ (0, B.jsxs)(dVe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: c }), /* @__PURE__ */ (0, B.jsxs)(dVe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, B.jsx)(f6, { variant: a }),
+ a && /* @__PURE__ */ (0, B.jsx)(p6, { variant: a }),
n,
c && /* @__PURE__ */ (0, B.jsx)(VUe, {})
]
@@ -74223,14 +74232,14 @@ function T8({ config: e, data: t, children: n, className: r, chartProps: i, back
});
}
function OUe({ dataKey: e, variant: t = "filled", fillOpacity: n = EUe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = w8(), d = (0, R.useId)().replace(/:/g, "");
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = T8(), d = (0, R.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 } = PUe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(z0, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(B0, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
@@ -74268,9 +74277,9 @@ function OUe({ dataKey: e, variant: t = "filled", fillOpacity: n = EUe, isGlowin
})
] })] });
}
-var E8 = () => null, D8 = () => null;
+var D8 = () => null, O8 = () => null;
function kUe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, B.jsx)(M1, {
+ return /* @__PURE__ */ (0, B.jsx)(N1, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -74282,8 +74291,8 @@ function AUe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = w8();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(K1, {
+ let { isLoading: r } = T8();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(q1, {
tick: e,
tickLine: t,
...n
@@ -74293,8 +74302,8 @@ function jUe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = w8();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(B1, {
+ let { isLoading: i } = T8();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(V1, {
tick: e,
tickLine: t,
axisLine: n,
@@ -74302,11 +74311,11 @@ function jUe({ tick: e = {
});
}
function MUe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = w8();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
+ let { isLoading: r, selectedDataKey: i } = T8();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, B.jsx)(a6, {
+ content: /* @__PURE__ */ (0, B.jsx)(o6, {
selected: i,
roundness: t,
variant: e
@@ -74314,11 +74323,11 @@ function MUe({ variant: e, roundness: t, defaultIndex: n }) {
});
}
function NUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = w8();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(c6, {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = T8();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(l6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(s6, {
+ content: /* @__PURE__ */ (0, B.jsx)(c6, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -74330,18 +74339,18 @@ var PUe = (e, t, n, r) => {
let i = !1, a = !1;
return R.Children.forEach(e, (e) => {
if ((0, R.isValidElement)(e)) {
- if (e.type === E8) {
+ if (e.type === D8) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, B.jsx)(_8, {
+ i = /* @__PURE__ */ (0, B.jsx)(v8, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === D8) {
+ if (e.type === O8) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, B.jsx)(_8, {
+ a = /* @__PURE__ */ (0, B.jsx)(v8, {
type: i,
dataKey: n,
chartId: t,
@@ -74353,7 +74362,7 @@ var PUe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, O8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("stop", {
+}, k8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -74369,39 +74378,39 @@ var PUe = (e, t, n, r) => {
stopOpacity: n?.[i]
}, a);
}) }), FUe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, B.jsx)(O8, {
+ children: /* @__PURE__ */ (0, B.jsx)(k8, {
dataKey: t,
colorsCount: r
})
});
}, IUe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, B.jsx)(O8, {
+ children: /* @__PURE__ */ (0, B.jsx)(k8, {
dataKey: t,
colorsCount: r
})
});
}, LUe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+ let r = a6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, B.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, B.jsx)(O8, {
+ children: /* @__PURE__ */ (0, B.jsx)(k8, {
dataKey: t,
colorsCount: r,
opacities: i
@@ -74436,7 +74445,7 @@ var PUe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [S8]: 30 + Math.random() * 70
+ [C8]: 30 + Math.random() * 70
}));
function BUe(e, t = DUe) {
let [n, r] = (0, R.useState)(0);
@@ -74444,12 +74453,12 @@ function BUe(e, t = DUe) {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, x8);
+ }, S8);
return () => clearInterval(t);
}, [e]), (0, R.useMemo)(() => zUe(t), [t, n]);
}
-var VUe = () => /* @__PURE__ */ (0, B.jsx)(z0, {
- dataKey: S8,
+var VUe = () => /* @__PURE__ */ (0, B.jsx)(B0, {
+ dataKey: C8,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -74457,10 +74466,10 @@ var VUe = () => /* @__PURE__ */ (0, B.jsx)(z0, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: x8,
+ animationDuration: S8,
animationEasing: "ease-in-out"
});
-T8.Radar = OUe, T8.Dot = E8, T8.ActiveDot = D8, T8.PolarGrid = kUe, T8.PolarAngleAxis = AUe, T8.PolarRadiusAxis = jUe, T8.Tooltip = MUe, T8.Legend = NUe;
+E8.Radar = OUe, E8.Dot = D8, E8.ActiveDot = O8, E8.PolarGrid = kUe, E8.PolarAngleAxis = AUe, E8.PolarRadiusAxis = jUe, E8.Tooltip = MUe, E8.Legend = NUe;
//#endregion
//#region src/react/taste/charts.tsx
var HUe = [
@@ -74477,9 +74486,9 @@ var HUe = [
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], k8 = { value: {
+], A8 = { value: {
label: "标签命中",
- colors: x6(b6[3])
+ colors: S6(x6[3])
} }, WUe = [
"min-h-24",
"min-h-24",
@@ -74490,7 +74499,7 @@ var HUe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], GUe = 26, KUe = { radius: k8.value }, qUe = (e, t) => Math.sqrt(e / t);
+], GUe = 26, KUe = { radius: A8.value }, qUe = (e, t) => Math.sqrt(e / t);
function JUe({ rows: e, label: t }) {
let n = SUe(e);
if (!n.length) return null;
@@ -74501,55 +74510,55 @@ function JUe({ rows: e, label: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, B.jsxs)(T8, {
+ children: /* @__PURE__ */ (0, B.jsxs)(E8, {
data: i,
config: KUe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(T8.PolarGrid, {}),
- /* @__PURE__ */ (0, B.jsx)(T8.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, B.jsx)(T8.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, B.jsx)(E8.PolarGrid, {}),
+ /* @__PURE__ */ (0, B.jsx)(E8.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, B.jsx)(E8.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, B.jsx)(T8.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, B.jsx)(E6, { valueKey: "value" })
+ /* @__PURE__ */ (0, B.jsx)(E8.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, B.jsx)(D6, { valueKey: "value" })
]
})
});
}
function YUe({ rows: e, label: t }) {
- let n = m8(e, 8);
+ let n = h8(e, 8);
return n.length ? /* @__PURE__ */ (0, B.jsx)("section", {
"aria-label": t,
className: `flex grow flex-col ${WUe[n.length]}`,
- children: /* @__PURE__ */ (0, B.jsxs)(g6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(_6, {
data: n,
- config: k8,
+ config: A8,
layout: "horizontal",
barRadius: 4,
chartProps: { maxBarSize: GUe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
+ /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
+ /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
hide: !0,
- domain: D6
+ domain: O6
}),
- /* @__PURE__ */ (0, B.jsx)(g6.Bar, {
+ /* @__PURE__ */ (0, B.jsx)(_6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: O6("right")
+ label: k6("right")
}
}),
- /* @__PURE__ */ (0, B.jsx)(E6, {})
+ /* @__PURE__ */ (0, B.jsx)(D6, {})
]
})
}) : null;
@@ -74559,9 +74568,9 @@ function XUe({ flows: 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, B.jsxs)("section", {
- className: v6,
+ className: y6,
children: [
- /* @__PURE__ */ (0, B.jsx)(y6, {
+ /* @__PURE__ */ (0, B.jsx)(b6, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -74569,7 +74578,7 @@ function XUe({ flows: e }) {
/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, B.jsxs)("svg", {
- viewBox: `0 0 ${h8.width} ${h8.height}`,
+ viewBox: `0 0 ${g8.width} ${g8.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -74619,13 +74628,13 @@ function XUe({ flows: e }) {
rx: 5,
className: e.side === "source" ? UUe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, B.jsxs)("text", {
- x: g8[e.side],
+ x: _8[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: [wUe(e.name), /* @__PURE__ */ (0, B.jsx)("tspan", {
- x: g8[e.side],
+ x: _8[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -74642,11 +74651,11 @@ function XUe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var ZUe = 10, A8 = wE(Tk, Ek, "text-body-2-medium"), j8 = `${AE()} flex flex-col gap-4`, M8 = "rounded-xl bg-background-primary-default p-3", QUe = "读取运行 Peach 的这台电脑上的浏览记录", $Ue = "导入或读取浏览记录后,这里会列出已采集设备。", eWe = "馆藏里暂时没有对得上浏览信号的标签。", tWe = "采集浏览记录后,这里会显示聚合后的口味证据。", nWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", rWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", iWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", aWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", oWe = "这个数据源将不再用于口味分析。原始导出文件保留。", N8 = "peach-taste-guide-dismissed";
-function P8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var ZUe = 10, j8 = wE(Tk, Ek, "text-body-2-medium"), M8 = `${AE()} flex flex-col gap-4`, N8 = "rounded-xl bg-background-primary-default p-3", QUe = "读取运行 Peach 的这台电脑上的浏览记录", $Ue = "导入或读取浏览记录后,这里会列出已采集设备。", eWe = "馆藏里暂时没有对得上浏览信号的标签。", tWe = "采集浏览记录后,这里会显示聚合后的口味证据。", nWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", rWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", iWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", aWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", oWe = "这个数据源将不再用于口味分析。原始导出文件保留。", P8 = "peach-taste-guide-dismissed";
+function F8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: CM(),
- children: /* @__PURE__ */ (0, B.jsx)(DM, {
+ className: SM(),
+ children: /* @__PURE__ */ (0, B.jsx)(EM, {
label: t,
icon: e,
accent: i,
@@ -74655,7 +74664,7 @@ function P8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function F8({ name: e, domain: t }) {
+function I8({ name: e, domain: t }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, B.jsx)("img", {
@@ -74671,7 +74680,7 @@ function F8({ name: e, domain: t }) {
}
function sWe({ html: e }) {
return /* @__PURE__ */ (0, B.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 ${sL}`,
+ 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 ${oL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
@@ -74683,7 +74692,7 @@ function cWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: r
});
let a = xUe(e);
- return /* @__PURE__ */ (0, B.jsx)(L6, {
+ return /* @__PURE__ */ (0, B.jsx)(R6, {
previewCount: ZUe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
@@ -74703,11 +74712,11 @@ function cWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, B.jsx)(F8, {
+ n === "domain" ? /* @__PURE__ */ (0, B.jsx)(I8, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, B.jsx)(F8, {
+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, B.jsx)(I8, {
name: e.name,
domain: s
}) : null,
@@ -74747,7 +74756,7 @@ function cWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
})
});
}
-function I8({ label: e, panels: t, onSignal: n }) {
+function L8({ label: e, panels: t, onSignal: n }) {
return /* @__PURE__ */ (0, B.jsxs)(hk, {
className: `${AE({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
@@ -74786,7 +74795,7 @@ function lWe({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: j8,
+ className: M8,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, B.jsxs)("header", {
@@ -74812,7 +74821,7 @@ function lWe({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${M8}`,
+ className: `flex min-w-0 flex-col gap-1 ${N8}`,
children: [/* @__PURE__ */ (0, B.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -74827,7 +74836,7 @@ function lWe({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${M8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${N8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, B.jsx)("b", {
@@ -74854,7 +74863,7 @@ function lWe({ data: e, onSignal: t, navigate: n }) {
function uWe({ onboarding: e, done: t }) {
let [n, r] = (0, R.useState)(() => {
try {
- return localStorage.getItem(N8) === "1";
+ return localStorage.getItem(P8) === "1";
} catch {
return !1;
}
@@ -74913,7 +74922,7 @@ function uWe({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(N8, "1");
+ localStorage.setItem(P8, "1");
} catch {}
r(!0);
},
@@ -74957,12 +74966,12 @@ function dWe({ busy: e, onRefresh: t, onImport: n }) {
placement: "bottom end",
offset: 4,
className: wk,
- children: /* @__PURE__ */ (0, B.jsxs)(OM, {
+ children: /* @__PURE__ */ (0, B.jsxs)(DM, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: A8,
+ className: j8,
onClick: () => o(t),
children: [/* @__PURE__ */ (0, B.jsx)(ST, {
"aria-hidden": !0,
@@ -74970,7 +74979,7 @@ function dWe({ busy: e, onRefresh: t, onImport: n }) {
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: A8,
+ className: j8,
onClick: () => o(n),
children: [/* @__PURE__ */ (0, B.jsx)(PT, {
"aria-hidden": !0,
@@ -74981,14 +74990,14 @@ function dWe({ busy: e, onRefresh: t, onImport: n }) {
})] });
}
function fWe({ sources: e, window: t, toast: n }) {
- let r = DS({
+ let r = OS({
mutationFn: (e) => hUe(e, t),
onSuccess: (e) => {
- p.setQueryData(d8(t), e.dashboard), n("已移除口味数据源");
+ p.setQueryData(f8(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: j8,
+ className: M8,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, B.jsx)("h3", {
@@ -75002,7 +75011,7 @@ function fWe({ sources: e, window: t, toast: n }) {
e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${M8}`,
+ className: `flex min-w-0 items-center gap-3 ${N8}`,
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
@@ -75052,11 +75061,11 @@ function fWe({ sources: e, window: t, toast: n }) {
});
}
function pWe(e) {
- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, R.useState)("all"), [s, c] = (0, R.useState)("browser"), l = (0, R.useRef)(null), u = wS({
- queryKey: d8(a),
- queryFn: ({ signal: e }) => f8(a, e),
- placeholderData: kS.keepPreviousData
- }), { job: d, running: f, outcome: m, start: h } = HM({
+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, R.useState)("all"), [s, c] = (0, R.useState)("browser"), l = (0, R.useRef)(null), u = TS({
+ queryKey: f8(a),
+ queryFn: ({ signal: e }) => p8(a, e),
+ placeholderData: AS.keepPreviousData
+ }), { job: d, running: f, outcome: m, start: h } = VM({
queryKey: uUe,
queryFn: ({ signal: e }) => fUe(e),
start: () => mUe(a),
@@ -75064,10 +75073,10 @@ function pWe(e) {
onFinish: (e) => {
e.status !== "failed" && (p.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
- }), g = DS({
+ }), g = OS({
mutationFn: (e) => gUe(e),
onSuccess: (e) => {
- p.setQueryData(d8("all"), e.dashboard), o("all"), r("已导入口味数据");
+ p.setQueryData(f8("all"), e.dashboard), o("all"), r("已导入口味数据");
}
}), _ = (e) => {
let t = e.currentTarget.files?.[0];
@@ -75139,12 +75148,12 @@ function pWe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, B.jsx)(RM, {
+ f ? /* @__PURE__ */ (0, B.jsx)(LM, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- g.isPending ? /* @__PURE__ */ (0, B.jsx)(RM, { label: "正在导入历史文件" }) : null,
+ g.isPending ? /* @__PURE__ */ (0, B.jsx)(LM, { label: "正在导入历史文件" }) : null,
O ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: O
@@ -75156,29 +75165,29 @@ function pWe(e) {
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: wM,
+ className: CM,
children: [
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 0,
icon: OT,
term: "浏览记录",
figure: Number(b.history_visits || 0).toLocaleString(),
- detail: `${b.history_sources || 0} 个数据源 · ${p8(b.range_start)}—${p8(b.range_end)}`
+ detail: `${b.history_sources || 0} 个数据源 · ${m8(b.range_start)}—${m8(b.range_end)}`
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 1,
icon: AT,
term: "口味维度",
figure: w.length.toLocaleString(),
detail: w[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 2,
icon: NT,
term: "浏览候选",
figure: T.length.toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 3,
icon: CT,
term: "私有导出",
@@ -75188,7 +75197,7 @@ function pWe(e) {
]
}),
/* @__PURE__ */ (0, B.jsxs)("section", {
- className: `${j8} md:flex-row md:gap-6`,
+ className: `${M8} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
@@ -75203,7 +75212,7 @@ function pWe(e) {
}),
/* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: y.updated_at ? `更新于 ${p8(y.updated_at)}` : "尚未采集浏览记录"
+ children: y.updated_at ? `更新于 ${m8(y.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, B.jsx)("div", {
@@ -75219,7 +75228,7 @@ function pWe(e) {
})
})]
}),
- /* @__PURE__ */ (0, B.jsx)(I6, {
+ /* @__PURE__ */ (0, B.jsx)(L6, {
activity: y.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -75232,7 +75241,7 @@ function pWe(e) {
empty: "还没有可用于分析的口味网站访问记录。"
}),
/* @__PURE__ */ (0, B.jsx)(XUe, { flows: y.creator_flows }),
- /* @__PURE__ */ (0, B.jsx)(I8, {
+ /* @__PURE__ */ (0, B.jsx)(L8, {
label: "浏览器口味维度",
onSignal: t,
panels: [
@@ -75285,28 +75294,28 @@ function pWe(e) {
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: wM,
+ className: CM,
children: [
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 0,
icon: ET,
term: "Peach 看过",
figure: Number(b.peach_items || 0).toLocaleString(),
detail: vUe(b.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 1,
icon: pae,
term: "喜欢",
figure: Number(b.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 2,
icon: fae,
term: "不合口味",
figure: Number(b.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 3,
icon: AT,
term: "有标签",
@@ -75315,7 +75324,7 @@ function pWe(e) {
]
}),
/* @__PURE__ */ (0, B.jsxs)("section", {
- className: `${j8} md:flex-row md:gap-6`,
+ className: `${M8} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -75335,18 +75344,18 @@ function pWe(e) {
]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, B.jsx)(L8, {
+ children: [/* @__PURE__ */ (0, B.jsx)(R8, {
term: "有标签",
value: E,
rest: x.untagged || 0
- }), /* @__PURE__ */ (0, B.jsx)(L8, {
+ }), /* @__PURE__ */ (0, B.jsx)(R8, {
term: "有身份",
value: D,
rest: x.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, B.jsx)(I8, {
+ /* @__PURE__ */ (0, B.jsx)(L8, {
label: "Peach 口味维度",
onSignal: t,
panels: [
@@ -75398,7 +75407,7 @@ function pWe(e) {
})
] });
}
-function L8({ term: e, value: t, rest: n }) {
+function R8({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -75426,11 +75435,11 @@ function mWe(e, t, n) {
return;
}
let r = t.managePath(e);
- z8(r) ? n(r) : t.openManage(e);
+ B8(r) ? n(r) : t.openManage(e);
}
-var R8 = {
+var z8 = {
"/stats": {
- prefetch: (e, t) => rbe(t),
+ prefetch: (e, t) => ibe(t),
page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(UHe, {
tagLabel: ct,
onTag: t.openTag,
@@ -75450,8 +75459,8 @@ var R8 = {
})
},
"/review": {
- prefetch: (e, t) => Aj(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(kve, {
+ prefetch: (e, t) => kj(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Ave, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -75461,8 +75470,8 @@ var R8 = {
})
},
"/data-cleanup": {
- prefetch: (e, t) => sde(t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(mfe, {
+ prefetch: (e, t) => cde(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(hfe, {
failure: t.failure,
open: (e) => mWe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
@@ -75470,7 +75479,7 @@ var R8 = {
},
"/duplicates": {
prefetch: (e, t) => Lle(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(sme, {
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(cme, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
@@ -75478,7 +75487,7 @@ var R8 = {
},
"/quality-goals": {
prefetch: (e, t) => tue(t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(pve, {
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(mve, {
openItem: t.openItem,
javTitleHtml: st,
javDisplayName: ot,
@@ -75489,19 +75498,19 @@ var R8 = {
})
},
"/scraping": {
- prefetch: (e, t) => Ive(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Uve, { toast: (e) => t.toast(e) })
+ prefetch: (e, t) => Lve(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Wve, { toast: (e) => t.toast(e) })
},
"/configuration": {
- prefetch: (e, t) => SR(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(tbe, {
+ prefetch: (e, t) => xR(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(nbe, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial
})
},
"/diagnostics": {
- prefetch: (e, t) => cme(t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(fme, {
+ prefetch: (e, t) => lme(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(pme, {
navigate: n,
openItem: t.openItem,
receipt: (e) => t.receipt(e),
@@ -75515,8 +75524,8 @@ var R8 = {
page: (e) => /* @__PURE__ */ (0, B.jsx)(Gce, { ...e.prefill ? { prefill: e.prefill } : {} })
},
"/follow-manage": {
- prefetch: (e, t) => Wme(t, e.tab),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(m_e, {
+ prefetch: (e, t) => Gme(t, e.tab),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(h_e, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -75527,10 +75536,10 @@ var R8 = {
}
})
}
-}, z8 = (e) => Object.hasOwn(R8, e), B8 = {
+}, B8 = (e) => Object.hasOwn(z8, e), V8 = {
"/playlists": {
- prefetch: (e, t) => $_e(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(dve, {
+ prefetch: (e, t) => eve(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(fve, {
revision: e.revision,
openPlaylist: t.openPlaylist,
openEntity: t.openEntity,
@@ -75539,12 +75548,12 @@ var R8 = {
})
},
"/follow": {
- prefetch: (e, t) => Qme(e, t),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(She, { ...e })
+ prefetch: (e, t) => $me(e, t),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(Che, { ...e })
}
-}, V8 = (e) => Object.hasOwn(B8, e), H8 = {
- prefetch: (e, t) => Ffe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(A_e, {
+}, H8 = (e) => Object.hasOwn(V8, e), U8 = {
+ prefetch: (e, t) => Ife(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(j_e, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -75557,38 +75566,38 @@ var R8 = {
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
-}, U8 = {
- "/performers": H8,
- "/creators": H8,
- "/studios": H8,
- "/agencies": H8,
- "/tags": H8
}, W8 = {
- prefetch: (e) => wfe(e),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(Qpe, { ...e })
+ "/performers": U8,
+ "/creators": U8,
+ "/studios": U8,
+ "/agencies": U8,
+ "/tags": U8
}, G8 = {
- "/performers/*": W8,
- "/studios/*": W8,
- "/creators/*": W8,
- "/series/*": W8,
- "/agencies/*": W8
+ prefetch: (e) => Tfe(e),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)($pe, { ...e })
}, K8 = {
+ "/performers/*": G8,
+ "/studios/*": G8,
+ "/creators/*": G8,
+ "/series/*": G8,
+ "/agencies/*": G8
+}, q8 = {
"/": {
prefetch: (e, t) => Ore(e, t),
page: (e) => /* @__PURE__ */ (0, B.jsx)(UA, { ...e })
},
"/junk-files": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, B.jsx)(G_e, { ...e })
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(K_e, { ...e })
}
-}, q8 = (e) => Object.hasOwn(K8, e), hWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, B.jsx)(Z_e, { ...e }) : /* @__PURE__ */ (0, B.jsx)(BM, { ...e }), J8 = {
+}, J8 = (e) => Object.hasOwn(q8, e), hWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, B.jsx)(Q_e, { ...e }) : /* @__PURE__ */ (0, B.jsx)(zM, { ...e }), Y8 = {
"catalog-filter": {
prefetch: async () => {},
page: (e) => /* @__PURE__ */ (0, B.jsx)(ole, { ...e })
},
"feed-new": {
- prefetch: (e) => yfe(e),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(pme, { ...e })
+ prefetch: (e) => bfe(e),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(mme, { ...e })
},
"library-processing": {
prefetch: (e, t) => nj(t),
@@ -75596,9 +75605,9 @@ var R8 = {
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, B.jsx)(Jve, { ...e })
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(Yve, { ...e })
}
-}, Y8 = (e) => Object.hasOwn(J8, e), gWe = [
+}, X8 = (e) => Object.hasOwn(Y8, e), gWe = [
"/",
"/unseen",
"/watch-later",
@@ -75606,20 +75615,20 @@ var R8 = {
"/trash",
"/junk-files"
], _We = [
- ...Object.keys(R8),
- ...Object.keys(B8),
- ...Object.keys(U8),
- ...Object.keys(G8),
+ ...Object.keys(z8),
+ ...Object.keys(V8),
+ ...Object.keys(W8),
+ ...Object.keys(K8),
...gWe
-], X8 = (e) => z8(e) || V8(e) || Object.hasOwn(U8, e) || Object.hasOwn(G8, e) || q8(e) || Y8(e);
-function Z8(e) {
- return z8(e) ? R8[e] : V8(e) ? B8[e] : q8(e) ? K8[e] : Y8(e) ? J8[e] : Object.hasOwn(U8, e) ? U8[e] : G8[e];
+], Z8 = (e) => B8(e) || H8(e) || Object.hasOwn(W8, e) || Object.hasOwn(K8, e) || J8(e) || X8(e);
+function Q8(e) {
+ return B8(e) ? z8[e] : H8(e) ? V8[e] : J8(e) ? q8[e] : X8(e) ? Y8[e] : Object.hasOwn(W8, e) ? W8[e] : K8[e];
}
function vWe(e, t, n) {
- return X8(e) ? Z8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+ return Z8(e) ? Q8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
function yWe(e, t, n, r) {
- return Z8(e).page(t, n, r);
+ return Q8(e).page(t, n, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
@@ -75629,10 +75638,10 @@ function SWe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-function Q8(e, t) {
+function $8(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function $8(e, t) {
+function e5(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -75643,7 +75652,7 @@ function $8(e, t) {
function CWe({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
-function e5(e) {
+function t5(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -75659,17 +75668,17 @@ function wWe(e, t, n = "/") {
return TWe(e, t, n, !1);
}
function TWe(e, t, n, r, i) {
- let a = s5((typeof t == "string" ? e5(t) : t).pathname || "/", n);
+ let a = c5((typeof t == "string" ? t5(t) : t).pathname || "/", n);
if (a == null) return null;
let o = i ?? EWe(e), s = null, c = zWe(a);
for (let e = 0; s == null && e < o.length; ++e) s = RWe(o[e], c, r);
return s;
}
function EWe(e) {
- let t = t5(e);
+ let t = n5(e);
return DWe(t), t;
}
-function t5(e, t = [], n = [], r = "", i = !1) {
+function n5(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -75679,14 +75688,14 @@ function t5(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- Q8(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ $8(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = d5([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (Q8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), t5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
+ let l = f5([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && ($8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), n5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
path: l,
score: IWe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = o5(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = s5(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -75697,24 +75706,24 @@ function t5(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of n5(e.path)) a(e, t, !0, n);
+ else for (let n of r5(e.path)) a(e, t, !0, n);
}), t;
}
-function n5(e) {
+function r5(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = n5(r.join("/")), s = [];
+ let o = r5(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
function DWe(e) {
e.sort((e, t) => e.score === t.score ? LWe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var OWe = /^:[\w-]+$/, kWe = /^:[\w-]+/, AWe = 3.5, jWe = 3, MWe = 2, NWe = 1, PWe = 10, FWe = -2, r5 = (e) => e === "*";
+var OWe = /^:[\w-]+$/, kWe = /^:[\w-]+/, AWe = 3.5, jWe = 3, MWe = 2, NWe = 1, PWe = 10, FWe = -2, i5 = (e) => e === "*";
function IWe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(r5) && (r += FWe), t && (r += MWe), n.filter((e) => !r5(e)).reduce((e, t) => e + (OWe.test(t) ? jWe : kWe.test(t) ? AWe : t === "" ? NWe : PWe), r);
+ return n.some(i5) && (r += FWe), t && (r += MWe), n.filter((e) => !i5(e)).reduce((e, t) => e + (OWe.test(t) ? jWe : kWe.test(t) ? AWe : t === "" ? NWe : PWe), r);
}
function LWe(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
@@ -75726,39 +75735,39 @@ function RWe(e, t, n = !1) {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? a5(u, l, s.matcher, s.compiledParams) : i5(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = i5({
+ }, d = s.matcher && s.compiledParams ? o5(u, l, s.matcher, s.compiledParams) : a5(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = a5({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: d5([a, d.pathname]),
- pathnameBase: WWe(d5([a, d.pathnameBase])),
+ pathname: f5([a, d.pathname]),
+ pathnameBase: WWe(f5([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = d5([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = f5([a, d.pathnameBase]));
}
return o;
}
-function i5(e, t) {
+function a5(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = o5(e.path, e.caseSensitive, e.end);
- return a5(e, t, n, r);
+ let [n, r] = s5(e.path, e.caseSensitive, e.end);
+ return o5(e, t, n, r);
}
-function a5(e, t, n, r) {
+function o5(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = f5(a, 1), s = i.slice(1);
+ let a = i[0], o = p5(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = f5(a.slice(0, a.length - e.length), 1);
+ o = p5(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -75768,8 +75777,8 @@ function a5(e, t, n, r) {
pattern: e
};
}
-function o5(e, t = !1, n = !0) {
- $8(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function s5(e, t = !1, n = !0) {
+ e5(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -75786,30 +75795,30 @@ function zWe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return $8(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return e5(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function s5(e, t) {
+function c5(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
function BWe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? e5(e) : e, a;
- return n ? (n = u5(n), a = n.startsWith("/") || n.startsWith("\\") ? c5(n.substring(1), "/") : c5(n, t)) : a = t, {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? t5(e) : e, a;
+ return n ? (n = d5(n), a = n.startsWith("/") || n.startsWith("\\") ? l5(n.substring(1), "/") : l5(n, t)) : a = t, {
pathname: a,
search: GWe(r),
hash: KWe(i)
};
}
-function c5(e, t) {
- let n = f5(t).split("/");
+function l5(e, t) {
+ let n = p5(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function l5(e, t, n, r) {
+function u5(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
function VWe(e) {
@@ -75821,7 +75830,7 @@ function HWe(e) {
}
function UWe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = e5(e) : (i = { ...e }, Q8(!i.pathname || !i.pathname.includes("?"), l5("?", "pathname", "search", i)), Q8(!i.pathname || !i.pathname.includes("#"), l5("#", "pathname", "hash", i)), Q8(!i.search || !i.search.includes("#"), l5("#", "search", "hash", i)));
+ typeof e == "string" ? i = t5(e) : (i = { ...e }, $8(!i.pathname || !i.pathname.includes("?"), u5("?", "pathname", "search", i)), $8(!i.pathname || !i.pathname.includes("#"), u5("#", "pathname", "hash", i)), $8(!i.search || !i.search.includes("#"), u5("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -75836,13 +75845,13 @@ function UWe(e, t, n, r = !1) {
let c = BWe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var u5 = (e) => e.replace(/[\\/]{2,}/g, "/"), d5 = (e) => u5(e.join("/"));
-function f5(e, t = 0) {
+var d5 = (e) => e.replace(/[\\/]{2,}/g, "/"), f5 = (e) => d5(e.join("/"));
+function p5(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var WWe = (e) => f5(e).replace(/^\/*/, "/"), GWe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, KWe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, qWe = class {
+var WWe = (e) => p5(e).replace(/^\/*/, "/"), GWe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, KWe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, qWe = class {
status;
statusText;
data;
@@ -75856,9 +75865,9 @@ function JWe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
function YWe(e) {
- return d5(e.map((e) => e.route.path).filter(Boolean)) || "/";
+ return f5(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var p5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+var m5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
function XWe(e, t) {
let n = e;
if (typeof n != "string" || !bWe.test(n)) return {
@@ -75867,11 +75876,11 @@ function XWe(e, t) {
to: n
};
let r = n, i = !1;
- if (p5) try {
- let e = new URL(window.location.href), r = xWe.test(n) ? new URL(SWe(n, e.protocol)) : new URL(n), a = s5(r.pathname, t);
+ if (m5) try {
+ let e = new URL(window.location.href), r = xWe.test(n) ? new URL(SWe(n, e.protocol)) : new URL(n), a = c5(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- $8(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ e5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -75881,16 +75890,16 @@ function XWe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var m5 = new URL("http://localhost");
-function h5(e) {
+var h5 = new URL("http://localhost");
+function g5(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), m5);
+ return new URL(e.createHref("/"), h5);
} catch {
- return m5;
+ return h5;
}
}
-function g5(e, t) {
+function _5(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
function ZWe(e, t) {
@@ -75898,26 +75907,26 @@ function ZWe(e, t) {
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function _5(e, t, n, r) {
+function v5(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
- let a = new URL(t, n), o = i != null && !g5(i, n), s = !g5(a, n);
+ let a = new URL(t, n), o = i != null && !_5(i, n), s = !_5(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !ZWe(e, i) || !g5(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !ZWe(e, i) || !_5(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var v5 = [
+var y5 = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(v5);
-var QWe = ["GET", ...v5];
+new Set(y5);
+var QWe = ["GET", ...y5];
new Set(QWe);
var $We = [
"about:",
@@ -75940,12 +75949,12 @@ function eGe(e) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
-var y5 = R.createContext(null);
-y5.displayName = "DataRouter";
+var b5 = R.createContext(null);
+b5.displayName = "DataRouter";
var tGe = R.createContext(null);
tGe.displayName = "DataRouterState";
-var b5 = R.createContext(null);
-b5.displayName = "DataRouterData";
+var x5 = R.createContext(null);
+x5.displayName = "DataRouterData";
var nGe = R.createContext(null);
nGe.displayName = "DataRouterNavigation";
var rGe = R.createContext(!1), iGe = R.createContext({ isTransitioning: !1 });
@@ -75954,62 +75963,62 @@ var aGe = R.createContext(null);
aGe.displayName = "Fetchers";
var oGe = R.createContext(null);
oGe.displayName = "Await";
-var x5 = R.createContext(null);
-x5.displayName = "Navigation";
var S5 = R.createContext(null);
-S5.displayName = "Location";
-var C5 = R.createContext({
+S5.displayName = "Navigation";
+var C5 = R.createContext(null);
+C5.displayName = "Location";
+var w5 = R.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-C5.displayName = "Route";
-var w5 = R.createContext(!1);
-w5.displayName = "IsDataRoute";
-var T5 = R.createContext(void 0);
-T5.displayName = "RouteId";
-var E5 = R.createContext(null);
-E5.displayName = "RouteError";
+w5.displayName = "Route";
+var T5 = R.createContext(!1);
+T5.displayName = "IsDataRoute";
+var E5 = R.createContext(void 0);
+E5.displayName = "RouteId";
+var D5 = R.createContext(null);
+D5.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var D5 = "REACT_ROUTER_ERROR", sGe = "REDIRECT", cGe = "ROUTE_ERROR_RESPONSE";
+var O5 = "REACT_ROUTER_ERROR", sGe = "REDIRECT", cGe = "ROUTE_ERROR_RESPONSE";
function lGe(e) {
- if (e.startsWith(`${D5}:${sGe}:{`)) try {
+ if (e.startsWith(`${O5}:${sGe}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
function uGe(e) {
- if (e.startsWith(`${D5}:${cGe}:{`)) try {
+ if (e.startsWith(`${O5}:${cGe}:{`)) try {
let t = JSON.parse(e.slice(40));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new qWe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function O5() {
- return R.useContext(S5) != null;
-}
function k5() {
- return Q8(O5(), "useLocation() may be used only in the context of a <Router> component."), R.useContext(S5).location;
+ return R.useContext(C5) != null;
}
-var A5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function A5() {
+ return $8(k5(), "useLocation() may be used only in the context of a <Router> component."), R.useContext(C5).location;
+}
+var j5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
function dGe() {
- return R.useContext(w5) ? CGe() : fGe();
+ return R.useContext(T5) ? CGe() : fGe();
}
function fGe() {
- Q8(O5(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = R.useContext(y5), { basename: t, navigator: n } = R.useContext(x5), { matches: r } = R.useContext(C5), { pathname: i } = k5(), a = JSON.stringify(HWe(r)), o = R.useRef(!1);
+ $8(k5(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = R.useContext(b5), { basename: t, navigator: n } = R.useContext(S5), { matches: r } = R.useContext(w5), { pathname: i } = A5(), a = JSON.stringify(HWe(r)), o = R.useRef(!1);
return R.useLayoutEffect(() => {
o.current = !0;
}), R.useCallback((r, s = {}) => {
- if ($8(o.current, A5), !o.current) return;
+ if (e5(o.current, j5), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
let c = UWe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : d5([t, c.pathname])), _5(typeof r == "string" ? r : CWe(r), n.createHref(c), h5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : f5([t, c.pathname])), v5(typeof r == "string" ? r : CWe(r), n.createHref(c), g5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -76020,18 +76029,18 @@ function fGe() {
}
R.createContext(null);
function pGe(e, t) {
- return j5(e, t);
+ return M5(e, t);
}
-function j5(e, t, n) {
- Q8(O5(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = R.useContext(x5), { matches: i } = R.useContext(C5), a = i[i.length - 1], o = a ? a.params : {};
+function M5(e, t, n) {
+ $8(k5(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = R.useContext(S5), { matches: i } = R.useContext(w5), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = k5(), l;
+ let c = A5(), l;
if (t) {
- let e = typeof t == "string" ? e5(t) : t;
- Q8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? t5(t) : t;
+ $8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -76042,10 +76051,10 @@ function j5(e, t, n) {
f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : wWe(e, { pathname: d });
let p = yGe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: d5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : d5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: f5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : f5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ R.createElement(S5.Provider, { value: {
+ return t && p ? /* @__PURE__ */ R.createElement(C5.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -76097,27 +76106,27 @@ var hGe = /* @__PURE__ */ R.createElement(mGe, null), gGe = class extends R.Comp
let t = uGe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ R.createElement(C5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(w5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ R.createElement(T5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ R.createElement(E5.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ R.createElement(w5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(T5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ R.createElement(E5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ R.createElement(D5.Provider, {
value: e,
children: this.props.component
}))));
return this.context ? /* @__PURE__ */ R.createElement(_Ge, { error: e }, t) : t;
}
-}, M5 = /* @__PURE__ */ new WeakMap();
+}, N5 = /* @__PURE__ */ new WeakMap();
function _Ge({ children: e, error: t }) {
- let { basename: n, navigator: r } = R.useContext(x5);
+ let { basename: n, navigator: r } = R.useContext(S5);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
let e = lGe(t.digest);
if (e) {
- let i = M5.get(t);
+ let i = N5.get(t);
if (i) throw i;
let a = XWe(e.location, n), o = a.absoluteURL || a.to;
- if (_5(e.location, o, h5(r), "allow-explicit"), eGe(o)) throw Error("Invalid redirect location");
- if (p5 && !M5.get(t)) {
+ if (v5(e.location, o, g5(r), "allow-explicit"), eGe(o)) throw Error("Invalid redirect location");
+ if (m5 && !N5.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
- throw M5.set(t, n), n;
+ throw N5.set(t, n), n;
}
}
return /* @__PURE__ */ R.createElement("meta", {
@@ -76129,8 +76138,8 @@ function _Ge({ children: e, error: t }) {
return e;
}
function vGe({ routeContext: e, match: t, children: n }) {
- let r = R.useContext(y5);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ R.createElement(C5.Provider, { value: e }, /* @__PURE__ */ R.createElement(w5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ R.createElement(T5.Provider, { value: t.route.id }, n)));
+ let r = R.useContext(b5);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ R.createElement(w5.Provider, { value: e }, /* @__PURE__ */ R.createElement(T5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ R.createElement(E5.Provider, { value: t.route.id }, n)));
}
function yGe(e, t = [], n) {
let r = n?.state;
@@ -76143,7 +76152,7 @@ function yGe(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- Q8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ $8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -76197,44 +76206,44 @@ function yGe(e, t = [], n) {
}) : h();
}, null);
}
-function N5(e) {
+function P5(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
function bGe(e) {
- let t = R.useContext(y5);
- return Q8(t, N5(e)), t;
+ let t = R.useContext(b5);
+ return $8(t, P5(e)), t;
}
function xGe(e) {
- let t = R.useContext(b5);
- return Q8(t, N5(e)), t;
+ let t = R.useContext(x5);
+ return $8(t, P5(e)), t;
}
-function P5(e) {
- let t = R.useContext(T5);
- return Q8(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function F5(e) {
+ let t = R.useContext(E5);
+ return $8(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
function SGe() {
- let e = R.useContext(E5), t = xGe("useRouteError"), n = P5("useRouteError");
+ let e = R.useContext(D5), t = xGe("useRouteError"), n = F5("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
function CGe() {
- let { router: e } = bGe("useNavigate"), t = P5("useNavigate"), n = R.useRef(!1);
+ let { router: e } = bGe("useNavigate"), t = F5("useNavigate"), n = R.useRef(!1);
return R.useLayoutEffect(() => {
n.current = !0;
}), R.useCallback(async (r, i = {}) => {
- $8(n.current, A5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ e5(n.current, j5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var F5 = {};
+var I5 = {};
function wGe(e, t, n) {
- !t && !F5[e] && (F5[e] = !0, $8(!1, n));
+ !t && !I5[e] && (I5[e] = !0, e5(!1, n));
}
R.memo(TGe);
function TGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = R.useContext(y5);
- return Q8(a, "You must render this element inside a <DataRouterContext.Provider> element"), j5(e, void 0, {
+ let a = R.useContext(b5);
+ return $8(a, "You must render this element inside a <DataRouterContext.Provider> element"), M5(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -76242,11 +76251,11 @@ function TGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function I5(e) {
- Q8(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+function L5(e) {
+ $8(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
function EGe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- Q8(!O5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+ $8(!k5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = R.useMemo(() => ({
basename: s,
navigator: i,
@@ -76259,9 +76268,9 @@ function EGe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = e5(n));
+ typeof n == "string" && (n = t5(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = R.useMemo(() => {
- let e = s5(l, s);
+ let e = c5(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -76283,27 +76292,27 @@ function EGe({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return $8(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ R.createElement(x5.Provider, { value: c }, /* @__PURE__ */ R.createElement(S5.Provider, {
+ return e5(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ R.createElement(S5.Provider, { value: c }, /* @__PURE__ */ R.createElement(C5.Provider, {
children: t,
value: h
}));
}
-function L5({ children: e, location: t }) {
- return pGe(R5(e), t);
+function R5({ children: e, location: t }) {
+ return pGe(z5(e), t);
}
R.Component;
-function R5(e, t = []) {
+function z5(e, t = []) {
let n = [];
return R.Children.forEach(e, (e, r) => {
if (!R.isValidElement(e)) return;
let i = [...t, r];
if (e.type === R.Fragment) {
- n.push.apply(n, R5(e.props.children, i));
+ n.push.apply(n, z5(e.props.children, i));
return;
}
- Q8(e.type === I5, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ $8(e.type === L5, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- Q8(!a.index || !a.children, "An index route cannot have child routes.");
+ $8(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -76322,15 +76331,15 @@ function R5(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = R5(a.children, i)), n.push(o);
+ a.children && (o.children = z5(a.children, i)), n.push(o);
}), n;
}
//#endregion
//#region src/react/router/router.tsx
-var z5 = (0, R.createContext)(0), B5 = (0, R.createContext)(null);
+var B5 = (0, R.createContext)(0), V5 = (0, R.createContext)(null);
function DGe({ children: e }) {
let [t, n] = (0, R.useState)(() => mt.navigation);
- return (0, R.useLayoutEffect)(() => (n(mt.navigation), mt.listen(n)), []), /* @__PURE__ */ (0, B.jsx)(z5.Provider, {
+ return (0, R.useLayoutEffect)(() => (n(mt.navigation), mt.listen(n)), []), /* @__PURE__ */ (0, B.jsx)(B5.Provider, {
value: t.seq,
children: /* @__PURE__ */ (0, B.jsx)(EGe, {
location: t.location,
@@ -76341,7 +76350,7 @@ function DGe({ children: e }) {
});
}
function OGe() {
- let e = (0, R.useContext)(z5);
+ let e = (0, R.useContext)(B5);
return (0, R.useLayoutEffect)(() => {
queueMicrotask(() => ht(e));
}, [e]), null;
@@ -76354,14 +76363,14 @@ function kGe({ target: e }) {
}
function AGe(e, t, n) {
let r = new URL(e, window.location.href);
- if (!z8(r.pathname)) {
+ if (!B8(r.pathname)) {
t.navigate(e);
return;
}
n(`${r.pathname}${r.search}${r.hash}`);
}
function jGe() {
- let e = (0, R.useContext)(B5), [t, n] = (0, R.useState)(pt), r = (0, R.useRef)(null);
+ let e = (0, R.useContext)(V5), [t, n] = (0, R.useState)(pt), r = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => (n(pt()), ft((e, t) => {
t ? (0, rp.flushSync)(() => n(e)) : n(e);
})), []);
@@ -76389,36 +76398,36 @@ var MGe = class extends R.Component {
return this.state.failed ? null : this.props.children;
}
}, NGe = (0, R.memo)(function({ entry: e, actions: t, go: n }) {
- return X8(e.path) ? (0, rp.createPortal)(yWe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+ return Z8(e.path) ? (0, rp.createPortal)(yWe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
function PGe({ children: e }) {
- let t = k5(), n = ut(t.state);
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(L5, {
+ let t = A5(), n = ut(t.state);
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(R5, {
location: n ?? t,
children: [
- _We.map((e) => /* @__PURE__ */ (0, B.jsx)(I5, {
+ _We.map((e) => /* @__PURE__ */ (0, B.jsx)(L5, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, B.jsx)(I5, {
+ /* @__PURE__ */ (0, B.jsx)(L5, {
path: "/resource-sync",
element: null
}),
- /* @__PURE__ */ (0, B.jsx)(I5, {
+ /* @__PURE__ */ (0, B.jsx)(L5, {
path: "*",
element: e
})
]
- }), /* @__PURE__ */ (0, B.jsxs)(L5, { children: [lt.map((e) => /* @__PURE__ */ (0, B.jsx)(I5, {
+ }), /* @__PURE__ */ (0, B.jsxs)(R5, { children: [lt.map((e) => /* @__PURE__ */ (0, B.jsx)(L5, {
path: e,
element: null
- }, e)), /* @__PURE__ */ (0, B.jsx)(I5, {
+ }, e)), /* @__PURE__ */ (0, B.jsx)(L5, {
path: "*",
element: null
})] })] });
}
function FGe({ children: e, actions: t = null }) {
- return /* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(B5.Provider, {
+ return /* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(V5.Provider, {
value: t,
children: /* @__PURE__ */ (0, B.jsxs)(DGe, { children: [
/* @__PURE__ */ (0, B.jsx)(OGe, {}),
@@ -76429,16 +76438,16 @@ function FGe({ children: e, actions: t = null }) {
}
var IGe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, V5 = null;
+} }, H5 = null;
function LGe(e) {
- if (V5) return;
- V5 = (0, ip.createRoot)(document.createElement("div"), IGe);
- let t = V5;
+ if (H5) return;
+ H5 = (0, ip.createRoot)(document.createElement("div"), IGe);
+ let t = H5;
(0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(FGe, { actions: e })));
}
//#endregion
//#region src/number-setting.ts
-function H5(e, t, n, r) {
+function U5(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
@@ -76448,9 +76457,9 @@ var RGe = (e) => {
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
function zGe({ openConfiguration: e }) {
- let t = wS({
- queryKey: bR,
- queryFn: ({ signal: e }) => xR(e)
+ let t = TS({
+ queryKey: yR,
+ queryFn: ({ signal: e }) => bR(e)
}), n = t.data;
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col",
@@ -76482,16 +76491,16 @@ function zGe({ openConfiguration: e }) {
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
-var U5 = (e) => e.map(([e, t, n]) => n ? [
+var W5 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function W5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function G5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(l);
return f.current = l, (0, R.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Re(t, n, U5(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Re(t, n, W5(r), i, {
attr: a,
className: o,
text: s
@@ -76509,13 +76518,13 @@ function W5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function G5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function K5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(-1), m = (0, R.useRef)(l);
return m.current = l, (0, R.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = Je(U5(n), r, { label: t });
+ e.innerHTML = Je(W5(n), r, { label: t });
let i = at(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -76687,7 +76696,7 @@ function UGe({ host: e }) {
children: T(t.preset)
})]
}),
- /* @__PURE__ */ (0, B.jsx)(LS, {
+ /* @__PURE__ */ (0, B.jsx)(RS, {
store: e.store,
label: "光晕配色"
}),
@@ -76786,10 +76795,10 @@ var WGe = {
optional: !0,
fallback: 60
}
-}, K5 = (e) => `peach.number.${e}`;
-function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+}, q5 = (e) => `peach.number.${e}`;
+function J5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
let a = WGe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
- d.current ||= H5(Number(localStorage.getItem(K5(e))), o, s, n && n > 0 ? n : l);
+ d.current ||= U5(Number(localStorage.getItem(q5(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, R.useState)(n ?? 0), [m, h] = (0, R.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, R.useState)(""), v = (0, R.useRef)(null), y = (0, R.useRef)(i);
y.current = i, (0, R.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -76801,7 +76810,7 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`);
return;
}
- t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(K5(e), String(d.current)), y.current(d.current);
+ t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(q5(e), String(d.current)), y.current(d.current);
}
}, x = (0, R.useRef)(b);
x.current = b, (0, R.useEffect)(() => {
@@ -76816,7 +76825,7 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
p(d.current), h(String(d.current)), y.current(d.current);
return;
}
- t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(K5(e), String(d.current)), p(0), y.current(0);
+ t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(q5(e), String(d.current)), p(0), y.current(0);
}, w = r || n === null;
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-number-setting": "",
@@ -76866,13 +76875,13 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
-function J5(e) {
- let { mutate: t } = Zj();
+function Y5(e) {
+ let { mutate: t } = Xj();
return (0, R.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function Y5(e, t, n, r) {
+function X5(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -76882,17 +76891,17 @@ function Y5(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var GGe = "__home__", X5 = (e) => e === "" ? GGe : e;
+var GGe = "__home__", Z5 = (e) => e === "" ? GGe : e;
function KGe({ host: e }) {
- let t = J5(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (e, r, i) => {
- let a = Y5(n, e, r, i);
+ let t = Y5(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (e, r, i) => {
+ let a = X5(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => X5(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => Z5(e) === o) ?? a[0], y = () => {
h.current && Ne(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -76913,7 +76922,7 @@ function KGe({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", X5(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", Z5(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -76987,7 +76996,7 @@ function KGe({ host: e }) {
})
]
})]
- }, X5(e))), /* @__PURE__ */ (0, B.jsxs)("div", {
+ }, Z5(e))), /* @__PURE__ */ (0, B.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -77020,15 +77029,15 @@ function KGe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": X5(e),
+ "data-sidebar-add-option": Z5(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(X5(e)), y(), m.current?.focus();
+ s(Z5(e)), y(), m.current?.focus();
},
children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: n ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: t })]
- }, X5(e)))
+ }, Z5(e)))
}) : null]
}), /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -77045,7 +77054,7 @@ function KGe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var Z5 = [
+var Q5 = [
["界面", "ri-palette-line"],
["浏览", "ri-layout-grid-line"],
["播放", "ri-play-circle-line"],
@@ -77104,81 +77113,81 @@ var Z5 = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], $Ge = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", Q5 = null, $5 = null, e7 = null, t7 = {
+], $Ge = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", $5 = null, e7 = null, t7 = null, n7 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
-}, n7 = 0, r7 = null;
+}, r7 = 0, i7 = null;
function eKe() {
- return (!$5 || !e7?.isConnected) && ($5?.unmount(), e7 = document.createElement("div"), e7.dataset.settingsHost = "", document.body.append(e7), $5 = (0, ip.createRoot)(e7)), $5;
+ return (!e7 || !t7?.isConnected) && (e7?.unmount(), t7 = document.createElement("div"), t7.dataset.settingsHost = "", document.body.append(t7), e7 = (0, ip.createRoot)(t7)), e7;
}
-function i7() {
- let e = Q5;
- e && (0, rp.flushSync)(() => eKe().render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(oKe, {
+function a7() {
+ let e = $5;
+ e && (0, rp.flushSync)(() => eKe().render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(sKe, {
host: e,
- view: t7
+ view: n7
}) })));
}
-function a7(e) {
- t7 = {
- ...t7,
+function o7(e) {
+ n7 = {
+ ...n7,
...e
- }, i7();
+ }, a7();
}
async function tKe(e) {
- if (t7.machine === "summary") return;
+ if (n7.machine === "summary") return;
let t = await e.configurable();
- if (t7.open) {
+ if (n7.open) {
if (!t) {
- a7({ machine: "note" });
+ o7({ machine: "note" });
return;
}
try {
- await SR(new AbortController().signal);
+ await xR(new AbortController().signal);
} catch {}
- t7.open && a7({ machine: "summary" });
+ n7.open && o7({ machine: "summary" });
}
}
function nKe(e = "") {
- let t = Q5;
+ let t = $5;
if (!t) return;
- Ae(), n7 += 1, r7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = Z5.findIndex(([t]) => t === e), r = kue();
- a7({
+ Ae(), r7 += 1, i7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let n = Q5.findIndex(([t]) => t === e), r = Aue();
+ o7({
open: !0,
closing: !1,
- epoch: t7.epoch + 1,
- tab: n >= 0 ? n : t7.tab
+ epoch: n7.epoch + 1,
+ tab: n >= 0 ? n : n7.tab
}), r.then((e) => {
e && t.syncRemote(e);
}), tKe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function o7() {
- if (!t7.open || t7.closing) return;
- let e = ++n7;
- a7({ closing: !0 });
+function s7() {
+ if (!n7.open || n7.closing) return;
+ let e = ++r7;
+ o7({ closing: !0 });
let t = () => {
- e !== n7 || !t7.closing || (a7({
+ e !== r7 || !n7.closing || (o7({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), r7 instanceof HTMLElement && document.contains(r7) && r7.focus(), r7 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), i7 instanceof HTMLElement && document.contains(i7) && i7.focus(), i7 = null);
};
if (matchMedia("(prefers-reduced-motion: reduce)").matches) {
queueMicrotask(t);
return;
}
- e7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
+ t7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
var rKe = {
open: nKe,
- close: o7,
- isOpen: () => t7.open,
+ close: s7,
+ isOpen: () => n7.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
function iKe(e) {
- return Q5 = e, i7(), rKe;
+ return $5 = e, a7(), rKe;
}
function aKe(e) {
if (e.key !== "Tab") return;
@@ -77187,8 +77196,8 @@ function aKe(e) {
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
-var s7 = (e) => `settings-tab-${e}`, c7 = (e) => e === Z5.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function l7({ tab: e, epoch: t, onSelect: n }) {
+var c7 = (e) => `settings-tab-${e}`, l7 = (e) => e === Q5.length - 1 ? "machineGroup" : `settings-group-${e}`;
+function oKe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(e), s = (0, R.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -77216,7 +77225,7 @@ function l7({ tab: e, epoch: t, onSelect: n }) {
o.current = e, l.current(s.current[e], t);
}, [e, t]);
let u = (e, t) => {
- let r = Z5.length, i = t;
+ let r = Q5.length, i = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") i = (t + 1) % r;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") i = (t + r - 1) % r;
else if (e.key === "Home") i = 0;
@@ -77245,11 +77254,11 @@ function l7({ tab: e, epoch: t, onSelect: n }) {
role: "presentation",
children: "设置"
}),
- Z5.map(([t, r], i) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ Q5.map(([t, r], i) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
role: "tab",
- id: s7(i),
- "aria-controls": c7(i),
+ id: c7(i),
+ "aria-controls": l7(i),
"aria-selected": i === e,
tabIndex: i === e ? 0 : -1,
ref: (e) => {
@@ -77268,11 +77277,11 @@ function l7({ tab: e, epoch: t, onSelect: n }) {
function u7({ index: e, tab: t, children: n }) {
return /* @__PURE__ */ (0, B.jsxs)("section", {
"data-setting-group": "",
- id: c7(e),
+ id: l7(e),
role: "tabpanel",
- "aria-labelledby": s7(e),
+ "aria-labelledby": c7(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, B.jsx)("h3", { children: Z5[e][0] }), n]
+ children: [/* @__PURE__ */ (0, B.jsx)("h3", { children: Q5[e][0] }), n]
});
}
function d7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
@@ -77304,7 +77313,7 @@ var p7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, B.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
}), m7 = () => `${Qe("保存中")}<span>正在保存…</span>`, h7 = (e, t) => e instanceof Error && e.message || t;
-function oKe({ host: e, view: t }) {
+function sKe({ host: e, view: t }) {
(0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -77325,7 +77334,7 @@ function oKe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (e) => {
- e !== t7.tab && a7({ tab: e });
+ e !== n7.tab && o7({ tab: e });
}, p = () => e.store.save();
return /* @__PURE__ */ (0, B.jsx)("section", {
"data-settings-panel": "",
@@ -77338,7 +77347,7 @@ function oKe({ host: e, view: t }) {
ref: r,
onKeyDown: aKe,
onClick: (e) => {
- e.target === e.currentTarget && o7();
+ e.target === e.currentTarget && s7();
},
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-settings-card": "",
@@ -77349,19 +77358,19 @@ function oKe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, B.jsx)("h2", {
id: "settingsTitle",
- children: Z5[t.tab][0]
+ children: Q5[t.tab][0]
}), /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
id: "settingsClose",
"aria-label": "关闭设置",
- onClick: o7,
+ onClick: s7,
children: /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-x" })
})
})]
}),
- /* @__PURE__ */ (0, B.jsx)(l7, {
+ /* @__PURE__ */ (0, B.jsx)(oKe, {
tab: t.tab,
epoch: d,
onSelect: f
@@ -77377,7 +77386,7 @@ function oKe({ host: e, view: t }) {
/* @__PURE__ */ (0, B.jsx)(f7, {
title: "主题",
description: "跟随系统,或固定用浅色、深色。",
- children: /* @__PURE__ */ (0, B.jsx)(W5, {
+ children: /* @__PURE__ */ (0, B.jsx)(G5, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -77434,12 +77443,12 @@ function oKe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(cKe, {
+ /* @__PURE__ */ (0, B.jsx)(lKe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, B.jsx)(uKe, {
+ /* @__PURE__ */ (0, B.jsx)(dKe, {
host: e,
tab: t.tab,
epoch: d
@@ -77447,12 +77456,12 @@ function oKe({ host: e, view: t }) {
/* @__PURE__ */ (0, B.jsx)(u7, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, B.jsx)(fKe, {
+ children: /* @__PURE__ */ (0, B.jsx)(pKe, {
host: e,
epoch: d
})
}),
- /* @__PURE__ */ (0, B.jsx)(pKe, {
+ /* @__PURE__ */ (0, B.jsx)(mKe, {
host: e,
tab: t.tab,
epoch: d
@@ -77472,7 +77481,7 @@ function oKe({ host: e, view: t }) {
/* @__PURE__ */ (0, B.jsx)(u7, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, B.jsx)(hKe, {
+ children: /* @__PURE__ */ (0, B.jsx)(gKe, {
host: e,
machine: t.machine
})
@@ -77483,7 +77492,7 @@ function oKe({ host: e, view: t }) {
})
});
}
-function sKe(e, t) {
+function cKe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Le("arrow-up", "arrow-down", "a", {
@@ -77493,7 +77502,7 @@ function sKe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function cKe({ host: e, tab: t, epoch: n }) {
+function lKe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
return /* @__PURE__ */ (0, B.jsxs)(u7, {
index: 1,
@@ -77504,7 +77513,7 @@ function cKe({ host: e, tab: t, epoch: n }) {
description: "首页每次加载的作品数量。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -77523,7 +77532,7 @@ function cKe({ host: e, tab: t, epoch: n }) {
}),
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, B.jsx)(G5, {
+ children: [/* @__PURE__ */ (0, B.jsx)(K5, {
id: "defaultSortSetting",
label: "默认排序",
options: qGe,
@@ -77532,7 +77541,7 @@ function cKe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, B.jsx)(G5, {
+ }), /* @__PURE__ */ (0, B.jsx)(K5, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
options: JGe,
@@ -77544,7 +77553,7 @@ function cKe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => sKe(e, o)
+ decorate: (e) => cKe(e, o)
})]
})
}),
@@ -77564,7 +77573,7 @@ function cKe({ host: e, tab: t, epoch: n }) {
/* @__PURE__ */ (0, B.jsx)(f7, {
title: "JAV 默认封面",
description: "首页、接着看和 Mix 等位置共用;缺图时使用另一种封面。",
- children: /* @__PURE__ */ (0, B.jsx)(W5, {
+ children: /* @__PURE__ */ (0, B.jsx)(G5, {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
@@ -77583,7 +77592,7 @@ function cKe({ host: e, tab: t, epoch: n }) {
title: "视频封面默认大小",
kind: "related",
description: "首页和 JAV 等视频列表共用;小图展示完整封套,大图展示完整正封。",
- children: /* @__PURE__ */ (0, B.jsx)(W5, {
+ children: /* @__PURE__ */ (0, B.jsx)(G5, {
id: "javSizeSetting",
name: "video-size",
legend: "视频封面默认大小",
@@ -77605,7 +77614,7 @@ function cKe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- QGe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, B.jsx)(lKe, {
+ QGe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, B.jsx)(uKe, {
host: e,
id: t,
settingKey: n,
@@ -77617,8 +77626,8 @@ function cKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function lKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = Zj(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
+function uKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+ let s = Xj(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
l(t), Ye(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -77646,7 +77655,7 @@ function lKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function uKe({ host: e, tab: t, epoch: n }) {
+function dKe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, B.jsxs)(u7, {
index: 2,
@@ -77657,12 +77666,12 @@ function uKe({ host: e, tab: t, epoch: n }) {
description: "转圈完成后进入放大预览。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "hoverDelaySetting",
label: "悬停放大",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = H5(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = U5(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -77690,7 +77699,7 @@ function uKe({ host: e, tab: t, epoch: n }) {
description: "卡片预览和详情播放器共用。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: r.seekSeconds,
@@ -77700,13 +77709,13 @@ function uKe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, B.jsx)(dKe, { epoch: n }),
+ /* @__PURE__ */ (0, B.jsx)(fKe, { epoch: n }),
/* @__PURE__ */ (0, B.jsx)(f7, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "relatedLimitSetting",
label: "相关推荐",
value: r.relatedLimit,
@@ -77719,15 +77728,15 @@ function uKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function dKe({ epoch: e }) {
- let t = wS({
- queryKey: Jj,
- queryFn: ({ signal: e }) => Xj(e)
- }), n = jue(), r = n.reset;
+function fKe({ epoch: e }) {
+ let t = TS({
+ queryKey: qj,
+ queryFn: ({ signal: e }) => Yj(e)
+ }), n = Mue(), r = n.reset;
(0, R.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data?.mode || "off", a = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : t.data ? g7(Nue(t.data)) : "读取运行状态…";
+ let i = t.data?.mode || "off", a = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : t.data ? g7(Pue(t.data)) : "读取运行状态…";
return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "视频缩略图采集",
description: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, B.jsx)(p7, {
@@ -77735,7 +77744,7 @@ function dKe({ epoch: e }) {
"aria-live": "polite",
html: a
})] }),
- children: /* @__PURE__ */ (0, B.jsx)(G5, {
+ children: /* @__PURE__ */ (0, B.jsx)(K5, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
options: YGe,
@@ -77746,26 +77755,26 @@ function dKe({ epoch: e }) {
})
});
}
-function fKe({ host: e, epoch: t }) {
- let n = e.store.value, r = Zj();
+function pKe({ host: e, epoch: t }) {
+ let n = e.store.value, r = Xj();
return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = H5(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = U5(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
-function pKe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = Zj(), a = Zj(), [o, s] = (0, R.useState)("");
+function mKe({ host: e, tab: t, epoch: n }) {
+ let r = e.store.value, i = Xj(), a = Xj(), [o, s] = (0, R.useState)("");
(0, R.useEffect)(() => {
s("");
}, [n]);
@@ -77790,7 +77799,7 @@ function pKe({ host: e, tab: t, epoch: n }) {
"aria-live": "polite",
children: o
})] }),
- children: /* @__PURE__ */ (0, B.jsx)(G5, {
+ children: /* @__PURE__ */ (0, B.jsx)(K5, {
id: "followInitialDaysSetting",
label: "首次采集历史范围",
options: e.followInitialRanges,
@@ -77800,11 +77809,11 @@ function pKe({ host: e, tab: t, epoch: n }) {
onPick: (e) => c(Number(e))
})
}),
- /* @__PURE__ */ (0, B.jsx)(mKe, { epoch: n }),
+ /* @__PURE__ */ (0, B.jsx)(hKe, { epoch: n }),
/* @__PURE__ */ (0, B.jsx)(f7, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
- children: /* @__PURE__ */ (0, B.jsx)(G5, {
+ children: /* @__PURE__ */ (0, B.jsx)(K5, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
options: XGe,
@@ -77819,15 +77828,15 @@ function pKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function mKe({ epoch: e }) {
- let t = wS({
- queryKey: qj,
- queryFn: ({ signal: e }) => Yj(e)
- }), n = Aue(), r = n.reset;
+function hKe({ epoch: e }) {
+ let t = TS({
+ queryKey: Kj,
+ queryFn: ({ signal: e }) => Jj(e)
+ }), n = jue(), r = n.reset;
(0, R.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : i ? g7(Mue(i)) : "读取运行状态…";
+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : i ? g7(Nue(i)) : "读取运行状态…";
return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "关注自动更新",
description: /* @__PURE__ */ (0, B.jsx)(p7, {
@@ -77837,7 +77846,7 @@ function mKe({ epoch: e }) {
}),
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "followScheduleSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "followScheduleSetting",
label: "关注自动更新",
value: i && !a ? i.enabled ? i.interval_minutes : 0 : null,
@@ -77847,13 +77856,13 @@ function mKe({ epoch: e }) {
})
});
}
-function hKe({ host: e, machine: t }) {
+function gKe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, B.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, B.jsx)("div", {
className: "peach-react",
children: /* @__PURE__ */ (0, B.jsx)(zGe, { openConfiguration: () => {
- o7(), e.openConfiguration();
+ s7(), e.openConfiguration();
} })
})
}, "summary") : t === "note" ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -77866,7 +77875,7 @@ function g7(e) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var _7 = "__home__", gKe = {
+var _7 = "__home__", _Ke = {
creator: 26,
tag: 30,
tech: 16
@@ -77879,13 +77888,13 @@ function C7() {
let e = y7;
if (!e || !b7) return;
let t = x7, n = S7;
- (0, rp.flushSync)(() => b7.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(yKe, {
+ (0, rp.flushSync)(() => b7.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(bKe, {
host: e,
props: t,
epoch: n
}) })));
}
-var _Ke = {
+var vKe = {
render(e) {
x7 = e, C7();
},
@@ -77893,23 +77902,23 @@ var _Ke = {
S7 += 1, C7();
}
};
-function vKe(e) {
+function yKe(e) {
return y7 = e, x7 = {
content: null,
filters: {},
latest: null
- }, e.scroll.replaceChildren(), b7 = (0, ip.createRoot)(e.scroll), C7(), e.attached(), _Ke;
+ }, e.scroll.replaceChildren(), b7 = (0, ip.createRoot)(e.scroll), C7(), e.attached(), vKe;
}
-function yKe({ host: e, props: t, epoch: n }) {
+function bKe({ host: e, props: t, epoch: n }) {
let r = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, B.jsx)(bKe, {
+ /* @__PURE__ */ (0, B.jsx)(xKe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, B.jsx)(SKe, {
+ t.content ? /* @__PURE__ */ (0, B.jsx)(CKe, {
host: e,
content: t.content,
filters: t.filters,
@@ -77917,8 +77926,8 @@ function yKe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function bKe({ host: e, epoch: t, version: n }) {
- let r = J5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = mA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function xKe({ host: e, epoch: t, version: n }) {
+ let r = Y5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = mA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, R.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@ -77951,7 +77960,7 @@ function bKe({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : Y5(i, n, e, a);
+ let o = n === null ? null : X5(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -77983,7 +77992,7 @@ function bKe({ host: e, epoch: t, version: n }) {
}), v) : null] });
}
var w7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function xKe(e) {
+function SKe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -77996,7 +78005,7 @@ function xKe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function SKe({ host: e, content: t, filters: n, latest: r }) {
+function CKe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}`;
(0, R.useLayoutEffect)(() => {
t.kind === "catalog" && Ue(e.scroll, "drawer");
@@ -78005,8 +78014,8 @@ function SKe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? CKe(e, t.facets, n, r, i) : [wKe(e, t.tags, new Set(t.selected))], o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, B.jsx)(TKe, {
+ let a = t.kind === "catalog" ? wKe(e, t.facets, n, r, i) : [TKe(e, t.tags, new Set(t.selected))], o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, B.jsx)(EKe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -78015,8 +78024,8 @@ function SKe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function CKe(e, t, n, r, i) {
- let a = xKe(r), o = (t, r, i) => {
+function wKe(e, t, n, r, i) {
+ let a = SKe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = w7(n, r);
return /* @__PURE__ */ (0, B.jsx)(D7, {
@@ -78041,12 +78050,12 @@ function CKe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, B.jsx)(DKe, {
+ body: /* @__PURE__ */ (0, B.jsx)(OKe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: gKe[d],
+ limit: _Ke[d],
filterKey: l,
selected: f,
counts: a,
@@ -78061,7 +78070,7 @@ function CKe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, B.jsx)(OKe, {
+ body: /* @__PURE__ */ (0, B.jsx)(kKe, {
host: e,
filters: n
})
@@ -78084,7 +78093,7 @@ function CKe(e, t, n, r, i) {
} : null
];
}
-function wKe(e, t, n) {
+function TKe(e, t, n) {
return t.length ? {
title: "内容标签",
kind: "online",
@@ -78104,7 +78113,7 @@ function T7(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function TKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function EKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(() => T7(e, n)), u = (0, R.useRef)(!1);
(0, R.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -78151,7 +78160,7 @@ function TKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var E7 = (0, R.createContext)(() => {});
-function EKe({ dot: e }) {
+function DKe({ dot: e }) {
return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, B.jsx)(lT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, B.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
@@ -78175,7 +78184,7 @@ function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
title: e.offline,
onClick: () => a.toggleChip(t, e.value, n),
children: [
- /* @__PURE__ */ (0, B.jsx)(EKe, { dot: e.dot }),
+ /* @__PURE__ */ (0, B.jsx)(DKe, { dot: e.dot }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -78190,7 +78199,7 @@ function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
})
});
}
-function DKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function OKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, R.useContext)(E7), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(e);
p !== e && (m(e), f(null));
let h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -78256,7 +78265,7 @@ function O7({ rows: e, host: t, selected: n, badges: r }) {
});
}
var k7 = (e, t) => e ? Math.min(v7, Number(e) / 60) : t;
-function OKe({ host: e, filters: t }) {
+function kKe({ host: e, filters: t }) {
let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, R.useState)(n), [a, o] = (0, R.useState)(() => [k7(t.dur_min, 0), k7(t.dur_max, v7)]), [s, c] = (0, R.useState)("max");
r !== n && (i(n), o([k7(t.dur_min, 0), k7(t.dur_max, v7)]));
let [l, u] = a, d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(a);
@@ -78326,17 +78335,17 @@ function OKe({ host: e, filters: t }) {
}
//#endregion
//#region src/board-skeleton.ts
-var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, kKe = () => `${A7("80%")}${A7("48%")}`, AKe = (e, t) => e.repeat(t);
-function jKe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${AKe(kKe(), 4)}</div></aside></div>`;
+var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, AKe = () => `${A7("80%")}${A7("48%")}`, jKe = (e, t) => e.repeat(t);
+function MKe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${jKe(AKe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var j7 = (e) => ["follow-item", e], MKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, NKe = "/api/follow/save", PKe = "/api/follow/media/hide";
+var j7 = (e) => ["follow-item", e], NKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, PKe = "/api/follow/save", FKe = "/api/follow/media/hide";
async function M7(e, t) {
- let n = await W(MKe(e), t);
+ let n = await W(NKe(e), t);
for (let t of n.groups || []) {
- let r = IF(t).find((t) => t.id === e);
+ let r = FF(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -78346,10 +78355,10 @@ async function M7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function FKe(e, t) {
- let n = j7(e.id), r = $me(e.id), i = p.getQueryData(MF) ? null : p.fetchQuery({
- queryKey: MF,
- queryFn: () => NF(t)
+async function IKe(e, t) {
+ let n = j7(e.id), r = ehe(e.id), i = p.getQueryData(jF) ? null : p.fetchQuery({
+ queryKey: jF,
+ queryFn: () => MF(t)
});
r ? p.setQueryData(n, {
...r,
@@ -78359,8 +78368,8 @@ async function FKe(e, t) {
queryFn: () => M7(e.id, t)
}), await i;
}
-function IKe(e, t, n, r) {
- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && VF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+function LKe(e, t, n, r) {
+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && BF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
selected: s,
@@ -78374,32 +78383,32 @@ function IKe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var LKe = (e) => IF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), RKe = {
+var RKe = (e) => FF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), zKe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, zKe = {
+}, BKe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function BKe(e) {
+function VKe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return RKe[t] || t;
+ return zKe[t] || t;
} catch {
return "外部文件页";
}
}
function N7(e, t) {
- return zKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return BKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function VKe(e, t, n = "") {
+function HKe(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -78408,16 +78417,16 @@ function VKe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var HKe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", UKe = /* @__PURE__ */ new Set([
+var UKe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", WKe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function WKe(e, t) {
+function GKe(e, t) {
let n = P7(e, t);
- return `r34-${UKe.has(n) ? n : "general"}`;
+ return `r34-${WKe.has(n) ? n : "general"}`;
}
var F7 = [
"copyright",
@@ -78426,23 +78435,23 @@ var F7 = [
"general",
"metadata"
];
-function GKe(e, t) {
+function KKe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = F7.indexOf(P7(e, t));
return n < 0 ? F7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function KKe(e, t) {
+function qKe(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var qKe = (e, t) => ({
+var JKe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), I7 = (e) => e?.size ? { size: e.size } : {};
-function JKe(e, t) {
+function YKe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t, r) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -78469,7 +78478,7 @@ function JKe(e, t) {
total: 1
}] : [];
}
-var YKe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var XKe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
function L7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
@@ -78523,29 +78532,29 @@ function R7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var XKe = ({ label: e, count: t }) => /* @__PURE__ */ (0, B.jsxs)("h3", {
+var ZKe = ({ label: e, count: t }) => /* @__PURE__ */ (0, B.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, B.jsx)("span", { children: t })
]
-}), z7 = (e) => Number(e) > 0, ZKe = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
+}), z7 = (e) => Number(e) > 0, QKe = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: L(e) }
}), B7 = L("external-link", "externalmark");
-function QKe(e) {
- let { id: t, actions: n } = e, r = wS({
+function $Ke(e) {
+ let { id: t, actions: n } = e, r = TS({
queryKey: j7(t),
queryFn: ({ signal: e }) => M7(t, e)
- }), i = wS({
- queryKey: MF,
- queryFn: ({ signal: e }) => NF(e)
+ }), i = TS({
+ queryKey: jF,
+ queryFn: ({ signal: e }) => MF(e)
}), a = (0, R.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, R.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, B.jsx)($Ke, {
+ return r.data ? /* @__PURE__ */ (0, B.jsx)(eqe, {
...e,
data: r.data,
- context: qKe(r.data, a),
+ context: JKe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, B.jsx)("div", {
@@ -78573,8 +78582,8 @@ var V7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function $Ke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = IKe(s, c, n, i), u = rqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
+function eqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = LKe(s, c, n, i), u = iqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
key: "",
kind: ""
}), m = {
@@ -78594,7 +78603,7 @@ function $Ke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? LKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, B.jsx)(G7, {
+ let h = !l.embedded.length && l.collection ? RKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, B.jsx)(G7, {
item: s,
current: l.selected.index,
helpers: a,
@@ -78607,7 +78616,7 @@ function $Ke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, B.jsx)(tqe, {
+ }) : /* @__PURE__ */ (0, B.jsx)(nqe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -78618,7 +78627,7 @@ function $Ke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(eqe, {
+ /* @__PURE__ */ (0, B.jsx)(tqe, {
item: s,
media: l,
helpers: a,
@@ -78627,7 +78636,7 @@ function $Ke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, B.jsx)(nqe, {
+ /* @__PURE__ */ (0, B.jsx)(rqe, {
item: s,
data: e,
context: t,
@@ -78640,8 +78649,8 @@ function $Ke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function eqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(null), h = JKe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, R.useState)(v), S = (0, R.useRef)({
+function tqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(null), h = YKe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, R.useState)(v), S = (0, R.useRef)({
item: e,
selected: o
}), C = (0, R.useRef)(i.failed);
@@ -78678,7 +78687,7 @@ function eqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
src: b,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: h.length ? () => void UN(Math.max(0, l), h) : void 0,
+ onClick: h.length ? () => void HN(Math.max(0, l), h) : void 0,
onError: () => {
if (y && b !== y) {
x(y), i.thumbFallback();
@@ -78690,7 +78699,7 @@ function eqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: qF(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: KF(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, B.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
@@ -78748,8 +78757,8 @@ function W7(e) {
t && e.wireDrag(t);
}, [e]);
}
-function tqe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = VF(e), a = W7(n);
+function nqe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = BF(e), a = W7(n);
return /* @__PURE__ */ (0, B.jsx)(L7, {
kind: "collection",
"data-follow-queue": "",
@@ -78758,7 +78767,7 @@ function tqe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = VKe(e, n, i ? n.provider_label : ""), o = i ? qF(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = HKe(e, n, i ? n.provider_label : ""), o = i ? KF(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, B.jsxs)(R7, {
current: n.id === t,
"data-follow-queue-item": n.id,
@@ -78781,7 +78790,7 @@ function tqe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, B.jsx)("time", {
dateTime: n.published_at || "",
- children: eI(n)
+ children: $F(n)
})]
})]
}, n.id);
@@ -78806,7 +78815,7 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, B.jsx)(XKe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, B.jsx)(ZKe, {
label: n.label,
count: n.items.length
}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, B.jsxs)(R7, {
@@ -78818,7 +78827,7 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(H7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, B.jsx)("b", {
"data-middle-truncate": "",
- children: HKe(n)
+ children: UKe(n)
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -78826,13 +78835,13 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function nqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = QF(d, e), p = XF(e, KKe(e, t.sources), n), m = p.credited ? "" : e.author && be(e.author) !== be(p.author) ? e.author : "", h = $F(e, n), g = GKe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = ZF(d, e), p = YF(e, qKe(e, t.sources), n), m = p.credited ? "" : e.author && be(e.author) !== be(p.author) ? e.author : "", h = QF(e, n), g = KKe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -78848,7 +78857,7 @@ function nqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: ZF(d, e) + ge(e.title) }
+ dangerouslySetInnerHTML: { __html: XF(d, e) + ge(e.title) }
}), e.url ? /* @__PURE__ */ (0, B.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -78875,7 +78884,7 @@ function nqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, B.jsx)("span", { children: eI(e) }),
+ /* @__PURE__ */ (0, B.jsx)("span", { children: $F(e) }),
z7(e.duration) ? /* @__PURE__ */ (0, B.jsx)("span", { children: ve(e.duration) }) : null,
f ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-badges": "",
@@ -78909,7 +78918,7 @@ function nqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [BKe(e), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [VKe(e), /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: B7 }
})]
@@ -79018,7 +79027,7 @@ function nqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(ZKe, { name: "image-off" }), /* @__PURE__ */ (0, B.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(QKe, { name: "image-off" }), /* @__PURE__ */ (0, B.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -79032,7 +79041,7 @@ function nqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
- "data-tag-cat": WKe(e, t),
+ "data-tag-cat": GKe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -79042,7 +79051,7 @@ function nqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function rqe(e, t, n) {
+function iqe(e, t, n) {
let r = e.id, i = j7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -79053,17 +79062,17 @@ function rqe(e, t, n) {
...t.item,
status: e
}
- }), the(r, e);
+ }), nhe(r, e);
}, d = (e) => {
c(Te(e) || "操作失败"), t.failure("更新关注状态", e);
- }, f = DS({
- mutationFn: ({ to: e }) => G(KP, {
+ }, f = OS({
+ mutationFn: ({ to: e }) => G(GP, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && SL(), t.toast(YKe(n), { undo: i === "saved" ? void 0 : async () => {
- await G(KP, {
+ u(n), c(""), n === "ignored" && xL(), t.toast(XKe(n), { undo: i === "saved" ? void 0 : async () => {
+ await G(GP, {
item: r,
to: i
}), u(i);
@@ -79071,16 +79080,16 @@ function rqe(e, t, n) {
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), m = DS({
- mutationFn: () => G(NKe, { item: r }),
+ }), m = OS({
+ mutationFn: () => G(PKe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
onError: d,
onSettled: () => l("save", !1)
- }), h = DS({
+ }), h = OS({
mutationFn: async ({ index: e, hidden: t }) => {
- await G(PKe, {
+ await G(FKe, {
item: r,
media: e,
hidden: t
@@ -79091,17 +79100,17 @@ function rqe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = p.getQueryData(i);
- o && ehe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && the(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), g = wS({
- queryKey: i_e(r),
- queryFn: ({ signal: e }) => s_e(r, e)
- }).data?.want ?? null, _ = DS({
- mutationFn: async (e) => (e ? await xL([e.id]) : await bL({ follow: r }), !e),
+ }), g = TS({
+ queryKey: a_e(r),
+ queryFn: ({ signal: e }) => c_e(r, e)
+ }).data?.want ?? null, _ = OS({
+ mutationFn: async (e) => (e ? await bL([e.id]) : await yL({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), SL();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), xL();
},
onError: d,
onSettled: () => l("want", !1)
@@ -79141,19 +79150,19 @@ function rqe(e, t, n) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function iqe(e) {
+function aqe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function aqe(e) {
+function oqe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return iqe(n ?? t.body);
+ return aqe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var oqe = "/api/cover-crop", sqe = (e, t) => G(oqe, {
+var sqe = "/api/cover-crop", cqe = (e, t) => G(sqe, {
code: e,
box: t
});
@@ -79172,7 +79181,7 @@ function K7({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-crop" })
});
}
-function cqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function lqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("button", {
ref: o,
@@ -79185,13 +79194,13 @@ function cqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, B.jsx)(K7, { className: "size-3.75" })
}), /* @__PURE__ */ (0, B.jsx)(ry, {
- getContainer: () => aqe(o.current),
- children: /* @__PURE__ */ (0, B.jsx)(rP, {
+ getContainer: () => oqe(o.current),
+ children: /* @__PURE__ */ (0, B.jsx)(nP, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, B.jsx)(lqe, {
+ children: /* @__PURE__ */ (0, B.jsx)(uqe, {
code: e,
coverUrl: t,
box: n,
@@ -79201,9 +79210,9 @@ function cqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function lqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = PM(), f = DS({
- mutationFn: (t) => sqe(e, t),
+function uqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = NM(), f = OS({
+ mutationFn: (t) => cqe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -79215,15 +79224,15 @@ function lqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : ipe(e, LC);
- c($N(t, e, null));
+ } : ape(e, LC);
+ c(QN(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, B.jsx)(iP, { children: /* @__PURE__ */ (0, B.jsx)(K7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, B.jsx)(rP, { children: /* @__PURE__ */ (0, B.jsx)(K7, { className: "size-6" }) }),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -79242,7 +79251,7 @@ function lqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(IM, {
+ /* @__PURE__ */ (0, B.jsx)(FM, {
icon: bT,
size: "small",
"aria-label": "关闭",
@@ -79253,24 +79262,24 @@ function lqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, B.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, B.jsx)(oP, {
+ children: /* @__PURE__ */ (0, B.jsx)(aP, {
src: t,
aspect: l ? LC : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- ZN(e) && p(e);
+ XN(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, B.jsx)(oL, {
+ children: [/* @__PURE__ */ (0, B.jsx)(aL, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c($N(s, a, LC));
+ u(e), e && s && a && c(QN(s, a, LC));
},
children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -79306,12 +79315,12 @@ var q7 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function uqe(e) {
- let { queue: t, actions: n } = e, r = wS({
+function dqe(e) {
+ let { queue: t, actions: n } = e, r = TS({
queryKey: t ? WC(t) : ["item-queue", "none"],
queryFn: ({ signal: n }) => $C(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? nw(i, e.id) : t ? null : e.id, o = wS({
+ }), i = t && r.data || null, a = i ? nw(i, e.id) : t ? null : e.id, o = TS({
queryKey: UC(a ?? 0),
queryFn: ({ signal: e }) => QC(a, e),
enabled: a != null
@@ -79336,7 +79345,7 @@ function uqe(e) {
})
});
}
- return /* @__PURE__ */ (0, B.jsx)(dqe, {
+ return /* @__PURE__ */ (0, B.jsx)(fqe, {
...e,
item: Rre(o.data, i),
queue: i
@@ -79351,8 +79360,8 @@ var Y7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function dqe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = Dqe(t, r, i.tagLabel), o = (0, R.useRef)(t);
+function fqe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = Oqe(t, r, i.tagLabel), o = (0, R.useRef)(t);
(0, R.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, R.useEffect)(() => {
@@ -79368,19 +79377,19 @@ function dqe(e) {
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(fqe, {
+ /* @__PURE__ */ (0, B.jsx)(pqe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, B.jsx)(mqe, {
+ n ? /* @__PURE__ */ (0, B.jsx)(hqe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, B.jsx)(_qe, {
+ /* @__PURE__ */ (0, B.jsx)(vqe, {
item: t,
queue: n,
write: a,
@@ -79388,9 +79397,9 @@ function dqe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, B.jsx)(Eqe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, B.jsx)(Dqe, { ...e }) : null] });
}
-function fqe({ item: e, gate: t, helpers: n, actions: r }) {
+function pqe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(t ? "" : "auto"), o = (0, R.useRef)(null), s = (0, R.useRef)(e);
(0, R.useLayoutEffect)(() => {
let e = o.current;
@@ -79401,7 +79410,7 @@ function fqe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, B.jsx)(pqe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, B.jsx)(mqe, {
item: e,
badge: c,
helpers: n,
@@ -79430,7 +79439,7 @@ function fqe({ item: e, gate: t, helpers: n, actions: r }) {
}) : null]
});
}
-function pqe({ item: e, badge: t, helpers: n, actions: r }) {
+function mqe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -79455,8 +79464,8 @@ function pqe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function mqe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Jre(e), a = (0, R.useRef)(null), o = gqe(e, t, r), s = (0, R.useRef)(o);
+function hqe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Jre(e), a = (0, R.useRef)(null), o = _qe(e, t, r), s = (0, R.useRef)(o);
s.current = o;
let c = (0, R.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -79464,7 +79473,7 @@ function mqe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = hqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)("button", {
+ }, [n, e.kind]), l = gqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -79541,8 +79550,8 @@ function mqe({ queue: e, itemId: t, helpers: n, actions: r }) {
})
});
}
-function hqe(e, t) {
- let n = DS({ mutationFn: (t) => G(GC, {
+function gqe(e, t) {
+ let n = OS({ mutationFn: (t) => G(GC, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -79555,14 +79564,14 @@ function hqe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function gqe(e, t, n) {
+function _qe(e, t, n) {
let r = WC({
kind: "playlist",
playlistId: e.playlistId
}), i = (e) => (p.setQueryData(r, ew(e)), e), a = (t) => G(GC, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), o = DS({
+ }).then((e) => e.playlist), o = OS({
mutationFn: (e) => a({
action: "reorder",
asset_ids: e
@@ -79622,7 +79631,7 @@ function gqe(e, t, n) {
}
};
}
-function _qe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-stage-side": "",
@@ -79630,7 +79639,7 @@ function _qe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(vqe, {
+ /* @__PURE__ */ (0, B.jsx)(yqe, {
item: e,
queue: t,
helpers: r,
@@ -79642,7 +79651,7 @@ function _qe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, B.jsx)(bqe, {
+ /* @__PURE__ */ (0, B.jsx)(xqe, {
item: e,
write: n
}),
@@ -79677,18 +79686,18 @@ function _qe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(xqe, {
+ /* @__PURE__ */ (0, B.jsx)(Sqe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, B.jsx)(Sqe, {
+ /* @__PURE__ */ (0, B.jsx)(Cqe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, B.jsx)(wqe, { item: e }),
+ /* @__PURE__ */ (0, B.jsx)(Tqe, { item: e }),
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -79782,7 +79791,7 @@ function _qe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(Tqe, {
+ /* @__PURE__ */ (0, B.jsx)(Eqe, {
item: e,
open: s,
write: n
@@ -79806,7 +79815,7 @@ function _qe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function vqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function yqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, R.useRef)(null), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(!1);
(0, R.useLayoutEffect)(() => {
let e = a.current;
@@ -79847,7 +79856,7 @@ function vqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, B.jsx)(cqe, {
+ children: /* @__PURE__ */ (0, B.jsx)(lqe, {
code: e.cover_key || e.code || "",
coverUrl: M(e),
box: e.poster_box || null,
@@ -79859,7 +79868,7 @@ function vqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, B.jsx)(yqe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, B.jsx)(bqe, {
id: e.id,
actions: r,
onStatus: i
@@ -79869,7 +79878,7 @@ function vqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function yqe({ id: e, actions: t, onStatus: n }) {
+function bqe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, R.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -79902,7 +79911,7 @@ function yqe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "folder-sync" })
})] });
}
-function bqe({ item: e, write: t }) {
+function xqe({ item: e, write: t }) {
let n = iw(e.rating);
return /* @__PURE__ */ (0, B.jsxs)("div", {
id: "detailRating",
@@ -79935,7 +79944,7 @@ function bqe({ item: e, write: t }) {
})]
});
}
-function xqe({ item: e, actions: t }) {
+function Sqe({ item: e, actions: t }) {
let n = (0, R.useMemo)(() => Bre(e), [e]), [r, i] = (0, R.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-id-face": "",
@@ -80056,7 +80065,7 @@ function xqe({ item: e, actions: t }) {
]
});
}
-function Sqe({ item: e, write: t, helpers: n, actions: r }) {
+function Cqe({ item: e, write: t, helpers: n, actions: r }) {
let i = Ure(e, n);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-tags": "",
@@ -80078,14 +80087,14 @@ function Sqe({ item: e, write: t, helpers: n, actions: r }) {
onClick: () => t.removeTag(e),
children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, B.jsx)(Cqe, {
+ }, e.k)), /* @__PURE__ */ (0, B.jsx)(wqe, {
item: e,
write: t,
helpers: n
})]
});
}
-function Cqe({ item: e, write: t, helpers: n }) {
+function wqe({ item: e, write: t, helpers: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(-1), h = (0, R.useCallback)(() => {
i.current && Ne(i.current), c(!1);
}, []);
@@ -80229,7 +80238,7 @@ function Cqe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function wqe({ item: e }) {
+function Tqe({ item: e }) {
let t = $re(e);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-item-trace": "",
@@ -80264,7 +80273,7 @@ function wqe({ item: e }) {
})]
});
}
-function Tqe({ item: e, open: t, write: n }) {
+function Eqe({ item: e, open: t, write: n }) {
let [r, i] = (0, R.useState)(e.like_reason || ""), a = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && a.current?.focus();
@@ -80303,8 +80312,8 @@ function Tqe({ item: e, open: t, write: n }) {
})]
});
}
-function Eqe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = wS({
+function Dqe(e) {
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = TS({
queryKey: Fre(t.id, n),
queryFn: async ({ signal: e }) => (await W(Lre(t.id, n), e)).items || []
}), [o] = (0, R.useState)(() => r.relatedSkeletonHtml()), s = (0, R.useCallback)((e) => {
@@ -80336,7 +80345,7 @@ function Eqe(e) {
})]
});
}
-function Dqe(e, t, n) {
+function Oqe(e, t, n) {
let r = e.id, i = UC(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -80357,7 +80366,7 @@ function Dqe(e, t, n) {
}, h = (e, t) => G(e, {
id: r,
...t
- }), g = DS({
+ }), g = OS({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => d(n, !1)
@@ -80476,11 +80485,11 @@ function Dqe(e, t, n) {
//#endregion
//#region src/react/stage/stage-player.ts
var X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = null, t9 = !1, n9 = 0, r9 = null, i9 = () => !1, a9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function Oqe(e, t) {
- X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), qne({
+function kqe(e, t) {
+ X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), Kne({
...e.player,
stage: () => document.getElementById("stage")
- }), Jne({
+ }), qne({
inMiniplayer: (e) => Z7?.player === e,
kind: (e) => Z7?.player === e ? Z7.kind : Q7?.kind ?? $7?.kind ?? "item",
expand: () => C9(),
@@ -80495,10 +80504,10 @@ function s9() {
function c9(e) {
$7 = e;
}
-var kqe = () => $7;
+var Aqe = () => $7;
function l9(e, t) {
let { kind: n, item: r, media: i = null } = t, a = a9(n, r.id, i?.index ?? null);
- if (Z7 && Z7.key === a) return Aqe(e, Z7);
+ if (Z7 && Z7.key === a) return jqe(e, Z7);
Z7 && S9();
let o = {
player: null,
@@ -80526,9 +80535,9 @@ function l9(e, t) {
Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), bC());
};
}
-function Aqe(e, t) {
+function jqe(e, t) {
let { player: n } = t;
- b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), MC(e), e.append(n.el()), JS(n);
+ b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), MC(e), e.append(n.el()), YS(n);
let r = {
player: n,
kind: t.kind,
@@ -80538,21 +80547,21 @@ function Aqe(e, t) {
};
Q7 = r;
let i = NC(n, e);
- return YS(n), () => {
- Q7 === r && (Q7 = null), i(), Z7?.player !== n && (qS() === n && JS(null), dC(n), bC());
+ return XS(n), () => {
+ Q7 === r && (Q7 = null), i(), Z7?.player !== n && (JS() === n && YS(null), fC(n), bC());
};
}
var u9 = () => {
let e = Q7?.player;
return e && !e.isDisposed() ? e : null;
};
-function jqe(e) {
+function Mqe(e) {
let t = t9;
t9 = !1, Z7?.pending && S9();
let n = Q7, r = n?.player, i = $7;
if (!n || !r || r.isDisposed() || !i || !e9) return;
let a = s9().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Iqe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Lqe({
player: r,
kind: n.kind,
item: n.item,
@@ -80560,7 +80569,7 @@ function jqe(e) {
key: n.key
}, i);
}
-function Mqe(e, t) {
+function Nqe(e, t) {
if (t9 = !1, Z7) {
if (Z7.kind === e && Z7.item.id === t) {
Z7.pending = !0, x9();
@@ -80573,11 +80582,11 @@ function d9(e) {
e9 = e, e9 && v9();
}
var f9 = () => !!Z7 && !Z7.pending && !Z7.player.isDisposed();
-function Nqe() {
+function Pqe() {
return f9() ? e9?.frame.querySelector("video") ?? null : null;
}
-function Pqe() {
- return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : Nqe();
+function Fqe() {
+ return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : Pqe();
}
function p9(e) {
e9 && (e9.title.textContent = e.title || "", e9.sub.textContent = e.sub || "", e9.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -80626,7 +80635,7 @@ function y9(e) {
function b9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function Fqe() {
+function Iqe() {
let e = e9?.root;
if (!e) return;
let t = e.hidden;
@@ -80647,7 +80656,7 @@ function x9() {
e.style.transform = "";
}
}
-function Iqe(e, t) {
+function Lqe(e, t) {
if (!e9) return;
let n = {
...e,
@@ -80655,13 +80664,13 @@ function Iqe(e, t) {
off: [],
pending: !1
};
- Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), Fqe(), YS(e.player);
+ Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), Iqe(), XS(e.player);
}
function S9() {
let e = Z7;
e && b9(e), Z7 = null, n9++;
let t = e?.player ?? null;
- t && qS() === t && JS(null), dC(t), t && bC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), GS(), x9();
+ t && JS() === t && YS(null), fC(t), t && bC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), KS(), x9();
}
function C9() {
if (!f9() || !Z7) return;
@@ -80675,7 +80684,7 @@ function w9() {
}
i9() && u9() && r9 && (t9 = !0, r9());
}
-function Lqe() {
+function Rqe() {
let e = Z7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -80688,7 +80697,7 @@ function T9(e) {
function E9(e) {
return !(!f9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || s9().sourceOffline(String(e.location ?? "")));
}
-async function Rqe(e) {
+async function zqe(e) {
if (!f9() || !Z7 || !e9) return;
let t = ++n9, n = await pe(`/api/item?id=${e}`).catch(() => null);
if (t !== n9 || !f9() || !Z7 || !e9 || !n || n.error) return;
@@ -80697,7 +80706,7 @@ async function Rqe(e) {
return;
}
let r = Z7;
- b9(r), qS() === r.player && JS(null), dC(r.player), bC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ b9(r), JS() === r.player && YS(null), fC(r.player), bC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", e9.frame.prepend(i);
let a = {
@@ -80713,7 +80722,7 @@ async function Rqe(e) {
chrome: !1,
onPlayer: (r) => {
if (t !== n9) {
- r && qS() === r && JS(null), dC(r);
+ r && JS() === r && YS(null), fC(r);
return;
}
if (!r) {
@@ -80741,9 +80750,9 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
-}), zqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {
+}), Bqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {
t.stopPropagation(), e();
-}, Bqe = (0, R.memo)(function() {
+}, Vqe = (0, R.memo)(function() {
let e = (0, R.useRef)(null), t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => (d9({
root: e.current,
@@ -80755,7 +80764,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => d9(null)), []), (0, R.useEffect)(() => Hqe(e.current, t.current), []), /* @__PURE__ */ (0, B.jsx)("aside", {
+ }), () => d9(null)), []), (0, R.useEffect)(() => Uqe(e.current, t.current), []), /* @__PURE__ */ (0, B.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -80805,8 +80814,8 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: O9(Lqe),
- dangerouslySetInnerHTML: zqe
+ onClick: O9(Rqe),
+ dangerouslySetInnerHTML: Bqe
}),
/* @__PURE__ */ (0, B.jsx)("button", {
ref: o,
@@ -80845,7 +80854,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
})
});
});
-function Vqe(e, t, n) {
+function Hqe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -80867,7 +80876,7 @@ function Vqe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function Hqe(e, t) {
+function Uqe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -80893,7 +80902,7 @@ function Hqe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), Vqe(e, i.dx, i.dy));
+ }, 0), Hqe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -80913,21 +80922,21 @@ function R9() {
if (!k9) throw Error("舞台还没有接上宿主(configureStage)");
return k9;
}
-function Uqe() {
+function Wqe() {
return (!A9 || !j9?.isConnected) && (A9?.unmount(), j9 = document.createElement("div"), j9.dataset.stageHost = "", document.body.append(j9), A9 = (0, ip.createRoot)(j9)), A9;
}
function z9() {
- let e = Uqe();
- (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(Wqe, { view: M9 }) })));
+ let e = Wqe();
+ (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Gqe, { view: M9 }) })));
}
-function Wqe({ view: e }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)(Gqe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, B.jsx)(Bqe, {})] });
+function Gqe({ view: e }) {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)(Kqe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, B.jsx)(Vqe, {})] });
}
var B9 = () => /* @__PURE__ */ (0, B.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: jKe() }
+ dangerouslySetInnerHTML: { __html: MKe() }
});
function V9(e) {
let t = e.currentTarget;
@@ -80935,7 +80944,7 @@ function V9(e) {
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function Gqe({ view: e }) {
+function Kqe({ view: e }) {
let t = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
@@ -80943,7 +80952,7 @@ function Gqe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, B.jsx)(uqe, { ...r.props }) : /* @__PURE__ */ (0, B.jsx)(QKe, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, B.jsx)(dqe, { ...r.props }) : /* @__PURE__ */ (0, B.jsx)($Ke, { ...r.props });
return /* @__PURE__ */ (0, B.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -80982,7 +80991,7 @@ function U9(e, t) {
let n = L9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function Kqe(e) {
+function qqe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
@@ -81044,7 +81053,7 @@ function Kqe(e) {
}
};
}
-function qqe(e, t) {
+function Jqe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
@@ -81057,13 +81066,13 @@ function qqe(e, t) {
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function Jqe(e) {
+async function Yqe(e) {
M9 && W9({ miniplayer: !1 });
let t = ++N9, n = new AbortController();
- P9 = n, F9 = !1, I9 = !1, Mqe(e.kind, e.id ?? NaN), M9 = {
+ P9 = n, F9 = !1, I9 = !1, Nqe(e.kind, e.id ?? NaN), M9 = {
generation: t,
request: e,
- content: Kqe(e),
+ content: qqe(e),
phase: "skeleton"
}, z9();
let r = L9();
@@ -81071,7 +81080,7 @@ async function Jqe(e) {
Fe(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
let i = M9.content;
try {
- i.kind === "item" ? await zre(i.props, n.signal) : await FKe(i.props, n.signal);
+ i.kind === "item" ? await zre(i.props, n.signal) : await IKe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
@@ -81080,11 +81089,11 @@ async function Jqe(e) {
M9 = {
...M9,
phase: a ? "content" : "reveal"
- }, z9(), a || qqe(r, t), Ke(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, z9(), a || Jqe(r, t), Ke(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function Yqe() {
+function Xqe() {
let e = L9();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
@@ -81096,11 +81105,11 @@ function Yqe() {
}));
}
function W9({ miniplayer: e = !0 } = {}) {
- if (N9++, P9?.abort(), P9 = null, jqe(e), !M9) return;
+ if (N9++, P9?.abort(), P9 = null, Mqe(e), !M9) return;
let t = L9();
- t && ue(t), GS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");
+ t && ue(t), KS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");
}
-function Xqe(e) {
+function Zqe(e) {
!M9 || M9.content.kind !== "item" || (M9 = {
...M9,
content: {
@@ -81112,60 +81121,60 @@ function Xqe(e) {
}
}, z9());
}
-function Zqe() {
- let e = kqe(), t = e?.kind === "item" ? e.item : null, n = t ? N(t, R9().player.settings().javImage) : "";
+function Qqe() {
+ let e = Aqe(), t = e?.kind === "item" ? e.item : null, n = t ? N(t, R9().player.settings().javImage) : "";
if (!n) return;
let r = u9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var Qqe = {
- open: Jqe,
- update: Xqe,
- exit: Yqe,
+var $qe = {
+ open: Yqe,
+ update: Zqe,
+ exit: Xqe,
dispose: W9,
requestClose: H9,
- repaintPoster: Zqe,
+ repaintPoster: Qqe,
isOpen: () => !!M9,
- activeVideo: () => Pqe(),
+ activeVideo: () => Fqe(),
toggleTheater: () => {
- M9 && uC(!R9().player.settings().theaterMode);
+ M9 && dC(!R9().player.settings().theaterMode);
},
toggleMiniplayer: () => w9(),
closeMiniplayer: () => S9(),
miniplayerActive: () => f9(),
miniplayerTakesCard: (e) => E9(e),
miniplayerPlay: (e) => {
- Rqe(e);
+ zqe(e);
}
};
-function $qe(e) {
- return k9 = e, Oqe(e, {
+function eJe(e) {
+ return k9 = e, kqe(e, {
isOpen: () => !!M9,
requestClose: H9
- }), z9(), Qqe;
+ }), z9(), $qe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function eJe(e) {
+function tJe(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 tJe = (e) => {
+var nJe = (e) => {
switch (e) {
- case "success": return iJe;
- case "info": return oJe;
- case "warning": return aJe;
- case "error": return sJe;
+ case "success": return aJe;
+ case "info": return sJe;
+ case "warning": return oJe;
+ case "error": return cJe;
default: return null;
}
-}, nJe = Array(12).fill(0), rJe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
+}, rJe = Array(12).fill(0), iJe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, nJe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
+}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, rJe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), iJe = /*#__PURE__*/ R.createElement("svg", {
+})))), aJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81176,7 +81185,7 @@ var tJe = (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"
-})), aJe = /*#__PURE__*/ R.createElement("svg", {
+})), oJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -81187,7 +81196,7 @@ var tJe = (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"
-})), oJe = /*#__PURE__*/ R.createElement("svg", {
+})), sJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81198,7 +81207,7 @@ var tJe = (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"
-})), sJe = /*#__PURE__*/ R.createElement("svg", {
+})), cJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81209,7 +81218,7 @@ var tJe = (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"
-})), cJe = /*#__PURE__*/ R.createElement("svg", {
+})), lJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -81230,7 +81239,7 @@ var tJe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), lJe = () => {
+})), uJe = () => {
let [e, t] = R.useState(document.hidden);
return R.useEffect(() => {
let e = () => {
@@ -81238,7 +81247,7 @@ var tJe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, uJe = 1, dJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : uJe++, K9 = new class {
+}, dJe = 1, fJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : dJe++, K9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -81248,7 +81257,7 @@ var tJe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - dJe;
+ let e = this.toasts.length - fJe;
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 = G9(e), i = this.pendingDismissals.get(r);
@@ -81326,7 +81335,7 @@ var tJe = (e) => {
type: "default",
message: e
});
- else if (pJe(e) && !e.ok) {
+ else if (mJe(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" && !R.isValidElement(r) ? r : { message: r };
this.create({
@@ -81379,7 +81388,7 @@ var tJe = (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();
}
-}(), fJe = (e, t) => K9.message(e, t), pJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(fJe, {
+}(), pJe = (e, t) => K9.message(e, t), mJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(pJe, {
success: K9.success,
info: K9.info,
warning: K9.warning,
@@ -81393,20 +81402,20 @@ var tJe = (e) => {
getHistory: () => K9.toasts,
getToasts: () => K9.getActiveToasts()
});
-eJe("[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%)}");
+tJe("[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 J9(e) {
return e.label !== void 0;
}
-var mJe = 3, hJe = "24px", gJe = "16px", Y9 = 4e3, _Je = 356, vJe = 14, yJe = 45, bJe = 200;
+var hJe = 3, gJe = "24px", _Je = "16px", Y9 = 4e3, vJe = 356, yJe = 14, bJe = 45, xJe = 200;
function X9(...e) {
return e.filter(Boolean).join(" ");
}
-function xJe(e) {
+function SJe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var SJe = (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] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [ee, te] = R.useState(!1), [P, F] = R.useState(!1), [ne, re] = R.useState(!1), [ie, ae] = R.useState(0), [oe, se] = R.useState(0), ce = R.useRef(n.duration || y || Y9), le = R.useRef(null), ue = R.useRef(null), de = c === 0, fe = c + 1 <= o, I = n.type, pe = I ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = R.useMemo(() => n.duration || y || Y9, [n.duration, y]), be = R.useRef(0), L = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), Ee = lJe(), De = R.useMemo(() => e.swipeDirections ?? xJe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = I === "loading";
+var CJe = (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] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [ee, te] = R.useState(!1), [P, F] = R.useState(!1), [ne, re] = R.useState(!1), [ie, ae] = R.useState(0), [oe, se] = R.useState(0), ce = R.useRef(n.duration || y || Y9), le = R.useRef(null), ue = R.useRef(null), de = c === 0, fe = c + 1 <= o, I = n.type, pe = I ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = R.useMemo(() => n.duration || y || Y9, [n.duration, y]), be = R.useRef(0), L = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), Ee = uJe(), De = R.useMemo(() => e.swipeDirections ?? SJe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = I === "loading";
L.current = R.useMemo(() => _e * x + Te, [_e, Te]), R.useEffect(() => {
ce.current = ye;
}, [ye]), R.useEffect(() => {
@@ -81447,7 +81456,7 @@ var SJe = (e) => {
let Ae = R.useCallback(() => {
N(!0), ae(L.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, bJe);
+ }, xJe);
}, [
n,
d,
@@ -81480,12 +81489,12 @@ var SJe = (e) => {
return w?.loading ? /*#__PURE__*/ R.createElement("div", {
className: X9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": I === "loading"
- }, w.loading) : /*#__PURE__*/ R.createElement(rJe, {
+ }, w.loading) : /*#__PURE__*/ R.createElement(iJe, {
className: X9(C?.loader, n?.classNames?.loader),
visible: I === "loading"
});
}
- let Me = n.icon || w?.[I] || tJe(I);
+ let Me = n.icon || w?.[I] || nJe(I);
return /*#__PURE__*/ R.createElement("li", {
tabIndex: 0,
ref: ue,
@@ -81532,7 +81541,7 @@ var SJe = (e) => {
if (P || !me) return;
Se.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" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= yJe || a > .11)) {
+ if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= bJe || a > .11)) {
ae(L.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ae(), F(!0);
return;
}
@@ -81573,7 +81582,7 @@ var SJe = (e) => {
Ae(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: X9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? cJe) : null, (I || n.icon || n.promise) && n.icon !== null && (w?.[I] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
+ }, w?.close ?? lJe) : null, (I || n.icon || n.promise) && n.icon !== null && (w?.[I] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
"data-icon": "",
className: X9(C?.icon, n?.classNames?.icon)
}, I === "loading" ? n.icon || je() : n.promise ? je() : null, I === "loading" ? null : Me) : null, /*#__PURE__*/ R.createElement("div", {
@@ -81608,10 +81617,10 @@ function Z9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function CJe(e, t) {
+function wJe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? gJe : hJe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? _Je : gJe;
function o(e) {
[
"top",
@@ -81632,8 +81641,8 @@ function CJe(e, t) {
}) : o(a);
}), n;
}
-var wJe = /*#__PURE__*/ R.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 = mJe, toastOptions: g, dir: _ = Z9(), gap: v = vJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = R.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = R.useRef(null), F = R.useRef(!1), ne = R.useCallback((e) => {
+var TJe = /*#__PURE__*/ R.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 = hJe, toastOptions: g, dir: _ = Z9(), gap: v = yJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = R.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = R.useRef(null), F = R.useRef(!1), ne = R.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || K9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return R.useEffect(() => K9.subscribe((e) => {
@@ -81719,10 +81728,10 @@ var wJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${_Je}px`,
+ "--width": `${vJe}px`,
"--gap": `${v}px`,
...m,
- ...CJe(l, u)
+ ...wJe(l, u)
},
onBlur: (e) => {
F.current && !e.currentTarget.contains(e.relatedTarget) && (F.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -81740,7 +81749,7 @@ var wJe = /*#__PURE__*/ R.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__*/ R.createElement(SJe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(CJe, {
key: n.id,
icons: y,
index: i,
@@ -81774,8 +81783,8 @@ var wJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), $9 = !1, TJe = (e, t) => {
- $9 || ($9 = !0, (0, ip.createRoot)(e).render(/* @__PURE__ */ (0, B.jsx)(wJe, {
+}), $9 = !1, EJe = (e, t) => {
+ $9 || ($9 = !0, (0, ip.createRoot)(e).render(/* @__PURE__ */ (0, B.jsx)(TJe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -81796,7 +81805,7 @@ var wJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
error: Q9(t.error, !1)
}
})));
-}, EJe = (e, t) => {
+}, DJe = (e, t) => {
let n = t.alert ? q9.error : q9.success, r = t.action;
n(/* @__PURE__ */ (0, B.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -81810,4 +81819,4 @@ var wJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
});
};
//#endregion
-export { Une as configureBatchDock, Gne as configureGlowPicker, jie as configureImmerse, Bie as configureManageHeader, LGe as configureRouter, iKe as configureSettingsPanel, vKe as configureSidebar, $qe as configureStage, TJe as mountToaster, vWe as prefetchManagedRoute, EJe as showToast };
+export { Hne as configureBatchDock, Wne as configureGlowPicker, jie as configureImmerse, Bie as configureManageHeader, LGe as configureRouter, iKe as configureSettingsPanel, yKe as configureSidebar, eJe as configureStage, EJe as mountToaster, vWe as prefetchManagedRoute, DJe as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 79dd7eccb..68181d6d7 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -489,7 +489,7 @@ var _e = [
},
"blue"
]
-], C = (e) => e === ye, be = [...S.map(([e, t]) => [e, t]), ["custom", "自定义"]], xe = (e) => (be.find(([t]) => t === e) || be[0])[1], Se = (e) => structuredClone((S.find(([t]) => t === e) || S[0])[2]), Ce = [
+], C = (e) => e === ye, be = [...S.map(([e, t]) => [e, t]), ["custom", "自定义"]], xe = (e) => (be.find(([t]) => t === e) || be[0])[1], w = (e) => structuredClone((S.find(([t]) => t === e) || S[0])[2]), Se = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -502,7 +502,7 @@ var _e = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], we = "blue", Te = (e) => Ce.some(([t]) => t === e) ? e : we, Ee = (e) => (S.find(([t]) => t === e) || [])[3] || "blue", De = [
+], Ce = "blue", we = (e) => Se.some(([t]) => t === e) ? e : Ce, Te = (e) => (S.find(([t]) => t === e) || [])[3] || "blue", Ee = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -512,7 +512,7 @@ var _e = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], Oe = [
+], De = [
[
"gray",
"云灰",
@@ -908,11 +908,11 @@ var _e = [
"霁蓝",
"#6686b8"
]
-], ke = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Ae = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, je = (e, t) => `rgba(${[
+], Oe = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, ke = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Ae = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Me = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, je = {
strength: [
0,
100,
@@ -938,7 +938,7 @@ var _e = [
100,
50
]
-}, Ne = {
+}, Me = {
on: !0,
preset: "ash",
strength: 100,
@@ -946,37 +946,37 @@ var _e = [
speed: 100,
soften: 50,
size: 50,
- ...Se("ash")
+ ...w("ash")
};
-function Pe(e) {
- let t = e && typeof e == "object" ? e : {}, n = be.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Se(r === "custom" ? "ash" : r), a = {
+function Ne(e) {
+ let t = e && typeof e == "object" ? e : {}, n = be.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = w(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(Me)) a[e] = ke(+t[e], n, r, i);
+ for (let [e, [n, r, i]] of Object.entries(je)) a[e] = Oe(+t[e], n, r, i);
for (let e of _e) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Ae(r.color, o.color),
- alpha: ke(+r.alpha, 0, 100, o.alpha)
+ color: ke(r.color, o.color),
+ alpha: Oe(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Fe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Ie = /* @__PURE__ */ new WeakMap();
-function Le(e, t) {
+var Pe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Fe = /* @__PURE__ */ new WeakMap();
+function Ie(e, t) {
if (!e) return;
- let n = Ie.get(e);
- n || (n = /* @__PURE__ */ new Map(), Ie.set(e, n));
+ let n = Fe.get(e);
+ n || (n = /* @__PURE__ */ new Map(), Fe.set(e, n));
let r = t.on && !C(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), _e.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, je(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, Ae(r.color, r.alpha));
});
}
-function Re(e, t) {
+function Le(e, t) {
if (!e) return;
let n = !t.on || C(t.preset);
if (e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n) {
@@ -987,25 +987,25 @@ function Re(e, t) {
}
//#endregion
//#region src/appearance/settings.ts
-var ze = "peach.settings.v1", Be = [
+var Re = "peach.settings.v1", ze = [
"system",
"light",
"dark"
-], Ve = [
+], Be = [
0,
7,
30,
90
-], He = [
+], Ve = [
0,
7,
30,
90
-], Ue = [
+], He = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], We = {
+], Ue = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -1025,44 +1025,44 @@ var ze = "peach.settings.v1", Be = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...ue],
- homeGlow: Ne,
- accent: we
-}, w = (e, t, n) => t.includes(e) ? e : n;
-function Ge(e) {
+ homeGlow: Me,
+ accent: Ce
+}, T = (e, t, n) => t.includes(e) ? e : n;
+function We(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...We,
+ ...Ue,
...t
};
- n.followInitialDays = Ve.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = Be.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
let a = _[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = x(+n.batchSize, 1, 200, 60), n.defaultSort = w(n.defaultSort, h, "seed"), n.hoverDelaySeconds = x(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = x(+n.seekSeconds, 1, 300, 10), delete n.loginDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = x(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = x(+n.relatedLimit, 0, 60, 20), n.metadataRefreshDays = w(+n.metadataRefreshDays, He, 30), Object.assign(n, ne(n)), n.theme = w(n.theme, Be, "system"), n.homeGlow = Pe(n.homeGlow), n.accent = Te(n.accent), n.sidebarOrder = me(n.sidebarOrder), {
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = x(+n.batchSize, 1, 200, 60), n.defaultSort = T(n.defaultSort, h, "seed"), n.hoverDelaySeconds = x(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = x(+n.seekSeconds, 1, 300, 10), delete n.loginDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = x(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = x(+n.relatedLimit, 0, 60, 20), n.metadataRefreshDays = T(+n.metadataRefreshDays, Ve, 30), Object.assign(n, ne(n)), n.theme = T(n.theme, ze, "system"), n.homeGlow = Ne(n.homeGlow), n.accent = we(n.accent), n.sidebarOrder = me(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Ke(e) {
+function Ge(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Ge(t);
+ return We(t);
}
-var T = null;
+var Ke = null;
function E() {
- if (T) return T;
- let { settings: e, migrated: t } = Ke(localStorage);
- return T = le(ze, e), t && T.save(), T;
+ if (Ke) return Ke;
+ let { settings: e, migrated: t } = Ge(localStorage);
+ return Ke = le(Re, e), t && Ke.save(), Ke;
}
function qe(e, t, n = E()) {
let r = n.value, i = e && e.followInitialDays;
- Ve.includes(i) && (r.followInitialDays = i, n.save());
+ Be.includes(i) && (r.followInitialDays = i, n.save());
let a = e && e.metadataRefreshDays;
- He.includes(a) && a !== r.metadataRefreshDays && (r.metadataRefreshDays = a, n.save());
- for (let t of Ue) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ Ve.includes(a) && a !== r.metadataRefreshDays && (r.metadataRefreshDays = a, n.save());
+ for (let t of He) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = x(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== We.searchHistoryLimit && Je(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = x(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Ue.searchHistoryLimit && Je(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
!s || !s.length || s.join(",") === r.sidebarOrder.join(",") || (r.sidebarOrder = s, n.save());
}
@@ -1131,7 +1131,7 @@ var tt = [[
"masonry",
"瀑布流",
"columns-2"
-]], it = .75, D = () => E().value, at = (e = D()) => b(e.javLayout), ot = (e = D()) => b(e.homeLayout), st = (e, t = D()) => e ? ot(t) : at(t), ct = nt.map(([e]) => e), lt = rt.map(([e]) => e), ut = (e = D()) => w(e.photoSize, ct, "small"), dt = (e = D()) => w(e.photoLayout, lt, "masonry"), ft = null;
+]], it = .75, D = () => E().value, at = (e = D()) => b(e.javLayout), ot = (e = D()) => b(e.homeLayout), st = (e, t = D()) => e ? ot(t) : at(t), ct = nt.map(([e]) => e), lt = rt.map(([e]) => e), ut = (e = D()) => T(e.photoSize, ct, "small"), dt = (e = D()) => T(e.photoLayout, lt, "masonry"), ft = null;
function pt(e, t = D()) {
let n = {
active: e.active,
@@ -1154,10 +1154,10 @@ function _t(e, t = E()) {
t.value.homeLayout = t.value.javLayout = b(e), t.save();
}
function vt(e, t = E()) {
- t.value.photoSize = w(e, ct, "small"), t.save();
+ t.value.photoSize = T(e, ct, "small"), t.save();
}
function yt(e, t = E()) {
- t.value.photoLayout = w(e, lt, "masonry"), t.save();
+ t.value.photoLayout = T(e, lt, "masonry"), t.save();
}
//#endregion
//#region src/appearance/density.ts
@@ -1186,7 +1186,7 @@ function Dt(e) {
//#endregion
//#region src/appearance/glow.ts
function Ot(e = E()) {
- Le(document.querySelector(".glowlayer"), e.value.homeGlow);
+ Ie(document.querySelector(".glowlayer"), e.value.homeGlow);
}
var kt = 0;
function At(e = E()) {
@@ -1195,7 +1195,7 @@ function At(e = E()) {
});
}
function jt(e = E()) {
- Re(document.documentElement, e.value.homeGlow);
+ Le(document.documentElement, e.value.homeGlow);
}
function Mt(e = E()) {
document.documentElement.dataset.accent = e.value.accent;
@@ -1204,24 +1204,24 @@ var Nt = (e, t, n) => ({
key: e,
label: t,
native: C(e),
- fill: C(e) ? "" : Fe(n)
+ fill: C(e) ? "" : Pe(n)
});
function Pt(e) {
let t = S.map(([e, t, n]) => Nt(e, t, _e.map((e) => n[e].color)));
return e.preset === "custom" && t.push(Nt("custom", "自定义", _e.map((t) => e[t].color))), t;
}
-var Ft = Ce;
+var Ft = Se;
function It(e, t = E()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Se(e)), t.value.accent = Ee(e), t.save(), At(t), jt(t), Mt(t);
+ n.preset = e, Object.assign(n, w(e)), t.value.accent = Te(e), t.save(), At(t), jt(t), Mt(t);
}
function Lt(e, t = E()) {
- t.value.accent = Te(e), t.save(), Mt(t);
+ t.value.accent = we(e), t.save(), Mt(t);
}
function Rt(e = E()) {
let t = e.value.homeGlow;
- t.preset = Ne.preset, Object.assign(t, Se(t.preset)), e.value.accent = we, e.save(), At(e), jt(e), Mt(e);
+ t.preset = Me.preset, Object.assign(t, w(t.preset)), e.value.accent = Ce, e.save(), At(e), jt(e), Mt(e);
}
function zt(e, t) {
e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && C(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
@@ -3438,195 +3438,195 @@ function Nr(e) {
search: typeof t.search == "string" ? t.search : ""
} : null;
}
-var z = null, Pr = null;
-function Fr() {
+var Pr = null, Fr = null;
+function Ir() {
let { pathname: e, search: t } = window.location;
- Mr(e) || (z = {
+ Mr(e) || (Pr = {
pathname: e,
search: t
});
}
-function Ir() {
- z = null, Pr = null;
+function Lr() {
+ Pr = null, Fr = null;
}
-function Lr(e) {
+function Rr(e) {
let t = Nr(e);
- t && (z = t, Pr = t.pathname + t.search);
+ t && (Pr = t, Fr = t.pathname + t.search);
}
-function Rr() {
- let e = Pr;
- return Pr = null, e;
+function zr() {
+ let e = Fr;
+ return Fr = null, e;
}
-function zr(e) {
- return z ? {
- backgroundLocation: { ...z },
+function Br(e) {
+ return Pr ? {
+ backgroundLocation: { ...Pr },
overlay: e
} : void 0;
}
//#endregion
//#region src/history/managed.ts
-var Br = () => {}, Vr = new Promise((e) => {
- Br = e;
+var Vr = () => {}, Hr = new Promise((e) => {
+ Vr = e;
});
-Vr.catch(() => {});
-var Hr = null;
-function Ur(e) {
- Hr = e;
-}
-var B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), Wr = 0, Gr = /* @__PURE__ */ new Set();
-function Kr(e) {
- Br(e);
+Hr.catch(() => {});
+var Ur = null;
+function Wr(e) {
+ Ur = e;
}
+var z = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), Gr = 0, Kr = /* @__PURE__ */ new Set();
function qr(e) {
- return B.get(e) ?? null;
+ Vr(e);
}
function Jr(e) {
- return !!e && (B.has(e) || V.has(e));
+ return z.get(e) ?? null;
}
-var Yr = () => [...B.values()];
-function Xr(e) {
- return Gr.add(e), () => {
- Gr.delete(e);
- };
+function Yr(e) {
+ return !!e && (z.has(e) || B.has(e));
}
+var Xr = () => [...z.values()];
function Zr(e) {
- let t = Yr();
- for (let n of [...Gr]) n(t, e);
+ return Kr.add(e), () => {
+ Kr.delete(e);
+ };
+}
+function Qr(e) {
+ let t = Xr();
+ for (let n of [...Kr]) n(t, e);
}
-async function Qr(e, t, n) {
+async function $r(e, t, n) {
let { container: r } = n;
- if (ti(r), !n.isCurrent()) return !1;
- Wr += 1;
+ if (ni(r), !n.isCurrent()) return !1;
+ Gr += 1;
let i = {
- revision: Wr,
+ revision: Gr,
controller: new AbortController()
};
- V.set(r, i);
- let a = Hr;
- Hr = null, a?.();
- let o = await Vr;
- if (V.get(r) !== i) return !1;
+ B.set(r, i);
+ let a = Ur;
+ Ur = null, a?.();
+ let o = await Hr;
+ if (B.get(r) !== i) return !1;
try {
await o(e, t, i.controller.signal);
} catch {
if (i.controller.signal.aborted) return !1;
}
- if (V.get(r) !== i || (V.delete(r), !n.isCurrent())) return !1;
- let s = n.place ? n.place(r) : $r(r);
- return B.set(r, {
+ if (B.get(r) !== i || (B.delete(r), !n.isCurrent())) return !1;
+ let s = n.place ? n.place(r) : ei(r);
+ return z.set(r, {
path: e,
props: t,
revision: i.revision,
container: r,
host: s
- }), Zr(!0), !0;
+ }), Qr(!0), !0;
}
-function $r(e) {
+function ei(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.textContent = "", e.append(t), t;
}
-function ei(e, t) {
- let n = e ? B.get(e) : void 0;
- n && (B.set(n.container, {
+function ti(e, t) {
+ let n = e ? z.get(e) : void 0;
+ n && (z.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), Zr(!1));
+ }), Qr(!1));
}
-function ti(e, ...t) {
+function ni(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = V.get(r);
- e && (e.controller.abort(), V.delete(r));
- let t = B.get(r);
- t && (B.delete(r), n.push(t));
+ let e = B.get(r);
+ e && (e.controller.abort(), B.delete(r));
+ let t = z.get(r);
+ t && (z.delete(r), n.push(t));
}
if (n.length) {
- Zr(!0);
+ Qr(!0);
for (let e of n) e.host.remove();
}
}
-function ni(e, t) {
- let n = B.get(e);
- n?.revision === t && (B.delete(e), n.host.remove(), queueMicrotask(() => {
- Zr(!1);
+function ri(e, t) {
+ let n = z.get(e);
+ n?.revision === t && (z.delete(e), n.host.remove(), queueMicrotask(() => {
+ Qr(!1);
}));
}
//#endregion
//#region src/history/index.ts
-var H = gr({ v5Compat: !0 }), ri = 0, ii = {
- action: H.action,
- location: H.location,
- seq: ri
-}, ai = /* @__PURE__ */ new Set(), oi = 0, si = !1, ci = null;
-H.listen(({ action: e, location: t }) => {
- ri += 1, si && (oi = ri), ii = {
+var V = gr({ v5Compat: !0 }), ii = 0, ai = {
+ action: V.action,
+ location: V.location,
+ seq: ii
+}, oi = /* @__PURE__ */ new Set(), si = 0, ci = !1, li = null;
+V.listen(({ action: e, location: t }) => {
+ ii += 1, ci && (si = ii), ai = {
action: e,
location: t,
- seq: ri
+ seq: ii
};
- for (let e of [...ai]) e(ii);
+ for (let e of [...oi]) e(ai);
});
-var li = {
+var ui = {
get navigation() {
- return ii;
+ return ai;
},
listen(e) {
- return ai.add(e), () => {
- ai.delete(e);
+ return oi.add(e), () => {
+ oi.delete(e);
};
},
- createHref: (e) => H.createHref(e),
- createURL: (e) => H.createURL(e),
- encodeLocation: (e) => H.encodeLocation(e),
- go: (e) => H.go(e),
- push: (e, t) => H.push(e, t),
- replace: (e, t) => H.replace(e, t)
+ createHref: (e) => V.createHref(e),
+ createURL: (e) => V.createURL(e),
+ encodeLocation: (e) => V.encodeLocation(e),
+ go: (e) => V.go(e),
+ push: (e, t) => V.push(e, t),
+ replace: (e, t) => V.replace(e, t)
};
-function ui(e, { replace: t = !1, state: n } = {}) {
+function di(e, { replace: t = !1, state: n } = {}) {
let r = new URL(e, window.location.href), i = `${r.pathname}${r.search}${r.hash}`;
- si = !0;
+ ci = !0;
try {
- t ? H.replace(i, n) : H.push(i, n);
+ t ? V.replace(i, n) : V.push(i, n);
} finally {
- si = !1;
+ ci = !1;
}
}
-function di(e) {
- return ci = e, oi = ri, Promise.resolve(e("boot"));
-}
function fi(e) {
- !ci || e <= oi || (oi = e, ci("history"));
+ return li = e, si = ii, Promise.resolve(e("boot"));
}
function pi(e) {
- let t = zr(e);
- !t || !Mr(window.location.pathname) || ui(window.location.href, {
+ !li || e <= si || (si = e, li("history"));
+}
+function mi(e) {
+ let t = Br(e);
+ !t || !Mr(window.location.pathname) || di(window.location.href, {
replace: !0,
state: t
});
}
//#endregion
//#region src/shell/index.ts
-var mi, hi, gi = null, _i = /* @__PURE__ */ new Set(), vi = /* @__PURE__ */ new Set(), yi = !1, bi = null, xi = null, Si = "", Ci = "/", wi = null, Ti = !1, Ei = !1, Di = null, Oi = null, ki = null, Ai = "/follow", ji = "", Mi = null, Ni = /* @__PURE__ */ new Set(), Pi = 0;
-function Fi(e) {
+var hi, gi, _i = null, vi = /* @__PURE__ */ new Set(), yi = /* @__PURE__ */ new Set(), bi = !1, xi = null, Si = null, Ci = "", wi = "/", Ti = null, Ei = !1, Di = !1, Oi = null, ki = null, Ai = null, ji = "/follow", Mi = "", Ni = null, Pi = /* @__PURE__ */ new Set(), Fi = 0;
+function Ii(e) {
let t = (t) => Object.prototype.hasOwnProperty.call(e, t);
- t("state") && (mi = e.state), t("barsContext") && (hi = e.barsContext), t("detailReturnBarsContext") && (gi = e.detailReturnBarsContext), t("selectMode") && (yi = e.selectMode), t("lastSelectedId") && (bi = e.lastSelectedId), t("followLastSelectedId") && (xi = e.followLastSelectedId), t("selectSurface") && (Si = e.selectSurface), t("detailReturnPath") && (Ci = e.detailReturnPath), t("detailOriginAnchor") && (wi = e.detailOriginAnchor), t("detailOriginAbove") && (Ti = e.detailOriginAbove), t("detailReturnNeedsRestore") && (Ei = e.detailReturnNeedsRestore), t("activeQueue") && (Di = e.activeQueue), t("pendingQueueRoute") && (Oi = e.pendingQueueRoute), t("presentedItem") && (ki = e.presentedItem), t("followDetailReturnPath") && (Ai = e.followDetailReturnPath), t("configurationRequestedSection") && (ji = e.configurationRequestedSection), t("activityPrefill") && (Mi = e.activityPrefill), Ii();
+ t("state") && (hi = e.state), t("barsContext") && (gi = e.barsContext), t("detailReturnBarsContext") && (_i = e.detailReturnBarsContext), t("selectMode") && (bi = e.selectMode), t("lastSelectedId") && (xi = e.lastSelectedId), t("followLastSelectedId") && (Si = e.followLastSelectedId), t("selectSurface") && (Ci = e.selectSurface), t("detailReturnPath") && (wi = e.detailReturnPath), t("detailOriginAnchor") && (Ti = e.detailOriginAnchor), t("detailOriginAbove") && (Ei = e.detailOriginAbove), t("detailReturnNeedsRestore") && (Di = e.detailReturnNeedsRestore), t("activeQueue") && (Oi = e.activeQueue), t("pendingQueueRoute") && (ki = e.pendingQueueRoute), t("presentedItem") && (Ai = e.presentedItem), t("followDetailReturnPath") && (ji = e.followDetailReturnPath), t("configurationRequestedSection") && (Mi = e.configurationRequestedSection), t("activityPrefill") && (Ni = e.activityPrefill), Li();
}
-function Ii() {
- Pi += 1;
- for (let e of [...Ni]) e();
+function Li() {
+ Fi += 1;
+ for (let e of [...Pi]) e();
}
-function Li(e) {
- return Ni.add(e), () => {
- Ni.delete(e);
+function Ri(e) {
+ return Pi.add(e), () => {
+ Pi.delete(e);
};
}
-var Ri = () => Pi;
+var zi = () => Fi;
//#endregion
//#region src/diagnostics-route.ts
-function zi(e) {
+function Bi(e) {
window.peachRegisterRoute({
match: "/diagnostics",
section: "configuration",
@@ -3637,21 +3637,21 @@ function zi(e) {
}
//#endregion
//#region src/board-controls.ts
-function Bi(e) {
+function Vi(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}%`);
}
-function Vi() {
+function Hi() {
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(Bi), Gi(e), Ui(e);
+ e.querySelectorAll("input[type=range]").forEach(Vi), Ki(e), Wi(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Bi(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Vi(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && Bi(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && Vi(e.target);
});
let t = document.createElement("div");
t.className = "board-tooltip", t.id = "board-control-tooltip", t.role = "tooltip", t.popover = "manual", t.hidden = !0, document.body.append(t);
@@ -3674,8 +3674,8 @@ function Vi() {
n && u(e, n) && o();
}, !0), window.addEventListener("resize", o);
}
-var Hi = /* @__PURE__ */ new Map();
-function Ui(e) {
+var Ui = /* @__PURE__ */ new Map();
+function Wi(e) {
let t = ".board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -3689,8 +3689,8 @@ function Ui(e) {
left: r.offsetLeft,
width: r.offsetWidth
};
- n(i), Hi.set(t, i);
- }, i = Hi.get(t);
+ n(i), Ui.set(t, i);
+ }, i = Ui.get(t);
i ? n(i) : r(), requestAnimationFrame(() => {
e.classList.add("board-tabs-ready"), requestAnimationFrame(r);
});
@@ -3710,15 +3710,15 @@ function Ui(e) {
o.observe(e);
});
}
-var Wi = /* @__PURE__ */ new Map();
-function Gi(e) {
+var Gi = /* @__PURE__ */ new Map();
+function Ki(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Wi.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Gi.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -3727,7 +3727,7 @@ function Gi(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- c(t, r, a, "x"), r = a, Wi.set(n, a);
+ c(t, r, a, "x"), r = a, Gi.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -3748,15 +3748,15 @@ function Gi(e) {
}
//#endregion
//#region src/theme-transition.ts
-var Ki = !1;
-async function qi(e, t) {
- if (Ki) return;
+var qi = !1;
+async function Ji(e, t) {
+ if (qi) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, Ki = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, qi = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -3767,78 +3767,78 @@ async function qi(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), Ki = !1;
+ delete s.dataset.themeSnapshot, o.remove(), qi = !1;
}
}
//#endregion
//#region src/sidebar-skeleton.ts
-var Ji = (e) => e.replace(/[&<>"']/g, (e) => ({
+var Yi = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Yi(e, t, n) {
+function Xi(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${Ji(r)}"/></svg>`;
- return `<button type="button" data-nav="${Ji(e)}" aria-pressed="${n(e)}" aria-label="${Ji(t)}">${i}<span>${Ji(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${Yi(r)}"/></svg>`;
+ return `<button type="button" data-nav="${Yi(e)}" aria-pressed="${n(e)}" aria-label="${Yi(t)}">${i}<span>${Yi(t)}</span></button>`;
}).join("")}</div>`;
}
//#endregion
//#region src/manage-header.ts
-var Xi = {
+var Zi = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, Zi = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Qi = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function $i(e) {
+}, Qi = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), $i = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function ea(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Xi[e.path] ?? "";
+ let n = Zi[e.path] ?? "";
return {
title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],
crumb: n,
- compact: Zi.has(e.path) || e.section === "configuration",
+ compact: Qi.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Qi(e.trash),
+ text: $i(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var U = (e) => e.replace(/[&<>"']/g, (e) => ({
+var H = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), ea = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${U(e)}"/></svg>`, ta = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function na(e) {
- let t = $i(e);
+})[e]), ta = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${H(e)}"/></svg>`, na = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function ra(e) {
+ let t = ea(e);
if (!t) return "";
let n = e.menu.map(([t, n, r]) => {
let i = t === e.section;
- return `<button type="button" data-manage="${U(t)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${ea(r)}<span>${U(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${ea("chevron-right")}</li><li aria-current="true"><span>${U(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? ta : `<span data-lede-text="">${U(t.lede.text)}</span>${t.lede.total ? ra : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="">${n}<span data-manage-indicator="" aria-hidden="true"></span></div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${U(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${H(t)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${ta(r)}<span>${H(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${ta("chevron-right")}</li><li aria-current="true"><span>${H(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? na : `<span data-lede-text="">${H(t.lede.text)}</span>${t.lede.total ? ia : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="">${n}<span data-manage-indicator="" aria-hidden="true"></span></div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${H(t.title)}</h2>` + i;
}
-var ra = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var ia = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
//#endregion
//#region src/jobs.ts
-function ia(e, n, r) {
+function aa(e, n, r) {
if (!Number.isFinite(r) || r <= 0) return "";
let i = Math.max(0, Math.min(r, Number.isFinite(n) ? n : 0)), a = i / r * 100;
return `<div class="board-job-progress" role="progressbar" aria-label="${t(e)}" aria-valuemin="0" aria-valuemax="${r}" aria-valuenow="${i}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${a} ${100 - a}" transform="rotate(-90 18 18)"/></svg><span>${t(e)}<small>${Math.round(a)}%</small></span></div>`;
}
-function aa(e, t = 0, n = 0) {
- return n > 0 ? ia(e, t, n) : s(e);
+function oa(e, t = 0, n = 0) {
+ return n > 0 ? aa(e, t, n) : s(e);
}
-async function oa(e) {
+async function sa(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -3853,14 +3853,14 @@ async function oa(e) {
await t(2e3);
}
}
-function sa(e) {
+function ca(e) {
let t = e.note || ((e) => l(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || s, r = e.progress || ((e, t, n) => aa(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || s, r = e.progress || ((e, t, n) => oa(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", c = sessionStorage.getItem(o) || void 0, u = !1;
- oa({
+ sa({
read: e.read,
active: () => !u && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -3886,11 +3886,11 @@ function sa(e) {
}
//#endregion
//#region src/selection.ts
-function ca(e, t, n, r, i, a = i || !e.has(r)) {
+function la(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;
}
-function la(e, t) {
+function ua(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -3898,14 +3898,14 @@ function la(e, t) {
mixed: n > 0 && n < t.length
};
}
-function ua(e, t, n) {
+function da(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function da({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function fa({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);
for (let e of i) e.disabled = !r.count || a;
}
-function fa(e, t, n = 1) {
+function pa(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;
@@ -3925,15 +3925,15 @@ function fa(e, t, n = 1) {
t
];
}
-function pa(e, t) {
+function ma(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function ma(e, t) {
+function ha(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function ha(e, t, n) {
+function ga(e, t, n) {
if (t <= 1) return "";
- let r = fa(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
+ let r = pa(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
return `<nav class="board-pagination" aria-label="${n}">
<button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button>
<ul>${r}</ul>
@@ -3942,20 +3942,20 @@ function ha(e, t, n) {
}
//#endregion
//#region src/card-art/face-frame.ts
-var ga = .32, _a = 13, va = .6;
-function ya(e) {
+var _a = .32, va = 13, ya = .6;
+function ba(e) {
return e ? Number.isFinite(e.cx) && Number.isFinite(e.cy) && Number(e.faceW) > 0 && Number(e.imgW) > 0 && Number(e.imgH) > 0 : !1;
}
-function ba(e, t, n = 1, r = ga, i = va) {
- if (!ya(e) || !(t && t.w > 0 && t.h > 0)) return 1;
+function xa(e, t, n = 1, r = _a, i = ya) {
+ if (!ba(e) || !(t && t.w > 0 && t.h > 0)) return 1;
let a = n > 0 ? n : 1, o = Math.max(t.w / e.imgW, t.h / e.imgH), s = e.faceW * o;
if (!(s > 0)) return 1;
let c = Math.min(t.w, t.h), l = Math.max(r, 13 / c) * c / s, u = Math.max(t.w / (2 * Math.min(e.cx, 1 - e.cx) * e.imgW * o), t.h / (2 * Math.min(e.cy, 1 - e.cy) * e.imgH * o)), d = e.faceW / (s * a);
return Math.max(1, Math.min(Math.max(l, Math.min(u, i * c / s)), d));
}
-function xa(e, t, n = 1, r = ga, i = va) {
- let a = ba(e, t, n, r, i);
- if (a <= 1 || !ya(e) || !t) return null;
+function Sa(e, t, n = 1, r = _a, i = ya) {
+ let a = xa(e, t, n, r, i);
+ if (a <= 1 || !ba(e) || !t) return null;
let o = Math.max(t.w / e.imgW, t.h / e.imgH) * a, s = e.imgW * o, c = e.imgH * o, l = Math.min(0, Math.max(t.w - s, t.w / 2 - e.cx * s)), u = Math.min(0, Math.max(t.h - c, t.h / 2 - e.cy * c)), d = (e, t) => Math.round(e / t * 1e4) / 100;
return {
zoom: Math.round(a * 1e3) / 1e3,
@@ -3967,48 +3967,48 @@ function xa(e, t, n = 1, r = ga, i = va) {
}
//#endregion
//#region src/card-art/image-fallback.ts
-var Sa = "|", Ca = "closest:";
-function wa(e) {
- return String(e ?? "").split(Sa).map((e) => e.trim()).filter(Boolean);
+var Ca = "|", wa = "closest:";
+function Ta(e) {
+ return String(e ?? "").split(Ca).map((e) => e.trim()).filter(Boolean);
}
-function Ta({ drop: e = "self", fallbacks: n = [], initial: r = "", dropClass: i = "", dropStyle: a = !1 } = {}) {
+function Ea({ drop: e = "self", fallbacks: n = [], initial: r = "", dropClass: i = "", dropStyle: a = !1 } = {}) {
let o = (Array.isArray(n) ? n : [n]).filter(Boolean);
return [
`data-drop="${t(e)}"`,
- o.length ? `data-fallbacks="${t(o.join(Sa))}"` : "",
+ o.length ? `data-fallbacks="${t(o.join(Ca))}"` : "",
r ? `data-initial="${t(r)}"` : "",
i ? `data-drop-class="${t(i)}"` : "",
a ? "data-drop-style" : ""
].filter(Boolean).join(" ");
}
-function Ea(e) {
+function Da(e) {
if (!e || !e.dataset || !e.dataset.drop) return "";
- let t = wa(e.dataset.fallbacks);
+ let t = Ta(e.dataset.fallbacks);
if (t.length) {
let [n = "", ...r] = t;
- return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(Sa) : delete e.dataset.fallbacks, e.src = n, "retry";
+ return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(Ca) : delete e.dataset.fallbacks, e.src = n, "retry";
}
let n = e.dataset.drop;
- if (n.startsWith(Ca)) return (e.closest(n.slice(8)) || e).remove(), "drop";
+ if (n.startsWith(wa)) return (e.closest(n.slice(8)) || e).remove(), "drop";
if (n === "initial") {
let t = document.createElement("span");
return t.className = e.dataset.dropClass || "", t.textContent = e.dataset.initial || "", e.replaceWith(t), "drop";
}
return e.remove(), "drop";
}
-function Da(e) {
+function Oa(e) {
e.addEventListener("error", (e) => {
- e.target instanceof HTMLImageElement && Ea(e.target);
+ e.target instanceof HTMLImageElement && Da(e.target);
}, !0);
}
//#endregion
//#region src/card-art/native-image.ts
-function Oa(e, t, n, r) {
+function ka(e, t, n, r) {
if (!(e > 0 && t > 0 && n > 0 && r > 0)) return 0;
let i = e / n, a = t / r;
return i > 1.001 || a > 1.001 || Math.abs(i - a) > Math.max(i, a) * .01 ? 0 : i;
}
-function ka(e, t, n, r, i = 1) {
+function Aa(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -4025,33 +4025,33 @@ function ka(e, t, n, r, i = 1) {
}
//#endregion
//#region src/card-art/representatives.ts
-var Aa = /* @__PURE__ */ new Map();
-function ja(e) {
+var ja = /* @__PURE__ */ new Map();
+function Ma(e) {
(e || []).forEach((e) => {
- e.rep && e.has_avatar && Aa.set(e.k, e.rep);
+ e.rep && e.has_avatar && ja.set(e.k, e.rep);
});
}
-function Ma(e) {
- return Aa.get(e);
+function Na(e) {
+ return ja.get(e);
}
//#endregion
//#region src/card-art/markup.ts
-var Na = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, Pa = (e, t = !1) => Na(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${t ? "&thumb=1" : ""}`, e.cover_version), Fa = (e, t, n) => Na(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), Ia = (e) => e && typeof e == "object" ? e : null;
-function La(e) {
+var Pa = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, Fa = (e, t = !1) => Pa(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${t ? "&thumb=1" : ""}`, e.cover_version), Ia = (e, t, n) => Pa(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), La = (e) => e && typeof e == "object" ? e : null;
+function Ra(e) {
return e && e.is_jav ? "女优" : "艺人";
}
-function Ra({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !1 } = {}) {
- let h = !!(t && n), g = h ? Na(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", _ = i ? `/avatar?id=${i}` : "", v = !!o, y = v ? Fa(o, c, s) : g || _ || (a ? `/link-mark?id=${a}` : "");
+function za({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !1 } = {}) {
+ let h = !!(t && n), g = h ? Pa(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", _ = i ? `/avatar?id=${i}` : "", v = !!o, y = v ? Ia(o, c, s) : g || _ || (a ? `/link-mark?id=${a}` : "");
if (!y) return "";
- let ee = v ? [g, _].filter(Boolean) : h && _ ? [_] : [], te = h && !v, b = te ? Ua(p) : "", ne = d || Ha(p);
- return `<img src="${y}" width="128" height="128" alt="${l}"${u ? " loading=\"lazy\"" : ""} decoding="async"${te ? ne : ""} ${b}${Ta({
+ let ee = v ? [g, _].filter(Boolean) : h && _ ? [_] : [], te = h && !v, b = te ? Wa(p) : "", ne = d || Ua(p);
+ return `<img src="${y}" width="128" height="128" alt="${l}"${u ? " loading=\"lazy\"" : ""} decoding="async"${te ? ne : ""} ${b}${Ea({
dropStyle: (f || !!b || !!ne) && te,
fallbacks: ee
})}>`;
}
-function za(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0, l = !1) {
+function Ba(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0, l = !1) {
let u = c === void 0 ? n && n.avatar_focus || null : c;
- return `<span class="ini">${t((e || "?").slice(0, 1))}</span>` + Ra({
+ return `<span class="ini">${t((e || "?").slice(0, 1))}</span>` + za({
kind: i,
id: n && n.id,
hasImage: !!(n && n.has_image),
@@ -4065,19 +4065,19 @@ function za(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0,
thumb: l
});
}
-function Ba(e, t, n) {
- return za(e, t, n ? Ma(e) : null, n || "performer");
+function Va(e, t, n) {
+ return Ba(e, t, n ? Na(e) : null, n || "performer");
}
-function Va(e) {
- let t = Ia(e);
+function Ha(e) {
+ let t = La(e);
return t && t.axis === "x" ? `${t.pct}% 50%` : t && t.axis === "y" ? `50% ${t.pct}%` : "";
}
-function Ha(e) {
- let t = Va(e);
+function Ua(e) {
+ let t = Ha(e);
return t ? ` style="object-position:${t}"` : "";
}
-function Ua(e) {
- let t = Ia(e)?.box;
+function Wa(e) {
+ let t = La(e)?.box;
return t ? ` data-facebox="${[
t.cx,
t.cy,
@@ -4086,8 +4086,8 @@ function Ua(e) {
t.imgH
].map(Number).join(" ")}"` : "";
}
-function Wa(e, t, n = !1) {
- let r = Pa(e, !0), i = e.cover_frame || {}, a = [i.cx == null ? "" : ` data-cx="${i.cx}"`, i.cy == null ? "" : ` data-cy="${Math.min(.6, Math.max(.05, i.cy))}"`].join(""), o = e.poster_box, s = o ? ` data-posterbox="${[
+function Ga(e, t, n = !1) {
+ let r = Fa(e, !0), i = e.cover_frame || {}, a = [i.cx == null ? "" : ` data-cx="${i.cx}"`, i.cy == null ? "" : ` data-cy="${Math.min(.6, Math.max(.05, i.cy))}"`].join(""), o = e.poster_box, s = o ? ` data-posterbox="${[
o.x0,
(o.px || [])[0],
(o.px || [])[1],
@@ -4098,42 +4098,42 @@ function Wa(e, t, n = !1) {
return `<img class="poster cover ${t === "small" ? "whole" : "front"}" src="${r}"
width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}"${a}${s} data-drop="self">`;
}
-var Ga = {
+var Ka = {
kind: "",
html: ""
};
-function Ka(e, n, r, i) {
+function qa(e, n, r, i) {
let a = ie(e, i);
- if (!a) return Ga;
- let o = e.has_cover && e.code ? Pa(e, !0) : "", s = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", c = Wa(e, n, r), l = (c.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), u = a === "cover" ? c : `<img class="poster" src="${s}" width="640" height="360" alt="" loading="${r ? "eager" : "lazy"}"${l}>`;
+ if (!a) return Ka;
+ let o = e.has_cover && e.code ? Fa(e, !0) : "", s = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", c = Ga(e, n, r), l = (c.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), u = a === "cover" ? c : `<img class="poster" src="${s}" width="640" height="360" alt="" loading="${r ? "eager" : "lazy"}"${l}>`;
return {
kind: a === "cover" ? "cover" : "thumb",
html: u.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${t(o)}" data-jav-thumb="${t(s)}" data-jav-image-layout="${n}" `)
};
}
-function qa(e, n, r, i) {
- return e.is_jav ? Ka(e, n, r, i) : e.follow_thumb_url ? {
+function Ja(e, n, r, i) {
+ return e.is_jav ? qa(e, n, r, i) : e.follow_thumb_url ? {
kind: "thumb",
html: `<img class="poster" src="${t(e.follow_thumb_url)}" width="640" height="360" alt="" loading="${r ? "eager" : "lazy"}" referrerpolicy="no-referrer">`
- } : Ja(e, n, r, i);
+ } : Ya(e, n, r, i);
}
-function Ja(e, t, n, r) {
- return e.is_jav ? Ka(e, t, n, r) : e.has_cover && e.cover_key ? {
+function Ya(e, t, n, r) {
+ return e.is_jav ? qa(e, t, n, r) : e.has_cover && e.cover_key ? {
kind: "cover",
- html: Wa(e, t, n)
- } : !e.has_thumb && !e.has_local_poster ? Ga : {
+ html: Ga(e, t, n)
+ } : !e.has_thumb && !e.has_local_poster ? Ka : {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function Ya(e, t) {
- return Ja(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
-}
function Xa(e, t) {
+ return Ya(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
+}
+function Za(e, t) {
let n = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "";
- return e.is_jav ? ie(e, t) === "cover" ? Pa(e) : n : e.has_cover && e.cover_key ? Pa(e) : n;
+ return e.is_jav ? ie(e, t) === "cover" ? Fa(e) : n : e.has_cover && e.cover_key ? Fa(e) : n;
}
-function Za(e) {
+function Qa(e) {
let t = e.performers || [], n = e.performer_entities || [], r = t[0] || "", i = e.is_jav && r ? "" : e.creator || "";
return {
kind: i ? "creator" : r ? "performer" : "",
@@ -4144,18 +4144,18 @@ function Za(e) {
total: e.performer_total || t.length
};
}
-function Qa(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Za(e);
- return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${za(e, a[t], Ma(e))}</span>`).join("")}</div>` : `<span class="mav">${za(n, t === "performer" ? a[0] : e.creator_entity, t ? Ma(n) : null, t || "performer")}</span>`;
+function $a(e) {
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Qa(e);
+ return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${Ba(e, a[t], Na(e))}</span>`).join("")}</div>` : `<span class="mav">${Ba(n, t === "performer" ? a[0] : e.creator_entity, t ? Na(n) : null, t || "performer")}</span>`;
}
-function $a(e, t) {
+function eo(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
//#endregion
//#region src/card-art/framing.ts
-var eo = () => window.devicePixelRatio || 1;
-function to(e) {
+var to = () => window.devicePixelRatio || 1;
+function no(e) {
let t = e.parentElement;
if (!t || ([
"position",
@@ -4174,17 +4174,17 @@ function to(e) {
delete e.dataset.faceFramed;
let n = new ResizeObserver(() => {
let r = t.getBoundingClientRect();
- r.width > 0 && r.height > 0 && (n.disconnect(), to(e));
+ r.width > 0 && r.height > 0 && (n.disconnect(), no(e));
});
n.observe(t);
return;
}
- let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Oa(e.naturalWidth, e.naturalHeight, o, s);
+ let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = ka(e.naturalWidth, e.naturalHeight, o, s);
if (!c) {
e.style.objectPosition = "50% 50%";
return;
}
- let l = xa({
+ let l = Sa({
cx: r,
cy: i,
faceW: a * c,
@@ -4193,27 +4193,27 @@ function to(e) {
}, {
w: n.width,
h: n.height
- }, eo());
+ }, to());
if (!l) return;
let u = e.style;
u.position = "absolute", u.right = "auto", u.bottom = "auto", u.left = `${l.left}%`, u.top = `${l.top}%`, u.width = `${l.width}%`, u.height = `${l.height}%`, u.maxWidth = "none", u.maxHeight = "none";
}
-function no(e) {
+function ro(e) {
let t = e.naturalWidth / e.naturalHeight;
if (!t) return;
let n = new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "";
e.dataset.frame = /^FC2(?:-PPV)?-/i.test(n) || t >= 1.65 ? "still" : t > 1.2 ? "sleeve" : "front";
- let r = oo(e), i = (t, n, r) => {
+ let r = so(e), i = (t, n, r) => {
if (n == null || !(r > 0 && r < 1)) return;
let i = Math.min(1, Math.max(0, (n - r / 2) / (1 - r)));
e.style.setProperty(t, `${Math.round(i * 100)}%`);
};
- i("--cover-x", so(e, "cx"), r / t), i("--cover-y", so(e, "cy"), t / r), ro(e, r), (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(t / r - 1) > .02 && io(e);
+ i("--cover-x", co(e, "cx"), r / t), i("--cover-y", co(e, "cy"), t / r), io(e, r), (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(t / r - 1) > .02 && ao(e);
}
-function ro(e, t) {
+function io(e, t) {
if (e.dataset.frame === "front") return;
let [n = NaN, r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.posterbox || "").split(" ").map(Number);
- if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - ae * i), a = 0, o = r, s = i), !Oa(e.naturalWidth, e.naturalHeight, r, i)) return;
+ if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - ae * i), a = 0, o = r, s = i), !ka(e.naturalWidth, e.naturalHeight, r, i)) return;
let c = oe({
x0: n,
y0: a,
@@ -4221,33 +4221,33 @@ function ro(e, t) {
y1: s,
px: [r, i]
}, t);
- c && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${c.clip.top}% ${c.clip.right}% ${c.clip.bottom}% ${c.clip.left}%`), e.style.setProperty("--panel-left", `${c.left}%`), e.style.setProperty("--panel-top", `${c.top}%`), e.style.setProperty("--panel-height", `${c.height}%`), io(e));
+ c && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${c.clip.top}% ${c.clip.right}% ${c.clip.bottom}% ${c.clip.left}%`), e.style.setProperty("--panel-left", `${c.left}%`), e.style.setProperty("--panel-top", `${c.top}%`), e.style.setProperty("--panel-height", `${c.height}%`), ao(e));
}
-function io(e) {
+function ao(e) {
e.closest(".pic,[data-media-pic]")?.style.setProperty("--cover-blur", `url("${e.dataset.thumbSrc || e.currentSrc || e.src}")`);
}
-function ao(e) {
+function oo(e) {
if (!/[?&]thumb=1(&|$)/.test(e.src) || !e.naturalWidth) return;
let { width: t, height: n } = e.getBoundingClientRect();
- (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(t / e.naturalWidth, n / e.naturalHeight) * eo() > 1.01 && (e.dataset.thumbSrc = e.src, e.src = e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
+ (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(t / e.naturalWidth, n / e.naturalHeight) * to() > 1.01 && (e.dataset.thumbSrc = e.src, e.src = e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
}
-function oo(e) {
+function so(e) {
let t = getComputedStyle(e).getPropertyValue("--card-ratio").trim().split("/").map(Number), n = t.length === 2 ? Number(t[0]) / Number(t[1]) : Number(t[0]);
return Number.isFinite(n) && n > 0 ? n : 16 / 9;
}
-function so(e, t) {
+function co(e, t) {
let n = parseFloat(e.dataset[t] ?? "");
return Number.isFinite(n) ? n : null;
}
-var co = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", lo = /* @__PURE__ */ new WeakMap();
-function uo(e) {
- let t = e.matches(co) ? [e] : e.querySelectorAll(co);
- for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), lo.set(e.parentElement, performance.now()));
-}
+var lo = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", uo = /* @__PURE__ */ new WeakMap();
function fo(e) {
+ let t = e.matches(lo) ? [e] : e.querySelectorAll(lo);
+ for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), uo.set(e.parentElement, performance.now()));
+}
+function po(e) {
let t = e.parentElement;
if (!t?.classList.contains("imgwait")) return;
- if (performance.now() - (lo.get(t) ?? NaN) < i) {
+ if (performance.now() - (uo.get(t) ?? NaN) < i) {
t.classList.remove("imgwait");
return;
}
@@ -4257,86 +4257,86 @@ function fo(e) {
};
t.addEventListener("transitionend", r), n = setTimeout(r, 1e3);
}
-function po(e) {
+function mo(e) {
let t = "img.cover,img[data-facebox]", n = e.matches(t) ? [e] : e.querySelectorAll(t);
for (let e of n) {
let t = e;
- t.complete && t.naturalWidth && (t.classList.contains("cover") ? no(t) : (mo(t), to(t)));
+ t.complete && t.naturalWidth && (t.classList.contains("cover") ? ro(t) : (ho(t), no(t)));
}
}
-function mo(e) {
+function ho(e) {
let t = e.closest("[data-fit-native]");
if (!t || !e.naturalWidth) return;
- let { small: n, width: r, height: i } = ka(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, eo());
+ let { small: n, width: r, height: i } = Aa(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, to());
t.dataset.nativeSmall = String(n), t.style.setProperty("--markw", n ? r + "px" : "100%"), t.style.setProperty("--markh", n ? i + "px" : "100%");
let a = (e.currentSrc || e.src).replace(/"/g, "%22");
t.style.setProperty("--markbg", n ? `url("${a}")` : "none");
}
-function ho(e) {
+function go(e) {
(e || document).querySelectorAll("[data-fit-native] img").forEach((e) => {
- mo(e), e.dataset.facebox && to(e);
+ ho(e), e.dataset.facebox && no(e);
});
}
-function go(e, t) {
- for (let n of ce(e, t)) no(n), ao(n);
+function _o(e, t) {
+ for (let n of ce(e, t)) ro(n), oo(n);
}
-var _o = !1;
-function vo() {
- _o || (_o = !0, document.addEventListener("load", (e) => {
+var vo = !1;
+function yo() {
+ vo || (vo = !0, document.addEventListener("load", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && (fo(t), mo(t), t.classList.contains("cover") ? (no(t), ao(t)) : t.dataset.facebox && to(t));
+ t instanceof HTMLImageElement && (po(t), ho(t), t.classList.contains("cover") ? (ro(t), oo(t)) : t.dataset.facebox && no(t));
}, !0), new MutationObserver((e) => {
- for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (uo(e), po(e));
+ for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (fo(e), mo(e));
}).observe(document.body, {
childList: !0,
subtree: !0
}), document.addEventListener("error", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && !t.dataset.fallbacks && fo(t);
+ t instanceof HTMLImageElement && !t.dataset.fallbacks && po(t);
}, !0));
}
//#endregion
//#region src/card-art/hover.ts
-var yo = ".card,[data-media-card],[data-mix-card]", W = {
+var bo = ".card,[data-media-card],[data-mix-card]", U = {
selecting: () => !1,
censored: () => !1,
delaySeconds: () => 0
};
-function bo(e) {
- W = e;
+function xo(e) {
+ U = e;
}
-var xo = () => !!window.__scrolling;
-function So(e = document, t = null) {
- !e || !e.querySelectorAll || (e.querySelectorAll(yo).forEach((e) => {
+var So = () => !!window.__scrolling;
+function Co(e = document, t = null) {
+ !e || !e.querySelectorAll || (e.querySelectorAll(bo).forEach((e) => {
e !== t && e._stopHover && e._stopHover();
}), e.querySelectorAll("video.hv").forEach((e) => {
- e.closest(yo) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ e.closest(bo) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
}), e.querySelectorAll("img.hvframes").forEach((e) => {
- e.closest(yo) !== t && (e.removeAttribute("src"), e.remove());
+ e.closest(bo) !== t && (e.removeAttribute("src"), e.remove());
}));
}
-function Co(e) {
- e._stopHover?.(), So(e);
+function wo(e) {
+ e._stopHover?.(), Co(e);
}
-function wo(e, t, n) {
+function To(e, t, n) {
n ? e.dataset[t] = "" : delete e.dataset[t];
}
-function To(e, t) {
+function Eo(e, t) {
let n = e, r = e.querySelector("[data-media-pic]");
if (!r) return;
e.dataset.hoverMode = t.location === "local" ? "video" : "frames";
let i, a = () => {
- clearTimeout(i), W.delaySeconds() && (wo(e, "previewing", !0), i = setTimeout(() => {
- W.delaySeconds() && wo(e, "longhover", !0);
- }, W.delaySeconds() * 1e3));
+ clearTimeout(i), U.delaySeconds() && (To(e, "previewing", !0), i = setTimeout(() => {
+ U.delaySeconds() && To(e, "longhover", !0);
+ }, U.delaySeconds() * 1e3));
}, o = () => {
- clearTimeout(i), wo(e, "previewing", !1), wo(e, "longhover", !1);
+ clearTimeout(i), To(e, "previewing", !1), To(e, "longhover", !1);
};
if (t.location !== "local") {
if (!t.has_thumb) return;
let i, s = 4, c = null, l = !1;
e.addEventListener("mouseenter", () => {
- W.selecting() || W.censored() || (a(), c || (c = document.createElement("img"), c.className = "hvframes", c.alt = "", c.src = `/poster?id=${t.id}&c=${s}`, r.appendChild(c)), clearInterval(i), i = setInterval(() => {
+ U.selecting() || U.censored() || (a(), c || (c = document.createElement("img"), c.className = "hvframes", c.alt = "", c.src = `/poster?id=${t.id}&c=${s}`, r.appendChild(c)), clearInterval(i), i = setInterval(() => {
if (!c || l) return;
let e = (s + 1) % 9, n = new Image();
l = !0, n.onload = () => {
@@ -4354,9 +4354,9 @@ function To(e, t) {
}
let s, c = null;
e.addEventListener("mouseenter", () => {
- W.selecting() || W.censored() || xo() || (s = setTimeout(() => {
- if (xo() || W.censored()) return;
- So(document, e);
+ U.selecting() || U.censored() || So() || (s = setTimeout(() => {
+ if (So() || U.censored()) return;
+ Co(document, e);
let n = document.createElement("video");
c = n, n.className = "hv", n.muted = !0, n.playsInline = !0, n.loop = !0, n.preload = "metadata", n.src = "/stream?id=" + t.id;
let i = [
@@ -4386,7 +4386,7 @@ function To(e, t) {
}
//#endregion
//#region src/entity-skeleton.ts
-function Eo(e, t, n) {
+function Do(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -4400,7 +4400,7 @@ function Eo(e, t, n) {
}
//#endregion
//#region src/follow-sort.ts
-var Do = [
+var Oo = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -4408,7 +4408,7 @@ var Do = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], Oo = "checked", ko = {
+], ko = "checked", Ao = {
checked: "desc",
added: "desc",
name: "asc",
@@ -4416,38 +4416,38 @@ var Do = [
source: "asc",
provider: "asc",
status: "asc"
-}, Ao = (e) => Do.some(([t]) => t === e);
-function jo(e, t) {
- let n = Ao(e) ? e : Oo;
+}, jo = (e) => Oo.some(([t]) => t === e);
+function Mo(e, t) {
+ let n = jo(e) ? e : ko;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : ko[n]
+ dir: t === "asc" || t === "desc" ? t : Ao[n]
};
}
//#endregion
//#region src/island-skeleton.ts
-var Mo = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", No = {
+var No = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", Po = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}, Po = {
- medium: No.medium,
- small: "size-8 rounded-lg p-0 text-body-medium"
}, Fo = {
+ medium: Po.medium,
+ small: "size-8 rounded-lg p-0 text-body-medium"
+}, Io = {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0"
-}, Io = {
+}, Lo = {
medium: "inline-flex items-center justify-center px-1 shrink-0",
small: "inline-flex items-center justify-center px-0.5 shrink-0"
-}, Lo = {
+}, Ro = {
primary: "bg-button-primary text-text-white shadow-xs",
secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",
ghost: "bg-button-ghost-background text-button-ghost-foreground"
-}, Ro = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
-function G({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? No[t] : Po[t], s = n ? Ro(n, Fo[t]) : "", c = r ? `<span class="${Io[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${Mo} ${o} ${Lo[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+}, zo = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
+function W({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
+ let o = r ? Po[t] : Fo[t], s = n ? zo(n, Io[t]) : "", c = r ? `<span class="${Lo[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${No} ${o} ${Ro[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
-var zo = {
+var Bo = {
md: {
box: "gap-1.5 px-2.5 py-2 text-body-medium",
value: "gap-[5px]",
@@ -4459,32 +4459,33 @@ var zo = {
chevron: "size-3.5"
}
};
-function Bo(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
- let i = zo[t];
- 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>${Ro("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
+function Vo(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
+ let i = Bo[t];
+ 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>${zo("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
}
-var Vo = "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", Ho = "flex min-w-0 flex-col gap-2", Uo = "text-body-regular text-text-secondary", Wo = "text-display-4-medium tabular-nums text-text-primary", Go = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
-function Ko(e) {
- return `<div data-collection-summary="" class="${Vo}"><div class="${Ho}"><span class="${Uo}">${e}</span><strong class="${Wo}"><span data-skeleton="count" aria-hidden="true" class="${Go}"></span></strong></div></div>`;
+var Ho = "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", Uo = "flex min-w-0 flex-col gap-2", Wo = "text-body-regular text-text-secondary", Go = "text-display-4-medium tabular-nums text-text-primary", Ko = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
+function qo(e) {
+ return `<div data-collection-summary="" class="${Ho}"><div class="${Uo}"><span class="${Wo}">${e}</span><strong class="${Go}"><span data-skeleton="count" aria-hidden="true" class="${Ko}"></span></strong></div></div>`;
}
//#endregion
-//#region src/configuration-copy.ts
-var qo = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Jo = "仅填域名;留空使用默认地址", Yo = (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">${G({
+//#region src/configuration-skeleton.ts
+var Jo = (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">${W({
label: "保存配置",
attrs: "disabled data-skeleton-action"
-})}</div></div></section>`, Xo = (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>`, Zo = (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">${Jo}</p></div>`;
-function Qo() {
+})}</div></div></section>`, G = (e, t = "", n = "configuration-skeleton-toggle") => `<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 ${n}"></span></div>`;
+function Yo() {
return `<div class="peach-react"><div class="configpage">${`<div class="board-local-nav" data-section-nav data-section-items>${[
"通用",
"媒体",
+ "下载",
"网络与访问",
- "更新与维护"
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${Yo("开机自启", `<div class="flex flex-col">${Xo("开机后启动 Peach")}${Xo("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${Xo("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${Yo("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${qo}</p>${Zo("JavDB")}${Zo("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">${Jo("开机自启", `<div class="flex flex-col">${G("开机后启动 Peach")}${G("静默启动", "开机后只显示托盘图标,不打开网页。")}${G("在桌面创建快捷方式", "双击图标打开 Peach 网页。")}</div>`)}${Jo("自动更新", `<div class="flex flex-col">${G("自动检查新版本")}${G("自动下载更新")}${G("检查频率", "", "configuration-skeleton-select")}</div>`)}</div></div></div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var K = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", q = (e = "60%") => `<span class="${K} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, $o = "disabled data-skeleton-action", es = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function ts() {
+var K = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", q = (e = "60%") => `<span class="${K} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, Xo = "disabled data-skeleton-action", Zo = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function Qo() {
let e = [
"馆藏视频",
"看过",
@@ -4495,7 +4496,7 @@ function ts() {
<span class="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"><i class="${K} size-7 max-sm:size-6"></i>${e}</span>
<b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${q("4em")}</b>
<small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${q("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${es}" data-stats-chart>
+ </div>`).join(""), t = (e) => `<section class="${Zo}" data-stats-chart>
<header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${q("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
@@ -4512,7 +4513,7 @@ function ts() {
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${es}"><h3 class="text-title-2-medium">${e}</h3><div class="${K} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${Zo}"><h3 class="text-title-2-medium">${e}</h3><div class="${K} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -4525,7 +4526,7 @@ function ts() {
</section>
</div></div>`;
}
-function ns() {
+function $o() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
<span class="${K} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
<span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${q("70%")}</span>
@@ -4538,112 +4539,112 @@ function ns() {
"留最大",
"留最长",
"整组回收"
- ].map((e) => G({
+ ].map((e) => W({
variant: "secondary",
size: "small",
label: e,
- attrs: $o
+ attrs: Xo
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 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">
<div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${q("4em")}</strong></div><p class="text-body-regular text-text-secondary">${q("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${$o} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${Xo} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function rs() {
+function es() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
<div class="flex min-w-0 gap-4"><span class="${K} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
<div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${q("80%")}</h3><p class="text-body-2-regular">${q("60%")}</p></div>
</div>
- <footer class="flex justify-end">${G({
+ <footer class="flex justify-end">${W({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: $o
+ attrs: Xo
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- ${Ko("待升级")}
+ ${qo("待升级")}
<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul>
</div></div>`;
}
//#endregion
//#region src/board-skeleton.ts
-var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, is = () => `${J("80%")}${J("48%")}`, Y = (e, t) => e.repeat(t), as = (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>`, os = (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>`, ss = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Y(is(), 3)}</div></section>`, X = "disabled data-skeleton-action", Z = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, cs = "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", ls = () => `<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>`, ts = () => `${J("80%")}${J("48%")}`, Y = (e, t) => e.repeat(t), ns = (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>`, rs = (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>`, is = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Y(ts(), 3)}</div></section>`, X = "disabled data-skeleton-action", Z = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, as = "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", os = () => `<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="${cs}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Z("3em")}</b></div>`).join("")}</div>`, us = () => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${[
+].map((e) => `<div class="${as}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Z("3em")}</b></div>`).join("")}</div>`, ss = () => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${[
"关注列表",
"添加关注",
"JAV 订阅源",
"想要",
"来源和凭证"
-].map((e, t) => `<span class="whitespace-nowrap" aria-selected="${t === 0}">${e}</span>`).join("")}</div>`, ds = (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>`, fs = ({ table: e, sort: t, dir: n }) => {
- let r = Do.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">${Z("132px")}</span>${G({
+].map((e, t) => `<span class="whitespace-nowrap" aria-selected="${t === 0}">${e}</span>`).join("")}</div>`, cs = (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>`, ls = ({ table: e, sort: t, dir: n }) => {
+ let r = Oo.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">${Z("132px")}</span>${W({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
attrs: X
- })}<span data-button-group role="group">${G({
+ })}<span data-button-group role="group">${W({
variant: "ghost",
glyph: "layout-grid",
attrs: `aria-pressed="${!e}"`
- })}${G({
+ })}${W({
variant: "ghost",
glyph: "table",
attrs: `aria-pressed="${e}"`
- })}</span>${Bo(r)}${G({
+ })}</span>${Vo(r)}${W({
variant: "secondary",
glyph: n === "asc" ? "arrow-up" : "arrow-down"
- })}${e ? "" : G({
+ })}${e ? "" : W({
variant: "secondary",
glyph: "chevron-up",
label: "全部收起",
compact: !0,
attrs: X
})}</div>`;
-}, ps = () => `<span class="flex shrink-0 items-center gap-1">${G({
+}, us = () => `<span class="flex shrink-0 items-center gap-1">${W({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
attrs: X
-})}${G({
+})}${W({
variant: "secondary",
size: "small",
glyph: "trash",
attrs: X
-})}</span>`, ms = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 follow-skeleton-source">${ds()}<span class="flex min-w-0 grow flex-col gap-0.5"><span class="text-body-medium">${Z("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Q(14, 14)}</span>${Q(48, 24)}<span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary">${Z("113px")}</span>${ps()}</div>`, hs = (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>${Q(32, 32, !0)}<b class="min-w-0 grow text-body-medium break-words text-text-primary">${Z("92px")}</b>${G({
+})}</span>`, ds = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 follow-skeleton-source">${cs()}<span class="flex min-w-0 grow flex-col gap-0.5"><span class="text-body-medium">${Z("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Q(14, 14)}</span>${Q(48, 24)}<span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary">${Z("113px")}</span>${us()}</div>`, fs = (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>${Q(32, 32, !0)}<b class="min-w-0 grow text-body-medium break-words text-text-primary">${Z("92px")}</b>${W({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
attrs: X
-})}<span class="flex shrink-0 items-center gap-1">${Q(14, 14)}${Q(14, 14)}</span>${G({
+})}<span class="flex shrink-0 items-center gap-1">${Q(14, 14)}${Q(14, 14)}</span>${W({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
attrs: X
-})}${G({
+})}${W({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
attrs: X
-})}</div><div data-source-divider>${Y(ms(), e)}</div></section>`, gs = () => {
+})}</div><div data-source-divider>${Y(ds(), e)}</div></section>`, ps = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, _s = [
+}, ms = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -4651,58 +4652,58 @@ var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, is =
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], vs = {
+], hs = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, ys = "<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>", bs = (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>${_s.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${vs[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${ys}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Y(`<tr>${[
- ds(),
+}, gs = "<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>", _s = (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>${ms.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${hs[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${gs}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Y(`<tr>${[
+ cs(),
`<span class="flex min-w-0 items-center gap-2">${Q(32, 32, !0)}${Z("5em")}</span>`,
Z("10em"),
`<span class="flex items-center gap-1.5">${Q(14, 14)}${Z("4em")}</span>`,
Q(48, 24),
Z("113px"),
- ps()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, xs = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${Z("111px")}</span>${Bo(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Q(204, 32)}</div>`, Ss = (e) => {
- let t = e.followLayout === "table", n = jo(e.followSort, e.followDir), r = e.followPageSize || gs(), i = t ? bs(r, n) : `${ds("全选本页")}<div class="flex flex-col gap-3">${hs(3)}${hs(4)}${hs(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${ls()}<div class="flex flex-col gap-6">${us()}<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"}">${fs({
+ us()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, vs = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${Z("111px")}</span>${Vo(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Q(204, 32)}</div>`, ys = (e) => {
+ let t = e.followLayout === "table", n = Mo(e.followSort, e.followDir), r = e.followPageSize || ps(), i = t ? _s(r, n) : `${cs("全选本页")}<div class="flex flex-col gap-3">${fs(3)}${fs(4)}${fs(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${os()}<div class="flex flex-col gap-6">${ss()}<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"}">${ls({
table: t,
...n
- })}${i}${xs(t, r)}</div></div></div></div></div>`;
+ })}${i}${vs(t, r)}</div></div></div></div></div>`;
};
-function Cs() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${J("85%")}${J("65%")}${Y(is(), 4)}</div></aside></div>`;
+function bs() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${J("85%")}${J("65%")}${Y(ts(), 4)}</div></aside></div>`;
}
-function ws() {
- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情">${Cs()}</div>`;
+function xs() {
+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情">${bs()}</div>`;
}
-function Ts(e, t = {}) {
+function Ss(e, t = {}) {
let n = "";
- if (e === "/stats") n = ts();
- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${os(["浏览器记录", "Peach 内部"], "insightswitch")}${J("24%")}</header><div class="tastestate"></div>${as([
+ if (e === "/stats") n = Qo();
+ else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${rs(["浏览器记录", "Peach 内部"], "insightswitch")}${J("24%")}</header><div class="tastestate"></div>${ns([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Y(is(), 4)}</div></section>${ss("口味分析")}<div class="board-activity-charts">${ss("浏览活动")}${ss("时间分布")}</div>${ss("标签")}</div>`;
- else if (e === "/follow-manage") n = Ss(t);
- else if (e === "/configuration") n = Qo();
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Y(ts(), 4)}</div></section>${is("口味分析")}<div class="board-activity-charts">${is("浏览活动")}${is("时间分布")}</div>${is("标签")}</div>`;
+ else if (e === "/follow-manage") n = ys(t);
+ else if (e === "/configuration") n = Yo();
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">${J("35%")}${is()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = ns();
- else if (e === "/quality-goals") n = rs();
- 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">${Y(`<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">${is()}</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%")}${ts()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") n = $o();
+ else if (e === "/quality-goals") n = es();
+ 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">${Y(`<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">${ts()}</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 Es = [
+var Cs = [
"loc",
"creator",
"performer",
@@ -4720,9 +4721,9 @@ var Es = [
"jav",
"thumb"
];
-async function Ds(e, t) {
+async function ws(e, t) {
let n = new URLSearchParams();
- for (let t of Es) e[t] && n.set(t, e[t]);
+ for (let t of Cs) 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 || [],
@@ -4733,7 +4734,7 @@ async function Ds(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function Os({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function Ts({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let o = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (t || n) return a("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
@@ -4754,56 +4755,56 @@ function Os({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
}
//#endregion
//#region src/catalog-filter-skeleton.ts
-var ks = 64, As = (e) => e.replace(/[&<>"]/g, (e) => ({
+var Es = 64, Ds = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), js = (e) => e.repeat(ks);
-function Ms(e, t) {
- let n = e.map((e) => `<a href="${As(e.href)}" data-catalog-view="${As(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${As(e.label)}</a>`).join("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + js("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + js("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(ks) + "</span></div></div></div><div data-filter-row=\"bottom\" aria-busy=\"true\" class=\"flex min-w-0 items-center gap-3 px-3 py-2 min-h-12\"><span data-catalog-readout=\"\"><span data-skeleton=\"count\" aria-hidden=\"true\" class=\"relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen\"></span></span></div></div></div></div>";
+})[e]), Os = (e) => e.repeat(Es);
+function ks(e, t) {
+ let n = e.map((e) => `<a href="${Ds(e.href)}" data-catalog-view="${Ds(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${Ds(e.label)}</a>`).join("");
+ return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + Os("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + Os("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(Es) + "</span></div></div></div><div data-filter-row=\"bottom\" aria-busy=\"true\" class=\"flex min-w-0 items-center gap-3 px-3 py-2 min-h-12\"><span data-catalog-readout=\"\"><span data-skeleton=\"count\" aria-hidden=\"true\" class=\"relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen\"></span></span></div></div></div></div>";
}
//#endregion
//#region src/catalog-bars.ts
-var Ns = 3e4, Ps = 0, Fs = (e, t = Ps) => [
+var As = 3e4, js = 0, Ms = (e, t = js) => [
"facets",
e,
t
-], Is = (e, t, n = Ps) => [
+], Ns = (e, t, n = js) => [
"tops",
e,
t,
n
-], Ls = (e, t = Ps) => [
+], Ps = (e, t = js) => [
"tops",
e,
t
];
-async function Rs(t) {
+async function Fs(t) {
let n = String(t), r = await e(`/api/tops?${n}`), i = new URLSearchParams(n);
return r.performers.length || r.studios.length || !i.has("state") ? r : (i.delete("state"), await e(`/api/tops?${i}`));
}
-function zs(t, n) {
+function Is(t, n) {
return Promise.all([R.fetchQuery({
- queryKey: Fs(t),
+ queryKey: Ms(t),
queryFn: () => e(`/api/facets${t ? `?${t}` : ""}`),
- staleTime: Ns
+ staleTime: As
}), R.fetchQuery({
- queryKey: Is(n, t),
- queryFn: () => Rs(n),
- staleTime: Ns
+ queryKey: Ns(n, t),
+ queryFn: () => Fs(n),
+ staleTime: As
})]);
}
-function Bs(e) {
+function Ls(e) {
return R.fetchQuery({
- queryKey: Ls(e),
- queryFn: () => Rs(e),
- staleTime: Ns
+ queryKey: Ps(e),
+ queryFn: () => Fs(e),
+ staleTime: As
});
}
-function Vs() {
- Ps += 1;
+function Rs() {
+ js += 1;
let e = (e) => e.state.fetchStatus === "idle";
R.removeQueries({
queryKey: ["facets"],
@@ -4815,35 +4816,35 @@ function Vs() {
}
//#endregion
//#region src/management.ts
-var Hs = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Us = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", $ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Ws = "type=\"button\" disabled data-skeleton-action", Gs = "disabled data-skeleton-action", Ks = "aria-disabled=\"true\"", qs = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, Js = (e, t) => `<div data-geist-fieldset-content>
+var zs = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Bs = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", $ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Vs = "type=\"button\" disabled data-skeleton-action", Hs = "disabled data-skeleton-action", Us = "aria-disabled=\"true\"", Ws = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, Gs = (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 Ys() {
- return qs(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
- ${Js("扫描与采集", Hs)}
- <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>${Ro("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${G({
+function Ks() {
+ return Ws(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
+ ${Gs("扫描与采集", zs)}
+ <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>${zo("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${W({
glyph: "database",
label: "扫描并补全资料",
- attrs: Gs
- })}${G({
+ attrs: Hs
+ })}${W({
glyph: "chevron-down",
- attrs: `${Gs} aria-label="更多扫描与采集方式"`
+ attrs: `${Hs} aria-label="更多扫描与采集方式"`
})}</span></footer>
</section>`);
}
-function Xs() {
- return qs(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${Js("媒体修复", Us)}
- <footer data-geist-fieldset-footer>${Bo($, {
+function qs() {
+ return Ws(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
+ ${Gs("媒体修复", Bs)}
+ <footer data-geist-fieldset-footer>${Vo($, {
className: "w-48",
- attrs: Ks
- })}${G({
+ attrs: Us
+ })}${W({
label: "开始修复",
- attrs: Gs
+ attrs: Hs
})}</footer>
</section>`);
}
-function Zs() {
+function Js() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
@@ -4858,8 +4859,8 @@ function Zs() {
<span class="board-plain-stat-head"><span class="board-stat-tile">${n(t)}</span>${e}</span>
<strong>${$}</strong><span class="cleanupmeta">${$}</span></button>`).join("")}</div>
<div class="cleanupgrid">
- <div class="cleanupscraping">${Ys()}</div>
- <div class="cleanupmediarepair">${Xs()}</div>
+ <div class="cleanupscraping">${Ks()}</div>
+ <div class="cleanupmediarepair">${qs()}</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>
@@ -4870,7 +4871,7 @@ function Zs() {
<div class="organizepresets">${t}</div>
<p class="cleanupmeta">${$}</p>
</div></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${Ws}>预览</button></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${Vs}>预览</button></footer>
</section></div>
<section class="resourcesync" aria-labelledby="cleanup-loading-links">
<h2 id="cleanup-loading-links">链接管理</h2>
@@ -4882,19 +4883,19 @@ function Zs() {
"作品资料站"
].map((e) => `<div><span>${e}</span><b>${$}</b></div>`).join("")}</div>
<div class="linkhosts"><span>主要站点</span><b>${$}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Ws}>${n("unlink")}<span>检查死链</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Vs}>${n("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" ${Ws}>${n("git-compare")}<span>检查文件</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Vs}>${n("git-compare")}<span>检查文件</span></button></div>
</div></section></div>`;
}
//#endregion
//#region src/junk-queue.ts
-var Qs = [
+var Ys = [
[
"",
"全部",
@@ -4930,96 +4931,96 @@ var Qs = [
"其它",
"hard-drive"
]
-], $s = (e) => Qs.find(([t]) => t === e)?.[0] ?? "";
-function ec(e) {
+], Xs = (e) => Ys.find(([t]) => t === e)?.[0] ?? "";
+function Zs(e) {
let t = new URLSearchParams(e);
return {
- kind: $s(t.get("type")),
+ kind: Xs(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function tc(e = "", t = "pending") {
+function Qs(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 nc(e) {
+function $s(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: tc("", "pending")
+ href: Qs("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: tc("", "dismissed")
+ href: Qs("", "dismissed")
};
}
-var rc = (e) => e === "dismissed" ? "已排除" : "待判断", ic = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function ac({ kind: e, view: n }) {
- let r = Qs.map(([r, i, a]) => `<a href="${tc(r, n)}" data-junk-kind-link="${r}"${r === e ? " aria-current=\"page\"" : ""}>${ic(a)}${t(i)}</a>`).join(""), i = nc(n);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Ko(rc(n))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${r}<i data-junk-divider="" aria-hidden="true"></i><a href="${i.href}" data-junk-view-link="${i.view}"${n === "dismissed" ? " aria-current=\"page\"" : ""}>${ic(i.glyph)}${i.label}</a></nav></div></div></div>`;
+var ec = (e) => e === "dismissed" ? "已排除" : "待判断", tc = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function nc({ kind: e, view: n }) {
+ let r = Ys.map(([r, i, a]) => `<a href="${Qs(r, n)}" data-junk-kind-link="${r}"${r === e ? " aria-current=\"page\"" : ""}>${tc(a)}${t(i)}</a>`).join(""), i = $s(n);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${qo(ec(n))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${r}<i data-junk-divider="" aria-hidden="true"></i><a href="${i.href}" data-junk-view-link="${i.view}"${n === "dismissed" ? " aria-current=\"page\"" : ""}>${tc(i.glyph)}${i.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/player/controls.ts
-function oc(e, t) {
+function rc(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
//#endregion
//#region src/player/playback.ts
-function sc(e) {
+function ic(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function cc(e, t) {
+function ac(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
//#endregion
//#region src/islands.ts
-var lc = null;
-function uc(e, t, n, r) {
- lc ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), lc.then((e) => e.showToast(n, r));
+var oc = null;
+function sc(e, t, n, r) {
+ oc ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), oc.then((e) => e.showToast(n, r));
}
-var dc = null, fc = null;
-function pc(e) {
- return dc ??= import("/dist/peach-react.js").then((t) => (fc = t.configureStage(e), fc)), dc;
+var cc = null, lc = null;
+function uc(e) {
+ return cc ??= import("/dist/peach-react.js").then((t) => (lc = t.configureStage(e), lc)), cc;
}
-var mc = () => fc, hc = null, gc = null;
-function _c(e) {
- return hc ??= import("/dist/peach-react.js").then((t) => (gc = t.configureSettingsPanel(e), gc)), hc;
+var dc = () => lc, fc = null, pc = null;
+function mc(e) {
+ return fc ??= import("/dist/peach-react.js").then((t) => (pc = t.configureSettingsPanel(e), pc)), fc;
}
-var vc = () => gc, yc = null, bc = null;
-function xc(e) {
- return yc ??= import("/dist/peach-react.js").then((t) => (bc = t.configureImmerse(e), bc)), yc;
+var hc = () => pc, gc = null, _c = null;
+function vc(e) {
+ return gc ??= import("/dist/peach-react.js").then((t) => (_c = t.configureImmerse(e), _c)), gc;
}
-var Sc = () => bc, Cc = null, wc = null;
-function Tc(e) {
- return Cc ??= import("/dist/peach-react.js").then((t) => (wc = t.configureSidebar(e), wc)), Cc;
+var yc = () => _c, bc = null, xc = null;
+function Sc(e) {
+ return bc ??= import("/dist/peach-react.js").then((t) => (xc = t.configureSidebar(e), xc)), bc;
}
-var Ec = () => wc, Dc = null, Oc = null;
-function kc(e) {
- return Dc ??= import("/dist/peach-react.js").then((t) => (Oc = t.configureManageHeader(e), Oc)), Dc;
+var Cc = () => xc, wc = null, Tc = null;
+function Ec(e) {
+ return wc ??= import("/dist/peach-react.js").then((t) => (Tc = t.configureManageHeader(e), Tc)), wc;
}
-var Ac = () => Oc, jc = null, Mc = null;
-function Nc(e) {
- return jc ??= import("/dist/peach-react.js").then((t) => (Mc = t.configureBatchDock(e), Mc)), jc;
+var Dc = () => Tc, Oc = null, kc = null;
+function Ac(e) {
+ return Oc ??= import("/dist/peach-react.js").then((t) => (kc = t.configureBatchDock(e), kc)), Oc;
}
-var Pc = () => Mc, Fc = null;
-function Ic(e) {
- return Fc ??= import("/dist/peach-react.js").then((t) => t.configureGlowPicker(e)), Fc;
+var jc = () => kc, Mc = null;
+function Nc(e) {
+ return Mc ??= import("/dist/peach-react.js").then((t) => t.configureGlowPicker(e)), Mc;
}
-var Lc = null;
-Ur(() => {
+var Pc = null;
+Wr(() => {
import("/dist/peach-react.js").catch(() => {});
});
-function Rc(e) {
- if (!Lc) {
+function Fc(e) {
+ if (!Pc) {
let t = import("/dist/peach-react.js").then((t) => (t.configureRouter(e), t));
- Kr(t.then((e) => e.prefetchManagedRoute)), Lc = t.then(() => void 0);
+ qr(t.then((e) => e.prefetchManagedRoute)), Pc = t.then(() => void 0);
}
- return Lc;
+ return Pc;
}
//#endregion
-export { Ce as ACCENTS, Ft as ACCENT_CHOICES, it as COVER_FRONT_RATIO, L as CancelledError, we as DEFAULT_ACCENT, Ne as DEFAULT_HOME_GLOW, We as DEFAULT_SETTINGS, ue as DEFAULT_SIDEBAR_ORDER, va as FACE_CEILING, ga as FACE_TARGET, Ue as FEED_COMPILATION_KEYS, Ve as FOLLOW_INITIAL_DAYS, ye as GLASS_NATIVE_PRESET, ve as GLOW_SPOT_LABELS, Oe as GLOW_SWATCHES, De as GLOW_SWATCH_FAMILIES, be as HOME_GLOW_CHOICES, S as HOME_GLOW_PRESETS, _e as HOME_GLOW_SPOTS, Gn as InfiniteQueryObserver, tt as JAV_LAYOUTS, m as JAV_RELEASE_SORT, lr as MEDIA_SOURCES_KEY, cr as MEDIA_SOURCES_URL, He as METADATA_REFRESH_DAYS, _a as MIN_FACE_PX, Kn as Mutation, Jn as MutationCache, Xn as MutationObserver, jr as OVERLAY_PATHS, rt as PHOTO_LAYOUTS, nt as PHOTO_SIZES, Qn as QueriesObserver, Fn as Query, $n as QueryCache, er as QueryClient, zn as QueryObserver, ze as SETTINGS_KEY, p as SORTS, _ as SORT_ALIASES, g as SORT_DIR_WORDS, h as SORT_KEYS, Be as THEME_CHOICES, Ye as THEME_OPTIONS, xt as TILES, Di as activeQueue, Mi as activityPrefill, Lr as adoptOverlayState, Ea as advanceImageFallback, w as allowedSetting, E as appSettingsStore, Mt as applyAccent, Tt as applyDensity, jt as applyGlassFaces, At as applyHomeGlow, qe as applySyncedSettings, Qe as applyTheme, to as avatarFrame, za as avatarInner, Nr as backgroundOf, hi as barsContext, Pc as batchDockApi, Ts as boardPageSkeleton, qa as cardArtwork, Za as cardIdentity, st as cardLayoutFor, mt as cardRatio, Os as catalogEmptyHtml, Ms as catalogFilterSkeletonHtml, Ds as catalogSuggestions, Lt as chooseAccent, It as chooseGlowPreset, ma as clampPage, Zs as cleanupSkeletonHtml, Ir as clearOverlayBackground, oc as clickPlayerControl, ji as configurationRequestedSection, bo as configureHoverPreview, Kr as connectManagedRoutes, no as coverAnchor, io as coverBackdrop, so as coverFace, Wa as coverImage, oo as coverRatio, Pa as coverUrl, St as currentDensity, rr as dataTagErrorSymbol, nr as dataTagSymbol, Cn as defaultScheduler, yn as defaultShouldDehydrateMutation, bn as defaultShouldDehydrateQuery, y as defaultSortDir, xn as dehydrate, vn as dehydrateQuery, Ti as detailOriginAbove, wi as detailOriginAnchor, Xa as detailPosterUrl, gi as detailReturnBarsContext, Ei as detailReturnNeedsRestore, Ci as detailReturnPath, ws as detailSkeletonHtml, Vs as dropBars, Ba as entityAvatar, Ra as entityFaceImg, Eo as entitySkeletonHtml, pn as environmentManager, tr as experimental_streamedQuery, Ua as faceBoxAttrs, xa as faceFrame, Va as faceOrigin, Ha as facePos, Oa as faceSourceScale, ba as faceZoom, ni as failManagedRoute, zs as fetchBars, ur as fetchMediaSources, Bs as fetchTopsPage, mo as fitNativeImage, mn as focusManager, Ai as followDetailReturnPath, sa as followJobProgress, xi as followLastSelectedId, vi as followSelected, po as frameCachedImages, Ee as glowAccent, Fe as glowChipFill, Pt as glowChips, Ae as glowColor, Se as glowPalette, xe as glowPresetName, pt as gridLayout, ya as hasFaceBox, j as hashKey, Fr as holdOverlayBackground, ot as homeLayout, Sn as hydrate, Ta as imageFallbackAttrs, Sc as immerseApi, Vi as initBoardControls, vo as installCardArt, Dn as isCancelledError, C as isNativeGlass, Mr as isOverlayPath, Ut as isServer, Ka as javArtwork, ie as javImageKind, at as javLayout, aa as jobActivityHtml, ac as junkCountSkeletonHtml, tc as junkPath, ec as junkRoute, rn as keepPreviousData, bi as lastSelectedId, Xr as listenManagedEntry, Nc as loadBatchDock, Ic as loadGlowPicker, xc as loadImmerse, kc as loadManageHeader, fr as loadMediaSources, Rc as loadRouter, _c as loadSettingsPanel, Tc as loadSidebar, pc as loadStage, Fa as logoUrl, Ac as manageHeaderApi, na as manageHeaderSkeletonHtml, $i as manageHeaderView, Yr as managedEntries, qr as managedEntry, Jr as managedTaken, Jt as matchMutation, qt as matchQuery, Ja as mixFace, $a as mixLabel, ka as nativeImageFit, ee as nextSortState, k as noop, Te as normalizeAccent, Ge as normalizeAppSettings, Pe as normalizeHomeGlow, re as normalizeJavImage, b as normalizeJavLayout, ne as normalizeJavPreferences, me as normalizeSidebarOrder, F as notifyManager, Ii as notifyShell, I as onlineManager, Qr as openManagedRoute, zr as overlayState, pa as pageCount, ha as paginationHtml, Re as paintGlassFaces, zt as paintGlowButton, Le as paintHomeGlow, Ot as paintHomeGlowNow, Dt as paintPhotoSizeButton, oe as panelFrame, wa as parseFallbacks, M as partialMatchKey, li as peachHistory, Oi as pendingQueueRoute, La as performerLabel, dt as photoLayout, ut as photoSize, Je as postSearchHistoryLimit, ro as posterPanel, te as preferredDirection, Ur as preloadManagedRoutes, ki as presentedItem, R as queryClient, Qa as queueAvatarHtml, Ya as queueThumbHtml, Ke as readAppSettings, ho as refitNativeImages, zi as registerDiagnosticsRoute, go as relayoutCovers, ce as relayoutJavImages, Co as releaseHover, So as releaseHoverPreviews, ti as releaseManagedRoute, ja as rememberRepresentatives, Zt as replaceEqualDeep, Ma as representativeOf, Rt as resetGlowColors, pi as retagOverlay, fi as routeSeen, cc as seekVideoBy, ua as selectGroup, yi as selectMode, ca as selectRange, Si as selectSurface, _i as selected, la as selectionSummary, wo as setHoverState, vc as settingsPanelApi, fo as settleImage, ui as shellNavigate, Ri as shellVersion, ln as shouldThrowError, uc as showToast, Ec as sidebarApi, he as sidebarHasCatalogContent, Yi as sidebarSkeletonHtml, ge as sidebarTagCounts, sn as skipToken, v as sortDirWord, mc as stageApi, di as startRouting, mi as state, ht as storeHomeLayout, gt as storeJavLayout, yt as storePhotoLayout, vt as storePhotoSize, _t as storeVideoLayout, Li as subscribeShell, Bi as syncBoardRange, se as syncJavImages, da as syncSelectionToolbar, Rr as takeOverlayReturn, O as timeoutManager, Et as toggleDensity, sc as toggleVideoPlayback, qi as transitionTheme, ir as unsetMarker, ei as updateManagedRoute, ao as upgradeCover, oa as watchJob, uo as watchPendingImages, et as watchSystemTheme, Bt as wireGlowButton, To as wireHover, Da as wireImageFallbacks, Na as withVersion, Fi as writeShell };
+export { Se as ACCENTS, Ft as ACCENT_CHOICES, it as COVER_FRONT_RATIO, L as CancelledError, Ce as DEFAULT_ACCENT, Me as DEFAULT_HOME_GLOW, Ue as DEFAULT_SETTINGS, ue as DEFAULT_SIDEBAR_ORDER, ya as FACE_CEILING, _a as FACE_TARGET, He as FEED_COMPILATION_KEYS, Be as FOLLOW_INITIAL_DAYS, ye as GLASS_NATIVE_PRESET, ve as GLOW_SPOT_LABELS, De as GLOW_SWATCHES, Ee as GLOW_SWATCH_FAMILIES, be as HOME_GLOW_CHOICES, S as HOME_GLOW_PRESETS, _e as HOME_GLOW_SPOTS, Gn as InfiniteQueryObserver, tt as JAV_LAYOUTS, m as JAV_RELEASE_SORT, lr as MEDIA_SOURCES_KEY, cr as MEDIA_SOURCES_URL, Ve as METADATA_REFRESH_DAYS, va as MIN_FACE_PX, Kn as Mutation, Jn as MutationCache, Xn as MutationObserver, jr as OVERLAY_PATHS, rt as PHOTO_LAYOUTS, nt as PHOTO_SIZES, Qn as QueriesObserver, Fn as Query, $n as QueryCache, er as QueryClient, zn as QueryObserver, Re as SETTINGS_KEY, p as SORTS, _ as SORT_ALIASES, g as SORT_DIR_WORDS, h as SORT_KEYS, ze as THEME_CHOICES, Ye as THEME_OPTIONS, xt as TILES, Oi as activeQueue, Ni as activityPrefill, Rr as adoptOverlayState, Da as advanceImageFallback, T as allowedSetting, E as appSettingsStore, Mt as applyAccent, Tt as applyDensity, jt as applyGlassFaces, At as applyHomeGlow, qe as applySyncedSettings, Qe as applyTheme, no as avatarFrame, Ba as avatarInner, Nr as backgroundOf, gi as barsContext, jc as batchDockApi, Ss as boardPageSkeleton, Ja as cardArtwork, Qa as cardIdentity, st as cardLayoutFor, mt as cardRatio, Ts as catalogEmptyHtml, ks as catalogFilterSkeletonHtml, ws as catalogSuggestions, Lt as chooseAccent, It as chooseGlowPreset, ha as clampPage, Js as cleanupSkeletonHtml, Lr as clearOverlayBackground, rc as clickPlayerControl, Mi as configurationRequestedSection, xo as configureHoverPreview, qr as connectManagedRoutes, ro as coverAnchor, ao as coverBackdrop, co as coverFace, Ga as coverImage, so as coverRatio, Fa as coverUrl, St as currentDensity, rr as dataTagErrorSymbol, nr as dataTagSymbol, Cn as defaultScheduler, yn as defaultShouldDehydrateMutation, bn as defaultShouldDehydrateQuery, y as defaultSortDir, xn as dehydrate, vn as dehydrateQuery, Ei as detailOriginAbove, Ti as detailOriginAnchor, Za as detailPosterUrl, _i as detailReturnBarsContext, Di as detailReturnNeedsRestore, wi as detailReturnPath, xs as detailSkeletonHtml, Rs as dropBars, Va as entityAvatar, za as entityFaceImg, Do as entitySkeletonHtml, pn as environmentManager, tr as experimental_streamedQuery, Wa as faceBoxAttrs, Sa as faceFrame, Ha as faceOrigin, Ua as facePos, ka as faceSourceScale, xa as faceZoom, ri as failManagedRoute, Is as fetchBars, ur as fetchMediaSources, Ls as fetchTopsPage, ho as fitNativeImage, mn as focusManager, ji as followDetailReturnPath, ca as followJobProgress, Si as followLastSelectedId, yi as followSelected, mo as frameCachedImages, Te as glowAccent, Pe as glowChipFill, Pt as glowChips, ke as glowColor, w as glowPalette, xe as glowPresetName, pt as gridLayout, ba as hasFaceBox, j as hashKey, Ir as holdOverlayBackground, ot as homeLayout, Sn as hydrate, Ea as imageFallbackAttrs, yc as immerseApi, Hi as initBoardControls, yo as installCardArt, Dn as isCancelledError, C as isNativeGlass, Mr as isOverlayPath, Ut as isServer, qa as javArtwork, ie as javImageKind, at as javLayout, oa as jobActivityHtml, nc as junkCountSkeletonHtml, Qs as junkPath, Zs as junkRoute, rn as keepPreviousData, xi as lastSelectedId, Zr as listenManagedEntry, Ac as loadBatchDock, Nc as loadGlowPicker, vc as loadImmerse, Ec as loadManageHeader, fr as loadMediaSources, Fc as loadRouter, mc as loadSettingsPanel, Sc as loadSidebar, uc as loadStage, Ia as logoUrl, Dc as manageHeaderApi, ra as manageHeaderSkeletonHtml, ea as manageHeaderView, Xr as managedEntries, Jr as managedEntry, Yr as managedTaken, Jt as matchMutation, qt as matchQuery, Ya as mixFace, eo as mixLabel, Aa as nativeImageFit, ee as nextSortState, k as noop, we as normalizeAccent, We as normalizeAppSettings, Ne as normalizeHomeGlow, re as normalizeJavImage, b as normalizeJavLayout, ne as normalizeJavPreferences, me as normalizeSidebarOrder, F as notifyManager, Li as notifyShell, I as onlineManager, $r as openManagedRoute, Br as overlayState, ma as pageCount, ga as paginationHtml, Le as paintGlassFaces, zt as paintGlowButton, Ie as paintHomeGlow, Ot as paintHomeGlowNow, Dt as paintPhotoSizeButton, oe as panelFrame, Ta as parseFallbacks, M as partialMatchKey, ui as peachHistory, ki as pendingQueueRoute, Ra as performerLabel, dt as photoLayout, ut as photoSize, Je as postSearchHistoryLimit, io as posterPanel, te as preferredDirection, Wr as preloadManagedRoutes, Ai as presentedItem, R as queryClient, $a as queueAvatarHtml, Xa as queueThumbHtml, Ge as readAppSettings, go as refitNativeImages, Bi as registerDiagnosticsRoute, _o as relayoutCovers, ce as relayoutJavImages, wo as releaseHover, Co as releaseHoverPreviews, ni as releaseManagedRoute, Ma as rememberRepresentatives, Zt as replaceEqualDeep, Na as representativeOf, Rt as resetGlowColors, mi as retagOverlay, pi as routeSeen, ac as seekVideoBy, da as selectGroup, bi as selectMode, la as selectRange, Ci as selectSurface, vi as selected, ua as selectionSummary, To as setHoverState, hc as settingsPanelApi, po as settleImage, di as shellNavigate, zi as shellVersion, ln as shouldThrowError, sc as showToast, Cc as sidebarApi, he as sidebarHasCatalogContent, Xi as sidebarSkeletonHtml, ge as sidebarTagCounts, sn as skipToken, v as sortDirWord, dc as stageApi, fi as startRouting, hi as state, ht as storeHomeLayout, gt as storeJavLayout, yt as storePhotoLayout, vt as storePhotoSize, _t as storeVideoLayout, Ri as subscribeShell, Vi as syncBoardRange, se as syncJavImages, fa as syncSelectionToolbar, zr as takeOverlayReturn, O as timeoutManager, Et as toggleDensity, ic as toggleVideoPlayback, Ji as transitionTheme, ir as unsetMarker, ti as updateManagedRoute, oo as upgradeCover, sa as watchJob, fo as watchPendingImages, et as watchSystemTheme, Bt as wireGlowButton, Eo as wireHover, Oa as wireImageFallbacks, Pa as withVersion, Ii as writeShell };